viem 2.22.11 → 2.22.13
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 +28 -0
- package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +23 -2
- package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
- 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/initVerse.js +30 -0
- package/_cjs/chains/definitions/initVerse.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/index.js +20 -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/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +23 -2
- package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +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/initVerse.js +27 -0
- package/_esm/chains/definitions/initVerse.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/index.js +5 -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/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts +1 -1
- package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +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/initVerse.d.ts +34 -0
- package/_types/chains/definitions/initVerse.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/index.d.ts +5 -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/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +17 -5
- 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/initVerse.ts +27 -0
- package/chains/definitions/lensTestnet.ts +21 -0
- package/chains/definitions/reddioSepolia.ts +20 -0
- package/chains/definitions/rootstockTestnet.ts +6 -0
- package/chains/index.ts +5 -0
- package/errors/contract.ts +2 -0
- package/errors/version.ts +1 -1
- package/package.json +7 -7
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const initVerse = /*#__PURE__*/ defineChain({
|
4
|
+
id: 7_233,
|
5
|
+
name: 'InitVerse Mainnet',
|
6
|
+
nativeCurrency: {
|
7
|
+
decimals: 18,
|
8
|
+
name: 'InitVerse',
|
9
|
+
symbol: 'INI',
|
10
|
+
},
|
11
|
+
rpcUrls: {
|
12
|
+
default: { http: ['https://rpc-mainnet.inichain.com'] },
|
13
|
+
},
|
14
|
+
blockExplorers: {
|
15
|
+
default: {
|
16
|
+
name: 'InitVerseScan',
|
17
|
+
url: 'https://www.iniscan.com',
|
18
|
+
apiUrl: 'https://explorer-api.inichain.com/api',
|
19
|
+
},
|
20
|
+
},
|
21
|
+
contracts: {
|
22
|
+
multicall3: {
|
23
|
+
address: '0x83466BE48A067115FFF91f7b892Ed1726d032e47',
|
24
|
+
blockCreated: 2318,
|
25
|
+
},
|
26
|
+
},
|
27
|
+
})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const lensTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 37_111,
|
5
|
+
name: 'Lens Testnet',
|
6
|
+
nativeCurrency: { name: 'GRASS', symbol: 'GRASS', decimals: 18 },
|
7
|
+
rpcUrls: {
|
8
|
+
default: {
|
9
|
+
http: ['https://rpc.testnet.lens.dev'],
|
10
|
+
webSocket: ['wss://rpc.testnet.lens.dev/ws'],
|
11
|
+
},
|
12
|
+
},
|
13
|
+
blockExplorers: {
|
14
|
+
default: {
|
15
|
+
name: 'Lens Block Explorer',
|
16
|
+
url: 'https://block-explorer.testnet.lens.dev',
|
17
|
+
apiUrl: 'https://block-explorer-api.staging.lens.dev/api',
|
18
|
+
},
|
19
|
+
},
|
20
|
+
testnet: true,
|
21
|
+
})
|
@@ -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
|
})
|
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'
|
@@ -215,6 +217,7 @@ export { idchain } from './definitions/idchain.js'
|
|
215
217
|
export { immutableZkEvm } from './definitions/immutableZkEvm.js'
|
216
218
|
export { immutableZkEvmTestnet } from './definitions/immutableZkEvmTestnet.js'
|
217
219
|
export { inEVM } from './definitions/inEVM.js'
|
220
|
+
export { initVerse } from './definitions/initVerse.js'
|
218
221
|
export { initVerseGenesis } from './definitions/initVerseGenesis.js'
|
219
222
|
export { ink } from './definitions/ink.js'
|
220
223
|
export { inkSepolia } from './definitions/inkSepolia.js'
|
@@ -246,6 +249,7 @@ export { kromaSepolia } from './definitions/kromaSepolia.js'
|
|
246
249
|
export { l3x } from './definitions/l3x.js'
|
247
250
|
export { l3xTestnet } from './definitions/l3xTestnet.js'
|
248
251
|
export { lavita } from './definitions/lavita.js'
|
252
|
+
export { lensTestnet } from './definitions/lensTestnet.js'
|
249
253
|
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
|
250
254
|
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
|
251
255
|
export { linea } from './definitions/linea.js'
|
@@ -359,6 +363,7 @@ export { redbellyTestnet } from './definitions/redbellyTestnet.js'
|
|
359
363
|
export { redstone } from './definitions/redstone.js'
|
360
364
|
export { rei } from './definitions/rei.js'
|
361
365
|
export { reyaNetwork } from './definitions/reyaNetwork.js'
|
366
|
+
export { reddioSepolia } from './definitions/reddioSepolia.js'
|
362
367
|
export { rivalz } from './definitions/rivalz.js'
|
363
368
|
export { rollux } from './definitions/rollux.js'
|
364
369
|
export { rolluxTestnet } from './definitions/rolluxTestnet.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.13'
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "viem",
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
4
|
-
"version": "2.22.
|
4
|
+
"version": "2.22.13",
|
5
5
|
"main": "./_cjs/index.js",
|
6
6
|
"module": "./_esm/index.js",
|
7
7
|
"types": "./_types/index.d.ts",
|
@@ -174,13 +174,13 @@
|
|
174
174
|
}
|
175
175
|
},
|
176
176
|
"dependencies": {
|
177
|
-
"@noble/curves": "1.
|
178
|
-
"@noble/hashes": "1.
|
179
|
-
"@scure/bip32": "1.6.
|
180
|
-
"@scure/bip39": "1.5.
|
181
|
-
"abitype": "1.0.
|
177
|
+
"@noble/curves": "1.8.1",
|
178
|
+
"@noble/hashes": "1.7.1",
|
179
|
+
"@scure/bip32": "1.6.2",
|
180
|
+
"@scure/bip39": "1.5.4",
|
181
|
+
"abitype": "1.0.8",
|
182
182
|
"isows": "1.0.6",
|
183
|
-
"ox": "0.6.
|
183
|
+
"ox": "0.6.7",
|
184
184
|
"ws": "8.18.0"
|
185
185
|
},
|
186
186
|
"license": "MIT",
|