-
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.
- Loading branch information
Showing
16 changed files
with
457 additions
and
44 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,5 @@ | ||
--- | ||
'@hyperlane-xyz/sdk': patch | ||
--- | ||
|
||
Fix the return type of multisig and aggregation ISMs for zksync-stack chains. |
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,5 @@ | ||
--- | ||
'@hyperlane-xyz/infra': minor | ||
--- | ||
|
||
Add rstETH/ethereum-zircuit warp config |
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,12 @@ | ||
ethereum: | ||
type: collateral | ||
token: "0x7a4EffD87C2f3C55CA251080b1343b605f327E3a" | ||
owner: "0xDA0d054265bB30F4f32C92066428FE57513E7ee1" | ||
mailbox: "0xc005dc82818d67AF737725bD4bf75435d065D239" | ||
interchainSecurityModule: "0x0000000000000000000000000000000000000000" | ||
zircuit: | ||
type: synthetic | ||
owner: "0xA1895dF8AE7b7678E82E76b167A24c82Fb83ec9A" | ||
mailbox: "0xc2FbB9411186AB3b1a6AFCCA702D1a80B48b197c" | ||
interchainSecurityModule: "0x0000000000000000000000000000000000000000" | ||
|
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
38 changes: 38 additions & 0 deletions
38
...cript/infra/config/environments/mainnet3/warp/configGetters/getBaseFormAIXBTWarpConfig.ts
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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const formSafes: ChainMap<Address> = { | ||
base: '0xFCdf33C6461fE8476AA0b7aC92D631d58c4e0d84', | ||
form: '0x41B624412B529409A437f08Ef80bCabE81053650', | ||
}; | ||
|
||
export const getBaseFormAIXBTWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const base: HypTokenRouterConfig = { | ||
...routerConfig.base, | ||
owner: formSafes.base, | ||
type: TokenType.collateral, | ||
token: tokens.base.AIXBT, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
const form: HypTokenRouterConfig = { | ||
...routerConfig.form, | ||
owner: formSafes.form, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
form, | ||
base, | ||
}; | ||
}; |
38 changes: 38 additions & 0 deletions
38
...script/infra/config/environments/mainnet3/warp/configGetters/getBaseFormGAMEWarpConfig.ts
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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const formSafes: ChainMap<Address> = { | ||
base: '0xFCdf33C6461fE8476AA0b7aC92D631d58c4e0d84', | ||
form: '0x41B624412B529409A437f08Ef80bCabE81053650', | ||
}; | ||
|
||
export const getBaseFormGAMEWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const base: HypTokenRouterConfig = { | ||
...routerConfig.base, | ||
owner: formSafes.base, | ||
type: TokenType.collateral, | ||
token: tokens.base.GAME, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
const form: HypTokenRouterConfig = { | ||
...routerConfig.form, | ||
owner: formSafes.form, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
form, | ||
base, | ||
}; | ||
}; |
38 changes: 38 additions & 0 deletions
38
...pt/infra/config/environments/mainnet3/warp/configGetters/getEthereumFormWBTCWarpConfig.ts
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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const formSafes: ChainMap<Address> = { | ||
ethereum: '0xec5ad23e29203301B2C1a765718Cc1de7A8d3FbF', | ||
form: '0x41B624412B529409A437f08Ef80bCabE81053650', | ||
}; | ||
|
||
export const getEthereumFormWBTCWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const ethereum: HypTokenRouterConfig = { | ||
...routerConfig.ethereum, | ||
owner: formSafes.ethereum, | ||
type: TokenType.collateral, | ||
token: tokens.ethereum.WBTC, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
const form: HypTokenRouterConfig = { | ||
...routerConfig.form, | ||
owner: formSafes.form, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
form, | ||
ethereum, | ||
}; | ||
}; |
38 changes: 38 additions & 0 deletions
38
.../infra/config/environments/mainnet3/warp/configGetters/getEthereumFormWSTETHWarpConfig.ts
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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const formSafes: ChainMap<Address> = { | ||
ethereum: '0xec5ad23e29203301B2C1a765718Cc1de7A8d3FbF', | ||
form: '0x41B624412B529409A437f08Ef80bCabE81053650', | ||
}; | ||
|
||
export const getEthereumFormWSTETHWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const ethereum: HypTokenRouterConfig = { | ||
...routerConfig.ethereum, | ||
owner: formSafes.ethereum, | ||
type: TokenType.collateral, | ||
token: tokens.ethereum.WSTETH, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
const form: HypTokenRouterConfig = { | ||
...routerConfig.form, | ||
owner: formSafes.form, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
form, | ||
ethereum, | ||
}; | ||
}; |
39 changes: 39 additions & 0 deletions
39
...fra/config/environments/mainnet3/warp/configGetters/getEthereumZircuitRstETHWarpConfig.ts
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,39 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const RstETHSafes = { | ||
ethereum: '0xDA0d054265bB30F4f32C92066428FE57513E7ee1', | ||
zircuit: '0xA1895dF8AE7b7678E82E76b167A24c82Fb83ec9A', | ||
}; | ||
|
||
const ISM_CONFIG = ethers.constants.AddressZero; // Default ISM | ||
|
||
export const getEthereumZircuitRstETHWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const ethereum: HypTokenRouterConfig = { | ||
...routerConfig.ethereum, | ||
owner: RstETHSafes.ethereum, | ||
type: TokenType.collateral, | ||
token: tokens.ethereum.rstETH, | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
const zircuit: HypTokenRouterConfig = { | ||
...routerConfig.zircuit, | ||
owner: RstETHSafes.zircuit, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
return { | ||
ethereum, | ||
zircuit, | ||
}; | ||
}; |
Oops, something went wrong.