-
Notifications
You must be signed in to change notification settings - Fork 388
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
4 changed files
with
65 additions
and
8 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,31 @@ | ||
import { CoreConfig, HookType, IsmType } from "@hyperlane-xyz/sdk"; | ||
import { detectAndConfirmOrPrompt } from "../utils/chains.js"; | ||
|
||
const deployer = await detectAndConfirmOrPrompt( | ||
async () => { | ||
const accounts = await provider.listAccounts(); | ||
return accounts[0]; | ||
}, | ||
'address', | ||
'Enter a deployer', | ||
); | ||
|
||
const coreConfig: CoreConfig = { | ||
owner: deployer, | ||
defaultHook: { | ||
type: HookType.MERKLE_TREE, | ||
}, | ||
requiredHook: { | ||
type: HookType.PROTOCOL_FEE, | ||
owner: deployer, | ||
beneficiary: deployer, | ||
protocolFee: '0', | ||
maxProtocolFee: '10000000000000', | ||
}, | ||
defaultIsm: { | ||
type: IsmType.TRUSTED_RELAYER, | ||
relayer: deployer, | ||
}, | ||
}; | ||
|
||
export default coreConfig; |
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,34 @@ | ||
# A config for a Warp Route deployment | ||
# Typically used with the 'hyperlane deploy warp' command | ||
# | ||
# Token Types: | ||
# native | ||
# collateral | ||
# synthetic | ||
# | ||
# see comprehensive [list](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/token/config.ts#L8) | ||
--- | ||
sepolia: | ||
type: collateralXERC20 | ||
token: "0x6f8B045D2645872bC2214BBbbC4Ee2EaeA477857" | ||
# mailbox: "0x123" # mailbox address route | ||
# token: "0x123" # Collateral/vault address. Required for collateral types | ||
# owner: "0x123" # Optional owner address for synthetic token | ||
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address | ||
# isNft: true # If the token is an NFT (ERC721), set to true | ||
# You can optionally set the token metadata | ||
# name: "MyCollateralToken" | ||
# symbol: "MCT" | ||
# totalSupply: 10000000 | ||
|
||
arbitrumsepolia: | ||
type: collateralXERC20 | ||
token: "0x6e64Eb73b9666A10d83f9Bd10BE41efd640553e6" | ||
# token: "0x123" # Collateral/vault address. Required for collateral types | ||
# owner: "0x123" # Optional owner address for synthetic token | ||
# mailbox: "0x123" # mailbox address route | ||
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address | ||
# You can optionally set the token metadata | ||
# name: "MySyntheticToken" | ||
# symbol: "MST" | ||
# totalSupply: 10000000 |
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