viem 1.18.5 → 1.18.7
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/_cjs/actions/public/watchContractEvent.js +1 -0
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +23 -35
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/celo/serializers.js +20 -38
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/celo/utils.js +44 -0
- package/_cjs/chains/celo/utils.js.map +1 -0
- package/_cjs/chains/definitions/kava.js +2 -2
- package/_cjs/chains/definitions/kava.js.map +1 -1
- package/_cjs/chains/definitions/kavaTestnet.js +32 -0
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -0
- package/_cjs/chains/index.js +5 -3
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/zksync/formatters.js +6 -2
- 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/actions/public/watchContractEvent.js +1 -0
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/chains/celo/formatters.js +23 -35
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/serializers.js +19 -44
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/celo/utils.js +39 -0
- package/_esm/chains/celo/utils.js.map +1 -0
- package/_esm/chains/definitions/kava.js +2 -2
- package/_esm/chains/definitions/kava.js.map +1 -1
- package/_esm/chains/definitions/kavaTestnet.js +29 -0
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/zksync/formatters.js +6 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/errors/node.js +22 -11
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +36 -18
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +6 -6
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +3 -2
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +13 -9
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/celo/utils.d.ts +7 -0
- package/_types/chains/celo/utils.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +6 -6
- package/_types/chains/definitions/celoAlfajores.d.ts +6 -6
- package/_types/chains/definitions/celoCannoli.d.ts +6 -6
- package/_types/chains/definitions/kava.d.ts +2 -2
- package/_types/chains/definitions/kavaTestnet.d.ts +32 -0
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/types.d.ts +7 -7
- package/_types/chains/zksync/types.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/public/watchContractEvent.ts +1 -0
- package/chains/celo/formatters.ts +24 -37
- package/chains/celo/serializers.ts +23 -59
- package/chains/celo/types.ts +30 -21
- package/chains/celo/utils.ts +68 -0
- package/chains/definitions/kava.ts +2 -2
- package/chains/definitions/kavaTestnet.ts +29 -0
- package/chains/index.ts +1 -0
- package/chains/zksync/formatters.ts +6 -2
- package/chains/zksync/types.ts +7 -7
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../chains/zksync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG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AAA;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "1.18.
|
1
|
+
export declare const version = "1.18.7";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -19,22 +19,7 @@ import type {
|
|
19
19
|
CeloTransactionReceiptOverrides,
|
20
20
|
CeloTransactionRequest,
|
21
21
|
} from './types.js'
|
22
|
-
|
23
|
-
function isTransactionRequestCIP64(args: CeloTransactionRequest): boolean {
|
24
|
-
if (args.type === 'cip64') return true
|
25
|
-
if (args.type) return false
|
26
|
-
return (
|
27
|
-
'feeCurrency' in args &&
|
28
|
-
args.gatewayFee === undefined &&
|
29
|
-
args.gatewayFeeRecipient === undefined
|
30
|
-
)
|
31
|
-
}
|
32
|
-
|
33
|
-
function isTransactionRequestCIP42(args: CeloTransactionRequest): boolean {
|
34
|
-
if (args.type === 'cip42') return true
|
35
|
-
if (args.type) return false
|
36
|
-
return args.gatewayFee !== undefined || args.gatewayFeeRecipient !== undefined
|
37
|
-
}
|
22
|
+
import { isCIP42, isCIP64 } from './utils.js'
|
38
23
|
|
39
24
|
export const formattersCelo = {
|
40
25
|
block: /*#__PURE__*/ defineBlock({
|
@@ -70,15 +55,19 @@ export const formattersCelo = {
|
|
70
55
|
}),
|
71
56
|
transaction: /*#__PURE__*/ defineTransaction({
|
72
57
|
format(args: CeloRpcTransaction): CeloTransaction {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
58
|
+
const transaction = { feeCurrency: args.feeCurrency } as CeloTransaction
|
59
|
+
|
60
|
+
if (args.type === '0x7b') transaction.type = 'cip64'
|
61
|
+
else {
|
62
|
+
if (args.type === '0x7c') transaction.type = 'cip42'
|
63
|
+
|
64
|
+
transaction.gatewayFee = args.gatewayFee
|
65
|
+
? hexToBigInt(args.gatewayFee)
|
66
|
+
: null
|
67
|
+
transaction.gatewayFeeRecipient = args.gatewayFeeRecipient
|
68
|
+
}
|
69
|
+
|
70
|
+
return transaction
|
82
71
|
},
|
83
72
|
}),
|
84
73
|
transactionReceipt: /*#__PURE__*/ defineTransactionReceipt({
|
@@ -95,22 +84,20 @@ export const formattersCelo = {
|
|
95
84
|
|
96
85
|
transactionRequest: /*#__PURE__*/ defineTransactionRequest({
|
97
86
|
format(args: CeloTransactionRequest): CeloRpcTransactionRequest {
|
98
|
-
if (isTransactionRequestCIP64(args))
|
99
|
-
return {
|
100
|
-
type: '0x7b',
|
101
|
-
feeCurrency: args.feeCurrency,
|
102
|
-
} as CeloRpcTransactionRequest
|
103
|
-
|
104
87
|
const request = {
|
105
88
|
feeCurrency: args.feeCurrency,
|
106
|
-
gatewayFee:
|
107
|
-
typeof args.gatewayFee !== 'undefined'
|
108
|
-
? numberToHex(args.gatewayFee)
|
109
|
-
: undefined,
|
110
|
-
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
111
89
|
} as CeloRpcTransactionRequest
|
112
90
|
|
113
|
-
if (
|
91
|
+
if (isCIP64(args)) request.type = '0x7b'
|
92
|
+
else {
|
93
|
+
if (isCIP42(args)) request.type = '0x7c'
|
94
|
+
|
95
|
+
request.gatewayFee =
|
96
|
+
typeof args.gatewayFee !== 'undefined'
|
97
|
+
? numberToHex(args.gatewayFee)
|
98
|
+
: undefined
|
99
|
+
request.gatewayFeeRecipient = args.gatewayFeeRecipient
|
100
|
+
}
|
114
101
|
|
115
102
|
return request
|
116
103
|
},
|
@@ -22,20 +22,15 @@ import type {
|
|
22
22
|
TransactionSerializedCIP42,
|
23
23
|
TransactionSerializedCIP64,
|
24
24
|
} from './types.js'
|
25
|
+
import { isCIP42, isCIP64, isEmpty, isPresent } from './utils.js'
|
25
26
|
|
26
27
|
export const serializeTransactionCelo: SerializeTransactionFn<
|
27
|
-
CeloTransactionSerializable
|
28
|
+
CeloTransactionSerializable | TransactionSerializable
|
28
29
|
> = (tx, signature) => {
|
29
30
|
if (isCIP64(tx)) {
|
30
|
-
return serializeTransactionCIP64(
|
31
|
-
tx as TransactionSerializableCIP64,
|
32
|
-
signature,
|
33
|
-
)
|
31
|
+
return serializeTransactionCIP64(tx, signature)
|
34
32
|
} else if (isCIP42(tx)) {
|
35
|
-
return serializeTransactionCIP42(
|
36
|
-
tx as TransactionSerializableCIP42,
|
37
|
-
signature,
|
38
|
-
)
|
33
|
+
return serializeTransactionCIP42(tx, signature)
|
39
34
|
} else {
|
40
35
|
return serializeTransaction(tx as TransactionSerializable, signature)
|
41
36
|
}
|
@@ -131,7 +126,7 @@ function serializeTransactionCIP64(
|
|
131
126
|
value ? toHex(value) : '0x',
|
132
127
|
data ?? '0x',
|
133
128
|
serializeAccessList(accessList),
|
134
|
-
feeCurrency
|
129
|
+
feeCurrency!,
|
135
130
|
]
|
136
131
|
|
137
132
|
if (signature) {
|
@@ -148,43 +143,8 @@ function serializeTransactionCIP64(
|
|
148
143
|
]) as SerializeTransactionCIP64ReturnType
|
149
144
|
}
|
150
145
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
// process as CIP42 if any of these fields are present. realistically gatewayfee is not used but is part of spec
|
155
|
-
function isCIP42(transaction: CeloTransactionSerializable): boolean {
|
156
|
-
if (transaction.type === 'cip42') return true
|
157
|
-
// if the type is defined as anything else, assume it is *not* cip42
|
158
|
-
if (transaction.type) return false
|
159
|
-
|
160
|
-
// if the type is undefined, check if the fields match the expectations for cip42
|
161
|
-
return (
|
162
|
-
'maxFeePerGas' in transaction &&
|
163
|
-
'maxPriorityFeePerGas' in transaction &&
|
164
|
-
('feeCurrency' in transaction ||
|
165
|
-
'gatewayFee' in transaction ||
|
166
|
-
'gatewayFeeRecipient' in transaction)
|
167
|
-
)
|
168
|
-
}
|
169
|
-
|
170
|
-
function isCIP64(transaction: CeloTransactionSerializable): boolean {
|
171
|
-
if (transaction.type === 'cip64') return true
|
172
|
-
// if the type is defined as anything else, assume it is *not* cip64
|
173
|
-
if (transaction.type) return false
|
174
|
-
|
175
|
-
// if the type is undefined, check if the fields match the expectations for cip64
|
176
|
-
return (
|
177
|
-
'maxFeePerGas' in transaction &&
|
178
|
-
'maxPriorityFeePerGas' in transaction &&
|
179
|
-
'feeCurrency' in transaction &&
|
180
|
-
!('gatewayFee' in transaction) &&
|
181
|
-
!('gatewayFeeRecipient' in transaction)
|
182
|
-
)
|
183
|
-
}
|
184
|
-
|
185
|
-
// maxFeePerGas must be less than 2^256 - 1: however writing like that caused exceptions to be raised
|
186
|
-
const MAX_MAX_FEE_PER_GAS =
|
187
|
-
115792089237316195423570985008687907853269984665640564039457584007913129639935n
|
146
|
+
// maxFeePerGas must be less than 2^256 - 1
|
147
|
+
const MAX_MAX_FEE_PER_GAS = 2n ** 256n - 1n
|
188
148
|
|
189
149
|
export function assertTransactionCIP42(
|
190
150
|
transaction: TransactionSerializableCIP42,
|
@@ -206,32 +166,36 @@ export function assertTransactionCIP42(
|
|
206
166
|
'`gasPrice` is not a valid CIP-42 Transaction attribute.',
|
207
167
|
)
|
208
168
|
|
209
|
-
if (maxFeePerGas && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
169
|
+
if (isPresent(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
210
170
|
throw new FeeCapTooHighError({ maxFeePerGas })
|
211
171
|
|
212
172
|
if (
|
213
|
-
maxPriorityFeePerGas &&
|
214
|
-
maxFeePerGas &&
|
173
|
+
isPresent(maxPriorityFeePerGas) &&
|
174
|
+
isPresent(maxFeePerGas) &&
|
215
175
|
maxPriorityFeePerGas > maxFeePerGas
|
216
176
|
)
|
217
177
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas })
|
218
178
|
|
219
179
|
if (
|
220
|
-
(gatewayFee &&
|
221
|
-
(gatewayFeeRecipient &&
|
180
|
+
(isPresent(gatewayFee) && isEmpty(gatewayFeeRecipient)) ||
|
181
|
+
(isPresent(gatewayFeeRecipient) && isEmpty(gatewayFee))
|
222
182
|
) {
|
223
183
|
throw new BaseError(
|
224
184
|
'`gatewayFee` and `gatewayFeeRecipient` must be provided together.',
|
225
185
|
)
|
226
186
|
}
|
227
187
|
|
228
|
-
if (feeCurrency && !feeCurrency
|
188
|
+
if (isPresent(feeCurrency) && !isAddress(feeCurrency)) {
|
229
189
|
throw new BaseError(
|
230
190
|
'`feeCurrency` MUST be a token address for CIP-42 transactions.',
|
231
191
|
)
|
232
192
|
}
|
233
193
|
|
234
|
-
if (
|
194
|
+
if (isPresent(gatewayFeeRecipient) && !isAddress(gatewayFeeRecipient)) {
|
195
|
+
throw new InvalidAddressError(gatewayFeeRecipient)
|
196
|
+
}
|
197
|
+
|
198
|
+
if (isEmpty(feeCurrency) && isEmpty(gatewayFeeRecipient)) {
|
235
199
|
throw new BaseError(
|
236
200
|
'Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.',
|
237
201
|
)
|
@@ -258,22 +222,22 @@ export function assertTransactionCIP64(
|
|
258
222
|
'`gasPrice` is not a valid CIP-64 Transaction attribute.',
|
259
223
|
)
|
260
224
|
|
261
|
-
if (maxFeePerGas && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
225
|
+
if (isPresent(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
262
226
|
throw new FeeCapTooHighError({ maxFeePerGas })
|
263
227
|
if (
|
264
|
-
maxPriorityFeePerGas &&
|
265
|
-
maxFeePerGas &&
|
228
|
+
isPresent(maxPriorityFeePerGas) &&
|
229
|
+
isPresent(maxFeePerGas) &&
|
266
230
|
maxPriorityFeePerGas > maxFeePerGas
|
267
231
|
)
|
268
232
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas })
|
269
233
|
|
270
|
-
if (feeCurrency && !feeCurrency?.startsWith('0x')) {
|
234
|
+
if (isPresent(feeCurrency) && !feeCurrency?.startsWith('0x')) {
|
271
235
|
throw new BaseError(
|
272
236
|
'`feeCurrency` MUST be a token address for CIP-64 transactions.',
|
273
237
|
)
|
274
238
|
}
|
275
239
|
|
276
|
-
if (
|
240
|
+
if (isEmpty(feeCurrency)) {
|
277
241
|
throw new BaseError(
|
278
242
|
'`feeCurrency` must be provided for CIP-64 transactions.',
|
279
243
|
)
|
package/chains/celo/types.ts
CHANGED
@@ -24,7 +24,6 @@ import type {
|
|
24
24
|
TransactionSerialized,
|
25
25
|
} from '../../types/transaction.js'
|
26
26
|
import type { NeverBy } from '../../types/utils.js'
|
27
|
-
import type { OptimismRpcTransaction } from '../optimism/types.js'
|
28
27
|
|
29
28
|
type CeloBlockExclude =
|
30
29
|
| 'difficulty'
|
@@ -66,7 +65,7 @@ export type CeloRpcBlock<
|
|
66
65
|
RpcBlock<
|
67
66
|
TBlockTag,
|
68
67
|
TIncludeTransactions,
|
69
|
-
|
68
|
+
RpcTransaction<TBlockTag extends 'pending' ? true : false>
|
70
69
|
>,
|
71
70
|
CeloBlockExclude
|
72
71
|
> &
|
@@ -111,7 +110,7 @@ export type CeloTransactionRequest =
|
|
111
110
|
export type CeloTransactionSerializable =
|
112
111
|
| TransactionSerializableCIP42
|
113
112
|
| TransactionSerializableCIP64
|
114
|
-
|
|
113
|
+
| CeloTransactionSerializableBase
|
115
114
|
|
116
115
|
export type CeloTransactionSerialized<
|
117
116
|
TType extends CeloTransactionType = 'legacy',
|
@@ -135,21 +134,25 @@ type RpcTransactionRequest = RpcTransactionRequest_ & {
|
|
135
134
|
gatewayFeeRecipient?: Address
|
136
135
|
}
|
137
136
|
|
138
|
-
export type RpcTransactionCIP42<TPending extends boolean = boolean> =
|
139
|
-
TransactionBase<Quantity, Index, TPending
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
137
|
+
export type RpcTransactionCIP42<TPending extends boolean = boolean> = Omit<
|
138
|
+
TransactionBase<Quantity, Index, TPending>,
|
139
|
+
'typeHex'
|
140
|
+
> &
|
141
|
+
FeeValuesEIP1559<Quantity> & {
|
142
|
+
feeCurrency: Address | null
|
143
|
+
gatewayFee: Hex | null
|
144
|
+
gatewayFeeRecipient: Address | null
|
145
|
+
type: '0x7c'
|
146
|
+
}
|
146
147
|
|
147
|
-
export type RpcTransactionCIP64<TPending extends boolean = boolean> =
|
148
|
-
TransactionBase<Quantity, Index, TPending
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
148
|
+
export type RpcTransactionCIP64<TPending extends boolean = boolean> = Omit<
|
149
|
+
TransactionBase<Quantity, Index, TPending>,
|
150
|
+
'typeHex'
|
151
|
+
> &
|
152
|
+
FeeValuesEIP1559<Quantity> & {
|
153
|
+
feeCurrency: Address | null
|
154
|
+
type: '0x7b'
|
155
|
+
}
|
153
156
|
|
154
157
|
export type RpcTransactionRequestCIP42 = TransactionRequestBase<
|
155
158
|
Quantity,
|
@@ -231,9 +234,8 @@ export type TransactionSerializableCIP42<
|
|
231
234
|
TQuantity = bigint,
|
232
235
|
TIndex = number,
|
233
236
|
> = TransactionSerializableBase<TQuantity, TIndex> &
|
234
|
-
FeeValuesEIP1559<TQuantity
|
237
|
+
Partial<FeeValuesEIP1559<TQuantity>> & {
|
235
238
|
accessList?: AccessList
|
236
|
-
gasPrice?: never
|
237
239
|
feeCurrency?: Address
|
238
240
|
gatewayFeeRecipient?: Address
|
239
241
|
gatewayFee?: TQuantity
|
@@ -245,13 +247,20 @@ export type TransactionSerializableCIP64<
|
|
245
247
|
TQuantity = bigint,
|
246
248
|
TIndex = number,
|
247
249
|
> = TransactionSerializableBase<TQuantity, TIndex> &
|
248
|
-
FeeValuesEIP1559<TQuantity
|
250
|
+
Partial<FeeValuesEIP1559<TQuantity>> & {
|
249
251
|
accessList?: AccessList
|
250
|
-
gasPrice?: never
|
251
252
|
feeCurrency?: Address
|
253
|
+
gatewayFee?: undefined
|
254
|
+
gatewayFeeRecipient?: undefined
|
252
255
|
chainId: number
|
253
256
|
type?: 'cip64'
|
254
257
|
}
|
255
258
|
|
259
|
+
export type CeloTransactionSerializableBase = TransactionSerializable & {
|
260
|
+
feeCurrency?: undefined
|
261
|
+
gatewayFee?: undefined
|
262
|
+
gatewayFeeRecipient?: undefined
|
263
|
+
}
|
264
|
+
|
256
265
|
export type TransactionSerializedCIP42 = `0x7c${string}`
|
257
266
|
export type TransactionSerializedCIP64 = `0x7b${string}`
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import type { Address } from 'abitype'
|
2
|
+
import { trim } from '../../utils/data/trim.js'
|
3
|
+
import type {
|
4
|
+
CeloTransactionRequest,
|
5
|
+
CeloTransactionSerializable,
|
6
|
+
TransactionSerializableCIP42,
|
7
|
+
TransactionSerializableCIP64,
|
8
|
+
} from './types.js'
|
9
|
+
|
10
|
+
export function isEmpty(
|
11
|
+
value: string | undefined | number | BigInt,
|
12
|
+
): value is undefined {
|
13
|
+
return (
|
14
|
+
value === 0 ||
|
15
|
+
value === 0n ||
|
16
|
+
value === undefined ||
|
17
|
+
value === null ||
|
18
|
+
value === '0' ||
|
19
|
+
value === '' ||
|
20
|
+
(typeof value === 'string' &&
|
21
|
+
(trim(value as Address).toLowerCase() === '0x' ||
|
22
|
+
trim(value as Address).toLowerCase() === '0x00'))
|
23
|
+
)
|
24
|
+
}
|
25
|
+
|
26
|
+
export function isPresent(
|
27
|
+
value: string | undefined | number | BigInt,
|
28
|
+
): value is string | number | BigInt {
|
29
|
+
return !isEmpty(value)
|
30
|
+
}
|
31
|
+
|
32
|
+
export function isEIP1559(
|
33
|
+
transaction: CeloTransactionSerializable | CeloTransactionRequest,
|
34
|
+
): boolean {
|
35
|
+
return (
|
36
|
+
isPresent(transaction.maxFeePerGas) &&
|
37
|
+
isPresent(transaction.maxPriorityFeePerGas)
|
38
|
+
)
|
39
|
+
}
|
40
|
+
|
41
|
+
// process as CIP42 if any of these fields are present. realistically gatewayfee is not used but is part of spec
|
42
|
+
export function isCIP42(
|
43
|
+
transaction: CeloTransactionSerializable | CeloTransactionRequest,
|
44
|
+
): transaction is TransactionSerializableCIP42 {
|
45
|
+
// Enable end-user to force the tx to be considered as a cip42
|
46
|
+
if (transaction.type) return transaction.type === 'cip42'
|
47
|
+
|
48
|
+
return (
|
49
|
+
isEIP1559(transaction) &&
|
50
|
+
(isPresent(transaction.feeCurrency) ||
|
51
|
+
isPresent(transaction.gatewayFeeRecipient) ||
|
52
|
+
isPresent(transaction.gatewayFee))
|
53
|
+
)
|
54
|
+
}
|
55
|
+
|
56
|
+
export function isCIP64(
|
57
|
+
transaction: CeloTransactionSerializable | CeloTransactionRequest,
|
58
|
+
): transaction is TransactionSerializableCIP64 {
|
59
|
+
// Enable end-user to force the tx to be considered as a cip64
|
60
|
+
if (transaction.type) return transaction.type === 'cip64'
|
61
|
+
|
62
|
+
return (
|
63
|
+
isEIP1559(transaction) &&
|
64
|
+
isPresent(transaction.feeCurrency) &&
|
65
|
+
isEmpty(transaction.gatewayFee) &&
|
66
|
+
isEmpty(transaction.gatewayFeeRecipient)
|
67
|
+
)
|
68
|
+
}
|
@@ -10,8 +10,8 @@ export const kava = /*#__PURE__*/ defineChain({
|
|
10
10
|
decimals: 18,
|
11
11
|
},
|
12
12
|
rpcUrls: {
|
13
|
-
public: { http: ['https://
|
14
|
-
default: { http: ['https://
|
13
|
+
public: { http: ['https://evm.kava.io'] },
|
14
|
+
default: { http: ['https://evm.kava.io'] },
|
15
15
|
},
|
16
16
|
blockExplorers: {
|
17
17
|
default: { name: 'Kava EVM Explorer', url: 'https://kavascan.com' },
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const kavaTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 2221,
|
5
|
+
name: 'Kava EVM Testnet',
|
6
|
+
network: 'kava-testnet',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'Kava',
|
9
|
+
symbol: 'KAVA',
|
10
|
+
decimals: 18,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
public: { http: ['https://evm.testnet.kava.io'] },
|
14
|
+
default: { http: ['https://evm.testnet.kava.io'] },
|
15
|
+
},
|
16
|
+
blockExplorers: {
|
17
|
+
default: {
|
18
|
+
name: 'Kava EVM Testnet Explorer',
|
19
|
+
url: 'https://testnet.kavascan.com/',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
contracts: {
|
23
|
+
multicall3: {
|
24
|
+
address: '0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6',
|
25
|
+
blockCreated: 7242179,
|
26
|
+
},
|
27
|
+
},
|
28
|
+
testnet: true,
|
29
|
+
})
|
package/chains/index.ts
CHANGED
@@ -65,6 +65,7 @@ export { haqqMainnet } from './definitions/haqqMainnet.js'
|
|
65
65
|
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
|
66
66
|
export { holesky } from './definitions/holesky.js'
|
67
67
|
export { kava } from './definitions/kava.js'
|
68
|
+
export { kavaTestnet } from './definitions/kavaTestnet.js'
|
68
69
|
export { klaytn } from './definitions/klaytn.js'
|
69
70
|
export { kroma } from './definitions/kroma.js'
|
70
71
|
export { kromaSepolia } from './definitions/kromaSepolia.js'
|
@@ -40,8 +40,12 @@ export const formattersZkSync = {
|
|
40
40
|
return formatted
|
41
41
|
}) as Hash[] | ZkSyncTransaction[]
|
42
42
|
return {
|
43
|
-
l1BatchNumber:
|
44
|
-
|
43
|
+
l1BatchNumber: args.l1BatchNumber
|
44
|
+
? hexToBigInt(args.l1BatchNumber)
|
45
|
+
: null,
|
46
|
+
l1BatchTimestamp: args.l1BatchTimestamp
|
47
|
+
? hexToBigInt(args.l1BatchTimestamp)
|
48
|
+
: null,
|
45
49
|
transactions,
|
46
50
|
}
|
47
51
|
},
|
package/chains/zksync/types.ts
CHANGED
@@ -45,7 +45,7 @@ export type ZkSyncLog<
|
|
45
45
|
? TAbiEvent['name']
|
46
46
|
: undefined,
|
47
47
|
> = Log_<TQuantity, TIndex, TPending, TAbiEvent, TStrict, TAbi, TEventName> & {
|
48
|
-
l1BatchNumber: TQuantity
|
48
|
+
l1BatchNumber: TQuantity | null
|
49
49
|
transactionLogIndex: TIndex
|
50
50
|
logType: Hex | null
|
51
51
|
}
|
@@ -125,8 +125,8 @@ export type ZkSyncBlock<
|
|
125
125
|
// Block (RPC)
|
126
126
|
|
127
127
|
export type ZkSyncRpcBlockOverrides = {
|
128
|
-
l1BatchNumber: Hex
|
129
|
-
l1BatchTimestamp: Hex
|
128
|
+
l1BatchNumber: Hex | null
|
129
|
+
l1BatchTimestamp: Hex | null
|
130
130
|
}
|
131
131
|
export type ZkSyncRpcBlock<
|
132
132
|
TBlockTag extends BlockTag = BlockTag,
|
@@ -178,8 +178,8 @@ export type ZkSyncTransaction<TPending extends boolean = boolean> =
|
|
178
178
|
// Transaction (RPC)
|
179
179
|
|
180
180
|
type RpcTransactionOverrides = {
|
181
|
-
l1BatchNumber: Hex
|
182
|
-
l1BatchTxIndex: Hex
|
181
|
+
l1BatchNumber: Hex | null
|
182
|
+
l1BatchTxIndex: Hex | null
|
183
183
|
}
|
184
184
|
|
185
185
|
type RpcTransactionLegacy<TPending extends boolean = boolean> =
|
@@ -269,8 +269,8 @@ export type ZkSyncTransactionType = TransactionType | 'eip712' | 'priority'
|
|
269
269
|
// https://era.zksync.io/docs/api/js/types.html#transactionreceipt
|
270
270
|
|
271
271
|
export type ZkSyncRpcTransactionReceiptOverrides = {
|
272
|
-
l1BatchNumber: Hex
|
273
|
-
l1BatchTxIndex: Hex
|
272
|
+
l1BatchNumber: Hex | null
|
273
|
+
l1BatchTxIndex: Hex | null
|
274
274
|
logs: ZkSyncRpcLog[]
|
275
275
|
l2ToL1Logs: ZkSyncRpcL2ToL1Log[]
|
276
276
|
root: Hex
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '1.18.
|
1
|
+
export const version = '1.18.7'
|