viem 2.9.13 → 2.9.15
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 +14 -0
- package/_cjs/actions/index.js +2 -1
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js +5 -3
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +47 -7
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +1 -0
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/chains/definitions/astarZkEVM.js +1 -1
- package/_cjs/chains/definitions/astarZkyoto.js +1 -1
- package/_cjs/chains/definitions/astarZkyoto.js.map +1 -1
- package/_cjs/chains/definitions/filecoinCalibration.js +1 -0
- package/_cjs/chains/definitions/filecoinCalibration.js.map +1 -1
- package/_cjs/chains/definitions/filecoinHyperspace.js +1 -0
- package/_cjs/chains/definitions/filecoinHyperspace.js.map +1 -1
- package/_cjs/chains/index.js +5 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/utils/blob/blobsToCommitments.js.map +1 -1
- package/_cjs/utils/blob/commitmentsToVersionedHashes.js.map +1 -1
- package/_cjs/utils/blob/sidecarsToVersionedHashes.js.map +1 -1
- package/_cjs/utils/blob/toBlobSidecars.js.map +1 -1
- package/_cjs/utils/blob/toBlobs.js.map +1 -1
- package/_cjs/utils/formatters/transactionRequest.js +2 -0
- package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +10 -6
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/actions/index.js +1 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/estimateGas.js +8 -3
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +49 -9
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +2 -1
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/chains/definitions/astarZkEVM.js +1 -1
- package/_esm/chains/definitions/astarZkyoto.js +1 -1
- package/_esm/chains/definitions/astarZkyoto.js.map +1 -1
- package/_esm/chains/definitions/filecoinCalibration.js +1 -0
- package/_esm/chains/definitions/filecoinCalibration.js.map +1 -1
- package/_esm/chains/definitions/filecoinHyperspace.js +1 -0
- package/_esm/chains/definitions/filecoinHyperspace.js.map +1 -1
- package/_esm/chains/index.js +0 -1
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/utils/blob/blobsToCommitments.js.map +1 -1
- package/_esm/utils/blob/commitmentsToVersionedHashes.js.map +1 -1
- package/_esm/utils/blob/sidecarsToVersionedHashes.js.map +1 -1
- package/_esm/utils/blob/toBlobSidecars.js.map +1 -1
- package/_esm/utils/blob/toBlobs.js.map +1 -1
- package/_esm/utils/formatters/transactionRequest.js +2 -0
- package/_esm/utils/formatters/transactionRequest.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +10 -6
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_types/actions/index.d.ts +1 -1
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +2 -3
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +7 -6
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +350 -38
- package/_types/celo/chainConfig.d.ts.map +1 -1
- package/_types/celo/formatters.d.ts +175 -19
- package/_types/celo/formatters.d.ts.map +1 -1
- package/_types/chains/definitions/ancient8.d.ts +15 -15
- package/_types/chains/definitions/ancient8Sepolia.d.ts +15 -15
- package/_types/chains/definitions/astarZkEVM.d.ts +1 -1
- package/_types/chains/definitions/astarZkyoto.d.ts +1 -1
- package/_types/chains/definitions/base.d.ts +15 -15
- package/_types/chains/definitions/baseGoerli.d.ts +15 -15
- package/_types/chains/definitions/baseSepolia.d.ts +15 -15
- package/_types/chains/definitions/celo.d.ts +350 -38
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +350 -38
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/filecoinCalibration.d.ts +1 -1
- package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -1
- package/_types/chains/definitions/filecoinHyperspace.d.ts +1 -1
- package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -1
- package/_types/chains/definitions/fraxtal.d.ts +15 -15
- package/_types/chains/definitions/fraxtalTestnet.d.ts +15 -15
- package/_types/chains/definitions/liskSepolia.d.ts +15 -15
- package/_types/chains/definitions/optimism.d.ts +15 -15
- package/_types/chains/definitions/optimismGoerli.d.ts +15 -15
- package/_types/chains/definitions/optimismSepolia.d.ts +15 -15
- package/_types/chains/definitions/pgn.d.ts +15 -15
- package/_types/chains/definitions/pgnTestnet.d.ts +15 -15
- package/_types/chains/definitions/rss3.d.ts +15 -15
- package/_types/chains/definitions/rss3Sepolia.d.ts +15 -15
- package/_types/chains/definitions/zkSync.d.ts +144 -0
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +144 -0
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncLocalNode.d.ts +144 -0
- package/_types/chains/definitions/zkSyncLocalNode.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +144 -0
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +144 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +15 -15
- package/_types/chains/definitions/zoraSepolia.d.ts +15 -15
- package/_types/chains/definitions/zoraTestnet.d.ts +15 -15
- package/_types/chains/index.d.ts +0 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/op-stack/actions/getTimeToNextGame.d.ts +1 -1
- package/_types/op-stack/actions/getTimeToNextL2Output.d.ts +1 -1
- package/_types/op-stack/actions/getTimeToProve.d.ts +1 -1
- package/_types/op-stack/actions/waitForNextGame.d.ts +1 -1
- package/_types/op-stack/actions/waitForNextL2Output.d.ts +1 -1
- package/_types/op-stack/chainConfig.d.ts +15 -15
- package/_types/op-stack/formatters.d.ts +15 -15
- package/_types/types/transaction.d.ts +16 -2
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/utils/blob/blobsToCommitments.d.ts +4 -4
- package/_types/utils/blob/blobsToCommitments.d.ts.map +1 -1
- package/_types/utils/blob/blobsToProofs.d.ts +2 -2
- package/_types/utils/blob/blobsToProofs.d.ts.map +1 -1
- package/_types/utils/blob/commitmentsToVersionedHashes.d.ts +4 -4
- package/_types/utils/blob/commitmentsToVersionedHashes.d.ts.map +1 -1
- package/_types/utils/blob/sidecarsToVersionedHashes.d.ts +1 -1
- package/_types/utils/blob/sidecarsToVersionedHashes.d.ts.map +1 -1
- package/_types/utils/blob/toBlobSidecars.d.ts +5 -5
- package/_types/utils/blob/toBlobSidecars.d.ts.map +1 -1
- package/_types/utils/blob/toBlobs.d.ts +1 -1
- package/_types/utils/blob/toBlobs.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +49 -1
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/transaction/getTransactionType.d.ts +3 -3
- package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/_types/zksync/chainConfig.d.ts +144 -0
- package/_types/zksync/chainConfig.d.ts.map +1 -1
- package/_types/zksync/formatters.d.ts +144 -0
- package/_types/zksync/formatters.d.ts.map +1 -1
- package/actions/index.ts +1 -0
- package/actions/public/call.ts +2 -3
- package/actions/public/estimateGas.ts +9 -7
- package/actions/wallet/prepareTransactionRequest.ts +73 -17
- package/actions/wallet/sendTransaction.ts +2 -0
- package/chains/definitions/astarZkEVM.ts +1 -1
- package/chains/definitions/astarZkyoto.ts +1 -1
- package/chains/definitions/filecoinCalibration.ts +1 -0
- package/chains/definitions/filecoinHyperspace.ts +1 -0
- package/chains/index.ts +0 -1
- package/errors/version.ts +1 -1
- package/op-stack/actions/getTimeToNextGame.ts +1 -1
- package/op-stack/actions/getTimeToNextL2Output.ts +1 -1
- package/op-stack/actions/getTimeToProve.ts +1 -1
- package/op-stack/actions/waitForNextGame.ts +1 -1
- package/op-stack/actions/waitForNextL2Output.ts +1 -1
- package/package.json +1 -1
- package/types/transaction.ts +20 -2
- package/utils/blob/blobsToCommitments.ts +9 -7
- package/utils/blob/blobsToProofs.ts +10 -10
- package/utils/blob/commitmentsToVersionedHashes.ts +10 -8
- package/utils/blob/sidecarsToVersionedHashes.ts +3 -3
- package/utils/blob/toBlobSidecars.ts +14 -11
- package/utils/blob/toBlobs.ts +3 -3
- package/utils/formatters/transactionRequest.ts +2 -0
- package/utils/transaction/getTransactionType.ts +3 -3
- package/utils/transaction/serializeTransaction.ts +12 -6
- package/_cjs/chains/definitions/astarZkatana.js +0 -32
- package/_cjs/chains/definitions/astarZkatana.js.map +0 -1
- package/_esm/chains/definitions/astarZkatana.js +0 -29
- package/_esm/chains/definitions/astarZkatana.js.map +0 -1
- package/_types/chains/definitions/astarZkatana.d.ts +0 -34
- package/_types/chains/definitions/astarZkatana.d.ts.map +0 -1
- package/chains/definitions/astarZkatana.ts +0 -29
@@ -450,6 +450,9 @@ export declare const formatters: {
|
|
450
450
|
accessList?: undefined;
|
451
451
|
blobs?: undefined;
|
452
452
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
453
|
+
blobVersionedHashes?: undefined;
|
454
|
+
kzg?: undefined;
|
455
|
+
sidecars?: undefined;
|
453
456
|
} & {
|
454
457
|
data?: `0x${string}` | undefined;
|
455
458
|
from: `0x${string}`;
|
@@ -464,6 +467,9 @@ export declare const formatters: {
|
|
464
467
|
accessList?: undefined;
|
465
468
|
blobs?: undefined;
|
466
469
|
type?: "legacy" | undefined;
|
470
|
+
blobVersionedHashes?: undefined;
|
471
|
+
kzg?: undefined;
|
472
|
+
sidecars?: undefined;
|
467
473
|
} & {
|
468
474
|
gasPerPubdata?: undefined;
|
469
475
|
customSignature?: undefined;
|
@@ -484,6 +490,9 @@ export declare const formatters: {
|
|
484
490
|
accessList?: undefined;
|
485
491
|
blobs?: undefined;
|
486
492
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
493
|
+
blobVersionedHashes?: undefined;
|
494
|
+
kzg?: undefined;
|
495
|
+
sidecars?: undefined;
|
487
496
|
} & {
|
488
497
|
data?: `0x${string}` | undefined;
|
489
498
|
from: `0x${string}`;
|
@@ -498,6 +507,9 @@ export declare const formatters: {
|
|
498
507
|
accessList?: import("../index.js").AccessList | undefined;
|
499
508
|
blobs?: undefined;
|
500
509
|
type?: "eip2930" | undefined;
|
510
|
+
blobVersionedHashes?: undefined;
|
511
|
+
kzg?: undefined;
|
512
|
+
sidecars?: undefined;
|
501
513
|
} & {
|
502
514
|
gasPerPubdata?: undefined;
|
503
515
|
customSignature?: undefined;
|
@@ -518,6 +530,9 @@ export declare const formatters: {
|
|
518
530
|
accessList?: undefined;
|
519
531
|
blobs?: undefined;
|
520
532
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
533
|
+
blobVersionedHashes?: undefined;
|
534
|
+
kzg?: undefined;
|
535
|
+
sidecars?: undefined;
|
521
536
|
} & {
|
522
537
|
data?: `0x${string}` | undefined;
|
523
538
|
from: `0x${string}`;
|
@@ -532,6 +547,9 @@ export declare const formatters: {
|
|
532
547
|
accessList?: import("../index.js").AccessList | undefined;
|
533
548
|
blobs?: undefined;
|
534
549
|
type?: "eip1559" | undefined;
|
550
|
+
blobVersionedHashes?: undefined;
|
551
|
+
kzg?: undefined;
|
552
|
+
sidecars?: undefined;
|
535
553
|
} & {
|
536
554
|
gasPerPubdata?: undefined;
|
537
555
|
customSignature?: undefined;
|
@@ -552,6 +570,9 @@ export declare const formatters: {
|
|
552
570
|
accessList?: undefined;
|
553
571
|
blobs?: undefined;
|
554
572
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
573
|
+
blobVersionedHashes?: undefined;
|
574
|
+
kzg?: undefined;
|
575
|
+
sidecars?: undefined;
|
555
576
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
556
577
|
gasPerPubdata?: bigint | undefined;
|
557
578
|
customSignature?: `0x${string}` | undefined;
|
@@ -574,6 +595,9 @@ export declare const formatters: {
|
|
574
595
|
accessList?: undefined;
|
575
596
|
blobs?: undefined;
|
576
597
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
598
|
+
blobVersionedHashes?: undefined;
|
599
|
+
kzg?: undefined;
|
600
|
+
sidecars?: undefined;
|
577
601
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
578
602
|
gasPerPubdata?: bigint | undefined;
|
579
603
|
customSignature?: `0x${string}` | undefined;
|
@@ -596,6 +620,9 @@ export declare const formatters: {
|
|
596
620
|
accessList?: import("../index.js").AccessList | undefined;
|
597
621
|
blobs?: undefined;
|
598
622
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
623
|
+
blobVersionedHashes?: undefined;
|
624
|
+
kzg?: undefined;
|
625
|
+
sidecars?: undefined;
|
599
626
|
} & {
|
600
627
|
data?: `0x${string}` | undefined;
|
601
628
|
from: `0x${string}`;
|
@@ -610,6 +637,9 @@ export declare const formatters: {
|
|
610
637
|
accessList?: undefined;
|
611
638
|
blobs?: undefined;
|
612
639
|
type?: "legacy" | undefined;
|
640
|
+
blobVersionedHashes?: undefined;
|
641
|
+
kzg?: undefined;
|
642
|
+
sidecars?: undefined;
|
613
643
|
} & {
|
614
644
|
gasPerPubdata?: undefined;
|
615
645
|
customSignature?: undefined;
|
@@ -630,6 +660,9 @@ export declare const formatters: {
|
|
630
660
|
accessList?: import("../index.js").AccessList | undefined;
|
631
661
|
blobs?: undefined;
|
632
662
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
663
|
+
blobVersionedHashes?: undefined;
|
664
|
+
kzg?: undefined;
|
665
|
+
sidecars?: undefined;
|
633
666
|
} & {
|
634
667
|
data?: `0x${string}` | undefined;
|
635
668
|
from: `0x${string}`;
|
@@ -644,6 +677,9 @@ export declare const formatters: {
|
|
644
677
|
accessList?: import("../index.js").AccessList | undefined;
|
645
678
|
blobs?: undefined;
|
646
679
|
type?: "eip2930" | undefined;
|
680
|
+
blobVersionedHashes?: undefined;
|
681
|
+
kzg?: undefined;
|
682
|
+
sidecars?: undefined;
|
647
683
|
} & {
|
648
684
|
gasPerPubdata?: undefined;
|
649
685
|
customSignature?: undefined;
|
@@ -664,6 +700,9 @@ export declare const formatters: {
|
|
664
700
|
accessList?: import("../index.js").AccessList | undefined;
|
665
701
|
blobs?: undefined;
|
666
702
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
703
|
+
blobVersionedHashes?: undefined;
|
704
|
+
kzg?: undefined;
|
705
|
+
sidecars?: undefined;
|
667
706
|
} & {
|
668
707
|
data?: `0x${string}` | undefined;
|
669
708
|
from: `0x${string}`;
|
@@ -678,6 +717,9 @@ export declare const formatters: {
|
|
678
717
|
accessList?: import("../index.js").AccessList | undefined;
|
679
718
|
blobs?: undefined;
|
680
719
|
type?: "eip1559" | undefined;
|
720
|
+
blobVersionedHashes?: undefined;
|
721
|
+
kzg?: undefined;
|
722
|
+
sidecars?: undefined;
|
681
723
|
} & {
|
682
724
|
gasPerPubdata?: undefined;
|
683
725
|
customSignature?: undefined;
|
@@ -698,6 +740,9 @@ export declare const formatters: {
|
|
698
740
|
accessList?: import("../index.js").AccessList | undefined;
|
699
741
|
blobs?: undefined;
|
700
742
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
743
|
+
blobVersionedHashes?: undefined;
|
744
|
+
kzg?: undefined;
|
745
|
+
sidecars?: undefined;
|
701
746
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
702
747
|
gasPerPubdata?: bigint | undefined;
|
703
748
|
customSignature?: `0x${string}` | undefined;
|
@@ -720,6 +765,9 @@ export declare const formatters: {
|
|
720
765
|
accessList?: import("../index.js").AccessList | undefined;
|
721
766
|
blobs?: undefined;
|
722
767
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
768
|
+
blobVersionedHashes?: undefined;
|
769
|
+
kzg?: undefined;
|
770
|
+
sidecars?: undefined;
|
723
771
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
724
772
|
gasPerPubdata?: bigint | undefined;
|
725
773
|
customSignature?: `0x${string}` | undefined;
|
@@ -742,6 +790,9 @@ export declare const formatters: {
|
|
742
790
|
accessList?: import("../index.js").AccessList | undefined;
|
743
791
|
blobs?: undefined;
|
744
792
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
793
|
+
blobVersionedHashes?: undefined;
|
794
|
+
kzg?: undefined;
|
795
|
+
sidecars?: undefined;
|
745
796
|
} & {
|
746
797
|
data?: `0x${string}` | undefined;
|
747
798
|
from: `0x${string}`;
|
@@ -756,6 +807,9 @@ export declare const formatters: {
|
|
756
807
|
accessList?: undefined;
|
757
808
|
blobs?: undefined;
|
758
809
|
type?: "legacy" | undefined;
|
810
|
+
blobVersionedHashes?: undefined;
|
811
|
+
kzg?: undefined;
|
812
|
+
sidecars?: undefined;
|
759
813
|
} & {
|
760
814
|
gasPerPubdata?: undefined;
|
761
815
|
customSignature?: undefined;
|
@@ -776,6 +830,9 @@ export declare const formatters: {
|
|
776
830
|
accessList?: import("../index.js").AccessList | undefined;
|
777
831
|
blobs?: undefined;
|
778
832
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
833
|
+
blobVersionedHashes?: undefined;
|
834
|
+
kzg?: undefined;
|
835
|
+
sidecars?: undefined;
|
779
836
|
} & {
|
780
837
|
data?: `0x${string}` | undefined;
|
781
838
|
from: `0x${string}`;
|
@@ -790,6 +847,9 @@ export declare const formatters: {
|
|
790
847
|
accessList?: import("../index.js").AccessList | undefined;
|
791
848
|
blobs?: undefined;
|
792
849
|
type?: "eip2930" | undefined;
|
850
|
+
blobVersionedHashes?: undefined;
|
851
|
+
kzg?: undefined;
|
852
|
+
sidecars?: undefined;
|
793
853
|
} & {
|
794
854
|
gasPerPubdata?: undefined;
|
795
855
|
customSignature?: undefined;
|
@@ -810,6 +870,9 @@ export declare const formatters: {
|
|
810
870
|
accessList?: import("../index.js").AccessList | undefined;
|
811
871
|
blobs?: undefined;
|
812
872
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
873
|
+
blobVersionedHashes?: undefined;
|
874
|
+
kzg?: undefined;
|
875
|
+
sidecars?: undefined;
|
813
876
|
} & {
|
814
877
|
data?: `0x${string}` | undefined;
|
815
878
|
from: `0x${string}`;
|
@@ -824,6 +887,9 @@ export declare const formatters: {
|
|
824
887
|
accessList?: import("../index.js").AccessList | undefined;
|
825
888
|
blobs?: undefined;
|
826
889
|
type?: "eip1559" | undefined;
|
890
|
+
blobVersionedHashes?: undefined;
|
891
|
+
kzg?: undefined;
|
892
|
+
sidecars?: undefined;
|
827
893
|
} & {
|
828
894
|
gasPerPubdata?: undefined;
|
829
895
|
customSignature?: undefined;
|
@@ -844,6 +910,9 @@ export declare const formatters: {
|
|
844
910
|
accessList?: import("../index.js").AccessList | undefined;
|
845
911
|
blobs?: undefined;
|
846
912
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
913
|
+
blobVersionedHashes?: undefined;
|
914
|
+
kzg?: undefined;
|
915
|
+
sidecars?: undefined;
|
847
916
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
848
917
|
gasPerPubdata?: bigint | undefined;
|
849
918
|
customSignature?: `0x${string}` | undefined;
|
@@ -866,6 +935,9 @@ export declare const formatters: {
|
|
866
935
|
accessList?: import("../index.js").AccessList | undefined;
|
867
936
|
blobs?: undefined;
|
868
937
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
938
|
+
blobVersionedHashes?: undefined;
|
939
|
+
kzg?: undefined;
|
940
|
+
sidecars?: undefined;
|
869
941
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
870
942
|
gasPerPubdata?: bigint | undefined;
|
871
943
|
customSignature?: `0x${string}` | undefined;
|
@@ -887,6 +959,9 @@ export declare const formatters: {
|
|
887
959
|
maxFeePerBlobGas?: bigint | undefined;
|
888
960
|
accessList?: import("../index.js").AccessList | undefined;
|
889
961
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
962
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
963
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
964
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
890
965
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
891
966
|
} & {
|
892
967
|
data?: `0x${string}` | undefined;
|
@@ -902,6 +977,9 @@ export declare const formatters: {
|
|
902
977
|
accessList?: undefined;
|
903
978
|
blobs?: undefined;
|
904
979
|
type?: "legacy" | undefined;
|
980
|
+
blobVersionedHashes?: undefined;
|
981
|
+
kzg?: undefined;
|
982
|
+
sidecars?: undefined;
|
905
983
|
} & {
|
906
984
|
gasPerPubdata?: undefined;
|
907
985
|
customSignature?: undefined;
|
@@ -921,6 +999,9 @@ export declare const formatters: {
|
|
921
999
|
maxFeePerBlobGas?: bigint | undefined;
|
922
1000
|
accessList?: import("../index.js").AccessList | undefined;
|
923
1001
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
1002
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1003
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1004
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
924
1005
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
925
1006
|
} & {
|
926
1007
|
data?: `0x${string}` | undefined;
|
@@ -936,6 +1017,9 @@ export declare const formatters: {
|
|
936
1017
|
accessList?: import("../index.js").AccessList | undefined;
|
937
1018
|
blobs?: undefined;
|
938
1019
|
type?: "eip2930" | undefined;
|
1020
|
+
blobVersionedHashes?: undefined;
|
1021
|
+
kzg?: undefined;
|
1022
|
+
sidecars?: undefined;
|
939
1023
|
} & {
|
940
1024
|
gasPerPubdata?: undefined;
|
941
1025
|
customSignature?: undefined;
|
@@ -955,6 +1039,9 @@ export declare const formatters: {
|
|
955
1039
|
maxFeePerBlobGas?: bigint | undefined;
|
956
1040
|
accessList?: import("../index.js").AccessList | undefined;
|
957
1041
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
1042
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1043
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1044
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
958
1045
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
959
1046
|
} & {
|
960
1047
|
data?: `0x${string}` | undefined;
|
@@ -970,6 +1057,9 @@ export declare const formatters: {
|
|
970
1057
|
accessList?: import("../index.js").AccessList | undefined;
|
971
1058
|
blobs?: undefined;
|
972
1059
|
type?: "eip1559" | undefined;
|
1060
|
+
blobVersionedHashes?: undefined;
|
1061
|
+
kzg?: undefined;
|
1062
|
+
sidecars?: undefined;
|
973
1063
|
} & {
|
974
1064
|
gasPerPubdata?: undefined;
|
975
1065
|
customSignature?: undefined;
|
@@ -989,6 +1079,9 @@ export declare const formatters: {
|
|
989
1079
|
maxFeePerBlobGas?: bigint | undefined;
|
990
1080
|
accessList?: import("../index.js").AccessList | undefined;
|
991
1081
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
1082
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1083
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1084
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
992
1085
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
993
1086
|
} & {
|
994
1087
|
data?: `0x${string}` | undefined;
|
@@ -1003,6 +1096,9 @@ export declare const formatters: {
|
|
1003
1096
|
maxFeePerBlobGas: bigint;
|
1004
1097
|
accessList?: import("../index.js").AccessList | undefined;
|
1005
1098
|
blobs: readonly `0x${string}`[] | readonly Uint8Array[];
|
1099
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1100
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1101
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
1006
1102
|
type?: "eip4844" | undefined;
|
1007
1103
|
} & {
|
1008
1104
|
gasPerPubdata?: undefined;
|
@@ -1023,6 +1119,9 @@ export declare const formatters: {
|
|
1023
1119
|
maxFeePerBlobGas?: bigint | undefined;
|
1024
1120
|
accessList?: import("../index.js").AccessList | undefined;
|
1025
1121
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
1122
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1123
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1124
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
1026
1125
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
1027
1126
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
1028
1127
|
gasPerPubdata?: bigint | undefined;
|
@@ -1045,6 +1144,9 @@ export declare const formatters: {
|
|
1045
1144
|
maxFeePerBlobGas?: bigint | undefined;
|
1046
1145
|
accessList?: import("../index.js").AccessList | undefined;
|
1047
1146
|
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
|
1147
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1148
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1149
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
1048
1150
|
type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
|
1049
1151
|
} & Omit<import("../index.js").TransactionRequestBase, "type"> & import("../index.js").ExactPartial<import("../index.js").FeeValuesEIP1559> & {
|
1050
1152
|
gasPerPubdata?: bigint | undefined;
|
@@ -1068,6 +1170,9 @@ export declare const formatters: {
|
|
1068
1170
|
accessList?: undefined;
|
1069
1171
|
blobs?: undefined;
|
1070
1172
|
type?: "0x0" | undefined;
|
1173
|
+
blobVersionedHashes?: undefined;
|
1174
|
+
kzg?: undefined;
|
1175
|
+
sidecars?: undefined;
|
1071
1176
|
eip712Meta?: undefined;
|
1072
1177
|
} | {
|
1073
1178
|
data?: `0x${string}` | undefined;
|
@@ -1083,6 +1188,9 @@ export declare const formatters: {
|
|
1083
1188
|
accessList?: undefined;
|
1084
1189
|
blobs?: undefined;
|
1085
1190
|
type?: "0x1" | undefined;
|
1191
|
+
blobVersionedHashes?: undefined;
|
1192
|
+
kzg?: undefined;
|
1193
|
+
sidecars?: undefined;
|
1086
1194
|
eip712Meta?: undefined;
|
1087
1195
|
} | {
|
1088
1196
|
data?: `0x${string}` | undefined;
|
@@ -1098,6 +1206,9 @@ export declare const formatters: {
|
|
1098
1206
|
accessList?: undefined;
|
1099
1207
|
blobs?: undefined;
|
1100
1208
|
type?: "0x2" | undefined;
|
1209
|
+
blobVersionedHashes?: undefined;
|
1210
|
+
kzg?: undefined;
|
1211
|
+
sidecars?: undefined;
|
1101
1212
|
eip712Meta?: undefined;
|
1102
1213
|
} | {
|
1103
1214
|
data?: `0x${string}` | undefined;
|
@@ -1113,6 +1224,9 @@ export declare const formatters: {
|
|
1113
1224
|
accessList?: undefined;
|
1114
1225
|
blobs?: undefined;
|
1115
1226
|
type: "0xff" | "0x71";
|
1227
|
+
blobVersionedHashes?: undefined;
|
1228
|
+
kzg?: undefined;
|
1229
|
+
sidecars?: undefined;
|
1116
1230
|
eip712Meta: import("./index.js").ZkSyncEip712Meta;
|
1117
1231
|
} | {
|
1118
1232
|
data?: `0x${string}` | undefined;
|
@@ -1128,6 +1242,9 @@ export declare const formatters: {
|
|
1128
1242
|
accessList?: undefined;
|
1129
1243
|
blobs?: undefined;
|
1130
1244
|
type?: "0x0" | undefined;
|
1245
|
+
blobVersionedHashes?: undefined;
|
1246
|
+
kzg?: undefined;
|
1247
|
+
sidecars?: undefined;
|
1131
1248
|
eip712Meta?: undefined;
|
1132
1249
|
} | {
|
1133
1250
|
data?: `0x${string}` | undefined;
|
@@ -1143,6 +1260,9 @@ export declare const formatters: {
|
|
1143
1260
|
accessList?: import("../index.js").AccessList | undefined;
|
1144
1261
|
blobs?: undefined;
|
1145
1262
|
type?: "0x1" | undefined;
|
1263
|
+
blobVersionedHashes?: undefined;
|
1264
|
+
kzg?: undefined;
|
1265
|
+
sidecars?: undefined;
|
1146
1266
|
eip712Meta?: undefined;
|
1147
1267
|
} | {
|
1148
1268
|
data?: `0x${string}` | undefined;
|
@@ -1158,6 +1278,9 @@ export declare const formatters: {
|
|
1158
1278
|
accessList?: import("../index.js").AccessList | undefined;
|
1159
1279
|
blobs?: undefined;
|
1160
1280
|
type?: "0x2" | undefined;
|
1281
|
+
blobVersionedHashes?: undefined;
|
1282
|
+
kzg?: undefined;
|
1283
|
+
sidecars?: undefined;
|
1161
1284
|
eip712Meta?: undefined;
|
1162
1285
|
} | {
|
1163
1286
|
data?: `0x${string}` | undefined;
|
@@ -1173,6 +1296,9 @@ export declare const formatters: {
|
|
1173
1296
|
accessList?: import("../index.js").AccessList | undefined;
|
1174
1297
|
blobs?: undefined;
|
1175
1298
|
type: "0xff" | "0x71";
|
1299
|
+
blobVersionedHashes?: undefined;
|
1300
|
+
kzg?: undefined;
|
1301
|
+
sidecars?: undefined;
|
1176
1302
|
eip712Meta: import("./index.js").ZkSyncEip712Meta;
|
1177
1303
|
} | {
|
1178
1304
|
data?: `0x${string}` | undefined;
|
@@ -1188,6 +1314,9 @@ export declare const formatters: {
|
|
1188
1314
|
accessList?: undefined;
|
1189
1315
|
blobs?: undefined;
|
1190
1316
|
type?: "0x0" | undefined;
|
1317
|
+
blobVersionedHashes?: undefined;
|
1318
|
+
kzg?: undefined;
|
1319
|
+
sidecars?: undefined;
|
1191
1320
|
eip712Meta?: undefined;
|
1192
1321
|
} | {
|
1193
1322
|
data?: `0x${string}` | undefined;
|
@@ -1203,6 +1332,9 @@ export declare const formatters: {
|
|
1203
1332
|
accessList?: import("../index.js").AccessList | undefined;
|
1204
1333
|
blobs?: undefined;
|
1205
1334
|
type?: "0x1" | undefined;
|
1335
|
+
blobVersionedHashes?: undefined;
|
1336
|
+
kzg?: undefined;
|
1337
|
+
sidecars?: undefined;
|
1206
1338
|
eip712Meta?: undefined;
|
1207
1339
|
} | {
|
1208
1340
|
data?: `0x${string}` | undefined;
|
@@ -1218,6 +1350,9 @@ export declare const formatters: {
|
|
1218
1350
|
accessList?: import("../index.js").AccessList | undefined;
|
1219
1351
|
blobs?: undefined;
|
1220
1352
|
type?: "0x2" | undefined;
|
1353
|
+
blobVersionedHashes?: undefined;
|
1354
|
+
kzg?: undefined;
|
1355
|
+
sidecars?: undefined;
|
1221
1356
|
eip712Meta?: undefined;
|
1222
1357
|
} | {
|
1223
1358
|
data?: `0x${string}` | undefined;
|
@@ -1233,6 +1368,9 @@ export declare const formatters: {
|
|
1233
1368
|
accessList?: import("../index.js").AccessList | undefined;
|
1234
1369
|
blobs?: undefined;
|
1235
1370
|
type: "0xff" | "0x71";
|
1371
|
+
blobVersionedHashes?: undefined;
|
1372
|
+
kzg?: undefined;
|
1373
|
+
sidecars?: undefined;
|
1236
1374
|
eip712Meta: import("./index.js").ZkSyncEip712Meta;
|
1237
1375
|
} | {
|
1238
1376
|
data?: `0x${string}` | undefined;
|
@@ -1247,6 +1385,9 @@ export declare const formatters: {
|
|
1247
1385
|
maxFeePerBlobGas: `0x${string}`;
|
1248
1386
|
accessList?: import("../index.js").AccessList | undefined;
|
1249
1387
|
blobs: readonly `0x${string}`[] | readonly Uint8Array[];
|
1388
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1389
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1390
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
1250
1391
|
type?: "0x3" | undefined;
|
1251
1392
|
eip712Meta?: undefined;
|
1252
1393
|
} | {
|
@@ -1262,6 +1403,9 @@ export declare const formatters: {
|
|
1262
1403
|
maxFeePerBlobGas: undefined;
|
1263
1404
|
accessList?: import("../index.js").AccessList | undefined;
|
1264
1405
|
blobs: readonly `0x${string}`[] | readonly Uint8Array[];
|
1406
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
1407
|
+
kzg?: import("../types/kzg.js").Kzg | undefined;
|
1408
|
+
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
|
1265
1409
|
type: "0xff" | "0x71";
|
1266
1410
|
eip712Meta: import("./index.js").ZkSyncEip712Meta;
|
1267
1411
|
}) & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../zksync/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAS5C,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EACV,oBAAoB,EACpB,oCAAoC,EAEpC,iBAAiB,EAGlB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;0BAID,IAAI,EAAE,GAAG,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;0BAGjC,IAAI,EAAE,GAAG,iBAAiB,EAAE
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../zksync/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAS5C,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EACV,oBAAoB,EACpB,oCAAoC,EAEpC,iBAAiB,EAGlB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;0BAID,IAAI,EAAE,GAAG,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;0BAGjC,IAAI,EAAE,GAAG,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HZ,CAAA"}
|
package/actions/index.ts
CHANGED
@@ -343,6 +343,7 @@ export {
|
|
343
343
|
type PrepareTransactionRequestParameters,
|
344
344
|
type PrepareTransactionRequestReturnType,
|
345
345
|
prepareTransactionRequest,
|
346
|
+
defaultParameters as defaultPrepareTransactionRequestParameters,
|
346
347
|
} from './wallet/prepareTransactionRequest.js'
|
347
348
|
export {
|
348
349
|
type SendTransactionErrorType,
|
package/actions/public/call.ts
CHANGED
@@ -92,6 +92,7 @@ export type CallParameters<
|
|
92
92
|
> = UnionOmit<FormattedCall<TChain>, 'from'> & {
|
93
93
|
account?: Account | Address | undefined
|
94
94
|
batch?: boolean | undefined
|
95
|
+
stateOverride?: StateOverride | undefined
|
95
96
|
} & (
|
96
97
|
| {
|
97
98
|
/** The balance of the account at a block number. */
|
@@ -106,9 +107,7 @@ export type CallParameters<
|
|
106
107
|
*/
|
107
108
|
blockTag?: BlockTag | undefined
|
108
109
|
}
|
109
|
-
)
|
110
|
-
stateOverride?: StateOverride | undefined
|
111
|
-
}
|
110
|
+
)
|
112
111
|
|
113
112
|
export type CallReturnType = { data: Hex | undefined }
|
114
113
|
|
@@ -107,6 +107,7 @@ export async function estimateGas<
|
|
107
107
|
const {
|
108
108
|
accessList,
|
109
109
|
blobs,
|
110
|
+
blobVersionedHashes,
|
110
111
|
blockNumber,
|
111
112
|
blockTag,
|
112
113
|
data,
|
@@ -119,13 +120,13 @@ export async function estimateGas<
|
|
119
120
|
to,
|
120
121
|
value,
|
121
122
|
...rest
|
122
|
-
} =
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
123
|
+
} = (await prepareTransactionRequest(client, {
|
124
|
+
...args,
|
125
|
+
parameters:
|
126
|
+
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
127
|
+
// to compute them.
|
128
|
+
account?.type === 'local' ? undefined : ['blobVersionedHashes'],
|
129
|
+
} as PrepareTransactionRequestParameters)) as EstimateGasParameters
|
129
130
|
|
130
131
|
const blockNumberHex = blockNumber ? numberToHex(blockNumber) : undefined
|
131
132
|
const block = blockNumberHex || blockTag
|
@@ -141,6 +142,7 @@ export async function estimateGas<
|
|
141
142
|
from: account?.address,
|
142
143
|
accessList,
|
143
144
|
blobs,
|
145
|
+
blobVersionedHashes,
|
144
146
|
data,
|
145
147
|
gas,
|
146
148
|
gasPrice,
|