@0xtorch/evm 0.0.137 → 0.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/_cjs/chain/definitions/arbitrumOne.js +2 -2
  2. package/_cjs/chain/definitions/arbitrumOne.js.map +1 -1
  3. package/_cjs/chain/definitions/avalancheC.js +2 -2
  4. package/_cjs/chain/definitions/avalancheC.js.map +1 -1
  5. package/_cjs/chain/definitions/base.js +2 -2
  6. package/_cjs/chain/definitions/base.js.map +1 -1
  7. package/_cjs/chain/definitions/berachain.js +2 -2
  8. package/_cjs/chain/definitions/berachain.js.map +1 -1
  9. package/_cjs/chain/definitions/blast.js +3 -3
  10. package/_cjs/chain/definitions/blast.js.map +1 -1
  11. package/_cjs/chain/definitions/bsc.js +2 -2
  12. package/_cjs/chain/definitions/bsc.js.map +1 -1
  13. package/_cjs/chain/definitions/linea.js +2 -2
  14. package/_cjs/chain/definitions/linea.js.map +1 -1
  15. package/_cjs/chain/definitions/mantle.js +2 -2
  16. package/_cjs/chain/definitions/mantle.js.map +1 -1
  17. package/_cjs/chain/definitions/moonbeam.js +2 -2
  18. package/_cjs/chain/definitions/moonbeam.js.map +1 -1
  19. package/_cjs/chain/definitions/moonriver.js +2 -2
  20. package/_cjs/chain/definitions/moonriver.js.map +1 -1
  21. package/_cjs/chain/definitions/opBnb.js +2 -2
  22. package/_cjs/chain/definitions/opBnb.js.map +1 -1
  23. package/_cjs/chain/definitions/optimism.js +2 -2
  24. package/_cjs/chain/definitions/optimism.js.map +1 -1
  25. package/_cjs/chain/definitions/polygonPos.js +2 -2
  26. package/_cjs/chain/definitions/polygonPos.js.map +1 -1
  27. package/_cjs/chain/definitions/polygonZkEvm.js +2 -2
  28. package/_cjs/chain/definitions/polygonZkEvm.js.map +1 -1
  29. package/_cjs/chain/definitions/scroll.js +2 -2
  30. package/_cjs/chain/definitions/scroll.js.map +1 -1
  31. package/_cjs/chain/definitions/sonic.js +2 -2
  32. package/_cjs/chain/definitions/sonic.js.map +1 -1
  33. package/_cjs/chain/definitions/taiko.js +2 -2
  34. package/_cjs/chain/definitions/taiko.js.map +1 -1
  35. package/_cjs/chain/definitions/unichain.js +2 -2
  36. package/_cjs/chain/definitions/unichain.js.map +1 -1
  37. package/_cjs/chain/definitions/zkSyncEra.js +2 -2
  38. package/_cjs/chain/definitions/zkSyncEra.js.map +1 -1
  39. package/_esm/chain/definitions/arbitrumOne.js +3 -3
  40. package/_esm/chain/definitions/arbitrumOne.js.map +1 -1
  41. package/_esm/chain/definitions/avalancheC.js +3 -3
  42. package/_esm/chain/definitions/avalancheC.js.map +1 -1
  43. package/_esm/chain/definitions/base.js +3 -3
  44. package/_esm/chain/definitions/base.js.map +1 -1
  45. package/_esm/chain/definitions/berachain.js +3 -3
  46. package/_esm/chain/definitions/berachain.js.map +1 -1
  47. package/_esm/chain/definitions/blast.js +4 -4
  48. package/_esm/chain/definitions/blast.js.map +1 -1
  49. package/_esm/chain/definitions/bsc.js +3 -3
  50. package/_esm/chain/definitions/bsc.js.map +1 -1
  51. package/_esm/chain/definitions/linea.js +3 -3
  52. package/_esm/chain/definitions/linea.js.map +1 -1
  53. package/_esm/chain/definitions/mantle.js +3 -3
  54. package/_esm/chain/definitions/mantle.js.map +1 -1
  55. package/_esm/chain/definitions/moonbeam.js +3 -3
  56. package/_esm/chain/definitions/moonbeam.js.map +1 -1
  57. package/_esm/chain/definitions/moonriver.js +3 -3
  58. package/_esm/chain/definitions/moonriver.js.map +1 -1
  59. package/_esm/chain/definitions/opBnb.js +3 -3
  60. package/_esm/chain/definitions/opBnb.js.map +1 -1
  61. package/_esm/chain/definitions/optimism.js +3 -3
  62. package/_esm/chain/definitions/optimism.js.map +1 -1
  63. package/_esm/chain/definitions/polygonPos.js +3 -3
  64. package/_esm/chain/definitions/polygonPos.js.map +1 -1
  65. package/_esm/chain/definitions/polygonZkEvm.js +3 -3
  66. package/_esm/chain/definitions/polygonZkEvm.js.map +1 -1
  67. package/_esm/chain/definitions/scroll.js +3 -3
  68. package/_esm/chain/definitions/scroll.js.map +1 -1
  69. package/_esm/chain/definitions/sonic.js +3 -3
  70. package/_esm/chain/definitions/sonic.js.map +1 -1
  71. package/_esm/chain/definitions/taiko.js +3 -3
  72. package/_esm/chain/definitions/taiko.js.map +1 -1
  73. package/_esm/chain/definitions/unichain.js +3 -3
  74. package/_esm/chain/definitions/unichain.js.map +1 -1
  75. package/_esm/chain/definitions/zkSyncEra.js +3 -3
  76. package/_esm/chain/definitions/zkSyncEra.js.map +1 -1
  77. package/_types/chain/definitions/mantle.d.ts.map +1 -1
  78. package/chain/definitions/arbitrumOne.ts +3 -3
  79. package/chain/definitions/avalancheC.ts +3 -3
  80. package/chain/definitions/base.ts +3 -3
  81. package/chain/definitions/berachain.ts +3 -3
  82. package/chain/definitions/blast.ts +4 -4
  83. package/chain/definitions/bsc.ts +3 -3
  84. package/chain/definitions/linea.ts +3 -3
  85. package/chain/definitions/mantle.ts +3 -3
  86. package/chain/definitions/moonbeam.ts +3 -3
  87. package/chain/definitions/moonriver.ts +3 -3
  88. package/chain/definitions/opBnb.ts +3 -3
  89. package/chain/definitions/optimism.ts +3 -3
  90. package/chain/definitions/polygonPos.ts +3 -3
  91. package/chain/definitions/polygonZkEvm.ts +3 -3
  92. package/chain/definitions/scroll.ts +3 -3
  93. package/chain/definitions/sonic.ts +3 -3
  94. package/chain/definitions/taiko.ts +3 -3
  95. package/chain/definitions/unichain.ts +3 -3
  96. package/chain/definitions/zkSyncEra.ts +3 -3
  97. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { arbitrum } from 'viem/chains'
