@0xsequence/network
Advanced tools
Comparing version 0.0.0-20241007154931 to 0.0.0-20241107182529
@@ -1,2 +0,2 @@ | ||
export * from "../../dist/declarations/src/constants"; | ||
export * from "../../dist/declarations/src/constants.js"; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1uZXR3b3JrLWNvbnN0YW50cy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9jb25zdGFudHMuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9 |
@@ -36,7 +36,7 @@ 'use strict'; | ||
ChainId[ChainId["XAI_SEPOLIA"] = 37714555429] = "XAI_SEPOLIA"; | ||
ChainId[ChainId["ASTAR_ZKEVM"] = 3776] = "ASTAR_ZKEVM"; | ||
ChainId[ChainId["ASTAR_ZKYOTO"] = 6038361] = "ASTAR_ZKYOTO"; | ||
ChainId[ChainId["XR_SEPOLIA"] = 2730] = "XR_SEPOLIA"; | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3"] = 8333] = "B3"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN"] = 33139] = "APECHAIN"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
@@ -46,4 +46,10 @@ ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BORNE_TESTNET"] = 94984] = "BORNE_TESTNET"; | ||
ChainId[ChainId["SKALE_NEBULA"] = 1482601649] = "SKALE_NEBULA"; | ||
ChainId[ChainId["SKALE_NEBULA_TESTNET"] = 37084624] = "SKALE_NEBULA_TESTNET"; | ||
ChainId[ChainId["SONEIUM_MINATO"] = 1946] = "SONEIUM_MINATO"; | ||
ChainId[ChainId["TOY_TESTNET"] = 21000000] = "TOY_TESTNET"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM"] = 13371] = "IMMUTABLE_ZKEVM"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM_TESTNET"] = 13473] = "IMMUTABLE_ZKEVM_TESTNET"; | ||
ChainId[ChainId["ROOT_NETWORK"] = 7668] = "ROOT_NETWORK"; | ||
ChainId[ChainId["ROOT_NETWORK_PORCINI"] = 7672] = "ROOT_NETWORK_PORCINI"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -570,35 +576,2 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
[ChainId.ASTAR_ZKEVM]: { | ||
chainId: ChainId.ASTAR_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'astar-zkevm', | ||
title: 'Astar zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKEVM}.webp`, | ||
blockExplorer: { | ||
name: 'Astar zkEVM Explorer', | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ASTAR_ZKYOTO]: { | ||
chainId: ChainId.ASTAR_ZKYOTO, | ||
type: NetworkType.TESTNET, | ||
name: 'astar-zkyoto', | ||
title: 'Astar zKyoto Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKYOTO}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Astar zKyoto Explorer', | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.XR_SEPOLIA]: { | ||
@@ -621,2 +594,19 @@ chainId: ChainId.XR_SEPOLIA, | ||
}, | ||
[ChainId.B3]: { | ||
chainId: ChainId.B3, | ||
type: NetworkType.MAINNET, | ||
name: 'b3', | ||
title: 'B3', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'B3 Explorer', | ||
rootUrl: 'https://explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
@@ -639,2 +629,19 @@ chainId: ChainId.B3_SEPOLIA, | ||
}, | ||
[ChainId.APECHAIN]: { | ||
chainId: ChainId.APECHAIN, | ||
type: NetworkType.MAINNET, | ||
name: 'apechain', | ||
title: 'APE Chain', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://apechain.calderaexplorer.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
@@ -723,2 +730,19 @@ chainId: ChainId.APECHAIN_TESTNET, | ||
}, | ||
[ChainId.SKALE_NEBULA]: { | ||
chainId: ChainId.SKALE_NEBULA, | ||
type: NetworkType.MAINNET, | ||
name: 'skale-nebula', | ||
title: 'SKALE Nebula Gaming Hub', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.SKALE_NEBULA}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'SKALE Nebula Gaming Hub Explorer', | ||
rootUrl: 'https://green-giddy-denebola.explorer.mainnet.skalenodes.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sFUEL', | ||
name: 'SKALE Fuel', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.SKALE_NEBULA_TESTNET]: { | ||
@@ -758,2 +782,87 @@ chainId: ChainId.SKALE_NEBULA_TESTNET, | ||
}, | ||
[ChainId.TOY_TESTNET]: { | ||
chainId: ChainId.TOY_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'toy-testnet', | ||
title: 'TOY (Testnet)', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.TOY_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'TOY Testnet Explorer', | ||
rootUrl: 'https://toy-chain-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TOY', | ||
name: 'TOY', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'immutable-zkevm', | ||
title: 'Immutable zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Explorer', | ||
rootUrl: 'https://explorer.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM_TESTNET]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'immutable-zkevm-testnet', | ||
title: 'Immutable zkEVM Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Testnet Explorer', | ||
rootUrl: 'https://explorer.testnet.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK]: { | ||
chainId: ChainId.ROOT_NETWORK, | ||
type: NetworkType.MAINNET, | ||
name: 'rootnet', | ||
title: 'The Root Network', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'The Root Network Explorer', | ||
rootUrl: 'https://rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK_PORCINI]: { | ||
chainId: ChainId.ROOT_NETWORK_PORCINI, | ||
type: NetworkType.TESTNET, | ||
name: 'rootnet-porcini', | ||
title: 'The Root Network Porcini Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK_PORCINI}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'The Root Network Porcini Testnet Explorer', | ||
rootUrl: 'https://porcini.rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.HARDHAT]: { | ||
@@ -760,0 +869,0 @@ chainId: ChainId.HARDHAT, |
@@ -36,7 +36,7 @@ 'use strict'; | ||
ChainId[ChainId["XAI_SEPOLIA"] = 37714555429] = "XAI_SEPOLIA"; | ||
ChainId[ChainId["ASTAR_ZKEVM"] = 3776] = "ASTAR_ZKEVM"; | ||
ChainId[ChainId["ASTAR_ZKYOTO"] = 6038361] = "ASTAR_ZKYOTO"; | ||
ChainId[ChainId["XR_SEPOLIA"] = 2730] = "XR_SEPOLIA"; | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3"] = 8333] = "B3"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN"] = 33139] = "APECHAIN"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
@@ -46,4 +46,10 @@ ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BORNE_TESTNET"] = 94984] = "BORNE_TESTNET"; | ||
ChainId[ChainId["SKALE_NEBULA"] = 1482601649] = "SKALE_NEBULA"; | ||
ChainId[ChainId["SKALE_NEBULA_TESTNET"] = 37084624] = "SKALE_NEBULA_TESTNET"; | ||
ChainId[ChainId["SONEIUM_MINATO"] = 1946] = "SONEIUM_MINATO"; | ||
ChainId[ChainId["TOY_TESTNET"] = 21000000] = "TOY_TESTNET"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM"] = 13371] = "IMMUTABLE_ZKEVM"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM_TESTNET"] = 13473] = "IMMUTABLE_ZKEVM_TESTNET"; | ||
ChainId[ChainId["ROOT_NETWORK"] = 7668] = "ROOT_NETWORK"; | ||
ChainId[ChainId["ROOT_NETWORK_PORCINI"] = 7672] = "ROOT_NETWORK_PORCINI"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -570,35 +576,2 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
[ChainId.ASTAR_ZKEVM]: { | ||
chainId: ChainId.ASTAR_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'astar-zkevm', | ||
title: 'Astar zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKEVM}.webp`, | ||
blockExplorer: { | ||
name: 'Astar zkEVM Explorer', | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ASTAR_ZKYOTO]: { | ||
chainId: ChainId.ASTAR_ZKYOTO, | ||
type: NetworkType.TESTNET, | ||
name: 'astar-zkyoto', | ||
title: 'Astar zKyoto Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKYOTO}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Astar zKyoto Explorer', | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.XR_SEPOLIA]: { | ||
@@ -621,2 +594,19 @@ chainId: ChainId.XR_SEPOLIA, | ||
}, | ||
[ChainId.B3]: { | ||
chainId: ChainId.B3, | ||
type: NetworkType.MAINNET, | ||
name: 'b3', | ||
title: 'B3', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'B3 Explorer', | ||
rootUrl: 'https://explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
@@ -639,2 +629,19 @@ chainId: ChainId.B3_SEPOLIA, | ||
}, | ||
[ChainId.APECHAIN]: { | ||
chainId: ChainId.APECHAIN, | ||
type: NetworkType.MAINNET, | ||
name: 'apechain', | ||
title: 'APE Chain', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://apechain.calderaexplorer.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
@@ -723,2 +730,19 @@ chainId: ChainId.APECHAIN_TESTNET, | ||
}, | ||
[ChainId.SKALE_NEBULA]: { | ||
chainId: ChainId.SKALE_NEBULA, | ||
type: NetworkType.MAINNET, | ||
name: 'skale-nebula', | ||
title: 'SKALE Nebula Gaming Hub', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.SKALE_NEBULA}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'SKALE Nebula Gaming Hub Explorer', | ||
rootUrl: 'https://green-giddy-denebola.explorer.mainnet.skalenodes.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sFUEL', | ||
name: 'SKALE Fuel', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.SKALE_NEBULA_TESTNET]: { | ||
@@ -758,2 +782,87 @@ chainId: ChainId.SKALE_NEBULA_TESTNET, | ||
}, | ||
[ChainId.TOY_TESTNET]: { | ||
chainId: ChainId.TOY_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'toy-testnet', | ||
title: 'TOY (Testnet)', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.TOY_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'TOY Testnet Explorer', | ||
rootUrl: 'https://toy-chain-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TOY', | ||
name: 'TOY', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'immutable-zkevm', | ||
title: 'Immutable zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Explorer', | ||
rootUrl: 'https://explorer.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM_TESTNET]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'immutable-zkevm-testnet', | ||
title: 'Immutable zkEVM Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Testnet Explorer', | ||
rootUrl: 'https://explorer.testnet.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK]: { | ||
chainId: ChainId.ROOT_NETWORK, | ||
type: NetworkType.MAINNET, | ||
name: 'rootnet', | ||
title: 'The Root Network', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'The Root Network Explorer', | ||
rootUrl: 'https://rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK_PORCINI]: { | ||
chainId: ChainId.ROOT_NETWORK_PORCINI, | ||
type: NetworkType.TESTNET, | ||
name: 'rootnet-porcini', | ||
title: 'The Root Network Porcini Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK_PORCINI}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'The Root Network Porcini Testnet Explorer', | ||
rootUrl: 'https://porcini.rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.HARDHAT]: { | ||
@@ -760,0 +869,0 @@ chainId: ChainId.HARDHAT, |
@@ -32,7 +32,7 @@ let ChainId = /*#__PURE__*/function (ChainId) { | ||
ChainId[ChainId["XAI_SEPOLIA"] = 37714555429] = "XAI_SEPOLIA"; | ||
ChainId[ChainId["ASTAR_ZKEVM"] = 3776] = "ASTAR_ZKEVM"; | ||
ChainId[ChainId["ASTAR_ZKYOTO"] = 6038361] = "ASTAR_ZKYOTO"; | ||
ChainId[ChainId["XR_SEPOLIA"] = 2730] = "XR_SEPOLIA"; | ||
ChainId[ChainId["TELOS"] = 40] = "TELOS"; | ||
ChainId[ChainId["B3"] = 8333] = "B3"; | ||
ChainId[ChainId["B3_SEPOLIA"] = 1993] = "B3_SEPOLIA"; | ||
ChainId[ChainId["APECHAIN"] = 33139] = "APECHAIN"; | ||
ChainId[ChainId["APECHAIN_TESTNET"] = 33111] = "APECHAIN_TESTNET"; | ||
@@ -42,4 +42,10 @@ ChainId[ChainId["BLAST"] = 81457] = "BLAST"; | ||
ChainId[ChainId["BORNE_TESTNET"] = 94984] = "BORNE_TESTNET"; | ||
ChainId[ChainId["SKALE_NEBULA"] = 1482601649] = "SKALE_NEBULA"; | ||
ChainId[ChainId["SKALE_NEBULA_TESTNET"] = 37084624] = "SKALE_NEBULA_TESTNET"; | ||
ChainId[ChainId["SONEIUM_MINATO"] = 1946] = "SONEIUM_MINATO"; | ||
ChainId[ChainId["TOY_TESTNET"] = 21000000] = "TOY_TESTNET"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM"] = 13371] = "IMMUTABLE_ZKEVM"; | ||
ChainId[ChainId["IMMUTABLE_ZKEVM_TESTNET"] = 13473] = "IMMUTABLE_ZKEVM_TESTNET"; | ||
ChainId[ChainId["ROOT_NETWORK"] = 7668] = "ROOT_NETWORK"; | ||
ChainId[ChainId["ROOT_NETWORK_PORCINI"] = 7672] = "ROOT_NETWORK_PORCINI"; | ||
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT"; | ||
@@ -566,35 +572,2 @@ ChainId[ChainId["HARDHAT_2"] = 31338] = "HARDHAT_2"; | ||
}, | ||
[ChainId.ASTAR_ZKEVM]: { | ||
chainId: ChainId.ASTAR_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'astar-zkevm', | ||
title: 'Astar zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKEVM}.webp`, | ||
blockExplorer: { | ||
name: 'Astar zkEVM Explorer', | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ASTAR_ZKYOTO]: { | ||
chainId: ChainId.ASTAR_ZKYOTO, | ||
type: NetworkType.TESTNET, | ||
name: 'astar-zkyoto', | ||
title: 'Astar zKyoto Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKYOTO}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Astar zKyoto Explorer', | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.XR_SEPOLIA]: { | ||
@@ -617,2 +590,19 @@ chainId: ChainId.XR_SEPOLIA, | ||
}, | ||
[ChainId.B3]: { | ||
chainId: ChainId.B3, | ||
type: NetworkType.MAINNET, | ||
name: 'b3', | ||
title: 'B3', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'B3 Explorer', | ||
rootUrl: 'https://explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
@@ -635,2 +625,19 @@ chainId: ChainId.B3_SEPOLIA, | ||
}, | ||
[ChainId.APECHAIN]: { | ||
chainId: ChainId.APECHAIN, | ||
type: NetworkType.MAINNET, | ||
name: 'apechain', | ||
title: 'APE Chain', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://apechain.calderaexplorer.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
@@ -719,2 +726,19 @@ chainId: ChainId.APECHAIN_TESTNET, | ||
}, | ||
[ChainId.SKALE_NEBULA]: { | ||
chainId: ChainId.SKALE_NEBULA, | ||
type: NetworkType.MAINNET, | ||
name: 'skale-nebula', | ||
title: 'SKALE Nebula Gaming Hub', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.SKALE_NEBULA}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'SKALE Nebula Gaming Hub Explorer', | ||
rootUrl: 'https://green-giddy-denebola.explorer.mainnet.skalenodes.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sFUEL', | ||
name: 'SKALE Fuel', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.SKALE_NEBULA_TESTNET]: { | ||
@@ -754,2 +778,87 @@ chainId: ChainId.SKALE_NEBULA_TESTNET, | ||
}, | ||
[ChainId.TOY_TESTNET]: { | ||
chainId: ChainId.TOY_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'toy-testnet', | ||
title: 'TOY (Testnet)', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.TOY_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'TOY Testnet Explorer', | ||
rootUrl: 'https://toy-chain-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TOY', | ||
name: 'TOY', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'immutable-zkevm', | ||
title: 'Immutable zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Explorer', | ||
rootUrl: 'https://explorer.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM_TESTNET]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'immutable-zkevm-testnet', | ||
title: 'Immutable zkEVM Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Testnet Explorer', | ||
rootUrl: 'https://explorer.testnet.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK]: { | ||
chainId: ChainId.ROOT_NETWORK, | ||
type: NetworkType.MAINNET, | ||
name: 'rootnet', | ||
title: 'The Root Network', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'The Root Network Explorer', | ||
rootUrl: 'https://rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK_PORCINI]: { | ||
chainId: ChainId.ROOT_NETWORK_PORCINI, | ||
type: NetworkType.TESTNET, | ||
name: 'rootnet-porcini', | ||
title: 'The Root Network Porcini Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK_PORCINI}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'The Root Network Porcini Testnet Explorer', | ||
rootUrl: 'https://porcini.rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.HARDHAT]: { | ||
@@ -756,0 +865,0 @@ chainId: ChainId.HARDHAT, |
@@ -1,2 +0,2 @@ | ||
export * from "./declarations/src/index"; | ||
export * from "./declarations/src/index.js"; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1uZXR3b3JrLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ== |
@@ -10,14 +10,9 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -272,3 +267,3 @@ | ||
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), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BORNE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SONEIUM_MINATO), ...hardhatNetworks]); | ||
}), 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.XR_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.APECHAIN), 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), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BORNE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SONEIUM_MINATO), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.TOY_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.IMMUTABLE_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.IMMUTABLE_ZKEVM_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ROOT_NETWORK), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ROOT_NETWORK_PORCINI), ...hardhatNetworks]); | ||
@@ -725,17 +720,15 @@ class JsonRpcRouter { | ||
function _classPrivateFieldBase(receiver, privateKey) { | ||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
throw new TypeError("attempted to use private field on non-instance"); | ||
} | ||
return receiver; | ||
function _classPrivateFieldLooseBase(e, t) { | ||
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); | ||
return e; | ||
} | ||
var id = 0; | ||
function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
function _classPrivateFieldLooseKey(e) { | ||
return "__private_" + id++ + "_" + e; | ||
} | ||
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender"); | ||
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender"); | ||
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware. | ||
@@ -771,3 +764,3 @@ class JsonRpcProvider extends ethers.ethers.JsonRpcProvider { | ||
params, | ||
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++, | ||
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++, | ||
jsonrpc: '2.0' | ||
@@ -813,3 +806,3 @@ }; | ||
const blockCache = options == null ? void 0 : options.blockCache; | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId; | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId; | ||
@@ -828,6 +821,6 @@ // NOTE: it will either use the middleware stack passed to the constructor | ||
})], new JsonRpcHandler(this.fetch, chainId)); | ||
_classPrivateFieldBase(this, _sender)[_sender] = router; | ||
_classPrivateFieldLooseBase(this, _sender)[_sender] = router; | ||
} | ||
async request(request) { | ||
return _classPrivateFieldBase(this, _sender)[_sender].request(request); | ||
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request); | ||
} | ||
@@ -842,3 +835,3 @@ async send(method, params, chainId) { | ||
async getNetwork() { | ||
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId]; | ||
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId]; | ||
if (chainId) { | ||
@@ -855,3 +848,3 @@ const network = constants_dist_0xsequenceNetworkConstants.networks[chainId]; | ||
const chainIdHex = await this.send('eth_chainId', []); | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
return this.getNetwork(); | ||
@@ -858,0 +851,0 @@ } |
@@ -10,14 +10,9 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -272,3 +267,3 @@ | ||
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), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BORNE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SONEIUM_MINATO), ...hardhatNetworks]); | ||
}), 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.XR_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.B3_SEPOLIA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.APECHAIN), 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), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.BORNE_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.SONEIUM_MINATO), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.TOY_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.IMMUTABLE_ZKEVM), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.IMMUTABLE_ZKEVM_TESTNET), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ROOT_NETWORK), createNetworkConfig(constants_dist_0xsequenceNetworkConstants.ChainId.ROOT_NETWORK_PORCINI), ...hardhatNetworks]); | ||
@@ -725,17 +720,15 @@ class JsonRpcRouter { | ||
function _classPrivateFieldBase(receiver, privateKey) { | ||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
throw new TypeError("attempted to use private field on non-instance"); | ||
} | ||
return receiver; | ||
function _classPrivateFieldLooseBase(e, t) { | ||
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); | ||
return e; | ||
} | ||
var id = 0; | ||
function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
function _classPrivateFieldLooseKey(e) { | ||
return "__private_" + id++ + "_" + e; | ||
} | ||
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender"); | ||
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender"); | ||
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware. | ||
@@ -771,3 +764,3 @@ class JsonRpcProvider extends ethers.ethers.JsonRpcProvider { | ||
params, | ||
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++, | ||
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++, | ||
jsonrpc: '2.0' | ||
@@ -813,3 +806,3 @@ }; | ||
const blockCache = options == null ? void 0 : options.blockCache; | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId; | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId; | ||
@@ -828,6 +821,6 @@ // NOTE: it will either use the middleware stack passed to the constructor | ||
})], new JsonRpcHandler(this.fetch, chainId)); | ||
_classPrivateFieldBase(this, _sender)[_sender] = router; | ||
_classPrivateFieldLooseBase(this, _sender)[_sender] = router; | ||
} | ||
async request(request) { | ||
return _classPrivateFieldBase(this, _sender)[_sender].request(request); | ||
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request); | ||
} | ||
@@ -842,3 +835,3 @@ async send(method, params, chainId) { | ||
async getNetwork() { | ||
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId]; | ||
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId]; | ||
if (chainId) { | ||
@@ -855,3 +848,3 @@ const network = constants_dist_0xsequenceNetworkConstants.networks[chainId]; | ||
const chainIdHex = await this.send('eth_chainId', []); | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
return this.getNetwork(); | ||
@@ -858,0 +851,0 @@ } |
@@ -7,14 +7,9 @@ import { networks, ChainId } from '../constants/dist/0xsequence-network-constants.esm.js'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -269,3 +264,3 @@ | ||
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), createNetworkConfig(ChainId.BORNE_TESTNET), createNetworkConfig(ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(ChainId.SONEIUM_MINATO), ...hardhatNetworks]); | ||
}), 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.XR_SEPOLIA), createNetworkConfig(ChainId.B3), createNetworkConfig(ChainId.B3_SEPOLIA), createNetworkConfig(ChainId.APECHAIN), createNetworkConfig(ChainId.APECHAIN_TESTNET), createNetworkConfig(ChainId.BLAST), createNetworkConfig(ChainId.BLAST_SEPOLIA), createNetworkConfig(ChainId.TELOS), createNetworkConfig(ChainId.BORNE_TESTNET), createNetworkConfig(ChainId.SKALE_NEBULA), createNetworkConfig(ChainId.SKALE_NEBULA_TESTNET), createNetworkConfig(ChainId.SONEIUM_MINATO), createNetworkConfig(ChainId.TOY_TESTNET), createNetworkConfig(ChainId.IMMUTABLE_ZKEVM), createNetworkConfig(ChainId.IMMUTABLE_ZKEVM_TESTNET), createNetworkConfig(ChainId.ROOT_NETWORK), createNetworkConfig(ChainId.ROOT_NETWORK_PORCINI), ...hardhatNetworks]); | ||
@@ -722,17 +717,15 @@ class JsonRpcRouter { | ||
function _classPrivateFieldBase(receiver, privateKey) { | ||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
throw new TypeError("attempted to use private field on non-instance"); | ||
} | ||
return receiver; | ||
function _classPrivateFieldLooseBase(e, t) { | ||
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); | ||
return e; | ||
} | ||
var id = 0; | ||
function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
function _classPrivateFieldLooseKey(e) { | ||
return "__private_" + id++ + "_" + e; | ||
} | ||
var _chainId = /*#__PURE__*/_classPrivateFieldKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldKey("sender"); | ||
var _chainId = /*#__PURE__*/_classPrivateFieldLooseKey("chainId"); | ||
var _nextId = /*#__PURE__*/_classPrivateFieldLooseKey("nextId"); | ||
var _sender = /*#__PURE__*/_classPrivateFieldLooseKey("sender"); | ||
// JsonRpcProvider with a middleware stack. By default it will use a simple caching middleware. | ||
@@ -768,3 +761,3 @@ class JsonRpcProvider extends ethers.JsonRpcProvider { | ||
params, | ||
id: _classPrivateFieldBase(_this, _nextId)[_nextId]++, | ||
id: _classPrivateFieldLooseBase(_this, _nextId)[_nextId]++, | ||
jsonrpc: '2.0' | ||
@@ -810,3 +803,3 @@ }; | ||
const blockCache = options == null ? void 0 : options.blockCache; | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = chainId; | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = chainId; | ||
@@ -825,6 +818,6 @@ // NOTE: it will either use the middleware stack passed to the constructor | ||
})], new JsonRpcHandler(this.fetch, chainId)); | ||
_classPrivateFieldBase(this, _sender)[_sender] = router; | ||
_classPrivateFieldLooseBase(this, _sender)[_sender] = router; | ||
} | ||
async request(request) { | ||
return _classPrivateFieldBase(this, _sender)[_sender].request(request); | ||
return _classPrivateFieldLooseBase(this, _sender)[_sender].request(request); | ||
} | ||
@@ -839,3 +832,3 @@ async send(method, params, chainId) { | ||
async getNetwork() { | ||
const chainId = _classPrivateFieldBase(this, _chainId)[_chainId]; | ||
const chainId = _classPrivateFieldLooseBase(this, _chainId)[_chainId]; | ||
if (chainId) { | ||
@@ -852,3 +845,3 @@ const network = networks[chainId]; | ||
const chainIdHex = await this.send('eth_chainId', []); | ||
_classPrivateFieldBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
_classPrivateFieldLooseBase(this, _chainId)[_chainId] = Number(chainIdHex); | ||
return this.getNetwork(); | ||
@@ -855,0 +848,0 @@ } |
@@ -29,10 +29,10 @@ import { ethers } from 'ethers'; | ||
chainId: ChainId; | ||
type?: import("./constants.js").NetworkType | undefined; | ||
type?: import("./constants.js").NetworkType; | ||
name: string; | ||
title?: string | undefined; | ||
logoURI?: string | undefined; | ||
blockExplorer?: import("./constants.js").BlockExplorerConfig | undefined; | ||
ensAddress?: string | undefined; | ||
testnet?: boolean | undefined; | ||
deprecated?: boolean | undefined; | ||
title?: string; | ||
logoURI?: string; | ||
blockExplorer?: import("./constants.js").BlockExplorerConfig; | ||
ensAddress?: string; | ||
testnet?: boolean; | ||
deprecated?: boolean; | ||
nativeToken: { | ||
@@ -39,0 +39,0 @@ symbol: string; |
@@ -32,7 +32,7 @@ export declare enum ChainId { | ||
XAI_SEPOLIA = 37714555429, | ||
ASTAR_ZKEVM = 3776, | ||
ASTAR_ZKYOTO = 6038361, | ||
XR_SEPOLIA = 2730, | ||
TELOS = 40, | ||
B3 = 8333, | ||
B3_SEPOLIA = 1993, | ||
APECHAIN = 33139, | ||
APECHAIN_TESTNET = 33111, | ||
@@ -42,4 +42,10 @@ BLAST = 81457, | ||
BORNE_TESTNET = 94984, | ||
SKALE_NEBULA = 1482601649, | ||
SKALE_NEBULA_TESTNET = 37084624, | ||
SONEIUM_MINATO = 1946, | ||
TOY_TESTNET = 21000000, | ||
IMMUTABLE_ZKEVM = 13371, | ||
IMMUTABLE_ZKEVM_TESTNET = 13473, | ||
ROOT_NETWORK = 7668, | ||
ROOT_NETWORK_PORCINI = 7672, | ||
HARDHAT = 31337, | ||
@@ -46,0 +52,0 @@ HARDHAT_2 = 31338 |
{ | ||
"name": "@0xsequence/network", | ||
"version": "0.0.0-20241007154931", | ||
"version": "0.0.0-20241107182529", | ||
"description": "network sub-package for Sequence", | ||
@@ -11,13 +11,13 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@0xsequence/core": "0.0.0-20241007154931", | ||
"@0xsequence/indexer": "0.0.0-20241007154931", | ||
"@0xsequence/relayer": "0.0.0-20241007154931", | ||
"@0xsequence/utils": "0.0.0-20241007154931" | ||
}, | ||
"peerDependencies": { | ||
"ethers": ">=6" | ||
}, | ||
"dependencies": { | ||
"@0xsequence/core": "0.0.0-20241107182529", | ||
"@0xsequence/indexer": "0.0.0-20241107182529", | ||
"@0xsequence/relayer": "0.0.0-20241107182529", | ||
"@0xsequence/utils": "0.0.0-20241107182529" | ||
}, | ||
"devDependencies": { | ||
"ethers": "^6.13.0" | ||
"ethers": "6.13.4" | ||
}, | ||
@@ -24,0 +24,0 @@ "files": [ |
@@ -118,6 +118,6 @@ import { ethers } from 'ethers' | ||
createNetworkConfig(ChainId.AVALANCHE_TESTNET), | ||
createNetworkConfig(ChainId.ASTAR_ZKEVM), | ||
createNetworkConfig(ChainId.ASTAR_ZKYOTO), | ||
createNetworkConfig(ChainId.XR_SEPOLIA), | ||
createNetworkConfig(ChainId.B3), | ||
createNetworkConfig(ChainId.B3_SEPOLIA), | ||
createNetworkConfig(ChainId.APECHAIN), | ||
createNetworkConfig(ChainId.APECHAIN_TESTNET), | ||
@@ -128,5 +128,11 @@ createNetworkConfig(ChainId.BLAST), | ||
createNetworkConfig(ChainId.BORNE_TESTNET), | ||
createNetworkConfig(ChainId.SKALE_NEBULA), | ||
createNetworkConfig(ChainId.SKALE_NEBULA_TESTNET), | ||
createNetworkConfig(ChainId.SONEIUM_MINATO), | ||
createNetworkConfig(ChainId.TOY_TESTNET), | ||
createNetworkConfig(ChainId.IMMUTABLE_ZKEVM), | ||
createNetworkConfig(ChainId.IMMUTABLE_ZKEVM_TESTNET), | ||
createNetworkConfig(ChainId.ROOT_NETWORK), | ||
createNetworkConfig(ChainId.ROOT_NETWORK_PORCINI), | ||
...hardhatNetworks | ||
]) |
@@ -54,6 +54,2 @@ export enum ChainId { | ||
// Astar | ||
ASTAR_ZKEVM = 3776, | ||
ASTAR_ZKYOTO = 6038361, | ||
// XR | ||
@@ -66,5 +62,7 @@ XR_SEPOLIA = 2730, | ||
// B3 Sepolia | ||
B3 = 8333, | ||
B3_SEPOLIA = 1993, | ||
// APE Chain | ||
APECHAIN = 33139, | ||
APECHAIN_TESTNET = 33111, | ||
@@ -79,3 +77,4 @@ | ||
// Skale Testnet | ||
// SKALE Nebula | ||
SKALE_NEBULA = 1482601649, | ||
SKALE_NEBULA_TESTNET = 37084624, | ||
@@ -86,2 +85,13 @@ | ||
// TOY Testnet | ||
TOY_TESTNET = 21000000, | ||
// Immutable zkEVM | ||
IMMUTABLE_ZKEVM = 13371, | ||
IMMUTABLE_ZKEVM_TESTNET = 13473, | ||
// The Root Network | ||
ROOT_NETWORK = 7668, | ||
ROOT_NETWORK_PORCINI = 7672, | ||
// HARDHAT TESTNETS | ||
@@ -633,35 +643,2 @@ HARDHAT = 31337, | ||
}, | ||
[ChainId.ASTAR_ZKEVM]: { | ||
chainId: ChainId.ASTAR_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'astar-zkevm', | ||
title: 'Astar zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKEVM}.webp`, | ||
blockExplorer: { | ||
name: 'Astar zkEVM Explorer', | ||
rootUrl: 'https://astar-zkevm.explorer.startale.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ASTAR_ZKYOTO]: { | ||
chainId: ChainId.ASTAR_ZKYOTO, | ||
type: NetworkType.TESTNET, | ||
name: 'astar-zkyoto', | ||
title: 'Astar zKyoto Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ASTAR_ZKYOTO}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Astar zKyoto Explorer', | ||
rootUrl: 'https://astar-zkyoto.blockscout.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.XR_SEPOLIA]: { | ||
@@ -684,2 +661,19 @@ chainId: ChainId.XR_SEPOLIA, | ||
}, | ||
[ChainId.B3]: { | ||
chainId: ChainId.B3, | ||
type: NetworkType.MAINNET, | ||
name: 'b3', | ||
title: 'B3', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'B3 Explorer', | ||
rootUrl: 'https://explorer.b3.fun/' | ||
}, | ||
nativeToken: { | ||
symbol: 'ETH', | ||
name: 'Ether', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.B3_SEPOLIA]: { | ||
@@ -702,2 +696,19 @@ chainId: ChainId.B3_SEPOLIA, | ||
}, | ||
[ChainId.APECHAIN]: { | ||
chainId: ChainId.APECHAIN, | ||
type: NetworkType.MAINNET, | ||
name: 'apechain', | ||
title: 'APE Chain', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.APECHAIN}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'APE Chain Explorer', | ||
rootUrl: 'https://apechain.calderaexplorer.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'APE', | ||
name: 'ApeCoin', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.APECHAIN_TESTNET]: { | ||
@@ -786,2 +797,19 @@ chainId: ChainId.APECHAIN_TESTNET, | ||
}, | ||
[ChainId.SKALE_NEBULA]: { | ||
chainId: ChainId.SKALE_NEBULA, | ||
type: NetworkType.MAINNET, | ||
name: 'skale-nebula', | ||
title: 'SKALE Nebula Gaming Hub', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.SKALE_NEBULA}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'SKALE Nebula Gaming Hub Explorer', | ||
rootUrl: 'https://green-giddy-denebola.explorer.mainnet.skalenodes.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'sFUEL', | ||
name: 'SKALE Fuel', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.SKALE_NEBULA_TESTNET]: { | ||
@@ -821,2 +849,87 @@ chainId: ChainId.SKALE_NEBULA_TESTNET, | ||
}, | ||
[ChainId.TOY_TESTNET]: { | ||
chainId: ChainId.TOY_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'toy-testnet', | ||
title: 'TOY (Testnet)', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.TOY_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'TOY Testnet Explorer', | ||
rootUrl: 'https://toy-chain-testnet.explorer.caldera.xyz/' | ||
}, | ||
nativeToken: { | ||
symbol: 'TOY', | ||
name: 'TOY', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM, | ||
type: NetworkType.MAINNET, | ||
name: 'immutable-zkevm', | ||
title: 'Immutable zkEVM', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Explorer', | ||
rootUrl: 'https://explorer.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.IMMUTABLE_ZKEVM_TESTNET]: { | ||
chainId: ChainId.IMMUTABLE_ZKEVM_TESTNET, | ||
type: NetworkType.TESTNET, | ||
name: 'immutable-zkevm-testnet', | ||
title: 'Immutable zkEVM Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.IMMUTABLE_ZKEVM_TESTNET}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'Immutable zkEVM Testnet Explorer', | ||
rootUrl: 'https://explorer.testnet.immutable.com/' | ||
}, | ||
nativeToken: { | ||
symbol: 'IMX', | ||
name: 'IMX', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK]: { | ||
chainId: ChainId.ROOT_NETWORK, | ||
type: NetworkType.MAINNET, | ||
name: 'rootnet', | ||
title: 'The Root Network', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK}.webp`, | ||
testnet: false, | ||
blockExplorer: { | ||
name: 'The Root Network Explorer', | ||
rootUrl: 'https://rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.ROOT_NETWORK_PORCINI]: { | ||
chainId: ChainId.ROOT_NETWORK_PORCINI, | ||
type: NetworkType.TESTNET, | ||
name: 'rootnet-porcini', | ||
title: 'The Root Network Porcini Testnet', | ||
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.ROOT_NETWORK_PORCINI}.webp`, | ||
testnet: true, | ||
blockExplorer: { | ||
name: 'The Root Network Porcini Testnet Explorer', | ||
rootUrl: 'https://porcini.rootscan.io/' | ||
}, | ||
nativeToken: { | ||
symbol: 'XRP', | ||
name: 'XRP', | ||
decimals: 18 | ||
} | ||
}, | ||
[ChainId.HARDHAT]: { | ||
@@ -823,0 +936,0 @@ chainId: ChainId.HARDHAT, |
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
264527
7465
+ Added@0xsequence/abi@0.0.0-20241107182529(transitive)
+ Added@0xsequence/core@0.0.0-20241107182529(transitive)
+ Added@0xsequence/indexer@0.0.0-20241107182529(transitive)
+ Added@0xsequence/relayer@0.0.0-20241107182529(transitive)
+ Added@0xsequence/utils@0.0.0-20241107182529(transitive)
- Removed@0xsequence/abi@0.0.0-20241007154931(transitive)
- Removed@0xsequence/core@0.0.0-20241007154931(transitive)
- Removed@0xsequence/indexer@0.0.0-20241007154931(transitive)
- Removed@0xsequence/relayer@0.0.0-20241007154931(transitive)
- Removed@0xsequence/utils@0.0.0-20241007154931(transitive)