@0xsequence/network
Advanced tools
Comparing version 0.0.0-20240718140827 to 0.0.0-20240807210827
@@ -40,2 +40,6 @@ 'use strict'; | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BLAST_SEPOLIA"] = 168587773] = "BLAST_SEPOLIA"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -61,2 +65,7 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' | ||
@@ -75,2 +84,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'roETH', | ||
name: 'Ropsten Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -90,2 +104,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'rETH', | ||
name: 'Rinkeby Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -105,2 +124,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -120,2 +144,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -133,2 +162,7 @@ }, | ||
rootUrl: 'https://sepolia.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -145,2 +179,7 @@ }, | ||
rootUrl: 'https://polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'MATIC', | ||
name: 'Polygon', | ||
decimals: 18 | ||
} | ||
@@ -159,2 +198,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'mMATIC', | ||
name: 'Mumbai Polygon', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -172,2 +216,7 @@ }, | ||
rootUrl: 'https://www.oklink.com/amoy/' | ||
}, | ||
nativeToken: { | ||
symbol: 'aMATIC', | ||
name: 'Amoy Polygon', | ||
decimals: 18 | ||
} | ||
@@ -184,2 +233,7 @@ }, | ||
rootUrl: 'https://zkevm.polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -196,2 +250,7 @@ }, | ||
rootUrl: 'https://bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'BNB', | ||
name: 'BNB', | ||
decimals: 18 | ||
} | ||
@@ -209,2 +268,7 @@ }, | ||
rootUrl: 'https://testnet.bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tBNB', | ||
name: 'Testnet BNB', | ||
decimals: 18 | ||
} | ||
@@ -221,2 +285,7 @@ }, | ||
rootUrl: 'https://optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -235,2 +304,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -249,2 +323,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -262,2 +341,7 @@ }, | ||
rootUrl: 'https://sepolia-optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -274,2 +358,7 @@ }, | ||
rootUrl: 'https://arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -288,2 +377,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -301,2 +395,7 @@ }, | ||
rootUrl: 'https://sepolia.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -313,2 +412,7 @@ }, | ||
rootUrl: 'https://nova.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -325,2 +429,7 @@ }, | ||
rootUrl: 'https://subnets.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'AVAX', | ||
name: 'AVAX', | ||
decimals: 18 | ||
} | ||
@@ -338,2 +447,7 @@ }, | ||
rootUrl: 'https://subnets-test.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tAVAX', | ||
name: 'Testnet AVAX', | ||
decimals: 18 | ||
} | ||
@@ -350,2 +464,7 @@ }, | ||
rootUrl: 'https://blockscout.com/xdai/mainnet/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XDAI', | ||
name: 'XDAI', | ||
decimals: 18 | ||
} | ||
@@ -362,2 +481,7 @@ }, | ||
rootUrl: 'https://basescan.org/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -376,2 +500,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -389,2 +518,7 @@ }, | ||
rootUrl: 'https://base-sepolia.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -401,2 +535,7 @@ }, | ||
rootUrl: 'https://explorer.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'OAS', | ||
name: 'OAS', | ||
decimals: 18 | ||
} | ||
@@ -414,2 +553,7 @@ }, | ||
rootUrl: 'https://explorer.testnet.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tOAS', | ||
name: 'Testnet OAS', | ||
decimals: 18 | ||
} | ||
@@ -426,2 +570,7 @@ }, | ||
rootUrl: 'https://explorer.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XAI', | ||
name: 'XAI', | ||
decimals: 18 | ||
} | ||
@@ -439,2 +588,7 @@ }, | ||
rootUrl: 'https://testnet-explorer-v2.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sXAI', | ||
name: 'Sepolia XAI', | ||
decimals: 18 | ||
} | ||
@@ -451,2 +605,7 @@ }, | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -464,2 +623,7 @@ }, | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -477,4 +641,76 @@ }, | ||
rootUrl: 'https://xr-sepolia-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tXR', | ||
name: 'Sepolia XR', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
chainId: ChainId.B3_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'b3-sepolia', | ||
title: 'B3 Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'B3 Sepolia Explorer', | ||
rootUrl: 'https://sepolia.explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
chainId: ChainId.APECHAIN_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'apechain-testnet', | ||
title: 'APE Chain Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://curtis.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST]: { | ||
chainId: ChainId.BLAST, | ||
type: NetworkType.MAINNET, | ||
name: 'blast', | ||
title: 'Blast', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST}.webp`, | ||
blockExplorer: { | ||
name: 'Blast Explorer', | ||
rootUrl: 'https://blastscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST_SEPOLIA]: { | ||
chainId: ChainId.BLAST_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'blast-sepolia', | ||
title: 'Blast Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Blast Sepolia Explorer', | ||
rootUrl: 'https://sepolia.blastexplorer.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.TELOS]: { | ||
@@ -489,2 +725,7 @@ chainId: ChainId.TELOS, | ||
rootUrl: 'https://explorer.telos.net/network/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TLOS', | ||
name: 'TLOS', | ||
decimals: 18 | ||
} | ||
@@ -495,3 +736,8 @@ }, | ||
name: 'hardhat', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
@@ -501,3 +747,8 @@ [ChainId.HARDHAT_2]: { | ||
name: 'hardhat2', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
} | ||
@@ -504,0 +755,0 @@ }; |
@@ -40,2 +40,6 @@ 'use strict'; | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BLAST_SEPOLIA"] = 168587773] = "BLAST_SEPOLIA"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -61,2 +65,7 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' | ||
@@ -75,2 +84,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'roETH', | ||
name: 'Ropsten Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -90,2 +104,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'rETH', | ||
name: 'Rinkeby Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -105,2 +124,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -120,2 +144,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -133,2 +162,7 @@ }, | ||
rootUrl: 'https://sepolia.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -145,2 +179,7 @@ }, | ||
rootUrl: 'https://polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'MATIC', | ||
name: 'Polygon', | ||
decimals: 18 | ||
} | ||
@@ -159,2 +198,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'mMATIC', | ||
name: 'Mumbai Polygon', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -172,2 +216,7 @@ }, | ||
rootUrl: 'https://www.oklink.com/amoy/' | ||
}, | ||
nativeToken: { | ||
symbol: 'aMATIC', | ||
name: 'Amoy Polygon', | ||
decimals: 18 | ||
} | ||
@@ -184,2 +233,7 @@ }, | ||
rootUrl: 'https://zkevm.polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -196,2 +250,7 @@ }, | ||
rootUrl: 'https://bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'BNB', | ||
name: 'BNB', | ||
decimals: 18 | ||
} | ||
@@ -209,2 +268,7 @@ }, | ||
rootUrl: 'https://testnet.bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tBNB', | ||
name: 'Testnet BNB', | ||
decimals: 18 | ||
} | ||
@@ -221,2 +285,7 @@ }, | ||
rootUrl: 'https://optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -235,2 +304,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -249,2 +323,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -262,2 +341,7 @@ }, | ||
rootUrl: 'https://sepolia-optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -274,2 +358,7 @@ }, | ||
rootUrl: 'https://arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -288,2 +377,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -301,2 +395,7 @@ }, | ||
rootUrl: 'https://sepolia.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -313,2 +412,7 @@ }, | ||
rootUrl: 'https://nova.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -325,2 +429,7 @@ }, | ||
rootUrl: 'https://subnets.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'AVAX', | ||
name: 'AVAX', | ||
decimals: 18 | ||
} | ||
@@ -338,2 +447,7 @@ }, | ||
rootUrl: 'https://subnets-test.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tAVAX', | ||
name: 'Testnet AVAX', | ||
decimals: 18 | ||
} | ||
@@ -350,2 +464,7 @@ }, | ||
rootUrl: 'https://blockscout.com/xdai/mainnet/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XDAI', | ||
name: 'XDAI', | ||
decimals: 18 | ||
} | ||
@@ -362,2 +481,7 @@ }, | ||
rootUrl: 'https://basescan.org/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -376,2 +500,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -389,2 +518,7 @@ }, | ||
rootUrl: 'https://base-sepolia.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -401,2 +535,7 @@ }, | ||
rootUrl: 'https://explorer.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'OAS', | ||
name: 'OAS', | ||
decimals: 18 | ||
} | ||
@@ -414,2 +553,7 @@ }, | ||
rootUrl: 'https://explorer.testnet.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tOAS', | ||
name: 'Testnet OAS', | ||
decimals: 18 | ||
} | ||
@@ -426,2 +570,7 @@ }, | ||
rootUrl: 'https://explorer.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XAI', | ||
name: 'XAI', | ||
decimals: 18 | ||
} | ||
@@ -439,2 +588,7 @@ }, | ||
rootUrl: 'https://testnet-explorer-v2.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sXAI', | ||
name: 'Sepolia XAI', | ||
decimals: 18 | ||
} | ||
@@ -451,2 +605,7 @@ }, | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -464,2 +623,7 @@ }, | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -477,4 +641,76 @@ }, | ||
rootUrl: 'https://xr-sepolia-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tXR', | ||
name: 'Sepolia XR', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
chainId: ChainId.B3_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'b3-sepolia', | ||
title: 'B3 Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'B3 Sepolia Explorer', | ||
rootUrl: 'https://sepolia.explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
chainId: ChainId.APECHAIN_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'apechain-testnet', | ||
title: 'APE Chain Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://curtis.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST]: { | ||
chainId: ChainId.BLAST, | ||
type: NetworkType.MAINNET, | ||
name: 'blast', | ||
title: 'Blast', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST}.webp`, | ||
blockExplorer: { | ||
name: 'Blast Explorer', | ||
rootUrl: 'https://blastscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST_SEPOLIA]: { | ||
chainId: ChainId.BLAST_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'blast-sepolia', | ||
title: 'Blast Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Blast Sepolia Explorer', | ||
rootUrl: 'https://sepolia.blastexplorer.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.TELOS]: { | ||
@@ -489,2 +725,7 @@ chainId: ChainId.TELOS, | ||
rootUrl: 'https://explorer.telos.net/network/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TLOS', | ||
name: 'TLOS', | ||
decimals: 18 | ||
} | ||
@@ -495,3 +736,8 @@ }, | ||
name: 'hardhat', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
@@ -501,3 +747,8 @@ [ChainId.HARDHAT_2]: { | ||
name: 'hardhat2', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
} | ||
@@ -504,0 +755,0 @@ }; |
@@ -36,2 +36,6 @@ let ChainId = /*#__PURE__*/function (ChainId) { | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BLAST_SEPOLIA"] = 168587773] = "BLAST_SEPOLIA"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -57,2 +61,7 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' | ||
@@ -71,2 +80,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'roETH', | ||
name: 'Ropsten Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -86,2 +100,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'rETH', | ||
name: 'Rinkeby Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -101,2 +120,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -116,2 +140,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -129,2 +158,7 @@ }, | ||
rootUrl: 'https://sepolia.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -141,2 +175,7 @@ }, | ||
rootUrl: 'https://polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'MATIC', | ||
name: 'Polygon', | ||
decimals: 18 | ||
} | ||
@@ -155,2 +194,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'mMATIC', | ||
name: 'Mumbai Polygon', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -168,2 +212,7 @@ }, | ||
rootUrl: 'https://www.oklink.com/amoy/' | ||
}, | ||
nativeToken: { | ||
symbol: 'aMATIC', | ||
name: 'Amoy Polygon', | ||
decimals: 18 | ||
} | ||
@@ -180,2 +229,7 @@ }, | ||
rootUrl: 'https://zkevm.polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -192,2 +246,7 @@ }, | ||
rootUrl: 'https://bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'BNB', | ||
name: 'BNB', | ||
decimals: 18 | ||
} | ||
@@ -205,2 +264,7 @@ }, | ||
rootUrl: 'https://testnet.bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tBNB', | ||
name: 'Testnet BNB', | ||
decimals: 18 | ||
} | ||
@@ -217,2 +281,7 @@ }, | ||
rootUrl: 'https://optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -231,2 +300,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -245,2 +319,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -258,2 +337,7 @@ }, | ||
rootUrl: 'https://sepolia-optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -270,2 +354,7 @@ }, | ||
rootUrl: 'https://arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -284,2 +373,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -297,2 +391,7 @@ }, | ||
rootUrl: 'https://sepolia.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -309,2 +408,7 @@ }, | ||
rootUrl: 'https://nova.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -321,2 +425,7 @@ }, | ||
rootUrl: 'https://subnets.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'AVAX', | ||
name: 'AVAX', | ||
decimals: 18 | ||
} | ||
@@ -334,2 +443,7 @@ }, | ||
rootUrl: 'https://subnets-test.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tAVAX', | ||
name: 'Testnet AVAX', | ||
decimals: 18 | ||
} | ||
@@ -346,2 +460,7 @@ }, | ||
rootUrl: 'https://blockscout.com/xdai/mainnet/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XDAI', | ||
name: 'XDAI', | ||
decimals: 18 | ||
} | ||
@@ -358,2 +477,7 @@ }, | ||
rootUrl: 'https://basescan.org/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -372,2 +496,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -385,2 +514,7 @@ }, | ||
rootUrl: 'https://base-sepolia.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -397,2 +531,7 @@ }, | ||
rootUrl: 'https://explorer.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'OAS', | ||
name: 'OAS', | ||
decimals: 18 | ||
} | ||
@@ -410,2 +549,7 @@ }, | ||
rootUrl: 'https://explorer.testnet.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tOAS', | ||
name: 'Testnet OAS', | ||
decimals: 18 | ||
} | ||
@@ -422,2 +566,7 @@ }, | ||
rootUrl: 'https://explorer.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XAI', | ||
name: 'XAI', | ||
decimals: 18 | ||
} | ||
@@ -435,2 +584,7 @@ }, | ||
rootUrl: 'https://testnet-explorer-v2.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sXAI', | ||
name: 'Sepolia XAI', | ||
decimals: 18 | ||
} | ||
@@ -447,2 +601,7 @@ }, | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -460,2 +619,7 @@ }, | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -473,4 +637,76 @@ }, | ||
rootUrl: 'https://xr-sepolia-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tXR', | ||
name: 'Sepolia XR', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
chainId: ChainId.B3_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'b3-sepolia', | ||
title: 'B3 Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'B3 Sepolia Explorer', | ||
rootUrl: 'https://sepolia.explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
chainId: ChainId.APECHAIN_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'apechain-testnet', | ||
title: 'APE Chain Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://curtis.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST]: { | ||
chainId: ChainId.BLAST, | ||
type: NetworkType.MAINNET, | ||
name: 'blast', | ||
title: 'Blast', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST}.webp`, | ||
blockExplorer: { | ||
name: 'Blast Explorer', | ||
rootUrl: 'https://blastscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST_SEPOLIA]: { | ||
chainId: ChainId.BLAST_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'blast-sepolia', | ||
title: 'Blast Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Blast Sepolia Explorer', | ||
rootUrl: 'https://sepolia.blastexplorer.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.TELOS]: { | ||
@@ -485,2 +721,7 @@ chainId: ChainId.TELOS, | ||
rootUrl: 'https://explorer.telos.net/network/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TLOS', | ||
name: 'TLOS', | ||
decimals: 18 | ||
} | ||
@@ -491,3 +732,8 @@ }, | ||
name: 'hardhat', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
@@ -497,3 +743,8 @@ [ChainId.HARDHAT_2]: { | ||
name: 'hardhat2', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
} | ||
@@ -500,0 +751,0 @@ }; |
@@ -228,25 +228,20 @@ 'use strict'; | ||
} | ||
const genUrls = network => { | ||
const rpcUrl = nodesURL(network); | ||
return { | ||
const createNetworkConfig = (chainId, options) => { | ||
const network = constants_dist_0xsequenceNetworkConstants.networks[chainId]; | ||
if (!network) { | ||
throw new Error(`Network with chainId ${chainId} not found`); | ||
} | ||
const rpcUrl = nodesURL(network.name); | ||
return _extends({}, network, { | ||
rpcUrl, | ||
indexerUrl: indexerURL(network.name), | ||
relayer: { | ||
url: relayerURL(network), | ||
url: relayerURL(network.name), | ||
provider: { | ||
url: rpcUrl | ||
} | ||
}, | ||
indexerUrl: indexerURL(network) | ||
}; | ||
} | ||
}, options); | ||
}; | ||
const allNetworks = validateAndSortNetworks([_extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON], genUrls('polygon'), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.MAINNET], genUrls('mainnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BSC], genUrls('bsc')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE], genUrls('avalanche')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM], genUrls('arbitrum')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_NOVA], genUrls('arbitrum-nova')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM], genUrls('optimism')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM_SEPOLIA], genUrls('optimism-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_ZKEVM], genUrls('polygon-zkevm')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.GNOSIS], genUrls('gnosis')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.RINKEBY], genUrls('rinkeby'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.GOERLI], genUrls('goerli'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.SEPOLIA], genUrls('sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_MUMBAI], genUrls('mumbai'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_AMOY], genUrls('amoy')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BSC_TESTNET], genUrls('bsc-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_SEPOLIA], genUrls('arbitrum-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BASE], genUrls('base')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BASE_SEPOLIA], genUrls('base-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE], genUrls('homeverse')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE_TESTNET], genUrls('homeverse-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XAI], genUrls('xai')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XAI_SEPOLIA], genUrls('xai-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE_TESTNET], genUrls('avalanche-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKEVM], genUrls('astar-zkevm')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKYOTO], genUrls('astar-zkyoto')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XR_SEPOLIA], genUrls('xr-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.TELOS], genUrls('telos')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HARDHAT], { | ||
const hardhatNetworks = [_extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HARDHAT], { | ||
rpcUrl: 'http://localhost:8545', | ||
@@ -267,3 +262,13 @@ relayer: { | ||
} | ||
})]); | ||
})]; | ||
const allNetworks = validateAndSortNetworks([_extends({}, createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.MAINNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BSC), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_NOVA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.GNOSIS), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.RINKEBY, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.GOERLI, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_MUMBAI, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_AMOY), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BSC_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BASE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BASE_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XAI), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XAI_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKYOTO), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XR_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.APECHAIN_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BLAST), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BLAST_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.TELOS), ...hardhatNetworks]); | ||
@@ -899,2 +904,3 @@ const JsonRpcVersion = '2.0'; | ||
exports.getChainId = getChainId; | ||
exports.hardhatNetworks = hardhatNetworks; | ||
exports.indexerURL = indexerURL; | ||
@@ -901,0 +907,0 @@ exports.isJsonRpcHandler = isJsonRpcHandler; |
@@ -228,25 +228,20 @@ 'use strict'; | ||
} | ||
const genUrls = network => { | ||
const rpcUrl = nodesURL(network); | ||
return { | ||
const createNetworkConfig = (chainId, options) => { | ||
const network = constants_dist_0xsequenceNetworkConstants.networks[chainId]; | ||
if (!network) { | ||
throw new Error(`Network with chainId ${chainId} not found`); | ||
} | ||
const rpcUrl = nodesURL(network.name); | ||
return _extends({}, network, { | ||
rpcUrl, | ||
indexerUrl: indexerURL(network.name), | ||
relayer: { | ||
url: relayerURL(network), | ||
url: relayerURL(network.name), | ||
provider: { | ||
url: rpcUrl | ||
} | ||
}, | ||
indexerUrl: indexerURL(network) | ||
}; | ||
} | ||
}, options); | ||
}; | ||
const allNetworks = validateAndSortNetworks([_extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON], genUrls('polygon'), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.MAINNET], genUrls('mainnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BSC], genUrls('bsc')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE], genUrls('avalanche')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM], genUrls('arbitrum')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_NOVA], genUrls('arbitrum-nova')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM], genUrls('optimism')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM_SEPOLIA], genUrls('optimism-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_ZKEVM], genUrls('polygon-zkevm')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.GNOSIS], genUrls('gnosis')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.RINKEBY], genUrls('rinkeby'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.GOERLI], genUrls('goerli'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.SEPOLIA], genUrls('sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_MUMBAI], genUrls('mumbai'), { | ||
disabled: true | ||
}), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_AMOY], genUrls('amoy')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BSC_TESTNET], genUrls('bsc-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_SEPOLIA], genUrls('arbitrum-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BASE], genUrls('base')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.BASE_SEPOLIA], genUrls('base-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE], genUrls('homeverse')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE_TESTNET], genUrls('homeverse-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XAI], genUrls('xai')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XAI_SEPOLIA], genUrls('xai-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE_TESTNET], genUrls('avalanche-testnet')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKEVM], genUrls('astar-zkevm')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKYOTO], genUrls('astar-zkyoto')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.XR_SEPOLIA], genUrls('xr-sepolia')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.TELOS], genUrls('telos')), _extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HARDHAT], { | ||
const hardhatNetworks = [_extends({}, constants_dist_0xsequenceNetworkConstants.networks[constants_dist_0xsequenceNetworkConstants.ChainId.HARDHAT], { | ||
rpcUrl: 'http://localhost:8545', | ||
@@ -267,3 +262,13 @@ relayer: { | ||
} | ||
})]); | ||
})]; | ||
const allNetworks = validateAndSortNetworks([_extends({}, createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.MAINNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BSC), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_NOVA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.OPTIMISM_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.GNOSIS), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.RINKEBY, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.GOERLI, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_MUMBAI, { | ||
disabled: true | ||
}), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.POLYGON_AMOY), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BSC_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ARBITRUM_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BASE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BASE_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.HOMEVERSE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XAI), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XAI_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.AVALANCHE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ASTAR_ZKYOTO), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.XR_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.APECHAIN_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BLAST), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BLAST_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.TELOS), ...hardhatNetworks]); | ||
@@ -899,2 +904,3 @@ const JsonRpcVersion = '2.0'; | ||
exports.getChainId = getChainId; | ||
exports.hardhatNetworks = hardhatNetworks; | ||
exports.indexerURL = indexerURL; | ||
@@ -901,0 +907,0 @@ exports.isJsonRpcHandler = isJsonRpcHandler; |
@@ -225,25 +225,20 @@ import { networks, ChainId } from '../constants/dist/0xsequence-network-constants.esm.js'; | ||
} | ||
const genUrls = network => { | ||
const rpcUrl = nodesURL(network); | ||
return { | ||
const createNetworkConfig = (chainId, options) => { | ||
const network = networks[chainId]; | ||
if (!network) { | ||
throw new Error(`Network with chainId ${chainId} not found`); | ||
} | ||
const rpcUrl = nodesURL(network.name); | ||
return _extends({}, network, { | ||
rpcUrl, | ||
indexerUrl: indexerURL(network.name), | ||
relayer: { | ||
url: relayerURL(network), | ||
url: relayerURL(network.name), | ||
provider: { | ||
url: rpcUrl | ||
} | ||
}, | ||
indexerUrl: indexerURL(network) | ||
}; | ||
} | ||
}, options); | ||
}; | ||
const allNetworks = validateAndSortNetworks([_extends({}, networks[ChainId.POLYGON], genUrls('polygon'), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), _extends({}, networks[ChainId.MAINNET], genUrls('mainnet')), _extends({}, networks[ChainId.BSC], genUrls('bsc')), _extends({}, networks[ChainId.AVALANCHE], genUrls('avalanche')), _extends({}, networks[ChainId.ARBITRUM], genUrls('arbitrum')), _extends({}, networks[ChainId.ARBITRUM_NOVA], genUrls('arbitrum-nova')), _extends({}, networks[ChainId.OPTIMISM], genUrls('optimism')), _extends({}, networks[ChainId.OPTIMISM_SEPOLIA], genUrls('optimism-sepolia')), _extends({}, networks[ChainId.POLYGON_ZKEVM], genUrls('polygon-zkevm')), _extends({}, networks[ChainId.GNOSIS], genUrls('gnosis')), _extends({}, networks[ChainId.RINKEBY], genUrls('rinkeby'), { | ||
disabled: true | ||
}), _extends({}, networks[ChainId.GOERLI], genUrls('goerli'), { | ||
disabled: true | ||
}), _extends({}, networks[ChainId.SEPOLIA], genUrls('sepolia')), _extends({}, networks[ChainId.POLYGON_MUMBAI], genUrls('mumbai'), { | ||
disabled: true | ||
}), _extends({}, networks[ChainId.POLYGON_AMOY], genUrls('amoy')), _extends({}, networks[ChainId.BSC_TESTNET], genUrls('bsc-testnet')), _extends({}, networks[ChainId.ARBITRUM_SEPOLIA], genUrls('arbitrum-sepolia')), _extends({}, networks[ChainId.BASE], genUrls('base')), _extends({}, networks[ChainId.BASE_SEPOLIA], genUrls('base-sepolia')), _extends({}, networks[ChainId.HOMEVERSE], genUrls('homeverse')), _extends({}, networks[ChainId.HOMEVERSE_TESTNET], genUrls('homeverse-testnet')), _extends({}, networks[ChainId.XAI], genUrls('xai')), _extends({}, networks[ChainId.XAI_SEPOLIA], genUrls('xai-sepolia')), _extends({}, networks[ChainId.AVALANCHE_TESTNET], genUrls('avalanche-testnet')), _extends({}, networks[ChainId.ASTAR_ZKEVM], genUrls('astar-zkevm')), _extends({}, networks[ChainId.ASTAR_ZKYOTO], genUrls('astar-zkyoto')), _extends({}, networks[ChainId.XR_SEPOLIA], genUrls('xr-sepolia')), _extends({}, networks[ChainId.TELOS], genUrls('telos')), _extends({}, networks[ChainId.HARDHAT], { | ||
const hardhatNetworks = [_extends({}, networks[ChainId.HARDHAT], { | ||
rpcUrl: 'http://localhost:8545', | ||
@@ -264,3 +259,13 @@ relayer: { | ||
} | ||
})]); | ||
})]; | ||
const allNetworks = validateAndSortNetworks([_extends({}, createNetworkConfig(ChainId.POLYGON), { | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
}), createNetworkConfig(ChainId.MAINNET), createNetworkConfig(ChainId.BSC), createNetworkConfig(ChainId.AVALANCHE), createNetworkConfig(ChainId.ARBITRUM), createNetworkConfig(ChainId.ARBITRUM_NOVA), createNetworkConfig(ChainId.OPTIMISM), createNetworkConfig(ChainId.OPTIMISM_SEPOLIA), createNetworkConfig(ChainId.POLYGON_ZKEVM), createNetworkConfig(ChainId.GNOSIS), createNetworkConfig(ChainId.RINKEBY, { | ||
disabled: true | ||
}), createNetworkConfig(ChainId.GOERLI, { | ||
disabled: true | ||
}), createNetworkConfig(ChainId.SEPOLIA), createNetworkConfig(ChainId.POLYGON_MUMBAI, { | ||
disabled: true | ||
}), createNetworkConfig(ChainId.POLYGON_AMOY), createNetworkConfig(ChainId.BSC_TESTNET), createNetworkConfig(ChainId.ARBITRUM_SEPOLIA), createNetworkConfig(ChainId.BASE), createNetworkConfig(ChainId.BASE_SEPOLIA), createNetworkConfig(ChainId.HOMEVERSE), createNetworkConfig(ChainId.HOMEVERSE_TESTNET), createNetworkConfig(ChainId.XAI), createNetworkConfig(ChainId.XAI_SEPOLIA), createNetworkConfig(ChainId.AVALANCHE_TESTNET), createNetworkConfig(ChainId.ASTAR_ZKEVM), createNetworkConfig(ChainId.ASTAR_ZKYOTO), createNetworkConfig(ChainId.XR_SEPOLIA), createNetworkConfig(ChainId.B3_SEPOLIA), createNetworkConfig(ChainId.APECHAIN_TESTNET), createNetworkConfig(ChainId.BLAST), createNetworkConfig(ChainId.BLAST_SEPOLIA), createNetworkConfig(ChainId.TELOS), ...hardhatNetworks]); | ||
@@ -872,2 +877,2 @@ const JsonRpcVersion = '2.0'; | ||
export { AllowProvider, CachedProvider, EagerProvider, JsonRpcExternalProvider, JsonRpcProvider, JsonRpcRouter, JsonRpcSender, JsonRpcVersion, PublicProvider, SigningProvider, SingleflightMiddleware, allNetworks, allowProviderMiddleware, checkNetworkConfig, createJsonRpcMiddlewareStack, ensureUniqueNetworks, ensureValidNetworks, exceptionProviderMiddleware, findNetworkConfig, findSupportedNetwork, getChainId, indexerURL, isJsonRpcHandler, isJsonRpcProvider, isNetworkConfig, isValidNetworkConfig, loggingProviderMiddleware, maybeChainId, networkProviderMiddleware, networksIndex, nodesURL, relayerURL, sortNetworks, stringTemplate, toChainIdNumber, updateNetworkConfig, validateAndSortNetworks }; | ||
export { AllowProvider, CachedProvider, EagerProvider, JsonRpcExternalProvider, JsonRpcProvider, JsonRpcRouter, JsonRpcSender, JsonRpcVersion, PublicProvider, SigningProvider, SingleflightMiddleware, allNetworks, allowProviderMiddleware, checkNetworkConfig, createJsonRpcMiddlewareStack, ensureUniqueNetworks, ensureValidNetworks, exceptionProviderMiddleware, findNetworkConfig, findSupportedNetwork, getChainId, hardhatNetworks, indexerURL, isJsonRpcHandler, isJsonRpcProvider, isNetworkConfig, isValidNetworkConfig, loggingProviderMiddleware, maybeChainId, networkProviderMiddleware, networksIndex, nodesURL, relayerURL, sortNetworks, stringTemplate, toChainIdNumber, updateNetworkConfig, validateAndSortNetworks }; |
import { BigNumberish, ethers, providers } from 'ethers'; | ||
import { Indexer } from '@0xsequence/indexer'; | ||
import { Relayer, RpcRelayerOptions } from '@0xsequence/relayer'; | ||
import { NetworkMetadata } from "./constants.js"; | ||
import { ChainId, NetworkMetadata } from "./constants.js"; | ||
export type NetworkConfig = NetworkMetadata & { | ||
@@ -20,2 +20,25 @@ rpcUrl: string; | ||
export declare function toChainIdNumber(chainIdLike: ChainIdLike): ethers.BigNumber; | ||
export declare const hardhatNetworks: { | ||
rpcUrl: string; | ||
relayer: { | ||
url: string; | ||
provider: { | ||
url: string; | ||
}; | ||
}; | ||
chainId: ChainId; | ||
type?: import("./constants.js").NetworkType | undefined; | ||
name: string; | ||
title?: string | undefined; | ||
logoURI?: string | undefined; | ||
blockExplorer?: import("./constants.js").BlockExplorerConfig | undefined; | ||
ensAddress?: string | undefined; | ||
testnet?: boolean | undefined; | ||
deprecated?: boolean | undefined; | ||
nativeToken: { | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
}; | ||
}[]; | ||
export declare const allNetworks: NetworkConfig[]; |
@@ -36,2 +36,6 @@ export declare enum ChainId { | ||
TELOS = 40, | ||
B3_SEPOLIA = 1993, | ||
APECHAIN_TESTNET = 33111, | ||
BLAST = 81457, | ||
BLAST_SEPOLIA = 168587773, | ||
HARDHAT = 31337, | ||
@@ -60,3 +64,8 @@ HARDHAT_2 = 31338 | ||
deprecated?: boolean; | ||
nativeToken: { | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
}; | ||
} | ||
export declare const networks: Record<ChainId, NetworkMetadata>; |
{ | ||
"name": "@0xsequence/network", | ||
"version": "0.0.0-20240718140827", | ||
"version": "0.0.0-20240807210827", | ||
"description": "network sub-package for Sequence", | ||
@@ -12,6 +12,6 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network", | ||
"dependencies": { | ||
"@0xsequence/core": "0.0.0-20240718140827", | ||
"@0xsequence/indexer": "0.0.0-20240718140827", | ||
"@0xsequence/relayer": "0.0.0-20240718140827", | ||
"@0xsequence/utils": "0.0.0-20240718140827" | ||
"@0xsequence/core": "0.0.0-20240807210827", | ||
"@0xsequence/indexer": "0.0.0-20240807210827", | ||
"@0xsequence/relayer": "0.0.0-20240807210827", | ||
"@0xsequence/utils": "0.0.0-20240807210827" | ||
}, | ||
@@ -18,0 +18,0 @@ "peerDependencies": { |
@@ -47,8 +47,17 @@ import { BigNumberish, ethers, providers } from 'ethers' | ||
const genUrls = (network: string) => { | ||
const rpcUrl = nodesURL(network) | ||
const createNetworkConfig = (chainId: ChainId, options?: { disabled?: boolean }): NetworkConfig => { | ||
const network = networks[chainId] | ||
if (!network) { | ||
throw new Error(`Network with chainId ${chainId} not found`) | ||
} | ||
const rpcUrl = nodesURL(network.name) | ||
return { | ||
...network, | ||
rpcUrl, | ||
indexerUrl: indexerURL(network.name), | ||
relayer: { | ||
url: relayerURL(network), | ||
url: relayerURL(network.name), | ||
provider: { | ||
@@ -58,125 +67,8 @@ url: rpcUrl | ||
}, | ||
indexerUrl: indexerURL(network) | ||
...options | ||
} | ||
} | ||
export const allNetworks = validateAndSortNetworks([ | ||
export const hardhatNetworks = [ | ||
{ | ||
...networks[ChainId.POLYGON], | ||
...genUrls('polygon'), | ||
isDefaultChain: true, | ||
isAuthChain: true | ||
} as LegacyNetworkConfig, | ||
{ | ||
...networks[ChainId.MAINNET], | ||
...genUrls('mainnet') | ||
}, | ||
{ | ||
...networks[ChainId.BSC], | ||
...genUrls('bsc') | ||
}, | ||
{ | ||
...networks[ChainId.AVALANCHE], | ||
...genUrls('avalanche') | ||
}, | ||
{ | ||
...networks[ChainId.ARBITRUM], | ||
...genUrls('arbitrum') | ||
}, | ||
{ | ||
...networks[ChainId.ARBITRUM_NOVA], | ||
...genUrls('arbitrum-nova') | ||
}, | ||
{ | ||
...networks[ChainId.OPTIMISM], | ||
...genUrls('optimism') | ||
}, | ||
{ | ||
...networks[ChainId.OPTIMISM_SEPOLIA], | ||
...genUrls('optimism-sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.POLYGON_ZKEVM], | ||
...genUrls('polygon-zkevm') | ||
}, | ||
{ | ||
...networks[ChainId.GNOSIS], | ||
...genUrls('gnosis') | ||
}, | ||
{ | ||
...networks[ChainId.RINKEBY], | ||
...genUrls('rinkeby'), | ||
disabled: true | ||
}, | ||
{ | ||
...networks[ChainId.GOERLI], | ||
...genUrls('goerli'), | ||
disabled: true | ||
}, | ||
{ | ||
...networks[ChainId.SEPOLIA], | ||
...genUrls('sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.POLYGON_MUMBAI], | ||
...genUrls('mumbai'), | ||
disabled: true | ||
}, | ||
{ | ||
...networks[ChainId.POLYGON_AMOY], | ||
...genUrls('amoy') | ||
}, | ||
{ | ||
...networks[ChainId.BSC_TESTNET], | ||
...genUrls('bsc-testnet') | ||
}, | ||
{ | ||
...networks[ChainId.ARBITRUM_SEPOLIA], | ||
...genUrls('arbitrum-sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.BASE], | ||
...genUrls('base') | ||
}, | ||
{ | ||
...networks[ChainId.BASE_SEPOLIA], | ||
...genUrls('base-sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.HOMEVERSE], | ||
...genUrls('homeverse') | ||
}, | ||
{ | ||
...networks[ChainId.HOMEVERSE_TESTNET], | ||
...genUrls('homeverse-testnet') | ||
}, | ||
{ | ||
...networks[ChainId.XAI], | ||
...genUrls('xai') | ||
}, | ||
{ | ||
...networks[ChainId.XAI_SEPOLIA], | ||
...genUrls('xai-sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.AVALANCHE_TESTNET], | ||
...genUrls('avalanche-testnet') | ||
}, | ||
{ | ||
...networks[ChainId.ASTAR_ZKEVM], | ||
...genUrls('astar-zkevm') | ||
}, | ||
{ | ||
...networks[ChainId.ASTAR_ZKYOTO], | ||
...genUrls('astar-zkyoto') | ||
}, | ||
{ | ||
...networks[ChainId.XR_SEPOLIA], | ||
...genUrls('xr-sepolia') | ||
}, | ||
{ | ||
...networks[ChainId.TELOS], | ||
...genUrls('telos') | ||
}, | ||
{ | ||
...networks[ChainId.HARDHAT], | ||
@@ -201,2 +93,39 @@ rpcUrl: 'http://localhost:8545', | ||
} | ||
] | ||
export const allNetworks = validateAndSortNetworks([ | ||
{ ...createNetworkConfig(ChainId.POLYGON), isDefaultChain: true, isAuthChain: true } as LegacyNetworkConfig, | ||
createNetworkConfig(ChainId.MAINNET), | ||
createNetworkConfig(ChainId.BSC), | ||
createNetworkConfig(ChainId.AVALANCHE), | ||
createNetworkConfig(ChainId.ARBITRUM), | ||
createNetworkConfig(ChainId.ARBITRUM_NOVA), | ||
createNetworkConfig(ChainId.OPTIMISM), | ||
createNetworkConfig(ChainId.OPTIMISM_SEPOLIA), | ||
createNetworkConfig(ChainId.POLYGON_ZKEVM), | ||
createNetworkConfig(ChainId.GNOSIS), | ||
createNetworkConfig(ChainId.RINKEBY, { disabled: true }), | ||
createNetworkConfig(ChainId.GOERLI, { disabled: true }), | ||
createNetworkConfig(ChainId.SEPOLIA), | ||
createNetworkConfig(ChainId.POLYGON_MUMBAI, { disabled: true }), | ||
createNetworkConfig(ChainId.POLYGON_AMOY), | ||
createNetworkConfig(ChainId.BSC_TESTNET), | ||
createNetworkConfig(ChainId.ARBITRUM_SEPOLIA), | ||
createNetworkConfig(ChainId.BASE), | ||
createNetworkConfig(ChainId.BASE_SEPOLIA), | ||
createNetworkConfig(ChainId.HOMEVERSE), | ||
createNetworkConfig(ChainId.HOMEVERSE_TESTNET), | ||
createNetworkConfig(ChainId.XAI), | ||
createNetworkConfig(ChainId.XAI_SEPOLIA), | ||
createNetworkConfig(ChainId.AVALANCHE_TESTNET), | ||
createNetworkConfig(ChainId.ASTAR_ZKEVM), | ||
createNetworkConfig(ChainId.ASTAR_ZKYOTO), | ||
createNetworkConfig(ChainId.XR_SEPOLIA), | ||
createNetworkConfig(ChainId.B3_SEPOLIA), | ||
createNetworkConfig(ChainId.APECHAIN_TESTNET), | ||
createNetworkConfig(ChainId.BLAST), | ||
createNetworkConfig(ChainId.BLAST_SEPOLIA), | ||
createNetworkConfig(ChainId.TELOS), | ||
...hardhatNetworks | ||
]) |
@@ -64,2 +64,12 @@ export enum ChainId { | ||
// B3 Sepolia | ||
B3_SEPOLIA = 1993, | ||
// APE Chain | ||
APECHAIN_TESTNET = 33111, | ||
// Blast | ||
BLAST = 81457, | ||
BLAST_SEPOLIA = 168587773, | ||
// HARDHAT TESTNETS | ||
@@ -92,2 +102,7 @@ HARDHAT = 31337, | ||
deprecated?: boolean // The actual network is deprecated | ||
nativeToken: { | ||
symbol: string | ||
name: string | ||
decimals: number | ||
} | ||
} | ||
@@ -106,2 +121,7 @@ | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' | ||
@@ -120,2 +140,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'roETH', | ||
name: 'Ropsten Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -135,2 +160,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'rETH', | ||
name: 'Rinkeby Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -150,2 +180,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | ||
@@ -165,2 +200,7 @@ deprecated: true | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -178,2 +218,7 @@ }, | ||
rootUrl: 'https://sepolia.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -190,2 +235,7 @@ }, | ||
rootUrl: 'https://polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'MATIC', | ||
name: 'Polygon', | ||
decimals: 18 | ||
} | ||
@@ -204,2 +254,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'mMATIC', | ||
name: 'Mumbai Polygon', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -217,2 +272,7 @@ }, | ||
rootUrl: 'https://www.oklink.com/amoy/' | ||
}, | ||
nativeToken: { | ||
symbol: 'aMATIC', | ||
name: 'Amoy Polygon', | ||
decimals: 18 | ||
} | ||
@@ -229,2 +289,7 @@ }, | ||
rootUrl: 'https://zkevm.polygonscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -241,2 +306,7 @@ }, | ||
rootUrl: 'https://bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'BNB', | ||
name: 'BNB', | ||
decimals: 18 | ||
} | ||
@@ -254,2 +324,7 @@ }, | ||
rootUrl: 'https://testnet.bscscan.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tBNB', | ||
name: 'Testnet BNB', | ||
decimals: 18 | ||
} | ||
@@ -266,2 +341,7 @@ }, | ||
rootUrl: 'https://optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -280,2 +360,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'kETH', | ||
name: 'Kovan Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -294,2 +379,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -307,2 +397,7 @@ }, | ||
rootUrl: 'https://sepolia-optimistic.etherscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -319,2 +414,7 @@ }, | ||
rootUrl: 'https://arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -333,2 +433,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -346,2 +451,7 @@ }, | ||
rootUrl: 'https://sepolia.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -358,2 +468,7 @@ }, | ||
rootUrl: 'https://nova.arbiscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -370,2 +485,7 @@ }, | ||
rootUrl: 'https://subnets.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'AVAX', | ||
name: 'AVAX', | ||
decimals: 18 | ||
} | ||
@@ -383,2 +503,7 @@ }, | ||
rootUrl: 'https://subnets-test.avax.network/c-chain/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tAVAX', | ||
name: 'Testnet AVAX', | ||
decimals: 18 | ||
} | ||
@@ -395,2 +520,7 @@ }, | ||
rootUrl: 'https://blockscout.com/xdai/mainnet/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XDAI', | ||
name: 'XDAI', | ||
decimals: 18 | ||
} | ||
@@ -407,2 +537,7 @@ }, | ||
rootUrl: 'https://basescan.org/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -421,2 +556,7 @@ }, | ||
}, | ||
nativeToken: { | ||
symbol: 'gETH', | ||
name: 'Goerli Ether', | ||
decimals: 18 | ||
}, | ||
deprecated: true | ||
@@ -434,2 +574,7 @@ }, | ||
rootUrl: 'https://base-sepolia.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sETH', | ||
name: 'Sepolia Ether', | ||
decimals: 18 | ||
} | ||
@@ -446,2 +591,7 @@ }, | ||
rootUrl: 'https://explorer.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'OAS', | ||
name: 'OAS', | ||
decimals: 18 | ||
} | ||
@@ -459,2 +609,7 @@ }, | ||
rootUrl: 'https://explorer.testnet.oasys.homeverse.games/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tOAS', | ||
name: 'Testnet OAS', | ||
decimals: 18 | ||
} | ||
@@ -471,2 +626,7 @@ }, | ||
rootUrl: 'https://explorer.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XAI', | ||
name: 'XAI', | ||
decimals: 18 | ||
} | ||
@@ -484,2 +644,7 @@ }, | ||
rootUrl: 'https://testnet-explorer-v2.xai-chain.net/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sXAI', | ||
name: 'Sepolia XAI', | ||
decimals: 18 | ||
} | ||
@@ -496,2 +661,7 @@ }, | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -509,2 +679,7 @@ }, | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
@@ -522,4 +697,76 @@ }, | ||
rootUrl: 'https://xr-sepolia-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'tXR', | ||
name: 'Sepolia XR', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
chainId: ChainId.B3_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'b3-sepolia', | ||
title: 'B3 Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'B3 Sepolia Explorer', | ||
rootUrl: 'https://sepolia.explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
chainId: ChainId.APECHAIN_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'apechain-testnet', | ||
title: 'APE Chain Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://curtis.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST]: { | ||
chainId: ChainId.BLAST, | ||
type: NetworkType.MAINNET, | ||
name: 'blast', | ||
title: 'Blast', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST}.webp`, | ||
blockExplorer: { | ||
name: 'Blast Explorer', | ||
rootUrl: 'https://blastscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.BLAST_SEPOLIA]: { | ||
chainId: ChainId.BLAST_SEPOLIA, | ||
type: NetworkType.TESTNET, | ||
name: 'blast-sepolia', | ||
title: 'Blast Sepolia', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST_SEPOLIA}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Blast Sepolia Explorer', | ||
rootUrl: 'https://sepolia.blastexplorer.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.TELOS]: { | ||
@@ -534,2 +781,7 @@ chainId: ChainId.TELOS, | ||
rootUrl: 'https://explorer.telos.net/network/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TLOS', | ||
name: 'TLOS', | ||
decimals: 18 | ||
} | ||
@@ -541,3 +793,8 @@ }, | ||
name: 'hardhat', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
@@ -547,4 +804,9 @@ [ChainId.HARDHAT_2]: { | ||
name: 'hardhat2', | ||
title: 'Hardhat (local testnet)' | ||
title: 'Hardhat (local testnet)', | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248074
6928
+ Added@0xsequence/abi@0.0.0-20240807210827(transitive)
+ Added@0xsequence/core@0.0.0-20240807210827(transitive)
+ Added@0xsequence/indexer@0.0.0-20240807210827(transitive)
+ Added@0xsequence/relayer@0.0.0-20240807210827(transitive)
+ Added@0xsequence/utils@0.0.0-20240807210827(transitive)
- Removed@0xsequence/abi@0.0.0-20240718140827(transitive)
- Removed@0xsequence/core@0.0.0-20240718140827(transitive)
- Removed@0xsequence/indexer@0.0.0-20240718140827(transitive)
- Removed@0xsequence/relayer@0.0.0-20240718140827(transitive)
- Removed@0xsequence/utils@0.0.0-20240718140827(transitive)