3
3
  import type { Client } from '../../client'
4
4
  import { createClient } from '../../client'
5
5
  import type { Explorer } from '../../explorer'
6
- import { createEtherscan } from '../../explorer'
6
+ import { createEtherscanV2 } from '../../explorer'
7
7
  import type { Chain } from '../types/chain'
8
8
  import type { HttpRpc } from '../types/rpc'
9
9
 
@@ -18,10 +18,10 @@ export const createArbitrumOneChain = ({
18
18
  }): Chain =>
19
19
  createArbitrumOneChainCustom({
20
20
  client: createClient({ chain: arbitrum, httpRpcs: arbitrumOneHttpRpcs }),
21
- explorer: createEtherscan({
21
+ explorer: createEtherscanV2({
22
22
  name: 'ArbiScan',
23
23
  baseUrl: 'https://arbiscan.io',
24
- apiBaseUrl: 'https://api.arbiscan.io/api',
24
+ chainId: 42_161,
25
25
  apiKey,
26
26
  proxyUrl,
27
27
  pageSize,
@@ -2,7 +2,7 @@ import { avalanche } from '@0xtorch/core'
2
2
  import { avalanche as viemAvalanche } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createAvalancheCChain = ({
20
20
  chain: viemAvalanche,
21
21
  httpRpcs: avalancheCHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'Snowscan',
25
25
  baseUrl: 'https://snowscan.xyz',
26
- apiBaseUrl: 'https://api.snowscan.xyz/api',
26
+ chainId: 43_114,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { base } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createBaseChain = ({
20
20
  chain: base,
21
21
  httpRpcs: baseHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'BaseScan',
25
25
  baseUrl: 'https://basescan.org',
26
- apiBaseUrl: 'https://api.basescan.org/api',
26
+ chainId: 8453,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { berachain as bera } from '@0xtorch/core'
2
2
  import { berachain } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createBerachain = ({
20
20
  chain: berachain,
21
21
  httpRpcs: berachainHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'BeraScan',
25
25
  baseUrl: 'https://berascan.com',
26
- apiBaseUrl: 'https://api.berascan.com/api',
26
+ chainId: 80_094,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { blast } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createBlastChain = ({
20
20
  chain: blast,
21
21
  httpRpcs: blastHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'BlastScan',
25
25
  baseUrl: 'https://blastscan.io',
26
- apiBaseUrl: 'https://api.blastscan.io/api',
26
+ chainId: 81_457,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -39,7 +39,7 @@ export const createBlastChainCustom = ({
39
39
  client,
40
40
  explorer,
41
41
  }: CreateBlastChainParameters): Chain => ({
42
- id: 81457,
42
+ id: 81_457,
43
43
  network: 'blast',
44
44
  name: 'Blast',
45
45
  nativeToken: {
@@ -2,7 +2,7 @@ import { bnb } from '@0xtorch/core'
2
2
  import { bsc } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createBscChain = ({
20
20
  chain: bsc,
21
21
  httpRpcs: bscHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'BscScan',
25
25
  baseUrl: 'https://bscscan.com',
26
- apiBaseUrl: 'https://api.bscscan.com/api',
26
+ chainId: 56,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { linea } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createLineaChain = ({
20
20
  chain: linea,
21
21
  httpRpcs: lineaHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'LineaScan',
25
25
  baseUrl: 'https://lineascan.build',
26
- apiBaseUrl: 'https://api.lineascan.build/api',
26
+ chainId: 59_144,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -1,7 +1,7 @@
1
1
  import { mantle } from '@0xtorch/core'
2
2
  import { mantle as viemMantle } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
- import { type Explorer, createEtherscan } from '../../explorer'
4
+ import { type Explorer, createEtherscanV2 } from '../../explorer'
5
5
  import type { Chain } from '../types/chain'
6
6
  import type { HttpRpc } from '../types/rpc'
7
7
 
@@ -19,10 +19,10 @@ export const createMantleChain = ({
19
19
  chain: viemMantle,
20
20
  httpRpcs: mantleHttpRpcs,
21
21
  }),
22
- explorer: createEtherscan({
22
+ explorer: createEtherscanV2({
23
23
  name: 'Mantlescan',
24
24
  baseUrl: 'https://mantlescan.xyz',
25
- apiBaseUrl: 'https://api.mantlescan.xyz/api',
25
+ chainId: 5000,
26
26
  apiKey,
27
27
  proxyUrl,
28
28
  pageSize,
@@ -2,7 +2,7 @@ import { moonbeam } from '@0xtorch/core'
2
2
  import { moonbeam as viemMoonbeam } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createMoonbeamChain = ({
20
20
  chain: viemMoonbeam,
21
21
  httpRpcs: moonbeamHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'MoonScan',
25
25
  baseUrl: 'https://moonbeam.moonscan.io',
26
- apiBaseUrl: 'https://api-moonbeam.moonscan.io/api',
26
+ chainId: 1284,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { moonriver } from '@0xtorch/core'
2
2
  import { moonriver as viemMoonriver } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createMoonriverChain = ({
20
20
  chain: viemMoonriver,
21
21
  httpRpcs: moonriverHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'MoonScan',
25
25
  baseUrl: 'https://moonriver.moonscan.io',
26
- apiBaseUrl: 'https://api-moonriver.moonscan.io/api',
26
+ chainId: 1285,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { bnb } from '@0xtorch/core'
2
2
  import { opBNB } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createOpBnbChain = ({
20
20
  chain: opBNB,
21
21
  httpRpcs: opBnbHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'opBNB Mainnet Explorer',
25
25
  baseUrl: 'https://opbnb.bscscan.com',
26
- apiBaseUrl: 'https://api-opbnb.bscscan.com/api',
26
+ chainId: 204,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { optimism } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createOptimismChain = ({
20
20
  chain: optimism,
21
21
  httpRpcs: optimismHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'OP Mainnet Explorer',
25
25
  baseUrl: 'https://optimistic.etherscan.io',
26
- apiBaseUrl: 'https://api-optimistic.etherscan.io/api',
26
+ chainId: 10,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { pol } from '@0xtorch/core'
2
2
  import { polygon } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createPolygonPosChain = ({
20
20
  chain: polygon,
21
21
  httpRpcs: polygonPosHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'PolygonScan',
25
25
  baseUrl: 'https://polygonscan.com',
26
- apiBaseUrl: 'https://api.polygonscan.com/api',
26
+ chainId: 137,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { polygonZkEvm } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createPolygonZkEvmChain = ({
20
20
  chain: polygonZkEvm,
21
21
  httpRpcs: polygonZkEvmHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'PolygonScan',
25
25
  baseUrl: 'https://zkevm.polygonscan.com',
26
- apiBaseUrl: 'https://api-zkevm.polygonscan.com/api',
26
+ chainId: 1101,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { scroll } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createScrollChain = ({
20
20
  chain: scroll,
21
21
  httpRpcs: scrollHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'Scrollscan',
25
25
  baseUrl: 'https://scrollscan.com',
26
- apiBaseUrl: 'https://api.scrollscan.com/api',
26
+ chainId: 534_352,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -1,6 +1,6 @@
1
1
  import { type Client, createClient } from '../../client'
2
2
  import type { Explorer } from '../../explorer'
3
- import { createEtherscan } from '../../explorer'
3
+ import { createEtherscanV2 } from '../../explorer'
4
4
  import type { Chain } from '../types/chain'
5
5
  import type { HttpRpc } from '../types/rpc'
6
6
  import { sonic } from '../viemChains/sonic'
@@ -19,10 +19,10 @@ export const createSonicChain = ({
19
19
  chain: sonic,
20
20
  httpRpcs: sonicHttpRpcs,
21
21
  }),
22
- explorer: createEtherscan({
22
+ explorer: createEtherscanV2({
23
23
  name: 'SonicScan',
24
24
  baseUrl: 'https://sonicscan.org',
25
- apiBaseUrl: 'https://api.sonicscan.org/api',
25
+ chainId: 146,
26
26
  apiKey,
27
27
  proxyUrl,
28
28
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { taiko } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createTaikoChain = ({
20
20
  chain: taiko,
21
21
  httpRpcs: taikoHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'Taiko Mainnet Explorer',
25
25
  baseUrl: 'https://taikoscan.io',
26
- apiBaseUrl: 'https://api.taikoscan.io/api',
26
+ chainId: 167_000,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { unichain } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createUnichain = ({
20
20
  chain: unichain,
21
21
  httpRpcs: unichainHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'Uniscan',
25
25
  baseUrl: 'https://uniscan.xyz',
26
- apiBaseUrl: 'https://api.uniscan.xyz/api',
26
+ chainId: 130,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
@@ -2,7 +2,7 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { zksync } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscan } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
@@ -20,10 +20,10 @@ export const createZkSyncEraChain = ({
20
20
  chain: zksync,
21
21
  httpRpcs: zksyncEraHttpRpcs,
22
22
  }),
23
- explorer: createEtherscan({
23
+ explorer: createEtherscanV2({
24
24
  name: 'zkSync Era Explorer',
25
25
  baseUrl: 'https://era.zksync.network',
26
- apiBaseUrl: 'https://api-era.zksync.network/api',
26
+ chainId: 324,
27
27
  apiKey,
28
28
  proxyUrl,
29
29
  pageSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/evm",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "description": "Cryptorch EVM extension",
5
5
  "keywords": [
6
6
  "cryptorch",