-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Hook Events for Chains and Safe Apps (#964)
- Refactors the WebHook hook logic for the Safe Client Gateway client. - A WebHook event is now represented as a `@dataclass` – `HookEvent`. This `HookEvent` can have two types: * `CHAIN_UPDATE` – represents chain related updates (more specifically updates to `Chain`, `GasPrice`, `Feature` – chain feature, and `Wallet`). * `SAFE_APPS_UPDATE` – represents safe app related updates (more specifically updates to `SafeApp`, `Provider`, `Tag` and `Feature` – safe app feature). - The new web hooks are under a feature preview and can be enabled by setting the environment variable `FF_HOOK_EVENTS` to `true`. * If `FF_HOOK_EVENTS` is set to `false`, the `/v2/flush` endpoint is triggered (as before).
- Loading branch information
Showing
8 changed files
with
1,113 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.