viem 2.21.40 → 2.21.42
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +26 -0
- package/README.md +6 -0
- package/_cjs/actions/wallet/sendTransaction.js +15 -2
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/chains/definitions/acria.js +26 -0
- package/_cjs/chains/definitions/acria.js.map +1 -0
- package/_cjs/chains/definitions/aioz.js +26 -0
- package/_cjs/chains/definitions/aioz.js.map +1 -0
- package/_cjs/chains/definitions/diode.js +27 -0
- package/_cjs/chains/definitions/diode.js.map +1 -0
- package/_cjs/chains/definitions/enuls.js +24 -0
- package/_cjs/chains/definitions/enuls.js.map +1 -0
- package/_cjs/chains/definitions/polygonAmoy.js +1 -1
- package/_cjs/chains/definitions/polygonAmoy.js.map +1 -1
- package/_cjs/chains/definitions/sepolia.js +1 -1
- package/_cjs/chains/definitions/soneiumMinato.js +3 -3
- package/_cjs/chains/definitions/soneiumMinato.js.map +1 -1
- package/_cjs/chains/definitions/sophon.js +35 -0
- package/_cjs/chains/definitions/sophon.js.map +1 -0
- package/_cjs/chains/definitions/unichainSepolia.js +1 -1
- package/_cjs/chains/definitions/unichainSepolia.js.map +1 -1
- package/_cjs/chains/index.js +19 -9
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/wallet/sendTransaction.js +15 -2
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/chains/definitions/acria.js +23 -0
- package/_esm/chains/definitions/acria.js.map +1 -0
- package/_esm/chains/definitions/aioz.js +23 -0
- package/_esm/chains/definitions/aioz.js.map +1 -0
- package/_esm/chains/definitions/diode.js +24 -0
- package/_esm/chains/definitions/diode.js.map +1 -0
- package/_esm/chains/definitions/enuls.js +21 -0
- package/_esm/chains/definitions/enuls.js.map +1 -0
- package/_esm/chains/definitions/polygonAmoy.js +1 -1
- package/_esm/chains/definitions/polygonAmoy.js.map +1 -1
- package/_esm/chains/definitions/sepolia.js +1 -1
- package/_esm/chains/definitions/soneiumMinato.js +3 -3
- package/_esm/chains/definitions/soneiumMinato.js.map +1 -1
- package/_esm/chains/definitions/sophon.js +32 -0
- package/_esm/chains/definitions/sophon.js.map +1 -0
- package/_esm/chains/definitions/unichainSepolia.js +1 -1
- package/_esm/chains/definitions/unichainSepolia.js.map +1 -1
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/chains/definitions/acria.d.ts +37 -0
- package/_types/chains/definitions/acria.d.ts.map +1 -0
- package/_types/chains/definitions/aioz.d.ts +37 -0
- package/_types/chains/definitions/aioz.d.ts.map +1 -0
- package/_types/chains/definitions/diode.d.ts +38 -0
- package/_types/chains/definitions/diode.d.ts.map +1 -0
- package/_types/chains/definitions/enuls.d.ts +37 -0
- package/_types/chains/definitions/enuls.d.ts.map +1 -0
- package/_types/chains/definitions/polygonAmoy.d.ts +2 -2
- package/_types/chains/definitions/sepolia.d.ts +1 -1
- package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
- package/_types/chains/definitions/sophon.d.ts +405 -0
- package/_types/chains/definitions/sophon.d.ts.map +1 -0
- package/_types/chains/definitions/unichainSepolia.d.ts +1 -1
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/wallet/sendTransaction.ts +19 -2
- package/chains/definitions/acria.ts +23 -0
- package/chains/definitions/aioz.ts +23 -0
- package/chains/definitions/diode.ts +24 -0
- package/chains/definitions/enuls.ts +21 -0
- package/chains/definitions/polygonAmoy.ts +1 -1
- package/chains/definitions/sepolia.ts +1 -1
- package/chains/definitions/soneiumMinato.ts +3 -3
- package/chains/definitions/sophon.ts +32 -0
- package/chains/definitions/unichainSepolia.ts +1 -1
- package/chains/index.ts +5 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const diode = /*#__PURE__*/ defineChain({
|
4
|
+
id: 15,
|
5
|
+
name: 'Diode Prenet',
|
6
|
+
nativeCurrency: {
|
7
|
+
decimals: 18,
|
8
|
+
name: 'DIODE',
|
9
|
+
symbol: 'DIODE',
|
10
|
+
},
|
11
|
+
rpcUrls: {
|
12
|
+
default: {
|
13
|
+
http: ['https://prenet.diode.io:8443'],
|
14
|
+
webSocket: ['wss://prenet.diode.io:8443/ws'],
|
15
|
+
},
|
16
|
+
},
|
17
|
+
blockExplorers: {
|
18
|
+
default: {
|
19
|
+
name: 'Diode Explorer',
|
20
|
+
url: 'https://diode.io/prenet',
|
21
|
+
},
|
22
|
+
},
|
23
|
+
testnet: false,
|
24
|
+
})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const enuls = /*#__PURE__*/ defineChain({
|
4
|
+
id: 119,
|
5
|
+
name: 'ENULS Mainnet',
|
6
|
+
nativeCurrency: {
|
7
|
+
decimals: 18,
|
8
|
+
name: 'NULS',
|
9
|
+
symbol: 'NULS',
|
10
|
+
},
|
11
|
+
rpcUrls: {
|
12
|
+
default: { http: ['https://evmapi2.nuls.io'] },
|
13
|
+
},
|
14
|
+
blockExplorers: {
|
15
|
+
default: {
|
16
|
+
name: 'ENULS Explorer',
|
17
|
+
url: 'https://evmscan.nuls.io',
|
18
|
+
},
|
19
|
+
},
|
20
|
+
testnet: false,
|
21
|
+
})
|
@@ -3,7 +3,7 @@ import { defineChain } from '../../utils/chain/defineChain.js'
|
|
3
3
|
export const polygonAmoy = /*#__PURE__*/ defineChain({
|
4
4
|
id: 80_002,
|
5
5
|
name: 'Polygon Amoy',
|
6
|
-
nativeCurrency: { name: '
|
6
|
+
nativeCurrency: { name: 'POL', symbol: 'POL', decimals: 18 },
|
7
7
|
rpcUrls: {
|
8
8
|
default: {
|
9
9
|
http: ['https://rpc-amoy.polygon.technology'],
|
@@ -16,15 +16,15 @@ export const soneiumMinato = /*#__PURE__*/ defineChain({
|
|
16
16
|
blockExplorers: {
|
17
17
|
default: {
|
18
18
|
name: 'Blockscout',
|
19
|
-
url: 'https://
|
20
|
-
apiUrl: 'https://
|
19
|
+
url: 'https://soneium-minato.blockscout.com',
|
20
|
+
apiUrl: 'https://soneium-minato.blockscout.com/api',
|
21
21
|
},
|
22
22
|
},
|
23
23
|
contracts: {
|
24
24
|
...chainConfig.contracts,
|
25
25
|
disputeGameFactory: {
|
26
26
|
[sourceId]: {
|
27
|
-
address: '
|
27
|
+
address: '0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01',
|
28
28
|
},
|
29
29
|
},
|
30
30
|
l2OutputOracle: {
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
import { chainConfig } from '../../zksync/chainConfig.js'
|
3
|
+
|
4
|
+
export const sophon = /*#__PURE__*/ defineChain({
|
5
|
+
...chainConfig,
|
6
|
+
id: 50104,
|
7
|
+
name: 'Sophon',
|
8
|
+
nativeCurrency: {
|
9
|
+
decimals: 18,
|
10
|
+
name: 'Sophon',
|
11
|
+
symbol: 'SOPH',
|
12
|
+
},
|
13
|
+
rpcUrls: {
|
14
|
+
default: {
|
15
|
+
http: ['https://rpc.sophon.xyz'],
|
16
|
+
webSocket: ['wss://rpc.sophon.xyz/ws'],
|
17
|
+
},
|
18
|
+
},
|
19
|
+
blockExplorers: {
|
20
|
+
default: {
|
21
|
+
name: 'Sophon Block Explorer',
|
22
|
+
url: 'https://explorer.sophon.xyz',
|
23
|
+
},
|
24
|
+
},
|
25
|
+
contracts: {
|
26
|
+
multicall3: {
|
27
|
+
address: '0x5f4867441d2416cA88B1b3fd38f21811680CD2C8',
|
28
|
+
blockCreated: 116,
|
29
|
+
},
|
30
|
+
},
|
31
|
+
testnet: false,
|
32
|
+
})
|
package/chains/index.ts
CHANGED
@@ -3,6 +3,8 @@ export type { Chain } from '../types/chain.js'
|
|
3
3
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
4
4
|
export { abstractTestnet } from './definitions/abstractTestnet.js'
|
5
5
|
export { acala } from './definitions/acala.js'
|
6
|
+
export { acria } from './definitions/acria.js'
|
7
|
+
export { aioz } from './definitions/aioz.js'
|
6
8
|
export { alienx } from './definitions/alienX.js'
|
7
9
|
export { alienxHalTestnet } from './definitions/alienXHalTestnet.js'
|
8
10
|
export { ancient8 } from './definitions/ancient8.js'
|
@@ -96,6 +98,7 @@ export { defichainEvm } from './definitions/defichainEvm.js'
|
|
96
98
|
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
|
97
99
|
export { degen } from './definitions/degen.js'
|
98
100
|
export { dfk } from './definitions/dfk.js'
|
101
|
+
export { diode } from './definitions/diode.js'
|
99
102
|
export { dodochainTestnet } from './definitions/dodochainTestnet.js'
|
100
103
|
export { dogechain } from './definitions/dogechain.js'
|
101
104
|
export { dosChain } from './definitions/dosChain.js'
|
@@ -115,6 +118,7 @@ export { elastosTestnet } from './definitions/elastosTestnet.js'
|
|
115
118
|
export { electroneum } from './definitions/electroneum.js'
|
116
119
|
export { electroneumTestnet } from './definitions/electroneumTestnet.js'
|
117
120
|
export { elysiumTestnet } from './definitions/elysiumTestnet.js'
|
121
|
+
export { enuls } from './definitions/enuls.js'
|
118
122
|
export { eon } from './definitions/eon.js'
|
119
123
|
export { eos } from './definitions/eos.js'
|
120
124
|
export { eosTestnet } from './definitions/eosTestnet.js'
|
@@ -351,6 +355,7 @@ export { snaxTestnet } from './definitions/snaxTestnet.js'
|
|
351
355
|
export { soneiumMinato } from './definitions/soneiumMinato.js'
|
352
356
|
export { songbird } from './definitions/songbird.js'
|
353
357
|
export { songbirdTestnet } from './definitions/songbirdTestnet.js'
|
358
|
+
export { sophon } from './definitions/sophon.js'
|
354
359
|
export { sophonTestnet } from './definitions/sophonTestnet.js'
|
355
360
|
export { spicy } from './definitions/spicy.js'
|
356
361
|
export { step } from './definitions/step.js'
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.21.
|
1
|
+
export const version = '2.21.42'
|