Skip to content

Commit f00a8a0

Browse files
authored
Merge pull request #173 from MetaMask/chore/add_chainnet_metadatas_for_testnets
Add chain metadata for supported testnets
2 parents 951a367 + ee726ce commit f00a8a0

File tree

1 file changed

+58
-9
lines changed

1 file changed

+58
-9
lines changed

packages/gator-permissions-snap/src/core/chainMetadata.ts

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,78 @@ const CONTRACTS_1_3_0: DelegationContracts = {
4545
};
4646

4747
const metadataByChainId: Record<number, ChainMetadata> = {
48-
// mainnet
48+
// Mainnets:
4949
1: {
5050
contracts: CONTRACTS_1_3_0,
5151
name: 'Ethereum Mainnet',
52-
symbol: 'ETH',
53-
decimals: 18,
5452
explorerUrl: 'https://etherscan.io',
5553
},
56-
// sepolia
54+
// Testnets:
55+
97: {
56+
contracts: CONTRACTS_1_3_0,
57+
name: 'BNB Smart Chain Testnet',
58+
explorerUrl: 'https://testnet.bscscan.com',
59+
},
60+
1301: {
61+
contracts: CONTRACTS_1_3_0,
62+
name: 'Unichain Sepolia Testnet',
63+
explorerUrl: 'https://sepolia.uniscan.xyz',
64+
},
65+
5115: {
66+
contracts: CONTRACTS_1_3_0,
67+
name: 'Citrea Testnet',
68+
explorerUrl: 'https://explorer.testnet.citrea.xyz',
69+
},
70+
6342: {
71+
contracts: CONTRACTS_1_3_0,
72+
name: 'MegaETH Testnet',
73+
explorerUrl: 'https://megaexplorer.xyz',
74+
},
75+
10200: {
76+
contracts: CONTRACTS_1_3_0,
77+
name: 'Gnosis Chiado Testnet',
78+
explorerUrl: 'https://gnosis-chiado.blockscout.com',
79+
},
80+
80002: {
81+
contracts: CONTRACTS_1_3_0,
82+
name: 'Polygon Amoy Testnet',
83+
explorerUrl: 'https://amoy.polygonscan.com/',
84+
},
85+
80069: {
86+
contracts: CONTRACTS_1_3_0,
87+
name: 'Berachain Bepolia Testnet',
88+
explorerUrl: 'https://bepolia.beratrail.io',
89+
},
90+
84532: {
91+
contracts: CONTRACTS_1_3_0,
92+
name: 'Base Sepolia Testnet',
93+
explorerUrl: 'https://sepolia.basescan.org',
94+
},
95+
421614: {
96+
contracts: CONTRACTS_1_3_0,
97+
name: 'Arbitrum Sepolia Testnet',
98+
explorerUrl: 'https://sepolia.arbiscan.io',
99+
},
100+
763373: {
101+
contracts: CONTRACTS_1_3_0,
102+
name: 'Ink Sepolia Testnet',
103+
explorerUrl: 'https://explorer-sepolia.inkonchain.com',
104+
},
57105
11155111: {
58106
contracts: CONTRACTS_1_3_0,
59-
name: 'Sepolia',
60-
symbol: 'ETH',
61-
decimals: 18,
107+
name: 'Sepolia Testnet',
62108
explorerUrl: 'https://sepolia.etherscan.io',
63109
},
110+
11155420: {
111+
contracts: CONTRACTS_1_3_0,
112+
name: 'OP Sepolia Testnet',
113+
explorerUrl: 'https://sepolia-optimism.etherscan.io',
114+
},
64115
};
65116

66117
export type ChainMetadata = {
67118
contracts: DelegationContracts;
68119
name: string;
69-
symbol: string;
70-
decimals: number;
71120
explorerUrl: string;
72121
};
73122

0 commit comments

Comments
 (0)