-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:allow full IsmConfig for CLI as an advanced config feature (#2939)
### Description - added `ism-advanced` config which allows you flexibility to define your own IsmConfig shape - configure through `hyperlane config create ism-advanced` - core deployments checks for both `ism-advanced.yaml` and then `ism.yaml` (old multisig config way) ie. precedence is given to the advanced version - support for `Aggregation`, `Routing`, `MerkleRoot`, `MessageId`, and `TestIsm` (with a warning) - instead of routing over just messageId, the simpler `ism` config way is now routing over aggregation of merkle and message matching hyperlane V3 core deployments - also renamed multisig option to ism to not introduce multisig user-side and stick with consistent ism or ism- options. ### Drive-by changes - `ism.yaml` doesn't take in a type since we provide both `merkleRoot` and `messageId` variants by default. ### Related issues - fixes hyperlane-xyz/issues#737 ### Backward compatibility Yes ### Testing Manual --------- Co-authored-by: Yorke Rhodes <[email protected]>
- Loading branch information
1 parent
50aed86
commit df69370
Showing
24 changed files
with
832 additions
and
86 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,6 @@ | ||
--- | ||
'@hyperlane-xyz/cli': minor | ||
'@hyperlane-xyz/sdk': minor | ||
--- | ||
|
||
Add support for all ISM types in CLI interactive config creation |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
anvil1: | ||
type: domainRoutingIsm | ||
owner: '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
domains: | ||
anvil2: | ||
type: staticAggregationIsm | ||
modules: | ||
- type: messageIdMultisigIsm | ||
threshold: 1 | ||
validators: | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
- type: merkleRootMultisigIsm | ||
threshold: 1 | ||
validators: | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
threshold: 1 | ||
|
||
anvil2: | ||
type: domainRoutingIsm | ||
owner: '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
domains: | ||
anvil1: | ||
type: staticAggregationIsm | ||
modules: | ||
- type: messageIdMultisigIsm | ||
threshold: 1 | ||
validators: | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
- type: merkleRootMultisigIsm | ||
threshold: 1 | ||
validators: | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
threshold: 1 |
8 changes: 0 additions & 8 deletions
8
typescript/cli/examples/multisig-ism.yaml → typescript/cli/examples/ism.yaml
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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
# A config for a multisig Interchain Security Module (ISM) | ||
# Schema: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/ism/types.ts | ||
# | ||
# Valid module types: | ||
# routing | ||
# aggregation | ||
# merkleRootMultisig | ||
# messageIdMultisigIsm | ||
|
||
# ism type don't work currently (sets to messageIdMultisigIsm for all) | ||
--- | ||
anvil1: | ||
type: 'messageIdMultisigIsm' | ||
threshold: 1 # Number: Signatures required to approve a message | ||
validators: # Array: List of validator addresses | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' | ||
anvil2: | ||
type: 'messageIdMultisigIsm' | ||
threshold: 1 | ||
validators: | ||
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720' |
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
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.