Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove L3X mainnet and testnet #150

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,6 @@ jobs:
version: true
command: yarn arbify --l2NetworkID 70700 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/70700_arbed_native_list.json --tokenList ./src/Assets/42161_arbitrum_native_token_list.json --newArbifiedList ./src/ArbTokenLists/70700_arbed_native_list.json

- name: L3X Arbify Uniswap
paths:
- ArbTokenLists/12324_arbed_uniswap_labs.json
version: true
command: yarn arbify --l2NetworkID 12324 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/12324_arbed_uniswap_labs.json --tokenList https://tokenlist.arbitrum.io/ArbTokenLists/arbed_uniswap_labs.json --newArbifiedList ./src/ArbTokenLists/12324_arbed_uniswap_labs.json
- name: L3X Arbify L2 native list
paths:
- ArbTokenLists/12324_arbed_native_list.json
version: true
command: yarn arbify --l2NetworkID 12324 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/12324_arbed_native_list.json --tokenList ./src/Assets/42161_arbitrum_native_token_list.json --newArbifiedList ./src/ArbTokenLists/12324_arbed_native_list.json

# Orbit Chains testnet
- name: Xai Testnet Arbify Uniswap
paths:
Expand All @@ -208,12 +197,6 @@ jobs:
version: true
command: yarn arbify --l2NetworkID 53457 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/53457_arbed_uniswap_labs.json --tokenList https://tokenlist.arbitrum.io/ArbTokenLists/arbed_uniswap_labs.json --newArbifiedList ./src/ArbTokenLists/53457_arbed_uniswap_labs.json

- name: L3X Testnet Arbify Uniswap
paths:
- ArbTokenLists/12325_arbed_uniswap_labs.json
version: true
command: yarn arbify --l2NetworkID 12325 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/12325_arbed_uniswap_labs.json --tokenList https://tokenlist.arbitrum.io/ArbTokenLists/arbed_uniswap_labs.json --newArbifiedList ./src/ArbTokenLists/12325_arbed_uniswap_labs.json

