-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: detangle chainId / domainId EVM assumptions (#4798)
### Description Detangle assumption that chainId == domainId for EVM chains. - required to support new domain IDs for sept26 chain deploy batch hyperlane-xyz/hyperlane-registry#352 Domain IDs and Chain Names are still unique, but chainId is no longer guaranteed to be a unique identifier. - required to support shadow lumia (current deployment) + prod lumia (new deployment with different domain id) Touches: - evm core/ism/hook/warp modules - multiprovider + chain metadata manager - safe service - renaming `ChainNameOrId` to `ChainNameOrDomain` (where bulk of the diff comes from) ### Drive-by changes - ~~add name of a `chain` to `Annotated` types, since chain ID on a populated transaction is a looser tie to a chain than `domainId` or `chain`~~ - ~~simplify multiprovider.sendtransaction, since `chain` is provided with the annotated transaction~~ - ensure domainId is not optional in the chain metadata schema - requires registry fix hyperlane-xyz/hyperlane-registry#357 - update ethers v5 json rpc submitter to require a `chain` as well ### Related issues - mostly redoes work from #4599 - will have to be rechecked after zksync changes are also in ### Backward compatibility no ### Testing ci, manual --------- Signed-off-by: pbio <[email protected]>
- Loading branch information
1 parent
30d92c3
commit e3b97c4
Showing
47 changed files
with
358 additions
and
282 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,8 @@ | ||
--- | ||
'@hyperlane-xyz/utils': major | ||
'@hyperlane-xyz/cli': major | ||
'@hyperlane-xyz/sdk': major | ||
'@hyperlane-xyz/widgets': major | ||
--- | ||
|
||
Detangle assumption that chainId == domainId for EVM chains. Domain IDs and Chain Names are still unique, but chainId is no longer guaranteed to be a unique identifier. Domain ID is no longer an optional field and is now required for all chain metadata. |
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 +1 @@ | ||
14836804e543a64cd3747cd6bbea6e245b6353b1 | ||
1ea2849e2fc1e750bac67e35827c9d682c7fd4bf |
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
typescript/cli/examples/submit/strategy/impersonated-account-strategy.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,3 +1,4 @@ | ||
submitter: | ||
chain: anvil2 | ||
type: impersonatedAccount | ||
userAddress: '0x16F4898F47c085C41d7Cc6b1dc72B91EA617dcBb' |
2 changes: 2 additions & 0 deletions
2
typescript/cli/examples/submit/strategy/json-rpc-chain-strategy.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,6 +1,8 @@ | ||
anvil2: | ||
submitter: | ||
chain: anvil2 | ||
type: jsonRpc | ||
anvil3: | ||
submitter: | ||
chain: anvil3 | ||
type: jsonRpc |
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,2 +1,3 @@ | ||
submitter: | ||
chain: anvil2 | ||
type: jsonRpc |
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
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
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
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
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.