/
chains.ts
49 lines (48 loc) · 1.2 KB
/
chains.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { ChainMap, ChainMetadata, ProtocolType } from '@hyperlane-xyz/sdk';
// import { chainMetadata } from '@hyperlane-xyz/sdk';
// A map of chain names to ChainMetadata
export const chains: ChainMap<ChainMetadata> = {
// ----------- Add your chains here -----------------
anvil1: {
name: 'anvil1',
protocol: ProtocolType.Ethereum,
// anvil default chain id
chainId: 31337,
// Used to configure a Warp Route to bridge anvil1 ETH
// to anvil2 in CI tests.
nativeToken: {
name: 'ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: [
{
http: 'http://127.0.0.1:8545',
},
],
// You can set overrides for transaction fields here
// transactionOverrides: {
// gasLimit: 1000000
// },
},
anvil2: {
name: 'anvil2',
protocol: ProtocolType.Ethereum,
chainId: 31338,
rpcUrls: [
{
http: 'http://127.0.0.1:8555',
},
],
},
// --------------------------------------------------
// You can also override the default chain metadata (completely)
// ethereum: {
// ...chainMetadata.ethereum,
// publicRpcUrls: [
// {
// http: 'my.custom.rpc.url',
// }
// ],
// }
};