viem 2.54.2 → 2.54.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 +10 -0
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Formatters.js +5 -1
- package/_cjs/tempo/Formatters.js.map +1 -1
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +11 -2
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +11 -2
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +26 -11
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Formatters.js +7 -1
- package/_esm/tempo/Formatters.js.map +1 -1
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/chainConfig.js +11 -2
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js +18 -2
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js +30 -12
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_types/chains/definitions/tempo.d.ts +42 -0
- package/_types/chains/definitions/tempo.d.ts.map +1 -1
- package/_types/chains/definitions/tempoDevnet.d.ts +42 -0
- package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
- package/_types/chains/definitions/tempoLocalnet.d.ts +42 -0
- package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -1
- package/_types/chains/definitions/tempoModerato.d.ts +42 -0
- package/_types/chains/definitions/tempoModerato.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Formatters.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts +11 -0
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts +22 -0
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/zones/zone.d.ts +126 -0
- package/_types/tempo/zones/zone.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +5 -5
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Formatters.ts +8 -0
- package/tempo/Transaction.ts +10 -0
- package/tempo/chainConfig.ts +11 -2
- package/utils/abi/decodeAbiParameters.ts +17 -2
- package/utils/abi/encodeAbiParameters.ts +32 -15
|
@@ -321,6 +321,8 @@ export declare const zone: (id: number) => {
|
|
|
321
321
|
validBefore?: undefined;
|
|
322
322
|
feePayer?: undefined;
|
|
323
323
|
multisig?: undefined;
|
|
324
|
+
multisigInit?: undefined;
|
|
325
|
+
multisigSignatureCount?: undefined;
|
|
324
326
|
} | {
|
|
325
327
|
data?: `0x${string}` | undefined;
|
|
326
328
|
from?: `0x${string}` | undefined;
|
|
@@ -349,6 +351,8 @@ export declare const zone: (id: number) => {
|
|
|
349
351
|
validBefore?: undefined;
|
|
350
352
|
feePayer?: undefined;
|
|
351
353
|
multisig?: undefined;
|
|
354
|
+
multisigInit?: undefined;
|
|
355
|
+
multisigSignatureCount?: undefined;
|
|
352
356
|
} | {
|
|
353
357
|
data?: `0x${string}` | undefined;
|
|
354
358
|
from?: `0x${string}` | undefined;
|
|
@@ -377,6 +381,8 @@ export declare const zone: (id: number) => {
|
|
|
377
381
|
validBefore?: undefined;
|
|
378
382
|
feePayer?: undefined;
|
|
379
383
|
multisig?: undefined;
|
|
384
|
+
multisigInit?: undefined;
|
|
385
|
+
multisigSignatureCount?: undefined;
|
|
380
386
|
} | {
|
|
381
387
|
type?: "0x3" | undefined;
|
|
382
388
|
data?: `0x${string}` | undefined;
|
|
@@ -405,6 +411,8 @@ export declare const zone: (id: number) => {
|
|
|
405
411
|
validBefore?: undefined;
|
|
406
412
|
feePayer?: undefined;
|
|
407
413
|
multisig?: undefined;
|
|
414
|
+
multisigInit?: undefined;
|
|
415
|
+
multisigSignatureCount?: undefined;
|
|
408
416
|
} | {
|
|
409
417
|
type?: "0x3" | undefined;
|
|
410
418
|
data?: `0x${string}` | undefined;
|
|
@@ -433,6 +441,8 @@ export declare const zone: (id: number) => {
|
|
|
433
441
|
validBefore?: undefined;
|
|
434
442
|
feePayer?: undefined;
|
|
435
443
|
multisig?: undefined;
|
|
444
|
+
multisigInit?: undefined;
|
|
445
|
+
multisigSignatureCount?: undefined;
|
|
436
446
|
} | {
|
|
437
447
|
type?: "0x4" | undefined;
|
|
438
448
|
gasPrice?: undefined | undefined;
|
|
@@ -461,6 +471,8 @@ export declare const zone: (id: number) => {
|
|
|
461
471
|
validBefore?: undefined;
|
|
462
472
|
feePayer?: undefined;
|
|
463
473
|
multisig?: undefined;
|
|
474
|
+
multisigInit?: undefined;
|
|
475
|
+
multisigSignatureCount?: undefined;
|
|
464
476
|
} | {
|
|
465
477
|
data?: `0x${string}` | undefined;
|
|
466
478
|
from?: `0x${string}` | undefined;
|
|
@@ -486,6 +498,15 @@ export declare const zone: (id: number) => {
|
|
|
486
498
|
threshold: `0x${string}`;
|
|
487
499
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
488
500
|
} | undefined;
|
|
501
|
+
multisigInit?: {
|
|
502
|
+
salt: import("ox/Hex").Hex;
|
|
503
|
+
threshold: number;
|
|
504
|
+
owners: readonly {
|
|
505
|
+
owner: import("abitype").Address;
|
|
506
|
+
weight: number;
|
|
507
|
+
}[];
|
|
508
|
+
} | undefined | undefined;
|
|
509
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
489
510
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
490
511
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
491
512
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -802,6 +823,8 @@ export declare const zone: (id: number) => {
|
|
|
802
823
|
validBefore?: undefined;
|
|
803
824
|
feePayer?: undefined;
|
|
804
825
|
multisig?: undefined;
|
|
826
|
+
multisigInit?: undefined;
|
|
827
|
+
multisigSignatureCount?: undefined;
|
|
805
828
|
} | {
|
|
806
829
|
data?: `0x${string}` | undefined;
|
|
807
830
|
from?: `0x${string}` | undefined;
|
|
@@ -830,6 +853,8 @@ export declare const zone: (id: number) => {
|
|
|
830
853
|
validBefore?: undefined;
|
|
831
854
|
feePayer?: undefined;
|
|
832
855
|
multisig?: undefined;
|
|
856
|
+
multisigInit?: undefined;
|
|
857
|
+
multisigSignatureCount?: undefined;
|
|
833
858
|
} | {
|
|
834
859
|
data?: `0x${string}` | undefined;
|
|
835
860
|
from?: `0x${string}` | undefined;
|
|
@@ -858,6 +883,8 @@ export declare const zone: (id: number) => {
|
|
|
858
883
|
validBefore?: undefined;
|
|
859
884
|
feePayer?: undefined;
|
|
860
885
|
multisig?: undefined;
|
|
886
|
+
multisigInit?: undefined;
|
|
887
|
+
multisigSignatureCount?: undefined;
|
|
861
888
|
} | {
|
|
862
889
|
type?: "0x3" | undefined;
|
|
863
890
|
data?: `0x${string}` | undefined;
|
|
@@ -886,6 +913,8 @@ export declare const zone: (id: number) => {
|
|
|
886
913
|
validBefore?: undefined;
|
|
887
914
|
feePayer?: undefined;
|
|
888
915
|
multisig?: undefined;
|
|
916
|
+
multisigInit?: undefined;
|
|
917
|
+
multisigSignatureCount?: undefined;
|
|
889
918
|
} | {
|
|
890
919
|
type?: "0x3" | undefined;
|
|
891
920
|
data?: `0x${string}` | undefined;
|
|
@@ -914,6 +943,8 @@ export declare const zone: (id: number) => {
|
|
|
914
943
|
validBefore?: undefined;
|
|
915
944
|
feePayer?: undefined;
|
|
916
945
|
multisig?: undefined;
|
|
946
|
+
multisigInit?: undefined;
|
|
947
|
+
multisigSignatureCount?: undefined;
|
|
917
948
|
} | {
|
|
918
949
|
type?: "0x4" | undefined;
|
|
919
950
|
gasPrice?: undefined | undefined;
|
|
@@ -942,6 +973,8 @@ export declare const zone: (id: number) => {
|
|
|
942
973
|
validBefore?: undefined;
|
|
943
974
|
feePayer?: undefined;
|
|
944
975
|
multisig?: undefined;
|
|
976
|
+
multisigInit?: undefined;
|
|
977
|
+
multisigSignatureCount?: undefined;
|
|
945
978
|
} | {
|
|
946
979
|
data?: `0x${string}` | undefined;
|
|
947
980
|
from?: `0x${string}` | undefined;
|
|
@@ -967,6 +1000,15 @@ export declare const zone: (id: number) => {
|
|
|
967
1000
|
threshold: `0x${string}`;
|
|
968
1001
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
969
1002
|
} | undefined;
|
|
1003
|
+
multisigInit?: {
|
|
1004
|
+
salt: import("ox/Hex").Hex;
|
|
1005
|
+
threshold: number;
|
|
1006
|
+
owners: readonly {
|
|
1007
|
+
owner: import("abitype").Address;
|
|
1008
|
+
weight: number;
|
|
1009
|
+
}[];
|
|
1010
|
+
} | undefined | undefined;
|
|
1011
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
970
1012
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
971
1013
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
972
1014
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -1308,6 +1350,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1308
1350
|
validBefore?: undefined;
|
|
1309
1351
|
feePayer?: undefined;
|
|
1310
1352
|
multisig?: undefined;
|
|
1353
|
+
multisigInit?: undefined;
|
|
1354
|
+
multisigSignatureCount?: undefined;
|
|
1311
1355
|
} | {
|
|
1312
1356
|
data?: `0x${string}` | undefined;
|
|
1313
1357
|
from?: `0x${string}` | undefined;
|
|
@@ -1336,6 +1380,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1336
1380
|
validBefore?: undefined;
|
|
1337
1381
|
feePayer?: undefined;
|
|
1338
1382
|
multisig?: undefined;
|
|
1383
|
+
multisigInit?: undefined;
|
|
1384
|
+
multisigSignatureCount?: undefined;
|
|
1339
1385
|
} | {
|
|
1340
1386
|
data?: `0x${string}` | undefined;
|
|
1341
1387
|
from?: `0x${string}` | undefined;
|
|
@@ -1364,6 +1410,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1364
1410
|
validBefore?: undefined;
|
|
1365
1411
|
feePayer?: undefined;
|
|
1366
1412
|
multisig?: undefined;
|
|
1413
|
+
multisigInit?: undefined;
|
|
1414
|
+
multisigSignatureCount?: undefined;
|
|
1367
1415
|
} | {
|
|
1368
1416
|
type?: "0x3" | undefined;
|
|
1369
1417
|
data?: `0x${string}` | undefined;
|
|
@@ -1392,6 +1440,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1392
1440
|
validBefore?: undefined;
|
|
1393
1441
|
feePayer?: undefined;
|
|
1394
1442
|
multisig?: undefined;
|
|
1443
|
+
multisigInit?: undefined;
|
|
1444
|
+
multisigSignatureCount?: undefined;
|
|
1395
1445
|
} | {
|
|
1396
1446
|
type?: "0x3" | undefined;
|
|
1397
1447
|
data?: `0x${string}` | undefined;
|
|
@@ -1420,6 +1470,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1420
1470
|
validBefore?: undefined;
|
|
1421
1471
|
feePayer?: undefined;
|
|
1422
1472
|
multisig?: undefined;
|
|
1473
|
+
multisigInit?: undefined;
|
|
1474
|
+
multisigSignatureCount?: undefined;
|
|
1423
1475
|
} | {
|
|
1424
1476
|
type?: "0x4" | undefined;
|
|
1425
1477
|
gasPrice?: undefined | undefined;
|
|
@@ -1448,6 +1500,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1448
1500
|
validBefore?: undefined;
|
|
1449
1501
|
feePayer?: undefined;
|
|
1450
1502
|
multisig?: undefined;
|
|
1503
|
+
multisigInit?: undefined;
|
|
1504
|
+
multisigSignatureCount?: undefined;
|
|
1451
1505
|
} | {
|
|
1452
1506
|
data?: `0x${string}` | undefined;
|
|
1453
1507
|
from?: `0x${string}` | undefined;
|
|
@@ -1473,6 +1527,15 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1473
1527
|
threshold: `0x${string}`;
|
|
1474
1528
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
1475
1529
|
} | undefined;
|
|
1530
|
+
multisigInit?: {
|
|
1531
|
+
salt: import("ox/Hex").Hex;
|
|
1532
|
+
threshold: number;
|
|
1533
|
+
owners: readonly {
|
|
1534
|
+
owner: import("abitype").Address;
|
|
1535
|
+
weight: number;
|
|
1536
|
+
}[];
|
|
1537
|
+
} | undefined | undefined;
|
|
1538
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
1476
1539
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
1477
1540
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
1478
1541
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -1789,6 +1852,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1789
1852
|
validBefore?: undefined;
|
|
1790
1853
|
feePayer?: undefined;
|
|
1791
1854
|
multisig?: undefined;
|
|
1855
|
+
multisigInit?: undefined;
|
|
1856
|
+
multisigSignatureCount?: undefined;
|
|
1792
1857
|
} | {
|
|
1793
1858
|
data?: `0x${string}` | undefined;
|
|
1794
1859
|
from?: `0x${string}` | undefined;
|
|
@@ -1817,6 +1882,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1817
1882
|
validBefore?: undefined;
|
|
1818
1883
|
feePayer?: undefined;
|
|
1819
1884
|
multisig?: undefined;
|
|
1885
|
+
multisigInit?: undefined;
|
|
1886
|
+
multisigSignatureCount?: undefined;
|
|
1820
1887
|
} | {
|
|
1821
1888
|
data?: `0x${string}` | undefined;
|
|
1822
1889
|
from?: `0x${string}` | undefined;
|
|
@@ -1845,6 +1912,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1845
1912
|
validBefore?: undefined;
|
|
1846
1913
|
feePayer?: undefined;
|
|
1847
1914
|
multisig?: undefined;
|
|
1915
|
+
multisigInit?: undefined;
|
|
1916
|
+
multisigSignatureCount?: undefined;
|
|
1848
1917
|
} | {
|
|
1849
1918
|
type?: "0x3" | undefined;
|
|
1850
1919
|
data?: `0x${string}` | undefined;
|
|
@@ -1873,6 +1942,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1873
1942
|
validBefore?: undefined;
|
|
1874
1943
|
feePayer?: undefined;
|
|
1875
1944
|
multisig?: undefined;
|
|
1945
|
+
multisigInit?: undefined;
|
|
1946
|
+
multisigSignatureCount?: undefined;
|
|
1876
1947
|
} | {
|
|
1877
1948
|
type?: "0x3" | undefined;
|
|
1878
1949
|
data?: `0x${string}` | undefined;
|
|
@@ -1901,6 +1972,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1901
1972
|
validBefore?: undefined;
|
|
1902
1973
|
feePayer?: undefined;
|
|
1903
1974
|
multisig?: undefined;
|
|
1975
|
+
multisigInit?: undefined;
|
|
1976
|
+
multisigSignatureCount?: undefined;
|
|
1904
1977
|
} | {
|
|
1905
1978
|
type?: "0x4" | undefined;
|
|
1906
1979
|
gasPrice?: undefined | undefined;
|
|
@@ -1929,6 +2002,8 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1929
2002
|
validBefore?: undefined;
|
|
1930
2003
|
feePayer?: undefined;
|
|
1931
2004
|
multisig?: undefined;
|
|
2005
|
+
multisigInit?: undefined;
|
|
2006
|
+
multisigSignatureCount?: undefined;
|
|
1932
2007
|
} | {
|
|
1933
2008
|
data?: `0x${string}` | undefined;
|
|
1934
2009
|
from?: `0x${string}` | undefined;
|
|
@@ -1954,6 +2029,15 @@ export declare const zoneModerato: (id: number) => {
|
|
|
1954
2029
|
threshold: `0x${string}`;
|
|
1955
2030
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
1956
2031
|
} | undefined;
|
|
2032
|
+
multisigInit?: {
|
|
2033
|
+
salt: import("ox/Hex").Hex;
|
|
2034
|
+
threshold: number;
|
|
2035
|
+
owners: readonly {
|
|
2036
|
+
owner: import("abitype").Address;
|
|
2037
|
+
weight: number;
|
|
2038
|
+
}[];
|
|
2039
|
+
} | undefined | undefined;
|
|
2040
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
1957
2041
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
1958
2042
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
1959
2043
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -2296,6 +2380,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2296
2380
|
validBefore?: undefined;
|
|
2297
2381
|
feePayer?: undefined;
|
|
2298
2382
|
multisig?: undefined;
|
|
2383
|
+
multisigInit?: undefined;
|
|
2384
|
+
multisigSignatureCount?: undefined;
|
|
2299
2385
|
} | {
|
|
2300
2386
|
data?: `0x${string}` | undefined;
|
|
2301
2387
|
from?: `0x${string}` | undefined;
|
|
@@ -2324,6 +2410,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2324
2410
|
validBefore?: undefined;
|
|
2325
2411
|
feePayer?: undefined;
|
|
2326
2412
|
multisig?: undefined;
|
|
2413
|
+
multisigInit?: undefined;
|
|
2414
|
+
multisigSignatureCount?: undefined;
|
|
2327
2415
|
} | {
|
|
2328
2416
|
data?: `0x${string}` | undefined;
|
|
2329
2417
|
from?: `0x${string}` | undefined;
|
|
@@ -2352,6 +2440,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2352
2440
|
validBefore?: undefined;
|
|
2353
2441
|
feePayer?: undefined;
|
|
2354
2442
|
multisig?: undefined;
|
|
2443
|
+
multisigInit?: undefined;
|
|
2444
|
+
multisigSignatureCount?: undefined;
|
|
2355
2445
|
} | {
|
|
2356
2446
|
type?: "0x3" | undefined;
|
|
2357
2447
|
data?: `0x${string}` | undefined;
|
|
@@ -2380,6 +2470,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2380
2470
|
validBefore?: undefined;
|
|
2381
2471
|
feePayer?: undefined;
|
|
2382
2472
|
multisig?: undefined;
|
|
2473
|
+
multisigInit?: undefined;
|
|
2474
|
+
multisigSignatureCount?: undefined;
|
|
2383
2475
|
} | {
|
|
2384
2476
|
type?: "0x3" | undefined;
|
|
2385
2477
|
data?: `0x${string}` | undefined;
|
|
@@ -2408,6 +2500,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2408
2500
|
validBefore?: undefined;
|
|
2409
2501
|
feePayer?: undefined;
|
|
2410
2502
|
multisig?: undefined;
|
|
2503
|
+
multisigInit?: undefined;
|
|
2504
|
+
multisigSignatureCount?: undefined;
|
|
2411
2505
|
} | {
|
|
2412
2506
|
type?: "0x4" | undefined;
|
|
2413
2507
|
gasPrice?: undefined | undefined;
|
|
@@ -2436,6 +2530,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2436
2530
|
validBefore?: undefined;
|
|
2437
2531
|
feePayer?: undefined;
|
|
2438
2532
|
multisig?: undefined;
|
|
2533
|
+
multisigInit?: undefined;
|
|
2534
|
+
multisigSignatureCount?: undefined;
|
|
2439
2535
|
} | {
|
|
2440
2536
|
data?: `0x${string}` | undefined;
|
|
2441
2537
|
from?: `0x${string}` | undefined;
|
|
@@ -2461,6 +2557,15 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2461
2557
|
threshold: `0x${string}`;
|
|
2462
2558
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
2463
2559
|
} | undefined;
|
|
2560
|
+
multisigInit?: {
|
|
2561
|
+
salt: import("ox/Hex").Hex;
|
|
2562
|
+
threshold: number;
|
|
2563
|
+
owners: readonly {
|
|
2564
|
+
owner: import("abitype").Address;
|
|
2565
|
+
weight: number;
|
|
2566
|
+
}[];
|
|
2567
|
+
} | undefined | undefined;
|
|
2568
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
2464
2569
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
2465
2570
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
2466
2571
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -2777,6 +2882,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2777
2882
|
validBefore?: undefined;
|
|
2778
2883
|
feePayer?: undefined;
|
|
2779
2884
|
multisig?: undefined;
|
|
2885
|
+
multisigInit?: undefined;
|
|
2886
|
+
multisigSignatureCount?: undefined;
|
|
2780
2887
|
} | {
|
|
2781
2888
|
data?: `0x${string}` | undefined;
|
|
2782
2889
|
from?: `0x${string}` | undefined;
|
|
@@ -2805,6 +2912,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2805
2912
|
validBefore?: undefined;
|
|
2806
2913
|
feePayer?: undefined;
|
|
2807
2914
|
multisig?: undefined;
|
|
2915
|
+
multisigInit?: undefined;
|
|
2916
|
+
multisigSignatureCount?: undefined;
|
|
2808
2917
|
} | {
|
|
2809
2918
|
data?: `0x${string}` | undefined;
|
|
2810
2919
|
from?: `0x${string}` | undefined;
|
|
@@ -2833,6 +2942,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2833
2942
|
validBefore?: undefined;
|
|
2834
2943
|
feePayer?: undefined;
|
|
2835
2944
|
multisig?: undefined;
|
|
2945
|
+
multisigInit?: undefined;
|
|
2946
|
+
multisigSignatureCount?: undefined;
|
|
2836
2947
|
} | {
|
|
2837
2948
|
type?: "0x3" | undefined;
|
|
2838
2949
|
data?: `0x${string}` | undefined;
|
|
@@ -2861,6 +2972,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2861
2972
|
validBefore?: undefined;
|
|
2862
2973
|
feePayer?: undefined;
|
|
2863
2974
|
multisig?: undefined;
|
|
2975
|
+
multisigInit?: undefined;
|
|
2976
|
+
multisigSignatureCount?: undefined;
|
|
2864
2977
|
} | {
|
|
2865
2978
|
type?: "0x3" | undefined;
|
|
2866
2979
|
data?: `0x${string}` | undefined;
|
|
@@ -2889,6 +3002,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2889
3002
|
validBefore?: undefined;
|
|
2890
3003
|
feePayer?: undefined;
|
|
2891
3004
|
multisig?: undefined;
|
|
3005
|
+
multisigInit?: undefined;
|
|
3006
|
+
multisigSignatureCount?: undefined;
|
|
2892
3007
|
} | {
|
|
2893
3008
|
type?: "0x4" | undefined;
|
|
2894
3009
|
gasPrice?: undefined | undefined;
|
|
@@ -2917,6 +3032,8 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2917
3032
|
validBefore?: undefined;
|
|
2918
3033
|
feePayer?: undefined;
|
|
2919
3034
|
multisig?: undefined;
|
|
3035
|
+
multisigInit?: undefined;
|
|
3036
|
+
multisigSignatureCount?: undefined;
|
|
2920
3037
|
} | {
|
|
2921
3038
|
data?: `0x${string}` | undefined;
|
|
2922
3039
|
from?: `0x${string}` | undefined;
|
|
@@ -2942,6 +3059,15 @@ export declare function from(options: from.Options): (id: number) => {
|
|
|
2942
3059
|
threshold: `0x${string}`;
|
|
2943
3060
|
owners: readonly import("ox/tempo/MultisigConfig").Owner<`0x${string}`>[];
|
|
2944
3061
|
} | undefined;
|
|
3062
|
+
multisigInit?: {
|
|
3063
|
+
salt: import("ox/Hex").Hex;
|
|
3064
|
+
threshold: number;
|
|
3065
|
+
owners: readonly {
|
|
3066
|
+
owner: import("abitype").Address;
|
|
3067
|
+
weight: number;
|
|
3068
|
+
}[];
|
|
3069
|
+
} | undefined | undefined;
|
|
3070
|
+
multisigSignatureCount?: number | undefined | undefined;
|
|
2945
3071
|
nonceKey?: `0x${string}` | "expiring" | undefined;
|
|
2946
3072
|
signatures?: readonly `0x${string}`[] | undefined;
|
|
2947
3073
|
validBefore?: `0x${string}` | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.d.ts","sourceRoot":"","sources":["../../../tempo/zones/zone.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;;;CAKsC,CAAA;AAElE,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,KAAK,MAAM,EAAE,CASf;AAkBD,eAAO,MAAM,I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,KAAK,mBAAmB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAM3D,KAAK,oBAAoB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,SAAS,CAAA;AAmCb,KAAK,qBAAqB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,SAAS,CAAA;AAgBb,KAAK,oBAAoB,GAAG,sBAAsB,GAAG,SAAS,CAAA;AAwD9D,KAAK,qBAAqB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,aAAa,GACb,SAAS,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { type InvalidAddressErrorType } from '../../errors/address.js';
|
|
|
4
4
|
import type { ErrorType } from '../../errors/utils.js';
|
|
5
5
|
import type { Hex } from '../../types/misc.js';
|
|
6
6
|
import { type IsAddressErrorType } from '../address/isAddress.js';
|
|
7
|
-
import { type
|
|
7
|
+
import { type ConcatHexErrorType } from '../data/concat.js';
|
|
8
8
|
import { type PadHexErrorType } from '../data/pad.js';
|
|
9
9
|
import { type SizeErrorType } from '../data/size.js';
|
|
10
10
|
import { type SliceErrorType } from '../data/slice.js';
|
|
@@ -51,12 +51,12 @@ type PrepareParamsErrorType = PrepareParamErrorType | ErrorType;
|
|
|
51
51
|
type PrepareParamErrorType = EncodeAddressErrorType | EncodeArrayErrorType | EncodeBytesErrorType | EncodeBoolErrorType | EncodeNumberErrorType | EncodeStringErrorType | EncodeTupleErrorType | GetArrayComponentsErrorType | InvalidAbiEncodingTypeErrorType | ErrorType;
|
|
52
52
|
type EncodeParamsErrorType = NumberToHexErrorType | SizeErrorType | ErrorType;
|
|
53
53
|
type EncodeAddressErrorType = InvalidAddressErrorType | IsAddressErrorType | ErrorType;
|
|
54
|
-
type EncodeArrayErrorType = AbiEncodingArrayLengthMismatchErrorType |
|
|
55
|
-
type EncodeBytesErrorType = AbiEncodingBytesSizeMismatchErrorType |
|
|
54
|
+
type EncodeArrayErrorType = AbiEncodingArrayLengthMismatchErrorType | ConcatHexErrorType | EncodeParamsErrorType | InvalidArrayErrorType | NumberToHexErrorType | ErrorType;
|
|
55
|
+
type EncodeBytesErrorType = AbiEncodingBytesSizeMismatchErrorType | ConcatHexErrorType | PadHexErrorType | NumberToHexErrorType | SizeErrorType | ErrorType;
|
|
56
56
|
type EncodeBoolErrorType = PadHexErrorType | BoolToHexErrorType | ErrorType;
|
|
57
57
|
type EncodeNumberErrorType = NumberToHexErrorType | ErrorType;
|
|
58
|
-
type EncodeStringErrorType =
|
|
59
|
-
type EncodeTupleErrorType =
|
|
58
|
+
type EncodeStringErrorType = ConcatHexErrorType | NumberToHexErrorType | PadHexErrorType | SizeErrorType | SliceErrorType | StringToHexErrorType | ErrorType;
|
|
59
|
+
type EncodeTupleErrorType = ConcatHexErrorType | EncodeParamsErrorType | ErrorType;
|
|
60
60
|
type GetArrayComponentsErrorType = ErrorType;
|
|
61
61
|
export declare function getArrayComponents(type: string): [length: number | null, innerType: string] | undefined;
|
|
62
62
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encodeAbiParameters.d.ts","sourceRoot":"","sources":["../../../utils/abi/encodeAbiParameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,6BAA6B,EAE9B,MAAM,SAAS,CAAA;AAEhB,OAAO,EAEL,KAAK,uCAAuC,EAE5C,KAAK,qCAAqC,EAE1C,KAAK,kCAAkC,EAEvC,KAAK,+BAA+B,EAEpC,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,KAAK,kBAAkB,EAAa,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"encodeAbiParameters.d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.54.3'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viem",
|
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
|
4
|
-
"version": "2.54.
|
|
4
|
+
"version": "2.54.3",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
7
7
|
"types": "./_types/index.d.ts",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"@scure/bip39": "1.6.0",
|
|
235
235
|
"abitype": "1.2.3",
|
|
236
236
|
"isows": "1.0.7",
|
|
237
|
-
"ox": "0.14.
|
|
237
|
+
"ox": "0.14.30",
|
|
238
238
|
"ws": "8.21.0"
|
|
239
239
|
},
|
|
240
240
|
"license": "MIT",
|
package/tempo/Formatters.ts
CHANGED
|
@@ -121,8 +121,12 @@ export function formatTransactionRequest(
|
|
|
121
121
|
// `multisig` / `signatures` are client-side only (TIP-1061). They drive
|
|
122
122
|
// sender derivation, owner signing, and final envelope assembly, but are
|
|
123
123
|
// never sent as raw RPC fields — the wire payload is the serialized tx.
|
|
124
|
+
// `multisigInit` / `multisigSignatureCount` are wire fields: the node
|
|
125
|
+
// prices multisig gas from them during simulation.
|
|
124
126
|
const {
|
|
125
127
|
multisig: _multisig,
|
|
128
|
+
multisigInit,
|
|
129
|
+
multisigSignatureCount,
|
|
126
130
|
signatures: _signatures,
|
|
127
131
|
...rpcRequest
|
|
128
132
|
} = request
|
|
@@ -164,6 +168,10 @@ export function formatTransactionRequest(
|
|
|
164
168
|
|
|
165
169
|
return {
|
|
166
170
|
...rpc,
|
|
171
|
+
...(multisigInit ? { multisigInit } : {}),
|
|
172
|
+
...(typeof multisigSignatureCount !== 'undefined'
|
|
173
|
+
? { multisigSignatureCount }
|
|
174
|
+
: {}),
|
|
167
175
|
...(request.capabilities ? { capabilities: request.capabilities } : {}),
|
|
168
176
|
...(keyData ? { keyData } : {}),
|
|
169
177
|
...(keyId ? { keyId } : {}),
|
package/tempo/Transaction.ts
CHANGED
|
@@ -126,6 +126,16 @@ export type TransactionRequestTempo<
|
|
|
126
126
|
feeToken?: TempoAddress.Address | bigint | undefined
|
|
127
127
|
keyAuthorization?: KeyAuthorization.Signed<quantity, index> | undefined
|
|
128
128
|
multisig?: MultisigConfig.Config<index> | undefined
|
|
129
|
+
/** Bootstrap multisig config hint for node-side gas modeling (TIP-1061). Attached automatically when `multisig` is present; the node ignores it for registered senders. */
|
|
130
|
+
multisigInit?:
|
|
131
|
+
| {
|
|
132
|
+
salt: Hex.Hex
|
|
133
|
+
threshold: number
|
|
134
|
+
owners: readonly { owner: Address; weight: number }[]
|
|
135
|
+
}
|
|
136
|
+
| undefined
|
|
137
|
+
/** Modeled owner approval count for node-side gas modeling (TIP-1061). */
|
|
138
|
+
multisigSignatureCount?: number | undefined
|
|
129
139
|
nonceKey?: 'expiring' | quantity | undefined
|
|
130
140
|
signatures?: readonly SignatureEnvelope.Serialized[] | undefined
|
|
131
141
|
validBefore?: index | undefined
|
package/tempo/chainConfig.ts
CHANGED
|
@@ -83,8 +83,17 @@ export const chainConfig = {
|
|
|
83
83
|
? (request.account as MultisigAccount).config
|
|
84
84
|
: undefined)
|
|
85
85
|
if (multisig) {
|
|
86
|
-
|
|
87
|
-
request.
|
|
86
|
+
const config = MultisigConfig.from(multisig)
|
|
87
|
+
request.multisig = config
|
|
88
|
+
request.from = MultisigConfig.getAddress(config)
|
|
89
|
+
request.multisigInit = {
|
|
90
|
+
salt: config.salt ?? MultisigConfig.zeroSalt,
|
|
91
|
+
threshold: Number(config.threshold),
|
|
92
|
+
owners: config.owners.map((owner) => ({
|
|
93
|
+
owner: owner.owner,
|
|
94
|
+
weight: Number(owner.weight),
|
|
95
|
+
})),
|
|
96
|
+
}
|
|
88
97
|
// A non-multisig `account` (e.g. the client's default) isn't the sender,
|
|
89
98
|
// so drop it: core then fills nonce/gas/fees for the multisig sender via
|
|
90
99
|
// `request.from`. A multisig account *is* the sender — keep it so the
|
|
@@ -75,7 +75,9 @@ export function decodeAbiParameters<
|
|
|
75
75
|
const values = []
|
|
76
76
|
for (let i = 0; i < params.length; ++i) {
|
|
77
77
|
const param = params[i]
|
|
78
|
-
|
|
78
|
+
// Zero-width types (e.g. `uint256[0]`, empty tuples) at the end of the
|
|
79
|
+
// data consume no bytes, so the cursor may already be exhausted.
|
|
80
|
+
if (consumed < bytes.length) cursor.setPosition(consumed)
|
|
79
81
|
const [data, consumed_] = decodeParameter(cursor, param, {
|
|
80
82
|
staticPosition: 0,
|
|
81
83
|
})
|
|
@@ -146,7 +148,8 @@ function decodeArray(
|
|
|
146
148
|
) {
|
|
147
149
|
// If the length of the array is not known in advance (dynamic array),
|
|
148
150
|
// this means we will need to wonder off to the pointer and decode.
|
|
149
|
-
|
|
151
|
+
// Note: zero-length fixed arrays (`T[0]`) are not dynamic.
|
|
152
|
+
if (length === null) {
|
|
150
153
|
// Dealing with a dynamic type, so get the offset of the array data.
|
|
151
154
|
const offset = bytesToNumber(cursor.readBytes(sizeOfOffset))
|
|
152
155
|
|
|
@@ -172,6 +175,12 @@ function decodeArray(
|
|
|
172
175
|
})
|
|
173
176
|
consumed += consumed_
|
|
174
177
|
value.push(data)
|
|
178
|
+
// Charge zero-width elements against the read limit to bound work
|
|
179
|
+
// on huge lengths of zero-width types (e.g. `uint256[0][]`).
|
|
180
|
+
if (consumed_ === 0) {
|
|
181
|
+
cursor.assertReadLimit()
|
|
182
|
+
cursor._touch()
|
|
183
|
+
}
|
|
175
184
|
}
|
|
176
185
|
|
|
177
186
|
// As we have gone wondering, restore to the original position + next slot.
|
|
@@ -214,6 +223,12 @@ function decodeArray(
|
|
|
214
223
|
})
|
|
215
224
|
consumed += consumed_
|
|
216
225
|
value.push(data)
|
|
226
|
+
// Charge zero-width elements against the read limit to bound work
|
|
227
|
+
// on huge lengths of zero-width types (e.g. `uint256[0][4294967295]`).
|
|
228
|
+
if (consumed_ === 0) {
|
|
229
|
+
cursor.assertReadLimit()
|
|
230
|
+
cursor._touch()
|
|
231
|
+
}
|
|
217
232
|
}
|
|
218
233
|
return [value, consumed]
|
|
219
234
|
}
|