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: Add L3X token list #140

Merged
merged 1 commit into from
May 13, 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
6 changes: 6 additions & 0 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ jobs:
version: true
command: yarn arbify --l2NetworkID 70700 --prevArbifiedList https://tokenlist.arbitrum.io/ArbTokenLists/70700_arbed_uniswap_labs.json --tokenList https://tokenlist.arbitrum.io/ArbTokenLists/arbed_uniswap_labs.json --newArbifiedList ./src/ArbTokenLists/70700_arbed_uniswap_labs.json

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

env:
INFURA_KEY: '${{ secrets.INFURA_KEY }}'
MAINNET_RPC: 'https://mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}'
Expand Down
39 changes: 39 additions & 0 deletions src/customNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,47 @@ 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,
};

addCustomNetwork({ customL2Network: xai });
addCustomNetwork({ customL2Network: rari });
addCustomNetwork({ customL2Network: muster });
addCustomNetwork({ customL2Network: proofOfPlayApex });
addCustomNetwork({ customL2Network: l3x });
1 change: 1 addition & 0 deletions src/lib/instantiate_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ 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',
}[networkID];

if (!childRpc) {
Expand Down
Loading