Skip to content

Commit 208ad77

Browse files
committed
feat: add config for monad contract deployment on mainnet
Ticket: WIN-5033
1 parent 8e818e8 commit 208ad77

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

config/chainIds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const CHAIN_IDS = {
1818
CORE_DAO: 1116,
1919
SONEIUM: 1868,
2020
SOMNIA: 5031,
21-
MONAD: 10143,
21+
MONAD: 143,
2222
FLARE: 14,
2323
SONGBIRD: 19,
2424
AVALANCHE: 43114,

hardhat.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const config: HardhatUserConfig = {
302302
]
303303
},
304304
mon: {
305-
url: `https://testnet-rpc.monad.xyz/`, //TODO: WIN-5225: change it with mainnet url, when its available
305+
url: `https://rpc-mainnet.monadinfra.com/rpc/J2rIVAFmDSsGV9tNJ4PR0ZeAMxILBBGD`,
306306
accounts: [
307307
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
308308
`${PLACEHOLDER_KEY}`,
@@ -1110,11 +1110,11 @@ const config: HardhatUserConfig = {
11101110
},
11111111
{
11121112
network: 'monadMainnet',
1113-
chainId: CHAIN_IDS.MONAD, //TODO: WIN-5225: change it with mainnet explorer, when its available
1113+
chainId: CHAIN_IDS.MONAD,
11141114
urls: {
11151115
apiURL:
1116-
'https://api.socialscan.io/monad-testnet/v1/explorer/command_api/contract', //TODO: WIN-5225: change it with mainnet explorer, when its available
1117-
browserURL: 'https://monad-testnet.socialscan.io/' //TODO: WIN-5225: change it with mainnet explorer, when its available
1116+
'https://api.socialscan.io/monad/v1/explorer/command_api/contract',
1117+
browserURL: 'https://monadexplorer.com/'
11181118
}
11191119
},
11201120
{

scripts/chainConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export async function getChainConfig(chainId: number): Promise<ChainConfig> {
138138
forwarderFactoryContractName = 'ForwarderFactoryV4';
139139
break;
140140

141+
case CHAIN_IDS.MONAD_TESTNET:
141142
case CHAIN_IDS.MONAD: {
142143
const baseFee = 30_000_000_000n; // fallback base fee
143144
const priority = 1n * GWEI;
@@ -151,7 +152,6 @@ export async function getChainConfig(chainId: number): Promise<ChainConfig> {
151152
const estimatedTxCost = ethers.formatEther(
152153
gasParams.maxFeePerGas * BigInt(gasParams.gasLimit)
153154
);
154-
console.log('💸 Estimated Max Deployment Cost:', estimatedTxCost, 'ETH');
155155
break;
156156
}
157157

0 commit comments

Comments
 (0)