@@ -28,6 +28,7 @@ library ChainIds {
2828 uint256 internal constant SONEIUM = 1868 ;
2929 uint256 internal constant BOB = 60808 ;
3030 uint256 internal constant PLASMA = 9745 ;
31+ uint256 internal constant XLAYER = 196 ;
3132}
3233
3334library TestNetChainIds {
@@ -51,6 +52,7 @@ library TestNetChainIds {
5152 uint256 internal constant SONEIUM_MINATO = 1946 ;
5253 uint256 internal constant BOB_SEPOLIA = 808813 ;
5354 uint256 internal constant PLASMA_TESTNET = 9746 ;
55+ uint256 internal constant XLAYER_TESTNET = 1952 ;
5456}
5557
5658library ChainHelpers {
@@ -108,6 +110,8 @@ library ChainHelpers {
108110 newFork = vm.createSelectFork (vm.rpcUrl ('bob ' ));
109111 } else if (chainId == ChainIds.PLASMA) {
110112 newFork = vm.createSelectFork (vm.rpcUrl ('plasma ' ));
113+ } else if (chainId == ChainIds.XLAYER) {
114+ newFork = vm.createSelectFork (vm.rpcUrl ('xlayer ' ));
111115 } else {
112116 revert UnknownChainId ();
113117 }
@@ -156,6 +160,8 @@ library ChainHelpers {
156160 networkName = 'bob ' ;
157161 } else if (chainId == ChainIds.PLASMA) {
158162 networkName = 'plasma ' ;
163+ } else if (chainId == ChainIds.XLAYER) {
164+ networkName = 'xlayer ' ;
159165 }
160166 // testnets
161167 else if (chainId == TestNetChainIds.ETHEREUM_SEPOLIA) {
@@ -194,6 +200,8 @@ library ChainHelpers {
194200 networkName = 'bob_sepolia ' ;
195201 } else if (chainId == TestNetChainIds.PLASMA_TESTNET) {
196202 networkName = 'plasma_testnet ' ;
203+ } else if (chainId == TestNetChainIds.XLAYER_TESTNET) {
204+ networkName = 'xlayer_testnet ' ;
197205 } else {
198206 revert ('chain id is not supported ' );
199207 }
0 commit comments