viem 0.0.0-main.20231026T214025 → 0.0.0-main.20231026T220458
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/_cjs/chains/zksync/formatters.js.map +1 -1
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/errors/node.js +11 -22
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +18 -36
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/definitions/zkSync.d.ts +2 -52
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +2 -52
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/zksync/formatters.d.ts +2 -52
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/types.d.ts +12 -11
- package/_types/chains/zksync/types.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/chains/zksync/formatters.ts +1 -2
- package/chains/zksync/types.ts +22 -20
- package/errors/version.ts +1 -1
- package/package.json +1 -1
package/chains/zksync/types.ts
CHANGED
@@ -9,24 +9,26 @@ import type {
|
|
9
9
|
RpcBlock,
|
10
10
|
RpcLog as RpcLog_,
|
11
11
|
RpcTransactionRequest as RpcTransactionRequest_,
|
12
|
-
TransactionType,
|
13
12
|
} from '../../types/rpc.js'
|
14
|
-
import type {
|
15
|
-
TransactionSerializable,
|
16
|
-
TransactionSerializableEIP1559,
|
17
|
-
TransactionSerialized,
|
18
|
-
} from '../../types/transaction.js'
|
19
13
|
import type {
|
20
14
|
Transaction as Transaction_,
|
21
15
|
TransactionBase,
|
22
|
-
|
23
|
-
|
16
|
+
TransactionEIP1559 as TransactionEIP1559_,
|
17
|
+
TransactionEIP2930 as TransactionEIP2930_,
|
18
|
+
TransactionLegacy as TransactionLegacy_,
|
24
19
|
TransactionReceipt,
|
25
20
|
TransactionRequest as TransactionRequest_,
|
26
21
|
TransactionRequestBase,
|
22
|
+
TransactionSerializable,
|
23
|
+
TransactionSerializableEIP1559,
|
24
|
+
TransactionSerialized,
|
25
|
+
TransactionType,
|
27
26
|
} from '../../types/transaction.js'
|
28
27
|
import type { UnionOmit } from '../../types/utils.js'
|
29
28
|
|
29
|
+
type EIP712Type = '0x71'
|
30
|
+
type PriorityType = '0xff'
|
31
|
+
|
30
32
|
// Types
|
31
33
|
// https://era.zksync.io/docs/api/js/types.html
|
32
34
|
|
@@ -101,9 +103,6 @@ export type ZkSyncFeeValues<TQuantity = bigint> = {
|
|
101
103
|
maxPriorityFeePerGas: TQuantity
|
102
104
|
}
|
103
105
|
|
104
|
-
type EIP712Type = '0x71'
|
105
|
-
type PriorityType = '0xff'
|
106
|
-
|
107
106
|
// Block
|
108
107
|
// https://era.zksync.io/docs/api/js/types.html#block
|
109
108
|
|
@@ -184,23 +183,20 @@ type RpcTransactionOverrides = {
|
|
184
183
|
}
|
185
184
|
|
186
185
|
type RpcTransactionLegacy<TPending extends boolean = boolean> =
|
187
|
-
|
186
|
+
TransactionLegacy_<Hex, Hex, TPending, '0x0'> & RpcTransactionOverrides
|
188
187
|
|
189
188
|
type RpcTransactionEIP2930<TPending extends boolean = boolean> =
|
190
|
-
|
189
|
+
TransactionEIP2930_<Hex, Hex, TPending, '0x1'> & RpcTransactionOverrides
|
191
190
|
|
192
|
-
// Cannot use default EIP1559 transaction because the fee `gasPrice` parameter is set to `never`
|
193
191
|
type RpcTransactionEIP1559<TPending extends boolean = boolean> =
|
194
|
-
|
195
|
-
ZkSyncFeeValues<Quantity> &
|
196
|
-
RpcTransactionOverrides & {
|
197
|
-
type: '0x2'
|
198
|
-
}
|
192
|
+
TransactionEIP1559_<Hex, Hex, TPending, '0x2'> & RpcTransactionOverrides
|
199
193
|
|
200
194
|
export type ZkSyncRpcTransactionPriority<TPending extends boolean = boolean> =
|
201
195
|
TransactionBase<Quantity, Index, TPending> &
|
202
196
|
ZkSyncFeeValues<Quantity> &
|
203
197
|
RpcTransactionOverrides & {
|
198
|
+
accessList?: undefined
|
199
|
+
chainId: Hex
|
204
200
|
type: PriorityType
|
205
201
|
}
|
206
202
|
|
@@ -208,6 +204,8 @@ export type ZkSyncRpcTransactionEIP712<TPending extends boolean = boolean> =
|
|
208
204
|
TransactionBase<Quantity, Index, TPending> &
|
209
205
|
ZkSyncFeeValues<Quantity> &
|
210
206
|
RpcTransactionOverrides & {
|
207
|
+
accessList?: undefined
|
208
|
+
chainId: Hex
|
211
209
|
type: EIP712Type
|
212
210
|
}
|
213
211
|
|
@@ -284,7 +282,11 @@ export type ZkSyncTransactionReceiptOverrides = {
|
|
284
282
|
logs: ZkSyncLog[]
|
285
283
|
l2ToL1Logs: ZkSyncL2ToL1Log[]
|
286
284
|
}
|
287
|
-
|
285
|
+
|
286
|
+
export type ZkSyncTransactionReceipt<
|
287
|
+
TStatus = 'success' | 'reverted',
|
288
|
+
TType = ZkSyncTransactionType,
|
289
|
+
> = Omit<TransactionReceipt<bigint, number, TStatus, TType>, 'logs'> &
|
288
290
|
ZkSyncTransactionReceiptOverrides
|
289
291
|
|
290
292
|
// Serializers
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '0.0.0-main.
|
1
|
+
export const version = '0.0.0-main.20231026T220458'
|
package/package.json
CHANGED