Skip to content

Commit

Permalink
Add Orbit chain testnet token lists
Browse files Browse the repository at this point in the history
Add Orbit chain testnet token lists for Xai, DODO and L3X
  • Loading branch information
chrstph-dvx committed May 14, 2024
1 parent 8845039 commit 4993fbc
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,25 @@ jobs:
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

# Orbit Chains testnet
- name: Xai Testnet Arbify Uniswap
paths:
- ArbTokenLists/37714555429_arbed_uniswap_labs.json
version: true
command: yarn arbify --l2NetworkID 37714555429 --ignorePreviousList --tokenList https://tokenlist.arbitrum.io/ArbTokenLists/arbed_uniswap_labs.json --newArbifiedList ./src/ArbTokenLists/37714555429_arbed_uniswap_labs.json

- name: Dodochain Testnet Arbify Uniswap
paths:
- ArbTokenLists/53457_arbed_uniswap_labs.json
version: true
command: yarn arbify --l2NetworkID 53457 --ignorePreviousList --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 --ignorePreviousList --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
122 changes: 122 additions & 0 deletions src/customNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,130 @@ const l3x: L2Network = {
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

// Testnets
const xaiTestnet: L2Network = {
chainID: 37714555429,
confirmPeriodBlocks: 150,
ethBridge: {
bridge: '0x6c7FAC4edC72E86B3388B48979eF37Ecca5027e6',
inbox: '0x6396825803B720bc6A43c63caa1DcD7B31EB4dd0',
outbox: '0xc7491a559b416540427f9f112C5c98b1412c5d51',
rollup: '0xeedE9367Df91913ab149e828BDd6bE336df2c892',
sequencerInbox: '0x529a2061A1973be80D315770bA9469F3Da40D938',
},
explorerUrl: 'https://testnet-explorer-v2.xai-chain.net',
isArbitrum: true,
isCustom: true,
name: 'Xai Testnet',
partnerChainID: 421614,
partnerChainIDs: [],
retryableLifetimeSeconds: 604800,
tokenBridge: {
l1CustomGateway: '0x04e14E04949D49ae9c551ca8Cc3192310Ce65D88',
l1ERC20Gateway: '0xCcB451C4Df22addCFe1447c58bC6b2f264Bb1256',
l1GatewayRouter: '0x185b868DBBF41554465fcb99C6FAb9383E15f47A',
l1MultiCall: '0xA115146782b7143fAdB3065D86eACB54c169d092',
l1ProxyAdmin: '0x022c515aEAb29aaFf82e86A10950cE14eA89C9c5',
l1Weth: '0x0000000000000000000000000000000000000000',
l1WethGateway: '0x0000000000000000000000000000000000000000',
l2CustomGateway: '0xea1ce1CC75C948488515A3058E10aa82da40cE8F',
l2ERC20Gateway: '0xD840761a09609394FaFA3404bEEAb312059AC558',
l2GatewayRouter: '0x3B8ba769a43f34cdD67a20aF60d08D54C9C8f1AD',
l2Multicall: '0x5CBd60Ae5Af80A42FA8b0F20ADF95A8879844984',
l2ProxyAdmin: '0x7C1BA251d812fb34aF5C2566040C3C30585aFed9',
l2Weth: '0x0000000000000000000000000000000000000000',
l2WethGateway: '0x0000000000000000000000000000000000000000',
},
nitroGenesisBlock: 0,
nitroGenesisL1Block: 0,
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const dodochainTestnet: L2Network = {
chainID: 53457,
confirmPeriodBlocks: 150,
ethBridge: {
bridge: '0xC0856971702b02A5576219540BD92DAE79a79288',
inbox: '0xD62ef8d8c71d190417C6CE71f65795696C069f09',
outbox: '0xaEB5Fe2f7003881c3a8EBAE9664E8607f3935d53',
rollup: '0xBc4cc964eF0ea5792a398F9E738edf368A34f003',
sequencerInbox: '0x67ad6c79E33eA9e523E0e68961456d0ac7A973Cc',
},
explorerUrl: 'https://testnet-scan.dodochain.com',
isArbitrum: true,
isCustom: true,
name: 'DODOchain Testnet',
partnerChainID: 421614,
partnerChainIDs: [],
retryableLifetimeSeconds: 604800,
tokenBridge: {
l1CustomGateway: '0xeCa856BE0041184eeda8F2c98896AC4693b168EA',
l1ERC20Gateway: '0xf57F874845CD652e69f69f020A4d46F4e427bb43',
l1GatewayRouter: '0xE3661c8313B35BA310Ad89e113561F3C983dC761',
l1MultiCall: '0xce1CAd780c529e66e3aa6D952a1ED9A6447791c1',
l1ProxyAdmin: '0x0000000000000000000000000000000000000000',
l1Weth: '0x0000000000000000000000000000000000000000',
l1WethGateway: '0x0000000000000000000000000000000000000000',
l2CustomGateway: '0x6B8C4aD57806fB4563031B79348bcC4CC3bBa7D5',
l2ERC20Gateway: '0xBb94635f882f03f7641B742F5e3070e6B5108b71',
l2GatewayRouter: '0x14De2d9c4C7F5ad2d134Eb746207653797693C0D',
l2Multicall: '0xF6Fd6C87C4cac9A4BF4b6fF4efa4B06bdbbe5D51',
l2ProxyAdmin: '0x80C5A0C4004B4130b823AfE8D97aAeA3fBFf3fCc',
l2Weth: '0x0000000000000000000000000000000000000000',
l2WethGateway: '0x0000000000000000000000000000000000000000',
},
nitroGenesisBlock: 0,
nitroGenesisL1Block: 0,
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: xaiTestnet });
addCustomNetwork({ customL2Network: dodochainTestnet });
addCustomNetwork({ customL2Network: l3xTestnet });
3 changes: 3 additions & 0 deletions src/lib/instantiate_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const getNetworkConfig = async () => {
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',
}[networkID];

if (!childRpc) {
Expand Down

0 comments on commit 4993fbc

Please sign in to comment.