Skip to content

Commit 71d6247

Browse files
authored
chore: add mantle chain deployment (#197)
* add mantle chain deployment * update changelog * lint fix * fix changelog
1 parent 8f448cd commit 71d6247

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

packages/delegation-deployments/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [Added]
10+
### Added
1111

1212
- Add chain deployment for Citrea mainnet ([#180](https://github.com/MetaMask/smart-accounts-kit/pull/180))
13+
- Add chain deployment for Mantle mainnet and Mantle Sepolia ([#197](https://github.com/MetaMask/smart-accounts-kit/pull/197))
1314

1415
## [1.0.0]
1516

packages/delegation-deployments/script/validate-contract-deployments.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,36 @@ const citreaMainnetChain: Chain = {
254254
},
255255
};
256256

257+
const mantleMainnetChain: Chain = {
258+
id: 5000,
259+
name: 'Mantle Mainnet',
260+
rpcUrls: {
261+
default: {
262+
http: ['https://rpc.mantle.xyz'],
263+
},
264+
},
265+
nativeCurrency: {
266+
name: 'Mantle',
267+
symbol: 'MNT',
268+
decimals: 18,
269+
},
270+
};
271+
272+
const mantleSepoliaChain: Chain = {
273+
id: 5003,
274+
name: 'Mantle Sepolia',
275+
rpcUrls: {
276+
default: {
277+
http: ['https://rpc.sepolia.mantle.xyz'],
278+
},
279+
},
280+
nativeCurrency: {
281+
name: 'Mantle',
282+
symbol: 'MNT',
283+
decimals: 18,
284+
},
285+
};
286+
257287
export const chains = {
258288
...allChains,
259289
megaEthTestNet: megaEthTestNetChain,
@@ -271,6 +301,8 @@ export const chains = {
271301
tempoModeratoTestnet: tempoModeratoTestnetChain,
272302
tempoMainnet: tempoMainnetChain,
273303
citreaMainnet: citreaMainnetChain,
304+
mantleMainnet: mantleMainnetChain,
305+
mantleSepolia: mantleSepoliaChain,
274306
} as any as { [key: string]: Chain };
275307

276308
// The default rpc urls for these chains are not reliable, so we override them

packages/delegation-deployments/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const CHAIN_ID = {
2828
ronin: 0x7e4,
2929
tempoMainnet: 0x1079,
3030
citreaMainnet: 0x1012,
31+
mantleMainnet: 0x1388,
3132
// Testnets
3233
bscTestnet: 0x61,
3334
arbitrumSepolia: 0x66eee,
@@ -49,6 +50,7 @@ export const CHAIN_ID = {
4950
celoSepolia: 0xaa044c,
5051
roninSaigon: 0x31769,
5152
tempoModeratoTestnet: 0xa5bf,
53+
mantleSepolia: 0x138b,
5254
// decommissioned
5355
lineaGoerli: 0xe704,
5456
};
@@ -113,6 +115,7 @@ export const DELEGATOR_CONTRACTS: DeployedContracts = {
113115
[CHAIN_ID.ronin]: DEPLOYMENTS_1_3_0,
114116
[CHAIN_ID.tempoMainnet]: DEPLOYMENTS_1_3_0,
115117
[CHAIN_ID.citreaMainnet]: DEPLOYMENTS_1_3_0,
118+
[CHAIN_ID.mantleMainnet]: DEPLOYMENTS_1_3_0,
116119
// Testnets
117120
[CHAIN_ID.bscTestnet]: DEPLOYMENTS_1_3_0,
118121
[CHAIN_ID.citreaTestnet]: DEPLOYMENTS_1_3_0,
@@ -134,5 +137,6 @@ export const DELEGATOR_CONTRACTS: DeployedContracts = {
134137
[CHAIN_ID.celoSepolia]: DEPLOYMENTS_1_3_0,
135138
[CHAIN_ID.roninSaigon]: DEPLOYMENTS_1_3_0,
136139
[CHAIN_ID.tempoModeratoTestnet]: DEPLOYMENTS_1_3_0,
140+
[CHAIN_ID.mantleSepolia]: DEPLOYMENTS_1_3_0,
137141
},
138142
};

0 commit comments

Comments
 (0)