env:
INFURA_KEY: '${{ secrets.INFURA_KEY }}'
MAINNET_RPC: 'https://mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}'
Expand Down
79 changes: 1 addition & 78 deletions src/customNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,44 +156,7 @@ const proofOfPlayApex: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};
const l3x: L2Network = {
chainID: 12324,
confirmPeriodBlocks: 7200,
ethBridge: {
bridge: '0x59E088d827CB7983Cd0CC64312E472D7cc8a4F44',
inbox: '0x80de5c4ccDfb7b6a250A9588C2d80F62a2B7d13F',
outbox: '0x1526DAacDAf3EE81E5ae087E0DA8677E8c677CE5',
rollup: '0xb75A0a5812303cBB198d4f0BcA7CA38f17b8783e',
sequencerInbox: '0xB9450b512Fd3454e9C1a2593C5DF9E71344b5653',
},
explorerUrl: 'https://explorer.l3x.com',
isArbitrum: true,
isCustom: true,
name: 'L3X Network',
partnerChainID: 42161,
partnerChainIDs: [],
retryableLifetimeSeconds: 604800,
tokenBridge: {
l1CustomGateway: '0xec80A45ebadD945379f69e9A8929973BCb3E297D',
l1ERC20Gateway: '0x4fF3E70f30f0394Ad62428751Fe3858740595908',
l1GatewayRouter: '0x817C8Da480bC6b42a5FA88A26e9eD8c0c03968Cf',
l1MultiCall: '0x90B02D9F861017844F30dFbdF725b6aa84E63822',
l1ProxyAdmin: '0x0000000000000000000000000000000000000000',
l1Weth: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
l1WethGateway: '0x9bd7C6d040665E95a4FE70b61718abca2E3A62CD',
l2CustomGateway: '0x1AE90d0FBf03d1bb0685D4bAc5BCe4F4071cB0dc',
l2ERC20Gateway: '0x76df9F5004F38aC74D0cE664027a1E718AA45E97',
l2GatewayRouter: '0x460E0a28a1DcE5a15811C3F5775D1e8fd0a08278',
l2Multicall: '0xA9cfB51510b18300cf056d7e0b96925a1D11f424',
l2ProxyAdmin: '0xFB027dBD2FBb343FD16D66a63a690B29D51D23AA',
l2Weth: '0xD3f8b9D33b159E8f5141d28880b216d31B00ee63',
l2WethGateway: '0x0fEf8843450b7c6a416C30D1E00cbc535Bb905b6',
},
nitroGenesisBlock: 0,
nitroGenesisL1Block: 0,
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const SXNetwork: L2Network = {
chainID: 4162,
confirmPeriodBlocks: 45818,
Expand Down Expand Up @@ -310,52 +273,12 @@ const dodochainTestnet: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};
const l3xTestnet: L2Network = {
chainID: 12325,
confirmPeriodBlocks: 150,
ethBridge: {
bridge: '0x98DBc5f9d4BB16A7c8C21e36789E673b6E0FDf37',
inbox: '0xB0e78299F14b50d151a5eF92b6465bb807B6e56b',
outbox: '0x243487a26284B17b70E8A183a7a1FeB5A6b00824',
rollup: '0xce99C9E7566438a8311424aD0287EB0fDEAc55A2',
sequencerInbox: '0xd598F60Ae694bE2aF9D6933aD9e9f7A431A2005E',
},
explorerUrl: 'https://explorer-testnet.l3x.com',
isArbitrum: true,
isCustom: true,
name: 'L3X Network Testnet',
partnerChainID: 421614,
partnerChainIDs: [],
retryableLifetimeSeconds: 604800,
tokenBridge: {
l1CustomGateway: '0x00eE97A18A85a58fbfddA2CCa2Bdb3B88d1068b3',
l1ERC20Gateway: '0xD2e9EA14CE4C61630a87bC652f5cD51deA7C66bA',
l1GatewayRouter: '0x8D684F7fA0aE2a13e0a1FAa60699ee2db46505a8',
l1MultiCall: '0xce1CAd780c529e66e3aa6D952a1ED9A6447791c1',
l1ProxyAdmin: '0x0000000000000000000000000000000000000000',
l1Weth: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73',
l1WethGateway: '0xB001D0E3a43EbB820E82720a2Bd74f4C03a5b424',
l2CustomGateway: '0xcc3fa38D4a18474DF92107d328bF4A6F7C9fA29A',
l2ERC20Gateway: '0x7aeD67245Db9b4E6bB26791b48E20aBbA9411EdD',
l2GatewayRouter: '0xF40E36d3043373Ce6F89abe3914d631135342C28',
l2Multicall: '0xa8D4b59f0FB23CB785d360E73C7364dDB3e34A62',
l2ProxyAdmin: '0xC381Ff423f37d42b0b9B84195D9C9C31eDc26e73',
l2Weth: '0x6793D074d3A410C803B8C2086E569883D6e928F1',
l2WethGateway: '0x4F24D0244B29d76ED1FBD3c8a9967b72b78B9DBd',
},
nitroGenesisBlock: 0,
nitroGenesisL1Block: 0,
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

addCustomNetwork({ customL2Network: xai });
addCustomNetwork({ customL2Network: rari });
addCustomNetwork({ customL2Network: muster });
addCustomNetwork({ customL2Network: proofOfPlayApex });
addCustomNetwork({ customL2Network: l3x });
addCustomNetwork({ customL2Network: SXNetwork });

addCustomNetwork({ customL2Network: xaiTestnet });
addCustomNetwork({ customL2Network: dodochainTestnet });
addCustomNetwork({ customL2Network: l3xTestnet });
2 changes: 0 additions & 2 deletions src/lib/instantiate_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ export const getNetworkConfig = async () => {
1380012617: 'https://mainnet.rpc.rarichain.org/http',
4078: 'https://muster.alt.technology',
70700: 'https://rpc.apex.proofofplay.com',
12324: 'https://rpc-mainnet.l3x.com',
37714555429: 'https://testnet-v2.xai-chain.net/rpc',
53457: 'https://dodochain-testnet.alt.technology',
12325: 'https://rpc-testnet.l3x.com',
4162: 'https://rpc-rollup.sx.technology',
}[networkID];

Expand Down
Loading