@@ -31,6 +31,7 @@ library ChainIds {
3131 uint256 internal constant XLAYER = 196 ;
3232 uint256 internal constant ANVIL = 31337 ;
3333 uint256 internal constant MEGAETH = 4326 ;
34+ uint256 internal constant MONAD = 143 ;
3435}
3536
3637library TestNetChainIds {
@@ -56,6 +57,7 @@ library TestNetChainIds {
5657 uint256 internal constant PLASMA_TESTNET = 9746 ;
5758 uint256 internal constant XLAYER_TESTNET = 1952 ;
5859 uint256 internal constant MEGAETH_TESTNET = 6342 ;
60+ uint256 internal constant MONAD_TESTNET = 10143 ;
5961}
6062
6163library ChainHelpers {
@@ -117,6 +119,8 @@ library ChainHelpers {
117119 newFork = vm.createSelectFork (vm.rpcUrl ('xlayer ' ));
118120 } else if (chainId == ChainIds.MEGAETH) {
119121 newFork = vm.createSelectFork (vm.rpcUrl ('megaeth ' ));
122+ } else if (chainId == ChainIds.MONAD) {
123+ newFork = vm.createSelectFork (vm.rpcUrl ('monad ' ));
120124 } else {
121125 revert UnknownChainId ();
122126 }
@@ -169,6 +173,8 @@ library ChainHelpers {
169173 networkName = 'xlayer ' ;
170174 } else if (chainId == ChainIds.MEGAETH) {
171175 networkName = 'megaeth ' ;
176+ } else if (chainId == ChainIds.MONAD) {
177+ networkName = 'monad ' ;
172178 }
173179 // testnets
174180 else if (chainId == TestNetChainIds.ETHEREUM_SEPOLIA) {
@@ -211,6 +217,8 @@ library ChainHelpers {
211217 networkName = 'xlayer_testnet ' ;
212218 } else if (chainId == TestNetChainIds.MEGAETH_TESTNET) {
213219 networkName = 'megaeth_testnet ' ;
220+ } else if (chainId == TestNetChainIds.MONAD_TESTNET) {
221+ networkName = 'monad_testnet ' ;
214222 } else {
215223 revert ('chain id is not supported ' );
216224 }
0 commit comments