viem 2.55.2 → 2.55.5
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 +30 -0
- package/_cjs/actions/public/multicall.js +65 -18
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +8 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/chains/definitions/mainnet.js +1 -1
- package/_cjs/chains/definitions/mainnet.js.map +1 -1
- package/_cjs/chains/definitions/robinhood.js +1 -0
- package/_cjs/chains/definitions/robinhood.js.map +1 -1
- package/_cjs/chains/definitions/xLayer.js +1 -0
- package/_cjs/chains/definitions/xLayer.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Transaction.js +1 -1
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +9 -0
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +1 -2
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/unit/Value.js +118 -0
- package/_cjs/utils/unit/Value.js.map +1 -0
- package/_cjs/utils/unit/formatEther.js +2 -3
- package/_cjs/utils/unit/formatEther.js.map +1 -1
- package/_cjs/utils/unit/formatGwei.js +2 -3
- package/_cjs/utils/unit/formatGwei.js.map +1 -1
- package/_cjs/utils/unit/formatUnits.js +2 -11
- package/_cjs/utils/unit/formatUnits.js.map +1 -1
- package/_cjs/utils/unit/parseEther.js +2 -3
- package/_cjs/utils/unit/parseEther.js.map +1 -1
- package/_cjs/utils/unit/parseGwei.js +2 -3
- package/_cjs/utils/unit/parseGwei.js.map +1 -1
- package/_cjs/utils/unit/parseUnits.js +2 -34
- package/_cjs/utils/unit/parseUnits.js.map +1 -1
- package/_esm/actions/public/multicall.js +65 -18
- package/_esm/actions/public/multicall.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +25 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/chains/definitions/mainnet.js +1 -1
- package/_esm/chains/definitions/mainnet.js.map +1 -1
- package/_esm/chains/definitions/robinhood.js +1 -0
- package/_esm/chains/definitions/robinhood.js.map +1 -1
- package/_esm/chains/definitions/xLayer.js +1 -0
- package/_esm/chains/definitions/xLayer.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Transaction.js +1 -1
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/chainConfig.js +10 -0
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js +1 -2
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/unit/Value.js +240 -0
- package/_esm/utils/unit/Value.js.map +1 -0
- package/_esm/utils/unit/formatEther.js +2 -3
- package/_esm/utils/unit/formatEther.js.map +1 -1
- package/_esm/utils/unit/formatGwei.js +2 -3
- package/_esm/utils/unit/formatGwei.js.map +1 -1
- package/_esm/utils/unit/formatUnits.js +2 -11
- package/_esm/utils/unit/formatUnits.js.map +1 -1
- package/_esm/utils/unit/parseEther.js +2 -3
- package/_esm/utils/unit/parseEther.js.map +1 -1
- package/_esm/utils/unit/parseGwei.js +2 -3
- package/_esm/utils/unit/parseGwei.js.map +1 -1
- package/_esm/utils/unit/parseUnits.js +2 -36
- package/_esm/utils/unit/parseUnits.js.map +1 -1
- package/_types/actions/public/multicall.d.ts +2 -1
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/chains/definitions/mainnet.d.ts +1 -1
- package/_types/chains/definitions/robinhood.d.ts +1 -1
- package/_types/chains/definitions/robinhood.d.ts.map +1 -1
- package/_types/chains/definitions/tempo.d.ts +22 -22
- package/_types/chains/definitions/tempoDevnet.d.ts +22 -22
- package/_types/chains/definitions/tempoLocalnet.d.ts +22 -22
- package/_types/chains/definitions/tempoModerato.d.ts +22 -22
- package/_types/chains/definitions/xLayer.d.ts +1 -1
- package/_types/chains/definitions/xLayer.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/chainConfig.d.ts +11 -11
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/zones/zone.d.ts +66 -66
- package/_types/utils/abi/decodeAbiParameters.d.ts +1 -2
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/unit/Value.d.ts +115 -0
- package/_types/utils/unit/Value.d.ts.map +1 -0
- package/_types/utils/unit/formatEther.d.ts +1 -1
- package/_types/utils/unit/formatEther.d.ts.map +1 -1
- package/_types/utils/unit/formatGwei.d.ts +1 -1
- package/_types/utils/unit/formatGwei.d.ts.map +1 -1
- package/_types/utils/unit/formatUnits.d.ts.map +1 -1
- package/_types/utils/unit/parseEther.d.ts +1 -1
- package/_types/utils/unit/parseEther.d.ts.map +1 -1
- package/_types/utils/unit/parseGwei.d.ts +1 -1
- package/_types/utils/unit/parseGwei.d.ts.map +1 -1
- package/_types/utils/unit/parseUnits.d.ts.map +1 -1
- package/actions/public/multicall.ts +92 -12
- package/actions/wallet/prepareTransactionRequest.ts +28 -1
- package/chains/definitions/mainnet.ts +1 -1
- package/chains/definitions/robinhood.ts +1 -0
- package/chains/definitions/xLayer.ts +1 -0
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Transaction.ts +1 -1
- package/tempo/chainConfig.ts +10 -0
- package/utils/abi/decodeAbiParameters.ts +1 -3
- package/utils/unit/Value.ts +278 -0
- package/utils/unit/formatEther.ts +3 -4
- package/utils/unit/formatGwei.ts +3 -4
- package/utils/unit/formatUnits.ts +2 -15
- package/utils/unit/parseEther.ts +3 -4
- package/utils/unit/parseGwei.ts +3 -4
- package/utils/unit/parseUnits.ts +2 -40
|
@@ -41,9 +41,9 @@ export declare const chainConfig: {
|
|
|
41
41
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
42
42
|
signature?: undefined;
|
|
43
43
|
calls?: undefined;
|
|
44
|
+
feePayerSignature?: undefined;
|
|
44
45
|
nonceKey?: undefined;
|
|
45
46
|
keyAuthorization?: undefined;
|
|
46
|
-
feePayerSignature?: undefined;
|
|
47
47
|
feeToken?: undefined;
|
|
48
48
|
validAfter?: undefined;
|
|
49
49
|
validBefore?: undefined;
|
|
@@ -75,9 +75,9 @@ export declare const chainConfig: {
|
|
|
75
75
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
76
76
|
signature?: undefined;
|
|
77
77
|
calls?: undefined;
|
|
78
|
+
feePayerSignature?: undefined;
|
|
78
79
|
nonceKey?: undefined;
|
|
79
80
|
keyAuthorization?: undefined;
|
|
80
|
-
feePayerSignature?: undefined;
|
|
81
81
|
feeToken?: undefined;
|
|
82
82
|
validAfter?: undefined;
|
|
83
83
|
validBefore?: undefined;
|
|
@@ -109,9 +109,9 @@ export declare const chainConfig: {
|
|
|
109
109
|
maxPriorityFeePerGas: bigint;
|
|
110
110
|
signature?: undefined;
|
|
111
111
|
calls?: undefined;
|
|
112
|
+
feePayerSignature?: undefined;
|
|
112
113
|
nonceKey?: undefined;
|
|
113
114
|
keyAuthorization?: undefined;
|
|
114
|
-
feePayerSignature?: undefined;
|
|
115
115
|
feeToken?: undefined;
|
|
116
116
|
validAfter?: undefined;
|
|
117
117
|
validBefore?: undefined;
|
|
@@ -143,9 +143,9 @@ export declare const chainConfig: {
|
|
|
143
143
|
maxPriorityFeePerGas: bigint;
|
|
144
144
|
signature?: undefined;
|
|
145
145
|
calls?: undefined;
|
|
146
|
+
feePayerSignature?: undefined;
|
|
146
147
|
nonceKey?: undefined;
|
|
147
148
|
keyAuthorization?: undefined;
|
|
148
|
-
feePayerSignature?: undefined;
|
|
149
149
|
feeToken?: undefined;
|
|
150
150
|
validAfter?: undefined;
|
|
151
151
|
validBefore?: undefined;
|
|
@@ -177,9 +177,9 @@ export declare const chainConfig: {
|
|
|
177
177
|
maxPriorityFeePerGas: bigint;
|
|
178
178
|
signature?: undefined;
|
|
179
179
|
calls?: undefined;
|
|
180
|
+
feePayerSignature?: undefined;
|
|
180
181
|
nonceKey?: undefined;
|
|
181
182
|
keyAuthorization?: undefined;
|
|
182
|
-
feePayerSignature?: undefined;
|
|
183
183
|
feeToken?: undefined;
|
|
184
184
|
validAfter?: undefined;
|
|
185
185
|
validBefore?: undefined;
|
|
@@ -273,13 +273,13 @@ export declare const chainConfig: {
|
|
|
273
273
|
authorizationList?: undefined;
|
|
274
274
|
calls?: undefined;
|
|
275
275
|
capabilities?: undefined;
|
|
276
|
+
feePayer?: undefined;
|
|
276
277
|
nonceKey?: undefined;
|
|
277
278
|
keyAuthorization?: undefined;
|
|
278
279
|
feeToken?: undefined;
|
|
279
280
|
validAfter?: undefined;
|
|
280
281
|
signatures?: undefined;
|
|
281
282
|
validBefore?: undefined;
|
|
282
|
-
feePayer?: undefined;
|
|
283
283
|
multisig?: undefined;
|
|
284
284
|
multisigInit?: undefined;
|
|
285
285
|
multisigSignatureCount?: undefined;
|
|
@@ -303,13 +303,13 @@ export declare const chainConfig: {
|
|
|
303
303
|
authorizationList?: undefined;
|
|
304
304
|
calls?: undefined;
|
|
305
305
|
capabilities?: undefined;
|
|
306
|
+
feePayer?: undefined;
|
|
306
307
|
nonceKey?: undefined;
|
|
307
308
|
keyAuthorization?: undefined;
|
|
308
309
|
feeToken?: undefined;
|
|
309
310
|
validAfter?: undefined;
|
|
310
311
|
signatures?: undefined;
|
|
311
312
|
validBefore?: undefined;
|
|
312
|
-
feePayer?: undefined;
|
|
313
313
|
multisig?: undefined;
|
|
314
314
|
multisigInit?: undefined;
|
|
315
315
|
multisigSignatureCount?: undefined;
|
|
@@ -333,13 +333,13 @@ export declare const chainConfig: {
|
|
|
333
333
|
authorizationList?: undefined;
|
|
334
334
|
calls?: undefined;
|
|
335
335
|
capabilities?: undefined;
|
|
336
|
+
feePayer?: undefined;
|
|
336
337
|
nonceKey?: undefined;
|
|
337
338
|
keyAuthorization?: undefined;
|
|
338
339
|
feeToken?: undefined;
|
|
339
340
|
validAfter?: undefined;
|
|
340
341
|
signatures?: undefined;
|
|
341
342
|
validBefore?: undefined;
|
|
342
|
-
feePayer?: undefined;
|
|
343
343
|
multisig?: undefined;
|
|
344
344
|
multisigInit?: undefined;
|
|
345
345
|
multisigSignatureCount?: undefined;
|
|
@@ -363,13 +363,13 @@ export declare const chainConfig: {
|
|
|
363
363
|
authorizationList?: undefined;
|
|
364
364
|
calls?: undefined;
|
|
365
365
|
capabilities?: undefined;
|
|
366
|
+
feePayer?: undefined;
|
|
366
367
|
nonceKey?: undefined;
|
|
367
368
|
keyAuthorization?: undefined;
|
|
368
369
|
feeToken?: undefined;
|
|
369
370
|
validAfter?: undefined;
|
|
370
371
|
signatures?: undefined;
|
|
371
372
|
validBefore?: undefined;
|
|
372
|
-
feePayer?: undefined;
|
|
373
373
|
multisig?: undefined;
|
|
374
374
|
multisigInit?: undefined;
|
|
375
375
|
multisigSignatureCount?: undefined;
|
|
@@ -393,13 +393,13 @@ export declare const chainConfig: {
|
|
|
393
393
|
authorizationList?: undefined;
|
|
394
394
|
calls?: undefined;
|
|
395
395
|
capabilities?: undefined;
|
|
396
|
+
feePayer?: undefined;
|
|
396
397
|
nonceKey?: undefined;
|
|
397
398
|
keyAuthorization?: undefined;
|
|
398
399
|
feeToken?: undefined;
|
|
399
400
|
validAfter?: undefined;
|
|
400
401
|
signatures?: undefined;
|
|
401
402
|
validBefore?: undefined;
|
|
402
|
-
feePayer?: undefined;
|
|
403
403
|
multisig?: undefined;
|
|
404
404
|
multisigInit?: undefined;
|
|
405
405
|
multisigSignatureCount?: undefined;
|
|
@@ -423,13 +423,13 @@ export declare const chainConfig: {
|
|
|
423
423
|
sidecars?: undefined;
|
|
424
424
|
calls?: undefined;
|
|
425
425
|
capabilities?: undefined;
|
|
426
|
+
feePayer?: undefined;
|
|
426
427
|
nonceKey?: undefined;
|
|
427
428
|
keyAuthorization?: undefined;
|
|
428
429
|
feeToken?: undefined;
|
|
429
430
|
validAfter?: undefined;
|
|
430
431
|
signatures?: undefined;
|
|
431
432
|
validBefore?: undefined;
|
|
432
|
-
feePayer?: undefined;
|
|
433
433
|
multisig?: undefined;
|
|
434
434
|
multisigInit?: undefined;
|
|
435
435
|
multisigSignatureCount?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainConfig.d.ts","sourceRoot":"","sources":["../../tempo/chainConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAA;AAY1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAA;AAI1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"chainConfig.d.ts","sourceRoot":"","sources":["../../tempo/chainConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAA;AAY1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAA;AAI1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAY/C,eAAO,MAAM,WAAW;;;mBAGT,OAAO,CAAC,gBAAgB,GAAG,SAAS;mBACpC,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAyJqB,sBAAsB;;;CAuFjB,CAAA;AAE7D,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
|