|
1 |
| -import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk'; |
| 1 | +import { ChainMap, ChainMetadata, ChainTechnicalStack, ExplorerFamily } from '@hyperlane-xyz/sdk'; |
| 2 | +import { etherToken } from '@hyperlane-xyz/sdk/dist/consts/chainMetadata'; |
| 3 | +import { ProtocolType } from '@hyperlane-xyz/utils'; |
2 | 4 |
|
3 | 5 | // A map of chain names to ChainMetadata
|
4 | 6 | // Chains can be defined here, in chains.json, or in chains.yaml
|
5 | 7 | // Chains already in the SDK need not be included here unless you want to override some fields
|
6 | 8 | // Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts
|
7 | 9 | export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
|
8 |
| - // mycustomchain: { |
9 |
| - // protocol: ProtocolType.Ethereum, |
10 |
| - // chainId: 123123, |
11 |
| - // domainId: 123123, |
12 |
| - // name: 'mycustomchain', |
13 |
| - // displayName: 'My Chain', |
14 |
| - // nativeToken: { name: 'Ether', symbol: 'ETH', decimals: 18 }, |
15 |
| - // rpcUrls: [{ http: 'https://mycustomchain-rpc.com' }], |
16 |
| - // blockExplorers: [ |
17 |
| - // { |
18 |
| - // name: 'MyCustomScan', |
19 |
| - // url: 'https://mycustomchain-scan.com', |
20 |
| - // apiUrl: 'https://api.mycustomchain-scan.com/api', |
21 |
| - // family: ExplorerFamily.Etherscan, |
22 |
| - // }, |
23 |
| - // ], |
24 |
| - // blocks: { |
25 |
| - // confirmations: 1, |
26 |
| - // reorgPeriod: 1, |
27 |
| - // estimateBlockTime: 10, |
28 |
| - // }, |
29 |
| - // logoURI: '/logo.svg', |
30 |
| - // }, |
| 10 | + ancient8: { |
| 11 | + blockExplorers: [ |
| 12 | + { |
| 13 | + apiUrl: 'https://scan.ancient8.gg/api', |
| 14 | + family: ExplorerFamily.Blockscout, |
| 15 | + name: 'Ancient8 Explorer', |
| 16 | + url: 'https://scan.ancient8.gg', |
| 17 | + }, |
| 18 | + ], |
| 19 | + blocks: { |
| 20 | + confirmations: 1, |
| 21 | + estimateBlockTime: 2, |
| 22 | + reorgPeriod: 0, |
| 23 | + }, |
| 24 | + chainId: 888888888, |
| 25 | + displayName: 'Ancient8', |
| 26 | + domainId: 888888888, |
| 27 | + isTestnet: false, |
| 28 | + name: 'ancient8', |
| 29 | + nativeToken: etherToken, |
| 30 | + gasCurrencyCoinGeckoId: 'ethereum', |
| 31 | + protocol: ProtocolType.Ethereum, |
| 32 | + rpcUrls: [{ http: 'https://rpc.ancient8.gg' }], |
| 33 | + technicalStack: ChainTechnicalStack.Other, |
| 34 | + mailbox: '0x2f2aFaE1139Ce54feFC03593FeE8AB2aDF4a85A7', |
| 35 | + }, |
31 | 36 | };
|
0 commit comments