Skip to content

Commit 777b24d

Browse files
committed
ancient8
1 parent a395a69 commit 777b24d

File tree

2 files changed

+59
-26
lines changed

2 files changed

+59
-26
lines changed

src/consts/chains.ts

+29-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
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';
24

35
// A map of chain names to ChainMetadata
46
// Chains can be defined here, in chains.json, or in chains.yaml
57
// Chains already in the SDK need not be included here unless you want to override some fields
68
// Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts
79
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+
},
3136
};

src/consts/tokens.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
1-
import { WarpCoreConfig } from '@hyperlane-xyz/sdk';
1+
import { TokenStandard, WarpCoreConfig } from '@hyperlane-xyz/sdk';
22

33
// A list of Warp UI token configs
44
// Tokens can be defined here, in tokens.json, or in tokens.yaml
55
// The input here is typically the output of the Hyperlane CLI warp deploy command
66
export const tokenConfigs: WarpCoreConfig = {
7-
tokens: [],
7+
tokens: [
8+
{
9+
name: 'USD Coin',
10+
symbol: 'USDC',
11+
decimals: 6,
12+
chainName: 'ethereum',
13+
standard: TokenStandard.EvmHypCollateral,
14+
addressOrDenom: '0x9f5cF636b4F2DC6D83c9d21c8911876C235DbC9f',
15+
collateralAddressOrDenom: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
16+
connections: [
17+
{
18+
token: 'ethereum|ancient8|0xB3fCcD379ad66CED0c91028520C64226611A48c9',
19+
},
20+
],
21+
},
22+
{
23+
name: 'USD Coin',
24+
symbol: 'USDC',
25+
decimals: 6,
26+
chainName: 'ancient8',
27+
standard: TokenStandard.EvmHypSynthetic,
28+
addressOrDenom: '0xB3fCcD379ad66CED0c91028520C64226611A48c9',
29+
connections: [
30+
{
31+
token: 'ethereum|ethereum|0x9f5cF636b4F2DC6D83c9d21c8911876C235DbC9f',
32+
},
33+
],
34+
},
35+
],
836
options: {},
937
};

0 commit comments

Comments
 (0)