viem 2.22.10 → 2.22.12
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.
- package/CHANGELOG.md +24 -0
- package/_cjs/chains/definitions/bitlayer.js +6 -0
- package/_cjs/chains/definitions/bitlayer.js.map +1 -1
- package/_cjs/chains/definitions/bitlayerTestnet.js +6 -0
- package/_cjs/chains/definitions/bitlayerTestnet.js.map +1 -1
- package/_cjs/chains/definitions/creditCoin3Mainnet.js +24 -0
- package/_cjs/chains/definitions/creditCoin3Mainnet.js.map +1 -0
- package/_cjs/chains/definitions/creditCoin3Testnet.js +24 -0
- package/_cjs/chains/definitions/creditCoin3Testnet.js.map +1 -0
- package/_cjs/chains/definitions/lensTestnet.js +24 -0
- package/_cjs/chains/definitions/lensTestnet.js.map +1 -0
- package/_cjs/chains/definitions/reddioSepolia.js +23 -0
- package/_cjs/chains/definitions/reddioSepolia.js.map +1 -0
- package/_cjs/chains/definitions/rootstockTestnet.js +6 -0
- package/_cjs/chains/definitions/rootstockTestnet.js.map +1 -1
- package/_cjs/chains/definitions/swellchain.js +34 -0
- package/_cjs/chains/definitions/swellchain.js.map +1 -0
- package/_cjs/chains/definitions/ultraTestnet.js +24 -0
- package/_cjs/chains/definitions/ultraTestnet.js.map +1 -0
- package/_cjs/chains/index.js +22 -10
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/contract.js +7 -0
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/chains/definitions/bitlayer.js +6 -0
- package/_esm/chains/definitions/bitlayer.js.map +1 -1
- package/_esm/chains/definitions/bitlayerTestnet.js +6 -0
- package/_esm/chains/definitions/bitlayerTestnet.js.map +1 -1
- package/_esm/chains/definitions/creditCoin3Mainnet.js +21 -0
- package/_esm/chains/definitions/creditCoin3Mainnet.js.map +1 -0
- package/_esm/chains/definitions/creditCoin3Testnet.js +21 -0
- package/_esm/chains/definitions/creditCoin3Testnet.js.map +1 -0
- package/_esm/chains/definitions/lensTestnet.js +21 -0
- package/_esm/chains/definitions/lensTestnet.js.map +1 -0
- package/_esm/chains/definitions/reddioSepolia.js +20 -0
- package/_esm/chains/definitions/reddioSepolia.js.map +1 -0
- package/_esm/chains/definitions/rootstockTestnet.js +6 -0
- package/_esm/chains/definitions/rootstockTestnet.js.map +1 -1
- package/_esm/chains/definitions/swellchain.js +31 -0
- package/_esm/chains/definitions/swellchain.js.map +1 -0
- package/_esm/chains/definitions/ultraTestnet.js +21 -0
- package/_esm/chains/definitions/ultraTestnet.js.map +1 -0
- package/_esm/chains/index.js +6 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/contract.js +7 -0
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/definitions/bitlayer.d.ts +6 -10
- package/_types/chains/definitions/bitlayer.d.ts.map +1 -1
- package/_types/chains/definitions/bitlayerTestnet.d.ts +6 -10
- package/_types/chains/definitions/bitlayerTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/creditCoin3Mainnet.d.ts +39 -0
- package/_types/chains/definitions/creditCoin3Mainnet.d.ts.map +1 -0
- package/_types/chains/definitions/creditCoin3Testnet.d.ts +39 -0
- package/_types/chains/definitions/creditCoin3Testnet.d.ts.map +1 -0
- package/_types/chains/definitions/lensTestnet.d.ts +39 -0
- package/_types/chains/definitions/lensTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/reddioSepolia.d.ts +38 -0
- package/_types/chains/definitions/reddioSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/rootstockTestnet.d.ts +6 -10
- package/_types/chains/definitions/rootstockTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/swellchain.d.ts +284 -0
- package/_types/chains/definitions/swellchain.d.ts.map +1 -0
- package/_types/chains/definitions/ultraTestnet.d.ts +37 -0
- package/_types/chains/definitions/ultraTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +6 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/contract.d.ts +1 -0
- package/_types/errors/contract.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/chains/definitions/bitlayer.ts +6 -0
- package/chains/definitions/bitlayerTestnet.ts +6 -0
- package/chains/definitions/creditCoin3Mainnet.ts +21 -0
- package/chains/definitions/creditCoin3Testnet.ts +21 -0
- package/chains/definitions/lensTestnet.ts +21 -0
- package/chains/definitions/reddioSepolia.ts +20 -0
- package/chains/definitions/rootstockTestnet.ts +6 -0
- package/chains/definitions/swellchain.ts +31 -0
- package/chains/definitions/ultraTestnet.ts +21 -0
- package/chains/index.ts +6 -0
- package/errors/contract.ts +2 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,20 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const reddioSepolia = /*#__PURE__*/ defineChain({
|
4
|
+
id: 50341,
|
5
|
+
name: 'Reddio Sepolia',
|
6
|
+
nativeCurrency: { name: 'Reddio', symbol: 'RED', decimals: 18 },
|
7
|
+
rpcUrls: {
|
8
|
+
default: {
|
9
|
+
http: ['https://reddio-dev.reddio.com'],
|
10
|
+
},
|
11
|
+
},
|
12
|
+
blockExplorers: {
|
13
|
+
default: {
|
14
|
+
name: 'Reddioscan',
|
15
|
+
url: 'https://reddio-devnet.l2scan.co',
|
16
|
+
apiUrl: 'https://reddio-devnet.l2scan.co/api',
|
17
|
+
},
|
18
|
+
},
|
19
|
+
testnet: true,
|
20
|
+
})
|
@@ -18,5 +18,11 @@ export const rootstockTestnet = /*#__PURE__*/ defineChain({
|
|
18
18
|
url: 'https://explorer.testnet.rootstock.io',
|
19
19
|
},
|
20
20
|
},
|
21
|
+
contracts: {
|
22
|
+
multicall3: {
|
23
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
24
|
+
blockCreated: 2771150,
|
25
|
+
},
|
26
|
+
},
|
21
27
|
testnet: true,
|
22
28
|
})
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { chainConfig } from '../../op-stack/chainConfig.js'
|
2
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
3
|
+
|
4
|
+
export const swellchain = /*#__PURE__*/ defineChain({
|
5
|
+
...chainConfig,
|
6
|
+
id: 1923,
|
7
|
+
name: 'Swellchain',
|
8
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
9
|
+
rpcUrls: {
|
10
|
+
default: {
|
11
|
+
http: [
|
12
|
+
'https://swell-mainnet.alt.technology',
|
13
|
+
'https://rpc.ankr.com/swell',
|
14
|
+
],
|
15
|
+
},
|
16
|
+
},
|
17
|
+
blockExplorers: {
|
18
|
+
default: {
|
19
|
+
name: 'Swell Explorer',
|
20
|
+
url: 'https://explorer.swellnetwork.io',
|
21
|
+
apiUrl: 'https://explorer.swellnetwork.io/api',
|
22
|
+
},
|
23
|
+
},
|
24
|
+
contracts: {
|
25
|
+
...chainConfig.contracts,
|
26
|
+
multicall3: {
|
27
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
28
|
+
blockCreated: 1,
|
29
|
+
},
|
30
|
+
},
|
31
|
+
})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const ultraTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 18881,
|
5
|
+
name: 'Ultra EVM Testnet',
|
6
|
+
nativeCurrency: {
|
7
|
+
decimals: 18,
|
8
|
+
name: 'Ultra Token',
|
9
|
+
symbol: 'UOS',
|
10
|
+
},
|
11
|
+
rpcUrls: {
|
12
|
+
default: { http: ['https://evm.test.ultra.eosusa.io'] },
|
13
|
+
},
|
14
|
+
blockExplorers: {
|
15
|
+
default: {
|
16
|
+
name: 'Ultra EVM Testnet Explorer',
|
17
|
+
url: 'https://evmexplorer.testnet.ultra.io',
|
18
|
+
},
|
19
|
+
},
|
20
|
+
testnet: true,
|
21
|
+
})
|
package/chains/index.ts
CHANGED
@@ -97,6 +97,8 @@ export { corn } from './definitions/corn.js'
|
|
97
97
|
export { cornTestnet } from './definitions/cornTestnet.js'
|
98
98
|
export { crab } from './definitions/crab.js'
|
99
99
|
export { creatorTestnet } from './definitions/creatorTestnet.js'
|
100
|
+
export { creditCoin3Mainnet } from './definitions/creditCoin3Mainnet.js'
|
101
|
+
export { creditCoin3Testnet } from './definitions/creditCoin3Testnet.js'
|
100
102
|
export { cronos } from './definitions/cronos.js'
|
101
103
|
export { cronosTestnet } from './definitions/cronosTestnet.js'
|
102
104
|
export { cronoszkEVM } from './definitions/cronoszkEVM.js'
|
@@ -246,6 +248,7 @@ export { kromaSepolia } from './definitions/kromaSepolia.js'
|
|
246
248
|
export { l3x } from './definitions/l3x.js'
|
247
249
|
export { l3xTestnet } from './definitions/l3xTestnet.js'
|
248
250
|
export { lavita } from './definitions/lavita.js'
|
251
|
+
export { lensTestnet } from './definitions/lensTestnet.js'
|
249
252
|
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
|
250
253
|
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
|
251
254
|
export { linea } from './definitions/linea.js'
|
@@ -359,6 +362,7 @@ export { redbellyTestnet } from './definitions/redbellyTestnet.js'
|
|
359
362
|
export { redstone } from './definitions/redstone.js'
|
360
363
|
export { rei } from './definitions/rei.js'
|
361
364
|
export { reyaNetwork } from './definitions/reyaNetwork.js'
|
365
|
+
export { reddioSepolia } from './definitions/reddioSepolia.js'
|
362
366
|
export { rivalz } from './definitions/rivalz.js'
|
363
367
|
export { rollux } from './definitions/rollux.js'
|
364
368
|
export { rolluxTestnet } from './definitions/rolluxTestnet.js'
|
@@ -431,6 +435,7 @@ export { superseedSepolia } from './definitions/superseedSepolia.js'
|
|
431
435
|
export { swan } from './definitions/swan.js'
|
432
436
|
export { swanProximaTestnet } from './definitions/swanProximaTestnet.js'
|
433
437
|
export { swanSaturnTestnet } from './definitions/swanSaturnTestnet.js'
|
438
|
+
export { swellchain } from './definitions/swellchain.js'
|
434
439
|
export { swissdlt } from './definitions/swissdlt.js'
|
435
440
|
export { syscoin } from './definitions/syscoin.js'
|
436
441
|
export { syscoinTestnet } from './definitions/syscoinTestnet.js'
|
@@ -458,6 +463,7 @@ export { treasure } from './definitions/treasure.js'
|
|
458
463
|
export { treasureTopaz } from './definitions/treasureTopaz.js'
|
459
464
|
export { tron } from './definitions/tron.js'
|
460
465
|
export { ubiq } from './definitions/ubiq.js'
|
466
|
+
export { ultraTestnet } from './definitions/ultraTestnet.js'
|
461
467
|
export { ultron } from './definitions/ultron.js'
|
462
468
|
export { ultronTestnet } from './definitions/ultronTestnet.js'
|
463
469
|
export { unichainSepolia } from './definitions/unichainSepolia.js'
|
package/errors/contract.ts
CHANGED
@@ -170,6 +170,7 @@ export type ContractFunctionRevertedErrorType =
|
|
170
170
|
}
|
171
171
|
export class ContractFunctionRevertedError extends BaseError {
|
172
172
|
data?: DecodeErrorResultReturnType | undefined
|
173
|
+
raw?: Hex | undefined
|
173
174
|
reason?: string | undefined
|
174
175
|
signature?: Hex | undefined
|
175
176
|
|
@@ -252,6 +253,7 @@ export class ContractFunctionRevertedError extends BaseError {
|
|
252
253
|
)
|
253
254
|
|
254
255
|
this.data = decodedData
|
256
|
+
this.raw = data
|
255
257
|
this.reason = reason
|
256
258
|
this.signature = signature
|
257
259
|
}
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.22.
|
1
|
+
export const version = '2.22.12'
|