-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:configure hooks in the CLI (#2964)
### Description - enable configuring hooks in the CLI (merkle, igp, protocolFee, aggregation, routing) - use preset by default without prompting ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
- Loading branch information
1 parent
9fc0866
commit 7e620c9
Showing
15 changed files
with
539 additions
and
196 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@hyperlane-xyz/cli': minor | ||
'@hyperlane-xyz/infra': patch | ||
'@hyperlane-xyz/sdk': patch | ||
--- | ||
|
||
Allow CLI to accept hook as a config |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# A config to define the hooks for core contract deployments | ||
# Ideally, use the `hyperlane config create hooks` command to generate this file | ||
# but you we can refer to https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/hook/types.ts for the matching types | ||
|
||
# HooksConfig: | ||
# required: HookConfig | ||
# default: HookConfig | ||
|
||
# HookConfig: | ||
# type: HookType | ||
# ... hook-specific config | ||
|
||
# HookType: | ||
# - merkleTreeHook | ||
# - domainRoutingHook | ||
# - interchainGasPaymaster | ||
# - protocolFee | ||
# - aggregationHook | ||
# - opStack (not yet supported) | ||
|
||
anvil1: | ||
required: | ||
type: protocolFee | ||
maxProtocolFee: '1000000000000000000' # in wei (string) | ||
protocolFee: '200000000000000' # in wei (string) | ||
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
default: | ||
type: domainRoutingHook | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
domains: | ||
anvil2: | ||
type: aggregationHook | ||
hooks: | ||
- type: merkleTreeHook | ||
- type: interchainGasPaymaster | ||
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
oracleKey: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
overhead: | ||
anvil2: 50000 # gas amount (number) | ||
gasOracleType: | ||
anvil2: StorageGasOracle | ||
anvil2: | ||
required: | ||
type: protocolFee | ||
maxProtocolFee: '1000000000000000000' | ||
protocolFee: '200000000000000' | ||
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
default: | ||
type: domainRoutingHook | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
domains: | ||
anvil1: | ||
type: aggregationHook | ||
hooks: | ||
- type: merkleTreeHook | ||
- type: interchainGasPaymaster | ||
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
oracleKey: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' | ||
overhead: | ||
anvil1: 50000 | ||
gasOracleType: | ||
anvil1: StorageGasOracle |
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.