/
warp_tokens.ts
31 lines (26 loc) · 1.15 KB
/
warp_tokens.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { TokenType } from '@hyperlane-xyz/hyperlane-token';
import type { WarpRouteConfig } from '../src/warp/config';
// A config for deploying Warp Routes to a set of chains
// Not required for Hyperlane core deployments
export const warpRouteConfig: WarpRouteConfig = {
base: {
// Chain name must be in the Hyperlane SDK or in the chains.ts config
chainName: 'anvil1',
type: TokenType.native, // TokenType.native or TokenType.collateral
// If type is collateral, a token address is required:
// address: '0x123...'
// If the token is an NFT (ERC721), set to true:
// isNft: boolean
// Optionally, specify owner, mailbox, and interchainGasPaymaster addresses
// If not specified, the Permissionless Deployment artifacts or the SDK's defaults will be used
},
synthetics: [
{
chainName: 'anvil2',
// Optionally specify a name, symbol, and totalSupply
// If not specified, the base token's properties will be used
// Optionally, specify owner, mailbox, and interchainGasPaymaster addresses
// If not specified, the Permissionless Deployment artifacts or the SDK's defaults will be used
},
],
};