viem 1.20.1 → 1.20.3
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 +16 -0
- package/README.md +9 -3
- package/_cjs/actions/index.js +4 -2
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +0 -10
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/definitions/taikoJolnir.js +3 -3
- package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +38 -0
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_cjs/chains/index.js +3 -1
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/utils/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/index.js +1 -0
- package/_esm/actions/index.js.map +1 -1
- package/_esm/chains/celo/formatters.js +0 -10
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/definitions/taikoJolnir.js +3 -3
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +35 -0
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/utils/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/index.d.ts +1 -0
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +1 -24
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +2 -14
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +0 -23
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +0 -23
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +0 -23
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/taikoJolnir.d.ts +3 -3
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +527 -0
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts +1 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/utils/index.d.ts +1 -1
- package/_types/chains/utils/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/index.ts +5 -0
- package/chains/celo/formatters.ts +0 -14
- package/chains/celo/types.ts +0 -18
- package/chains/definitions/taikoJolnir.ts +3 -3
- package/chains/definitions/zkSyncSepoliaTestnet.ts +38 -0
- package/chains/definitions/zkSyncTestnet.ts +1 -0
- package/chains/index.ts +1 -0
- package/chains/utils/index.ts +0 -4
- package/errors/version.ts +1 -1
- package/package.json +1 -1
package/chains/celo/types.ts
CHANGED
@@ -8,7 +8,6 @@ import type {
|
|
8
8
|
Quantity,
|
9
9
|
RpcBlock,
|
10
10
|
RpcTransaction as RpcTransaction_,
|
11
|
-
RpcTransactionReceipt,
|
12
11
|
RpcTransactionRequest as RpcTransactionRequest_,
|
13
12
|
TransactionType,
|
14
13
|
} from '../../types/rpc.js'
|
@@ -16,7 +15,6 @@ import type {
|
|
16
15
|
AccessList,
|
17
16
|
Transaction as Transaction_,
|
18
17
|
TransactionBase,
|
19
|
-
TransactionReceipt,
|
20
18
|
TransactionRequest as TransactionRequest_,
|
21
19
|
TransactionRequestBase,
|
22
20
|
TransactionSerializable,
|
@@ -76,14 +74,6 @@ export type CeloRpcTransaction<TPending extends boolean = boolean> =
|
|
76
74
|
| RpcTransactionCIP42<TPending>
|
77
75
|
| RpcTransactionCIP64<TPending>
|
78
76
|
|
79
|
-
export type CeloRpcTransactionReceiptOverrides = {
|
80
|
-
feeCurrency: Address | null
|
81
|
-
gatewayFee: Hex | null
|
82
|
-
gatewayFeeRecipient: Address | null
|
83
|
-
}
|
84
|
-
export type CeloRpcTransactionReceipt = RpcTransactionReceipt &
|
85
|
-
CeloRpcTransactionReceiptOverrides
|
86
|
-
|
87
77
|
export type CeloRpcTransactionRequest =
|
88
78
|
| RpcTransactionRequest
|
89
79
|
| RpcTransactionRequestCIP42
|
@@ -94,14 +84,6 @@ export type CeloTransaction<TPending extends boolean = boolean> =
|
|
94
84
|
| TransactionCIP42<TPending>
|
95
85
|
| TransactionCIP64<TPending>
|
96
86
|
|
97
|
-
export type CeloTransactionReceiptOverrides = {
|
98
|
-
feeCurrency: Address | null
|
99
|
-
gatewayFee: bigint | null
|
100
|
-
gatewayFeeRecipient: Address | null
|
101
|
-
}
|
102
|
-
export type CeloTransactionReceipt = TransactionReceipt &
|
103
|
-
CeloTransactionReceiptOverrides
|
104
|
-
|
105
87
|
export type CeloTransactionRequest =
|
106
88
|
| TransactionRequest
|
107
89
|
| TransactionRequestCIP42
|
@@ -2,15 +2,15 @@ import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
2
|
|
3
3
|
export const taikoJolnir = /*#__PURE__*/ defineChain({
|
4
4
|
id: 167007,
|
5
|
-
name: 'Taiko Jolnir
|
5
|
+
name: 'Taiko Jolnir (Alpha-5 Testnet)',
|
6
6
|
network: 'tko-jolnir',
|
7
7
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
8
8
|
rpcUrls: {
|
9
9
|
default: {
|
10
|
-
http: ['https://jolnir.taiko.xyz'],
|
10
|
+
http: ['https://rpc.jolnir.taiko.xyz'],
|
11
11
|
},
|
12
12
|
public: {
|
13
|
-
http: ['https://jolnir.taiko.xyz'],
|
13
|
+
http: ['https://rpc.jolnir.taiko.xyz'],
|
14
14
|
},
|
15
15
|
},
|
16
16
|
blockExplorers: {
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
import { formattersZkSync } from '../zksync/formatters.js'
|
3
|
+
import { serializersZkSync } from '../zksync/serializers.js'
|
4
|
+
|
5
|
+
export const zkSyncSepoliaTestnet = /*#__PURE__*/ defineChain(
|
6
|
+
{
|
7
|
+
id: 300,
|
8
|
+
name: 'zkSync Sepolia Testnet',
|
9
|
+
network: 'zksync-sepolia-testnet',
|
10
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
11
|
+
rpcUrls: {
|
12
|
+
default: {
|
13
|
+
http: ['https://sepolia.era.zksync.dev'],
|
14
|
+
webSocket: ['wss://sepolia.era.zksync.dev/ws'],
|
15
|
+
},
|
16
|
+
public: {
|
17
|
+
http: ['https://sepolia.era.zksync.dev'],
|
18
|
+
webSocket: ['wss://sepolia.era.zksync.dev/ws'],
|
19
|
+
},
|
20
|
+
},
|
21
|
+
blockExplorers: {
|
22
|
+
default: {
|
23
|
+
name: 'zkExplorer',
|
24
|
+
url: 'https://sepolia.explorer.zksync.io/',
|
25
|
+
},
|
26
|
+
},
|
27
|
+
contracts: {
|
28
|
+
multicall3: {
|
29
|
+
address: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
testnet: true,
|
33
|
+
},
|
34
|
+
{
|
35
|
+
serializers: serializersZkSync,
|
36
|
+
formatters: formattersZkSync,
|
37
|
+
},
|
38
|
+
)
|
@@ -2,6 +2,7 @@ import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
2
|
import { formattersZkSync } from '../zksync/formatters.js'
|
3
3
|
import { serializersZkSync } from '../zksync/serializers.js'
|
4
4
|
|
5
|
+
/** @deprecated Use `zkSyncSepoliaTestnet` */
|
5
6
|
export const zkSyncTestnet = /*#__PURE__*/ defineChain(
|
6
7
|
{
|
7
8
|
id: 280,
|
package/chains/index.ts
CHANGED
@@ -166,6 +166,7 @@ export { xdcTestnet } from './definitions/xdcTestnet.js'
|
|
166
166
|
export { zhejiang } from './definitions/zhejiang.js'
|
167
167
|
export { zkSync } from './definitions/zkSync.js'
|
168
168
|
export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
|
169
|
+
export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
|
169
170
|
export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
|
170
171
|
export { zilliqa } from './definitions/zilliqa.js'
|
171
172
|
export { zilliqaTestnet } from './definitions/zilliqaTestnet.js'
|
package/chains/utils/index.ts
CHANGED
@@ -27,12 +27,8 @@ export type {
|
|
27
27
|
CeloRpcBlock,
|
28
28
|
CeloRpcBlockOverrides,
|
29
29
|
CeloRpcTransaction,
|
30
|
-
CeloRpcTransactionReceipt,
|
31
|
-
CeloRpcTransactionReceiptOverrides,
|
32
30
|
CeloRpcTransactionRequest,
|
33
31
|
CeloTransaction,
|
34
|
-
CeloTransactionReceipt,
|
35
|
-
CeloTransactionReceiptOverrides,
|
36
32
|
CeloTransactionRequest,
|
37
33
|
CeloTransactionSerializable,
|
38
34
|
CeloTransactionSerialized,
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '1.20.
|
1
|
+
export const version = '1.20.3'
|