viem 1.1.0 → 1.1.2

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.
Files changed (149) hide show
  1. package/dist/cjs/actions/getContract.js.map +1 -1
  2. package/dist/cjs/actions/public/call.js +3 -2
  3. package/dist/cjs/actions/public/call.js.map +1 -1
  4. package/dist/cjs/actions/public/estimateGas.js +3 -2
  5. package/dist/cjs/actions/public/estimateGas.js.map +1 -1
  6. package/dist/cjs/actions/public/getBlock.js +1 -1
  7. package/dist/cjs/actions/public/getBlock.js.map +1 -1
  8. package/dist/cjs/actions/public/getTransaction.js +1 -1
  9. package/dist/cjs/actions/public/getTransaction.js.map +1 -1
  10. package/dist/cjs/actions/public/getTransactionReceipt.js +2 -1
  11. package/dist/cjs/actions/public/getTransactionReceipt.js.map +1 -1
  12. package/dist/cjs/actions/public/watchBlocks.js +1 -1
  13. package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
  14. package/dist/cjs/actions/test/sendUnsignedTransaction.js +3 -2
  15. package/dist/cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  16. package/dist/cjs/actions/wallet/sendTransaction.js +2 -2
  17. package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
  18. package/dist/cjs/actions/wallet/writeContract.js.map +1 -1
  19. package/dist/cjs/chains/formatters/celo.js.map +1 -1
  20. package/dist/cjs/chains/formatters/optimism.js +3 -4
  21. package/dist/cjs/chains/formatters/optimism.js.map +1 -1
  22. package/dist/cjs/chains/index.js +2 -1
  23. package/dist/cjs/chains/index.js.map +1 -1
  24. package/dist/cjs/errors/version.js +1 -1
  25. package/dist/cjs/index.js +5 -3
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/utils/formatters/block.js +1 -1
  28. package/dist/cjs/utils/formatters/block.js.map +1 -1
  29. package/dist/cjs/utils/formatters/extract.js +3 -3
  30. package/dist/cjs/utils/formatters/extract.js.map +1 -1
  31. package/dist/cjs/utils/formatters/formatter.js +14 -11
  32. package/dist/cjs/utils/formatters/formatter.js.map +1 -1
  33. package/dist/cjs/utils/formatters/transaction.js +1 -1
  34. package/dist/cjs/utils/formatters/transaction.js.map +1 -1
  35. package/dist/cjs/utils/formatters/transactionReceipt.js +1 -1
  36. package/dist/cjs/utils/formatters/transactionReceipt.js.map +1 -1
  37. package/dist/cjs/utils/formatters/transactionRequest.js +1 -1
  38. package/dist/cjs/utils/formatters/transactionRequest.js.map +1 -1
  39. package/dist/cjs/utils/index.js +4 -2
  40. package/dist/cjs/utils/index.js.map +1 -1
  41. package/dist/esm/actions/getContract.js.map +1 -1
  42. package/dist/esm/actions/public/call.js +3 -2
  43. package/dist/esm/actions/public/call.js.map +1 -1
  44. package/dist/esm/actions/public/estimateGas.js +3 -2
  45. package/dist/esm/actions/public/estimateGas.js.map +1 -1
  46. package/dist/esm/actions/public/getBlock.js +1 -1
  47. package/dist/esm/actions/public/getBlock.js.map +1 -1
  48. package/dist/esm/actions/public/getTransaction.js +1 -1
  49. package/dist/esm/actions/public/getTransaction.js.map +1 -1
  50. package/dist/esm/actions/public/getTransactionReceipt.js +2 -1
  51. package/dist/esm/actions/public/getTransactionReceipt.js.map +1 -1
  52. package/dist/esm/actions/public/watchBlocks.js +1 -1
  53. package/dist/esm/actions/public/watchBlocks.js.map +1 -1
  54. package/dist/esm/actions/test/sendUnsignedTransaction.js +3 -2
  55. package/dist/esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  56. package/dist/esm/actions/wallet/sendTransaction.js +2 -2
  57. package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
  58. package/dist/esm/actions/wallet/writeContract.js.map +1 -1
  59. package/dist/esm/chains/formatters/celo.js +1 -0
  60. package/dist/esm/chains/formatters/celo.js.map +1 -1
  61. package/dist/esm/chains/formatters/optimism.js +3 -3
  62. package/dist/esm/chains/formatters/optimism.js.map +1 -1
  63. package/dist/esm/chains/index.js +1 -0
  64. package/dist/esm/chains/index.js.map +1 -1
  65. package/dist/esm/errors/version.js +1 -1
  66. package/dist/esm/index.js +1 -0
  67. package/dist/esm/index.js.map +1 -1
  68. package/dist/esm/utils/formatters/block.js +1 -1
  69. package/dist/esm/utils/formatters/block.js.map +1 -1
  70. package/dist/esm/utils/formatters/extract.js +3 -3
  71. package/dist/esm/utils/formatters/extract.js.map +1 -1
  72. package/dist/esm/utils/formatters/formatter.js +14 -11
  73. package/dist/esm/utils/formatters/formatter.js.map +1 -1
  74. package/dist/esm/utils/formatters/transaction.js +1 -2
  75. package/dist/esm/utils/formatters/transaction.js.map +1 -1
  76. package/dist/esm/utils/formatters/transactionReceipt.js +1 -1
  77. package/dist/esm/utils/formatters/transactionReceipt.js.map +1 -1
  78. package/dist/esm/utils/formatters/transactionRequest.js +1 -1
  79. package/dist/esm/utils/formatters/transactionRequest.js.map +1 -1
  80. package/dist/esm/utils/index.js +1 -0
  81. package/dist/esm/utils/index.js.map +1 -1
  82. package/dist/types/actions/public/call.d.ts.map +1 -1
  83. package/dist/types/actions/public/estimateContractGas.d.ts +1 -1
  84. package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -1
  85. package/dist/types/actions/public/estimateGas.d.ts.map +1 -1
  86. package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
  87. package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  88. package/dist/types/actions/public/simulateContract.d.ts +1 -1
  89. package/dist/types/actions/public/simulateContract.d.ts.map +1 -1
  90. package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
  91. package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  92. package/dist/types/actions/wallet/sendTransaction.d.ts +2 -1
  93. package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
  94. package/dist/types/actions/wallet/writeContract.d.ts +1 -1
  95. package/dist/types/actions/wallet/writeContract.d.ts.map +1 -1
  96. package/dist/types/chains/formatters/celo.d.ts +200 -188
  97. package/dist/types/chains/formatters/celo.d.ts.map +1 -1
  98. package/dist/types/chains/formatters/optimism.d.ts +250 -250
  99. package/dist/types/chains/formatters/optimism.d.ts.map +1 -1
  100. package/dist/types/chains/index.d.ts +2220 -2153
  101. package/dist/types/chains/index.d.ts.map +1 -1
  102. package/dist/types/errors/version.d.ts +1 -1
  103. package/dist/types/index.d.ts +1 -0
  104. package/dist/types/index.d.ts.map +1 -1
  105. package/dist/types/types/formatter.d.ts +10 -7
  106. package/dist/types/types/formatter.d.ts.map +1 -1
  107. package/dist/types/types/serializer.d.ts +1 -1
  108. package/dist/types/types/serializer.d.ts.map +1 -1
  109. package/dist/types/utils/formatters/block.d.ts +4 -1
  110. package/dist/types/utils/formatters/block.d.ts.map +1 -1
  111. package/dist/types/utils/formatters/extract.d.ts +2 -2
  112. package/dist/types/utils/formatters/extract.d.ts.map +1 -1
  113. package/dist/types/utils/formatters/formatter.d.ts +5 -2
  114. package/dist/types/utils/formatters/formatter.d.ts.map +1 -1
  115. package/dist/types/utils/formatters/transaction.d.ts +5 -2
  116. package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
  117. package/dist/types/utils/formatters/transactionReceipt.d.ts +4 -1
  118. package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  119. package/dist/types/utils/formatters/transactionRequest.d.ts +4 -1
  120. package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
  121. package/dist/types/utils/index.d.ts +1 -0
  122. package/dist/types/utils/index.d.ts.map +1 -1
  123. package/package.json +2 -2
  124. package/src/actions/getContract.ts +1 -1
  125. package/src/actions/public/call.ts +3 -2
  126. package/src/actions/public/estimateContractGas.ts +1 -1
  127. package/src/actions/public/estimateGas.ts +4 -3
  128. package/src/actions/public/getBlock.ts +1 -1
  129. package/src/actions/public/getTransaction.ts +2 -1
  130. package/src/actions/public/getTransactionReceipt.ts +2 -1
  131. package/src/actions/public/simulateContract.ts +1 -1
  132. package/src/actions/public/watchBlocks.ts +2 -1
  133. package/src/actions/test/sendUnsignedTransaction.ts +3 -2
  134. package/src/actions/wallet/sendTransaction.ts +9 -3
  135. package/src/actions/wallet/writeContract.ts +11 -1
  136. package/src/chains/formatters/celo.ts +2 -1
  137. package/src/chains/formatters/optimism.ts +9 -6
  138. package/src/chains/index.ts +1 -0
  139. package/src/errors/version.ts +1 -1
  140. package/src/index.ts +1 -0
  141. package/src/types/formatter.ts +10 -9
  142. package/src/types/serializer.ts +1 -1
  143. package/src/utils/formatters/block.ts +1 -1
  144. package/src/utils/formatters/extract.ts +3 -3
  145. package/src/utils/formatters/formatter.ts +17 -13
  146. package/src/utils/formatters/transaction.ts +4 -2
  147. package/src/utils/formatters/transactionReceipt.ts +1 -0
  148. package/src/utils/formatters/transactionRequest.ts +1 -0
  149. package/src/utils/index.ts +1 -0
@@ -505,398 +505,422 @@ export declare const celo: {
505
505
  readonly testnet: false;
506
506
  } & {
507
507
  formatters: {
508
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
509
- randomness: {
510
- committed: `0x${string}`;
511
- revealed: `0x${string}`;
508
+ readonly block: {
509
+ format: (args: Partial<import("../index.js").RpcBlock> & {
510
+ randomness: {
511
+ committed: `0x${string}`;
512
+ revealed: `0x${string}`;
513
+ };
514
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
515
+ feeCurrency: `0x${string}` | null;
516
+ gatewayFee: `0x${string}` | null;
517
+ gatewayFeeRecipient: `0x${string}` | null;
518
+ })[];
519
+ }) => {
520
+ baseFeePerGas: bigint | null;
521
+ difficulty: bigint;
522
+ extraData: `0x${string}`;
523
+ gasLimit: bigint;
524
+ gasUsed: bigint;
525
+ hash: `0x${string}` | null;
526
+ logsBloom: `0x${string}` | null;
527
+ miner: `0x${string}`;
528
+ mixHash: `0x${string}`;
529
+ nonce: `0x${string}` | null;
530
+ number: bigint | null;
531
+ parentHash: `0x${string}`;
532
+ receiptsRoot: `0x${string}`;
533
+ sealFields: `0x${string}`[];
534
+ sha3Uncles: `0x${string}`;
535
+ size: bigint;
536
+ stateRoot: `0x${string}`;
537
+ timestamp: bigint;
538
+ totalDifficulty: bigint | null;
539
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
540
+ feeCurrency: `0x${string}` | null;
541
+ gatewayFee: bigint | null;
542
+ gatewayFeeRecipient: `0x${string}` | null;
543
+ })[];
544
+ transactionsRoot: `0x${string}`;
545
+ uncles: `0x${string}`[];
546
+ randomness: {
547
+ committed: `0x${string}`;
548
+ revealed: `0x${string}`;
549
+ };
550
+ } & {
551
+ nonce: never;
552
+ difficulty: never;
553
+ gasLimit: never;
554
+ mixHash: never;
555
+ uncles: never;
512
556
  };
513
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
557
+ type: "block";
558
+ };
559
+ readonly transaction: {
560
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
514
561
  feeCurrency: `0x${string}` | null;
515
562
  gatewayFee: `0x${string}` | null;
516
563
  gatewayFeeRecipient: `0x${string}` | null;
517
- })[];
518
- }) => {
519
- baseFeePerGas: bigint | null;
520
- difficulty: bigint;
521
- extraData: `0x${string}`;
522
- gasLimit: bigint;
523
- gasUsed: bigint;
524
- hash: `0x${string}` | null;
525
- logsBloom: `0x${string}` | null;
526
- miner: `0x${string}`;
527
- mixHash: `0x${string}`;
528
- nonce: `0x${string}` | null;
529
- number: bigint | null;
530
- parentHash: `0x${string}`;
531
- receiptsRoot: `0x${string}`;
532
- sealFields: `0x${string}`[];
533
- sha3Uncles: `0x${string}`;
534
- size: bigint;
535
- stateRoot: `0x${string}`;
536
- timestamp: bigint;
537
- totalDifficulty: bigint | null;
538
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
564
+ }) => ({
565
+ blockHash: `0x${string}` | null;
566
+ blockNumber: bigint | null;
567
+ from: `0x${string}`;
568
+ gas: bigint;
569
+ hash: `0x${string}`;
570
+ input: `0x${string}`;
571
+ nonce: number;
572
+ r: `0x${string}`;
573
+ s: `0x${string}`;
574
+ to: `0x${string}` | null;
575
+ transactionIndex: number | null;
576
+ typeHex: `0x${string}` | null;
577
+ v: bigint;
578
+ value: bigint;
579
+ gasPrice: bigint;
580
+ maxFeePerGas?: undefined;
581
+ maxPriorityFeePerGas?: undefined;
582
+ accessList?: undefined;
583
+ chainId?: number | undefined;
584
+ type: "legacy";
539
585
  feeCurrency: `0x${string}` | null;
540
586
  gatewayFee: bigint | null;
541
587
  gatewayFeeRecipient: `0x${string}` | null;
542
- })[];
543
- transactionsRoot: `0x${string}`;
544
- uncles: `0x${string}`[];
545
- randomness: {
546
- committed: `0x${string}`;
547
- revealed: `0x${string}`;
548
- };
549
- } & {
550
- nonce: never;
551
- difficulty: never;
552
- gasLimit: never;
553
- mixHash: never;
554
- uncles: never;
555
- };
556
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
557
- feeCurrency: `0x${string}` | null;
558
- gatewayFee: `0x${string}` | null;
559
- gatewayFeeRecipient: `0x${string}` | null;
560
- }) => ({
561
- blockHash: `0x${string}` | null;
562
- blockNumber: bigint | null;
563
- from: `0x${string}`;
564
- gas: bigint;
565
- hash: `0x${string}`;
566
- input: `0x${string}`;
567
- nonce: number;
568
- r: `0x${string}`;
569
- s: `0x${string}`;
570
- to: `0x${string}` | null;
571
- transactionIndex: number | null;
572
- typeHex: `0x${string}` | null;
573
- v: bigint;
574
- value: bigint;
575
- gasPrice: bigint;
576
- maxFeePerGas?: undefined;
577
- maxPriorityFeePerGas?: undefined;
578
- accessList?: undefined;
579
- chainId?: number | undefined;
580
- type: "legacy";
581
- feeCurrency: `0x${string}` | null;
582
- gatewayFee: bigint | null;
583
- gatewayFeeRecipient: `0x${string}` | null;
584
- } | {
585
- blockHash: `0x${string}` | null;
586
- blockNumber: bigint | null;
587
- from: `0x${string}`;
588
- gas: bigint;
589
- hash: `0x${string}`;
590
- input: `0x${string}`;
591
- nonce: number;
592
- r: `0x${string}`;
593
- s: `0x${string}`;
594
- to: `0x${string}` | null;
595
- transactionIndex: number | null;
596
- typeHex: `0x${string}` | null;
597
- v: bigint;
598
- value: bigint;
599
- gasPrice: bigint;
600
- maxFeePerGas?: undefined;
601
- maxPriorityFeePerGas?: undefined;
602
- accessList: import("../index.js").AccessList;
603
- chainId: number;
604
- type: "eip2930";
605
- feeCurrency: `0x${string}` | null;
606
- gatewayFee: bigint | null;
607
- gatewayFeeRecipient: `0x${string}` | null;
608
- } | {
609
- blockHash: `0x${string}` | null;
610
- blockNumber: bigint | null;
611
- from: `0x${string}`;
612
- gas: bigint;
613
- hash: `0x${string}`;
614
- input: `0x${string}`;
615
- nonce: number;
616
- r: `0x${string}`;
617
- s: `0x${string}`;
618
- to: `0x${string}` | null;
619
- transactionIndex: number | null;
620
- typeHex: `0x${string}` | null;
621
- v: bigint;
622
- value: bigint;
623
- gasPrice?: undefined;
624
- maxFeePerGas: bigint;
625
- maxPriorityFeePerGas: bigint;
626
- accessList: import("../index.js").AccessList;
627
- chainId: number;
628
- type: "eip1559";
629
- feeCurrency: `0x${string}` | null;
630
- gatewayFee: bigint | null;
631
- gatewayFeeRecipient: `0x${string}` | null;
632
- }) & {};
633
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
634
- feeCurrency: `0x${string}` | null;
635
- gatewayFee: `0x${string}` | null;
636
- gatewayFeeRecipient: `0x${string}` | null;
637
- }) => {
638
- blockHash: `0x${string}`;
639
- blockNumber: bigint;
640
- contractAddress: `0x${string}` | null;
641
- cumulativeGasUsed: bigint;
642
- effectiveGasPrice: bigint;
643
- from: `0x${string}`;
644
- gasUsed: bigint;
645
- logs: import("../index.js").Log<bigint, number>[];
646
- logsBloom: `0x${string}`;
647
- status: "success" | "reverted";
648
- to: `0x${string}` | null;
649
- transactionHash: `0x${string}`;
650
- transactionIndex: number;
651
- type: import("../index.js").TransactionType;
652
- feeCurrency: `0x${string}` | null;
653
- gatewayFee: bigint | null;
654
- gatewayFeeRecipient: `0x${string}` | null;
655
- } & {};
656
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
657
- feeCurrency?: `0x${string}` | undefined;
658
- gatewayFee?: bigint | undefined;
659
- gatewayFeeRecipient?: `0x${string}` | undefined;
660
- }) => ({
661
- data?: `0x${string}` | undefined;
662
- from: `0x${string}`;
663
- gas?: `0x${string}` | undefined;
664
- nonce?: `0x${string}` | undefined;
665
- to?: `0x${string}` | undefined;
666
- value?: `0x${string}` | undefined;
667
- gasPrice?: `0x${string}` | undefined;
668
- maxFeePerGas?: undefined;
669
- maxPriorityFeePerGas?: undefined;
670
- accessList?: undefined;
671
- feeCurrency: `0x${string}` | undefined;
672
- gatewayFee: `0x${string}` | undefined;
673
- gatewayFeeRecipient: `0x${string}` | undefined;
674
- } | {
675
- data?: `0x${string}` | undefined;
676
- from: `0x${string}`;
677
- gas?: `0x${string}` | undefined;
678
- nonce?: `0x${string}` | undefined;
679
- to?: `0x${string}` | undefined;
680
- value?: `0x${string}` | undefined;
681
- gasPrice?: `0x${string}` | undefined;
682
- maxFeePerGas?: undefined;
683
- maxPriorityFeePerGas?: undefined;
684
- accessList?: import("../index.js").AccessList | undefined;
685
- feeCurrency: `0x${string}` | undefined;
686
- gatewayFee: `0x${string}` | undefined;
687
- gatewayFeeRecipient: `0x${string}` | undefined;
688
- } | {
689
- data?: `0x${string}` | undefined;
690
- from: `0x${string}`;
691
- gas?: `0x${string}` | undefined;
692
- nonce?: `0x${string}` | undefined;
693
- to?: `0x${string}` | undefined;
694
- value?: `0x${string}` | undefined;
695
- gasPrice?: undefined;
696
- maxFeePerGas?: `0x${string}` | undefined;
697
- maxPriorityFeePerGas?: `0x${string}` | undefined;
698
- accessList?: import("../index.js").AccessList | undefined;
699
- feeCurrency: `0x${string}` | undefined;
700
- gatewayFee: `0x${string}` | undefined;
701
- gatewayFeeRecipient: `0x${string}` | undefined;
702
- }) & {};
588
+ } | {
589
+ blockHash: `0x${string}` | null;
590
+ blockNumber: bigint | null;
591
+ from: `0x${string}`;
592
+ gas: bigint;
593
+ hash: `0x${string}`;
594
+ input: `0x${string}`;
595
+ nonce: number;
596
+ r: `0x${string}`;
597
+ s: `0x${string}`;
598
+ to: `0x${string}` | null;
599
+ transactionIndex: number | null;
600
+ typeHex: `0x${string}` | null;
601
+ v: bigint;
602
+ value: bigint;
603
+ gasPrice: bigint;
604
+ maxFeePerGas?: undefined;
605
+ maxPriorityFeePerGas?: undefined;
606
+ accessList: import("../index.js").AccessList;
607
+ chainId: number;
608
+ type: "eip2930";
609
+ feeCurrency: `0x${string}` | null;
610
+ gatewayFee: bigint | null;
611
+ gatewayFeeRecipient: `0x${string}` | null;
612
+ } | {
613
+ blockHash: `0x${string}` | null;
614
+ blockNumber: bigint | null;
615
+ from: `0x${string}`;
616
+ gas: bigint;
617
+ hash: `0x${string}`;
618
+ input: `0x${string}`;
619
+ nonce: number;
620
+ r: `0x${string}`;
621
+ s: `0x${string}`;
622
+ to: `0x${string}` | null;
623
+ transactionIndex: number | null;
624
+ typeHex: `0x${string}` | null;
625
+ v: bigint;
626
+ value: bigint;
627
+ gasPrice?: undefined;
628
+ maxFeePerGas: bigint;
629
+ maxPriorityFeePerGas: bigint;
630
+ accessList: import("../index.js").AccessList;
631
+ chainId: number;
632
+ type: "eip1559";
633
+ feeCurrency: `0x${string}` | null;
634
+ gatewayFee: bigint | null;
635
+ gatewayFeeRecipient: `0x${string}` | null;
636
+ }) & {};
637
+ type: "transaction";
638
+ };
639
+ readonly transactionReceipt: {
640
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
641
+ feeCurrency: `0x${string}` | null;
642
+ gatewayFee: `0x${string}` | null;
643
+ gatewayFeeRecipient: `0x${string}` | null;
644
+ }) => {
645
+ blockHash: `0x${string}`;
646
+ blockNumber: bigint;
647
+ contractAddress: `0x${string}` | null;
648
+ cumulativeGasUsed: bigint;
649
+ effectiveGasPrice: bigint;
650
+ from: `0x${string}`;
651
+ gasUsed: bigint;
652
+ logs: import("../index.js").Log<bigint, number>[];
653
+ logsBloom: `0x${string}`;
654
+ status: "success" | "reverted";
655
+ to: `0x${string}` | null;
656
+ transactionHash: `0x${string}`;
657
+ transactionIndex: number;
658
+ type: import("../index.js").TransactionType;
659
+ feeCurrency: `0x${string}` | null;
660
+ gatewayFee: bigint | null;
661
+ gatewayFeeRecipient: `0x${string}` | null;
662
+ } & {};
663
+ type: "transactionReceipt";
664
+ };
665
+ readonly transactionRequest: {
666
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
667
+ feeCurrency?: `0x${string}` | undefined;
668
+ gatewayFee?: bigint | undefined;
669
+ gatewayFeeRecipient?: `0x${string}` | undefined;
670
+ }) => ({
671
+ data?: `0x${string}` | undefined;
672
+ from: `0x${string}`;
673
+ gas?: `0x${string}` | undefined;
674
+ nonce?: `0x${string}` | undefined;
675
+ to?: `0x${string}` | undefined;
676
+ value?: `0x${string}` | undefined;
677
+ gasPrice?: `0x${string}` | undefined;
678
+ maxFeePerGas?: undefined;
679
+ maxPriorityFeePerGas?: undefined;
680
+ accessList?: undefined;
681
+ feeCurrency: `0x${string}` | undefined;
682
+ gatewayFee: `0x${string}` | undefined;
683
+ gatewayFeeRecipient: `0x${string}` | undefined;
684
+ } | {
685
+ data?: `0x${string}` | undefined;
686
+ from: `0x${string}`;
687
+ gas?: `0x${string}` | undefined;
688
+ nonce?: `0x${string}` | undefined;
689
+ to?: `0x${string}` | undefined;
690
+ value?: `0x${string}` | undefined;
691
+ gasPrice?: `0x${string}` | undefined;
692
+ maxFeePerGas?: undefined;
693
+ maxPriorityFeePerGas?: undefined;
694
+ accessList?: import("../index.js").AccessList | undefined;
695
+ feeCurrency: `0x${string}` | undefined;
696
+ gatewayFee: `0x${string}` | undefined;
697
+ gatewayFeeRecipient: `0x${string}` | undefined;
698
+ } | {
699
+ data?: `0x${string}` | undefined;
700
+ from: `0x${string}`;
701
+ gas?: `0x${string}` | undefined;
702
+ nonce?: `0x${string}` | undefined;
703
+ to?: `0x${string}` | undefined;
704
+ value?: `0x${string}` | undefined;
705
+ gasPrice?: undefined;
706
+ maxFeePerGas?: `0x${string}` | undefined;
707
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
708
+ accessList?: import("../index.js").AccessList | undefined;
709
+ feeCurrency: `0x${string}` | undefined;
710
+ gatewayFee: `0x${string}` | undefined;
711
+ gatewayFeeRecipient: `0x${string}` | undefined;
712
+ }) & {};
713
+ type: "transactionRequest";
714
+ };
703
715
  } | undefined;
704
716
  serializers: import("../index.js").Serializers<{
705
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
706
- randomness: {
707
- committed: `0x${string}`;
708
- revealed: `0x${string}`;
717
+ readonly block: {
718
+ format: (args: Partial<import("../index.js").RpcBlock> & {
719
+ randomness: {
720
+ committed: `0x${string}`;
721
+ revealed: `0x${string}`;
722
+ };
723
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
724
+ feeCurrency: `0x${string}` | null;
725
+ gatewayFee: `0x${string}` | null;
726
+ gatewayFeeRecipient: `0x${string}` | null;
727
+ })[];
728
+ }) => {
729
+ baseFeePerGas: bigint | null;
730
+ difficulty: bigint;
731
+ extraData: `0x${string}`;
732
+ gasLimit: bigint;
733
+ gasUsed: bigint;
734
+ hash: `0x${string}` | null;
735
+ logsBloom: `0x${string}` | null;
736
+ miner: `0x${string}`;
737
+ mixHash: `0x${string}`;
738
+ nonce: `0x${string}` | null;
739
+ number: bigint | null;
740
+ parentHash: `0x${string}`;
741
+ receiptsRoot: `0x${string}`;
742
+ sealFields: `0x${string}`[];
743
+ sha3Uncles: `0x${string}`;
744
+ size: bigint;
745
+ stateRoot: `0x${string}`;
746
+ timestamp: bigint;
747
+ totalDifficulty: bigint | null;
748
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
749
+ feeCurrency: `0x${string}` | null;
750
+ gatewayFee: bigint | null;
751
+ gatewayFeeRecipient: `0x${string}` | null;
752
+ })[];
753
+ transactionsRoot: `0x${string}`;
754
+ uncles: `0x${string}`[];
755
+ randomness: {
756
+ committed: `0x${string}`;
757
+ revealed: `0x${string}`;
758
+ };
759
+ } & {
760
+ nonce: never;
761
+ difficulty: never;
762
+ gasLimit: never;
763
+ mixHash: never;
764
+ uncles: never;
709
765
  };
710
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
766
+ type: "block";
767
+ };
768
+ readonly transaction: {
769
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
711
770
  feeCurrency: `0x${string}` | null;
712
771
  gatewayFee: `0x${string}` | null;
713
772
  gatewayFeeRecipient: `0x${string}` | null;
714
- })[];
715
- }) => {
716
- baseFeePerGas: bigint | null;
717
- difficulty: bigint;
718
- extraData: `0x${string}`;
719
- gasLimit: bigint;
720
- gasUsed: bigint;
721
- hash: `0x${string}` | null;
722
- logsBloom: `0x${string}` | null;
723
- miner: `0x${string}`;
724
- mixHash: `0x${string}`;
725
- nonce: `0x${string}` | null;
726
- number: bigint | null;
727
- parentHash: `0x${string}`;
728
- receiptsRoot: `0x${string}`;
729
- sealFields: `0x${string}`[];
730
- sha3Uncles: `0x${string}`;
731
- size: bigint;
732
- stateRoot: `0x${string}`;
733
- timestamp: bigint;
734
- totalDifficulty: bigint | null;
735
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
773
+ }) => ({
774
+ blockHash: `0x${string}` | null;
775
+ blockNumber: bigint | null;
776
+ from: `0x${string}`;
777
+ gas: bigint;
778
+ hash: `0x${string}`;
779
+ input: `0x${string}`;
780
+ nonce: number;
781
+ r: `0x${string}`;
782
+ s: `0x${string}`;
783
+ to: `0x${string}` | null;
784
+ transactionIndex: number | null;
785
+ typeHex: `0x${string}` | null;
786
+ v: bigint;
787
+ value: bigint;
788
+ gasPrice: bigint;
789
+ maxFeePerGas?: undefined;
790
+ maxPriorityFeePerGas?: undefined;
791
+ accessList?: undefined;
792
+ chainId?: number | undefined;
793
+ type: "legacy";
736
794
  feeCurrency: `0x${string}` | null;
737
795
  gatewayFee: bigint | null;
738
796
  gatewayFeeRecipient: `0x${string}` | null;
739
- })[];
740
- transactionsRoot: `0x${string}`;
741
- uncles: `0x${string}`[];
742
- randomness: {
743
- committed: `0x${string}`;
744
- revealed: `0x${string}`;
745
- };
746
- } & {
747
- nonce: never;
748
- difficulty: never;
749
- gasLimit: never;
750
- mixHash: never;
751
- uncles: never;
752
- };
753
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
754
- feeCurrency: `0x${string}` | null;
755
- gatewayFee: `0x${string}` | null;
756
- gatewayFeeRecipient: `0x${string}` | null;
757
- }) => ({
758
- blockHash: `0x${string}` | null;
759
- blockNumber: bigint | null;
760
- from: `0x${string}`;
761
- gas: bigint;
762
- hash: `0x${string}`;
763
- input: `0x${string}`;
764
- nonce: number;
765
- r: `0x${string}`;
766
- s: `0x${string}`;
767
- to: `0x${string}` | null;
768
- transactionIndex: number | null;
769
- typeHex: `0x${string}` | null;
770
- v: bigint;
771
- value: bigint;
772
- gasPrice: bigint;
773
- maxFeePerGas?: undefined;
774
- maxPriorityFeePerGas?: undefined;
775
- accessList?: undefined;
776
- chainId?: number | undefined;
777
- type: "legacy";
778
- feeCurrency: `0x${string}` | null;
779
- gatewayFee: bigint | null;
780
- gatewayFeeRecipient: `0x${string}` | null;
781
- } | {
782
- blockHash: `0x${string}` | null;
783
- blockNumber: bigint | null;
784
- from: `0x${string}`;
785
- gas: bigint;
786
- hash: `0x${string}`;
787
- input: `0x${string}`;
788
- nonce: number;
789
- r: `0x${string}`;
790
- s: `0x${string}`;
791
- to: `0x${string}` | null;
792
- transactionIndex: number | null;
793
- typeHex: `0x${string}` | null;
794
- v: bigint;
795
- value: bigint;
796
- gasPrice: bigint;
797
- maxFeePerGas?: undefined;
798
- maxPriorityFeePerGas?: undefined;
799
- accessList: import("../index.js").AccessList;
800
- chainId: number;
801
- type: "eip2930";
802
- feeCurrency: `0x${string}` | null;
803
- gatewayFee: bigint | null;
804
- gatewayFeeRecipient: `0x${string}` | null;
805
- } | {
806
- blockHash: `0x${string}` | null;
807
- blockNumber: bigint | null;
808
- from: `0x${string}`;
809
- gas: bigint;
810
- hash: `0x${string}`;
811
- input: `0x${string}`;
812
- nonce: number;
813
- r: `0x${string}`;
814
- s: `0x${string}`;
815
- to: `0x${string}` | null;
816
- transactionIndex: number | null;
817
- typeHex: `0x${string}` | null;
818
- v: bigint;
819
- value: bigint;
820
- gasPrice?: undefined;
821
- maxFeePerGas: bigint;
822
- maxPriorityFeePerGas: bigint;
823
- accessList: import("../index.js").AccessList;
824
- chainId: number;
825
- type: "eip1559";
826
- feeCurrency: `0x${string}` | null;
827
- gatewayFee: bigint | null;
828
- gatewayFeeRecipient: `0x${string}` | null;
829
- }) & {};
830
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
831
- feeCurrency: `0x${string}` | null;
832
- gatewayFee: `0x${string}` | null;
833
- gatewayFeeRecipient: `0x${string}` | null;
834
- }) => {
835
- blockHash: `0x${string}`;
836
- blockNumber: bigint;
837
- contractAddress: `0x${string}` | null;
838
- cumulativeGasUsed: bigint;
839
- effectiveGasPrice: bigint;
840
- from: `0x${string}`;
841
- gasUsed: bigint;
842
- logs: import("../index.js").Log<bigint, number>[];
843
- logsBloom: `0x${string}`;
844
- status: "success" | "reverted";
845
- to: `0x${string}` | null;
846
- transactionHash: `0x${string}`;
847
- transactionIndex: number;
848
- type: import("../index.js").TransactionType;
849
- feeCurrency: `0x${string}` | null;
850
- gatewayFee: bigint | null;
851
- gatewayFeeRecipient: `0x${string}` | null;
852
- } & {};
853
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
854
- feeCurrency?: `0x${string}` | undefined;
855
- gatewayFee?: bigint | undefined;
856
- gatewayFeeRecipient?: `0x${string}` | undefined;
857
- }) => ({
858
- data?: `0x${string}` | undefined;
859
- from: `0x${string}`;
860
- gas?: `0x${string}` | undefined;
861
- nonce?: `0x${string}` | undefined;
862
- to?: `0x${string}` | undefined;
863
- value?: `0x${string}` | undefined;
864
- gasPrice?: `0x${string}` | undefined;
865
- maxFeePerGas?: undefined;
866
- maxPriorityFeePerGas?: undefined;
867
- accessList?: undefined;
868
- feeCurrency: `0x${string}` | undefined;
869
- gatewayFee: `0x${string}` | undefined;
870
- gatewayFeeRecipient: `0x${string}` | undefined;
871
- } | {
872
- data?: `0x${string}` | undefined;
873
- from: `0x${string}`;
874
- gas?: `0x${string}` | undefined;
875
- nonce?: `0x${string}` | undefined;
876
- to?: `0x${string}` | undefined;
877
- value?: `0x${string}` | undefined;
878
- gasPrice?: `0x${string}` | undefined;
879
- maxFeePerGas?: undefined;
880
- maxPriorityFeePerGas?: undefined;
881
- accessList?: import("../index.js").AccessList | undefined;
882
- feeCurrency: `0x${string}` | undefined;
883
- gatewayFee: `0x${string}` | undefined;
884
- gatewayFeeRecipient: `0x${string}` | undefined;
885
- } | {
886
- data?: `0x${string}` | undefined;
887
- from: `0x${string}`;
888
- gas?: `0x${string}` | undefined;
889
- nonce?: `0x${string}` | undefined;
890
- to?: `0x${string}` | undefined;
891
- value?: `0x${string}` | undefined;
892
- gasPrice?: undefined;
893
- maxFeePerGas?: `0x${string}` | undefined;
894
- maxPriorityFeePerGas?: `0x${string}` | undefined;
895
- accessList?: import("../index.js").AccessList | undefined;
896
- feeCurrency: `0x${string}` | undefined;
897
- gatewayFee: `0x${string}` | undefined;
898
- gatewayFeeRecipient: `0x${string}` | undefined;
899
- }) & {};
797
+ } | {
798
+ blockHash: `0x${string}` | null;
799
+ blockNumber: bigint | null;
800
+ from: `0x${string}`;
801
+ gas: bigint;
802
+ hash: `0x${string}`;
803
+ input: `0x${string}`;
804
+ nonce: number;
805
+ r: `0x${string}`;
806
+ s: `0x${string}`;
807
+ to: `0x${string}` | null;
808
+ transactionIndex: number | null;
809
+ typeHex: `0x${string}` | null;
810
+ v: bigint;
811
+ value: bigint;
812
+ gasPrice: bigint;
813
+ maxFeePerGas?: undefined;
814
+ maxPriorityFeePerGas?: undefined;
815
+ accessList: import("../index.js").AccessList;
816
+ chainId: number;
817
+ type: "eip2930";
818
+ feeCurrency: `0x${string}` | null;
819
+ gatewayFee: bigint | null;
820
+ gatewayFeeRecipient: `0x${string}` | null;
821
+ } | {
822
+ blockHash: `0x${string}` | null;
823
+ blockNumber: bigint | null;
824
+ from: `0x${string}`;
825
+ gas: bigint;
826
+ hash: `0x${string}`;
827
+ input: `0x${string}`;
828
+ nonce: number;
829
+ r: `0x${string}`;
830
+ s: `0x${string}`;
831
+ to: `0x${string}` | null;
832
+ transactionIndex: number | null;
833
+ typeHex: `0x${string}` | null;
834
+ v: bigint;
835
+ value: bigint;
836
+ gasPrice?: undefined;
837
+ maxFeePerGas: bigint;
838
+ maxPriorityFeePerGas: bigint;
839
+ accessList: import("../index.js").AccessList;
840
+ chainId: number;
841
+ type: "eip1559";
842
+ feeCurrency: `0x${string}` | null;
843
+ gatewayFee: bigint | null;
844
+ gatewayFeeRecipient: `0x${string}` | null;
845
+ }) & {};
846
+ type: "transaction";
847
+ };
848
+ readonly transactionReceipt: {
849
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
850
+ feeCurrency: `0x${string}` | null;
851
+ gatewayFee: `0x${string}` | null;
852
+ gatewayFeeRecipient: `0x${string}` | null;
853
+ }) => {
854
+ blockHash: `0x${string}`;
855
+ blockNumber: bigint;
856
+ contractAddress: `0x${string}` | null;
857
+ cumulativeGasUsed: bigint;
858
+ effectiveGasPrice: bigint;
859
+ from: `0x${string}`;
860
+ gasUsed: bigint;
861
+ logs: import("../index.js").Log<bigint, number>[];
862
+ logsBloom: `0x${string}`;
863
+ status: "success" | "reverted";
864
+ to: `0x${string}` | null;
865
+ transactionHash: `0x${string}`;
866
+ transactionIndex: number;
867
+ type: import("../index.js").TransactionType;
868
+ feeCurrency: `0x${string}` | null;
869
+ gatewayFee: bigint | null;
870
+ gatewayFeeRecipient: `0x${string}` | null;
871
+ } & {};
872
+ type: "transactionReceipt";
873
+ };
874
+ readonly transactionRequest: {
875
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
876
+ feeCurrency?: `0x${string}` | undefined;
877
+ gatewayFee?: bigint | undefined;
878
+ gatewayFeeRecipient?: `0x${string}` | undefined;
879
+ }) => ({
880
+ data?: `0x${string}` | undefined;
881
+ from: `0x${string}`;
882
+ gas?: `0x${string}` | undefined;
883
+ nonce?: `0x${string}` | undefined;
884
+ to?: `0x${string}` | undefined;
885
+ value?: `0x${string}` | undefined;
886
+ gasPrice?: `0x${string}` | undefined;
887
+ maxFeePerGas?: undefined;
888
+ maxPriorityFeePerGas?: undefined;
889
+ accessList?: undefined;
890
+ feeCurrency: `0x${string}` | undefined;
891
+ gatewayFee: `0x${string}` | undefined;
892
+ gatewayFeeRecipient: `0x${string}` | undefined;
893
+ } | {
894
+ data?: `0x${string}` | undefined;
895
+ from: `0x${string}`;
896
+ gas?: `0x${string}` | undefined;
897
+ nonce?: `0x${string}` | undefined;
898
+ to?: `0x${string}` | undefined;
899
+ value?: `0x${string}` | undefined;
900
+ gasPrice?: `0x${string}` | undefined;
901
+ maxFeePerGas?: undefined;
902
+ maxPriorityFeePerGas?: undefined;
903
+ accessList?: import("../index.js").AccessList | undefined;
904
+ feeCurrency: `0x${string}` | undefined;
905
+ gatewayFee: `0x${string}` | undefined;
906
+ gatewayFeeRecipient: `0x${string}` | undefined;
907
+ } | {
908
+ data?: `0x${string}` | undefined;
909
+ from: `0x${string}`;
910
+ gas?: `0x${string}` | undefined;
911
+ nonce?: `0x${string}` | undefined;
912
+ to?: `0x${string}` | undefined;
913
+ value?: `0x${string}` | undefined;
914
+ gasPrice?: undefined;
915
+ maxFeePerGas?: `0x${string}` | undefined;
916
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
917
+ accessList?: import("../index.js").AccessList | undefined;
918
+ feeCurrency: `0x${string}` | undefined;
919
+ gatewayFee: `0x${string}` | undefined;
920
+ gatewayFeeRecipient: `0x${string}` | undefined;
921
+ }) & {};
922
+ type: "transactionRequest";
923
+ };
900
924
  }> | undefined;
901
925
  };
902
926
  export declare const celoAlfajores: {
@@ -938,398 +962,422 @@ export declare const celoAlfajores: {
938
962
  readonly testnet: true;
939
963
  } & {
940
964
  formatters: {
941
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
942
- randomness: {
943
- committed: `0x${string}`;
944
- revealed: `0x${string}`;
965
+ readonly block: {
966
+ format: (args: Partial<import("../index.js").RpcBlock> & {
967
+ randomness: {
968
+ committed: `0x${string}`;
969
+ revealed: `0x${string}`;
970
+ };
971
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
972
+ feeCurrency: `0x${string}` | null;
973
+ gatewayFee: `0x${string}` | null;
974
+ gatewayFeeRecipient: `0x${string}` | null;
975
+ })[];
976
+ }) => {
977
+ baseFeePerGas: bigint | null;
978
+ difficulty: bigint;
979
+ extraData: `0x${string}`;
980
+ gasLimit: bigint;
981
+ gasUsed: bigint;
982
+ hash: `0x${string}` | null;
983
+ logsBloom: `0x${string}` | null;
984
+ miner: `0x${string}`;
985
+ mixHash: `0x${string}`;
986
+ nonce: `0x${string}` | null;
987
+ number: bigint | null;
988
+ parentHash: `0x${string}`;
989
+ receiptsRoot: `0x${string}`;
990
+ sealFields: `0x${string}`[];
991
+ sha3Uncles: `0x${string}`;
992
+ size: bigint;
993
+ stateRoot: `0x${string}`;
994
+ timestamp: bigint;
995
+ totalDifficulty: bigint | null;
996
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
997
+ feeCurrency: `0x${string}` | null;
998
+ gatewayFee: bigint | null;
999
+ gatewayFeeRecipient: `0x${string}` | null;
1000
+ })[];
1001
+ transactionsRoot: `0x${string}`;
1002
+ uncles: `0x${string}`[];
1003
+ randomness: {
1004
+ committed: `0x${string}`;
1005
+ revealed: `0x${string}`;
1006
+ };
1007
+ } & {
1008
+ nonce: never;
1009
+ difficulty: never;
1010
+ gasLimit: never;
1011
+ mixHash: never;
1012
+ uncles: never;
945
1013
  };
946
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1014
+ type: "block";
1015
+ };
1016
+ readonly transaction: {
1017
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
947
1018
  feeCurrency: `0x${string}` | null;
948
1019
  gatewayFee: `0x${string}` | null;
949
1020
  gatewayFeeRecipient: `0x${string}` | null;
950
- })[];
951
- }) => {
952
- baseFeePerGas: bigint | null;
953
- difficulty: bigint;
954
- extraData: `0x${string}`;
955
- gasLimit: bigint;
956
- gasUsed: bigint;
957
- hash: `0x${string}` | null;
958
- logsBloom: `0x${string}` | null;
959
- miner: `0x${string}`;
960
- mixHash: `0x${string}`;
961
- nonce: `0x${string}` | null;
962
- number: bigint | null;
963
- parentHash: `0x${string}`;
964
- receiptsRoot: `0x${string}`;
965
- sealFields: `0x${string}`[];
966
- sha3Uncles: `0x${string}`;
967
- size: bigint;
968
- stateRoot: `0x${string}`;
969
- timestamp: bigint;
970
- totalDifficulty: bigint | null;
971
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1021
+ }) => ({
1022
+ blockHash: `0x${string}` | null;
1023
+ blockNumber: bigint | null;
1024
+ from: `0x${string}`;
1025
+ gas: bigint;
1026
+ hash: `0x${string}`;
1027
+ input: `0x${string}`;
1028
+ nonce: number;
1029
+ r: `0x${string}`;
1030
+ s: `0x${string}`;
1031
+ to: `0x${string}` | null;
1032
+ transactionIndex: number | null;
1033
+ typeHex: `0x${string}` | null;
1034
+ v: bigint;
1035
+ value: bigint;
1036
+ gasPrice: bigint;
1037
+ maxFeePerGas?: undefined;
1038
+ maxPriorityFeePerGas?: undefined;
1039
+ accessList?: undefined;
1040
+ chainId?: number | undefined;
1041
+ type: "legacy";
972
1042
  feeCurrency: `0x${string}` | null;
973
1043
  gatewayFee: bigint | null;
974
1044
  gatewayFeeRecipient: `0x${string}` | null;
975
- })[];
976
- transactionsRoot: `0x${string}`;
977
- uncles: `0x${string}`[];
978
- randomness: {
979
- committed: `0x${string}`;
980
- revealed: `0x${string}`;
981
- };
982
- } & {
983
- nonce: never;
984
- difficulty: never;
985
- gasLimit: never;
986
- mixHash: never;
987
- uncles: never;
988
- };
989
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
990
- feeCurrency: `0x${string}` | null;
991
- gatewayFee: `0x${string}` | null;
992
- gatewayFeeRecipient: `0x${string}` | null;
993
- }) => ({
994
- blockHash: `0x${string}` | null;
995
- blockNumber: bigint | null;
996
- from: `0x${string}`;
997
- gas: bigint;
998
- hash: `0x${string}`;
999
- input: `0x${string}`;
1000
- nonce: number;
1001
- r: `0x${string}`;
1002
- s: `0x${string}`;
1003
- to: `0x${string}` | null;
1004
- transactionIndex: number | null;
1005
- typeHex: `0x${string}` | null;
1006
- v: bigint;
1007
- value: bigint;
1008
- gasPrice: bigint;
1009
- maxFeePerGas?: undefined;
1010
- maxPriorityFeePerGas?: undefined;
1011
- accessList?: undefined;
1012
- chainId?: number | undefined;
1013
- type: "legacy";
1014
- feeCurrency: `0x${string}` | null;
1015
- gatewayFee: bigint | null;
1016
- gatewayFeeRecipient: `0x${string}` | null;
1017
- } | {
1018
- blockHash: `0x${string}` | null;
1019
- blockNumber: bigint | null;
1020
- from: `0x${string}`;
1021
- gas: bigint;
1022
- hash: `0x${string}`;
1023
- input: `0x${string}`;
1024
- nonce: number;
1025
- r: `0x${string}`;
1026
- s: `0x${string}`;
1027
- to: `0x${string}` | null;
1028
- transactionIndex: number | null;
1029
- typeHex: `0x${string}` | null;
1030
- v: bigint;
1031
- value: bigint;
1032
- gasPrice: bigint;
1033
- maxFeePerGas?: undefined;
1034
- maxPriorityFeePerGas?: undefined;
1035
- accessList: import("../index.js").AccessList;
1036
- chainId: number;
1037
- type: "eip2930";
1038
- feeCurrency: `0x${string}` | null;
1039
- gatewayFee: bigint | null;
1040
- gatewayFeeRecipient: `0x${string}` | null;
1041
- } | {
1042
- blockHash: `0x${string}` | null;
1043
- blockNumber: bigint | null;
1044
- from: `0x${string}`;
1045
- gas: bigint;
1046
- hash: `0x${string}`;
1047
- input: `0x${string}`;
1048
- nonce: number;
1049
- r: `0x${string}`;
1050
- s: `0x${string}`;
1051
- to: `0x${string}` | null;
1052
- transactionIndex: number | null;
1053
- typeHex: `0x${string}` | null;
1054
- v: bigint;
1055
- value: bigint;
1056
- gasPrice?: undefined;
1057
- maxFeePerGas: bigint;
1058
- maxPriorityFeePerGas: bigint;
1059
- accessList: import("../index.js").AccessList;
1060
- chainId: number;
1061
- type: "eip1559";
1062
- feeCurrency: `0x${string}` | null;
1063
- gatewayFee: bigint | null;
1064
- gatewayFeeRecipient: `0x${string}` | null;
1065
- }) & {};
1066
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1067
- feeCurrency: `0x${string}` | null;
1068
- gatewayFee: `0x${string}` | null;
1069
- gatewayFeeRecipient: `0x${string}` | null;
1070
- }) => {
1071
- blockHash: `0x${string}`;
1072
- blockNumber: bigint;
1073
- contractAddress: `0x${string}` | null;
1074
- cumulativeGasUsed: bigint;
1075
- effectiveGasPrice: bigint;
1076
- from: `0x${string}`;
1077
- gasUsed: bigint;
1078
- logs: import("../index.js").Log<bigint, number>[];
1079
- logsBloom: `0x${string}`;
1080
- status: "success" | "reverted";
1081
- to: `0x${string}` | null;
1082
- transactionHash: `0x${string}`;
1083
- transactionIndex: number;
1084
- type: import("../index.js").TransactionType;
1085
- feeCurrency: `0x${string}` | null;
1086
- gatewayFee: bigint | null;
1087
- gatewayFeeRecipient: `0x${string}` | null;
1088
- } & {};
1089
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1090
- feeCurrency?: `0x${string}` | undefined;
1091
- gatewayFee?: bigint | undefined;
1092
- gatewayFeeRecipient?: `0x${string}` | undefined;
1093
- }) => ({
1094
- data?: `0x${string}` | undefined;
1095
- from: `0x${string}`;
1096
- gas?: `0x${string}` | undefined;
1097
- nonce?: `0x${string}` | undefined;
1098
- to?: `0x${string}` | undefined;
1099
- value?: `0x${string}` | undefined;
1100
- gasPrice?: `0x${string}` | undefined;
1101
- maxFeePerGas?: undefined;
1102
- maxPriorityFeePerGas?: undefined;
1103
- accessList?: undefined;
1104
- feeCurrency: `0x${string}` | undefined;
1105
- gatewayFee: `0x${string}` | undefined;
1106
- gatewayFeeRecipient: `0x${string}` | undefined;
1107
- } | {
1108
- data?: `0x${string}` | undefined;
1109
- from: `0x${string}`;
1110
- gas?: `0x${string}` | undefined;
1111
- nonce?: `0x${string}` | undefined;
1112
- to?: `0x${string}` | undefined;
1113
- value?: `0x${string}` | undefined;
1114
- gasPrice?: `0x${string}` | undefined;
1115
- maxFeePerGas?: undefined;
1116
- maxPriorityFeePerGas?: undefined;
1117
- accessList?: import("../index.js").AccessList | undefined;
1118
- feeCurrency: `0x${string}` | undefined;
1119
- gatewayFee: `0x${string}` | undefined;
1120
- gatewayFeeRecipient: `0x${string}` | undefined;
1121
- } | {
1122
- data?: `0x${string}` | undefined;
1123
- from: `0x${string}`;
1124
- gas?: `0x${string}` | undefined;
1125
- nonce?: `0x${string}` | undefined;
1126
- to?: `0x${string}` | undefined;
1127
- value?: `0x${string}` | undefined;
1128
- gasPrice?: undefined;
1129
- maxFeePerGas?: `0x${string}` | undefined;
1130
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1131
- accessList?: import("../index.js").AccessList | undefined;
1132
- feeCurrency: `0x${string}` | undefined;
1133
- gatewayFee: `0x${string}` | undefined;
1134
- gatewayFeeRecipient: `0x${string}` | undefined;
1135
- }) & {};
1045
+ } | {
1046
+ blockHash: `0x${string}` | null;
1047
+ blockNumber: bigint | null;
1048
+ from: `0x${string}`;
1049
+ gas: bigint;
1050
+ hash: `0x${string}`;
1051
+ input: `0x${string}`;
1052
+ nonce: number;
1053
+ r: `0x${string}`;
1054
+ s: `0x${string}`;
1055
+ to: `0x${string}` | null;
1056
+ transactionIndex: number | null;
1057
+ typeHex: `0x${string}` | null;
1058
+ v: bigint;
1059
+ value: bigint;
1060
+ gasPrice: bigint;
1061
+ maxFeePerGas?: undefined;
1062
+ maxPriorityFeePerGas?: undefined;
1063
+ accessList: import("../index.js").AccessList;
1064
+ chainId: number;
1065
+ type: "eip2930";
1066
+ feeCurrency: `0x${string}` | null;
1067
+ gatewayFee: bigint | null;
1068
+ gatewayFeeRecipient: `0x${string}` | null;
1069
+ } | {
1070
+ blockHash: `0x${string}` | null;
1071
+ blockNumber: bigint | null;
1072
+ from: `0x${string}`;
1073
+ gas: bigint;
1074
+ hash: `0x${string}`;
1075
+ input: `0x${string}`;
1076
+ nonce: number;
1077
+ r: `0x${string}`;
1078
+ s: `0x${string}`;
1079
+ to: `0x${string}` | null;
1080
+ transactionIndex: number | null;
1081
+ typeHex: `0x${string}` | null;
1082
+ v: bigint;
1083
+ value: bigint;
1084
+ gasPrice?: undefined;
1085
+ maxFeePerGas: bigint;
1086
+ maxPriorityFeePerGas: bigint;
1087
+ accessList: import("../index.js").AccessList;
1088
+ chainId: number;
1089
+ type: "eip1559";
1090
+ feeCurrency: `0x${string}` | null;
1091
+ gatewayFee: bigint | null;
1092
+ gatewayFeeRecipient: `0x${string}` | null;
1093
+ }) & {};
1094
+ type: "transaction";
1095
+ };
1096
+ readonly transactionReceipt: {
1097
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1098
+ feeCurrency: `0x${string}` | null;
1099
+ gatewayFee: `0x${string}` | null;
1100
+ gatewayFeeRecipient: `0x${string}` | null;
1101
+ }) => {
1102
+ blockHash: `0x${string}`;
1103
+ blockNumber: bigint;
1104
+ contractAddress: `0x${string}` | null;
1105
+ cumulativeGasUsed: bigint;
1106
+ effectiveGasPrice: bigint;
1107
+ from: `0x${string}`;
1108
+ gasUsed: bigint;
1109
+ logs: import("../index.js").Log<bigint, number>[];
1110
+ logsBloom: `0x${string}`;
1111
+ status: "success" | "reverted";
1112
+ to: `0x${string}` | null;
1113
+ transactionHash: `0x${string}`;
1114
+ transactionIndex: number;
1115
+ type: import("../index.js").TransactionType;
1116
+ feeCurrency: `0x${string}` | null;
1117
+ gatewayFee: bigint | null;
1118
+ gatewayFeeRecipient: `0x${string}` | null;
1119
+ } & {};
1120
+ type: "transactionReceipt";
1121
+ };
1122
+ readonly transactionRequest: {
1123
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1124
+ feeCurrency?: `0x${string}` | undefined;
1125
+ gatewayFee?: bigint | undefined;
1126
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1127
+ }) => ({
1128
+ data?: `0x${string}` | undefined;
1129
+ from: `0x${string}`;
1130
+ gas?: `0x${string}` | undefined;
1131
+ nonce?: `0x${string}` | undefined;
1132
+ to?: `0x${string}` | undefined;
1133
+ value?: `0x${string}` | undefined;
1134
+ gasPrice?: `0x${string}` | undefined;
1135
+ maxFeePerGas?: undefined;
1136
+ maxPriorityFeePerGas?: undefined;
1137
+ accessList?: undefined;
1138
+ feeCurrency: `0x${string}` | undefined;
1139
+ gatewayFee: `0x${string}` | undefined;
1140
+ gatewayFeeRecipient: `0x${string}` | undefined;
1141
+ } | {
1142
+ data?: `0x${string}` | undefined;
1143
+ from: `0x${string}`;
1144
+ gas?: `0x${string}` | undefined;
1145
+ nonce?: `0x${string}` | undefined;
1146
+ to?: `0x${string}` | undefined;
1147
+ value?: `0x${string}` | undefined;
1148
+ gasPrice?: `0x${string}` | undefined;
1149
+ maxFeePerGas?: undefined;
1150
+ maxPriorityFeePerGas?: undefined;
1151
+ accessList?: import("../index.js").AccessList | undefined;
1152
+ feeCurrency: `0x${string}` | undefined;
1153
+ gatewayFee: `0x${string}` | undefined;
1154
+ gatewayFeeRecipient: `0x${string}` | undefined;
1155
+ } | {
1156
+ data?: `0x${string}` | undefined;
1157
+ from: `0x${string}`;
1158
+ gas?: `0x${string}` | undefined;
1159
+ nonce?: `0x${string}` | undefined;
1160
+ to?: `0x${string}` | undefined;
1161
+ value?: `0x${string}` | undefined;
1162
+ gasPrice?: undefined;
1163
+ maxFeePerGas?: `0x${string}` | undefined;
1164
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1165
+ accessList?: import("../index.js").AccessList | undefined;
1166
+ feeCurrency: `0x${string}` | undefined;
1167
+ gatewayFee: `0x${string}` | undefined;
1168
+ gatewayFeeRecipient: `0x${string}` | undefined;
1169
+ }) & {};
1170
+ type: "transactionRequest";
1171
+ };
1136
1172
  } | undefined;
1137
1173
  serializers: import("../index.js").Serializers<{
1138
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1139
- randomness: {
1140
- committed: `0x${string}`;
1141
- revealed: `0x${string}`;
1174
+ readonly block: {
1175
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1176
+ randomness: {
1177
+ committed: `0x${string}`;
1178
+ revealed: `0x${string}`;
1179
+ };
1180
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1181
+ feeCurrency: `0x${string}` | null;
1182
+ gatewayFee: `0x${string}` | null;
1183
+ gatewayFeeRecipient: `0x${string}` | null;
1184
+ })[];
1185
+ }) => {
1186
+ baseFeePerGas: bigint | null;
1187
+ difficulty: bigint;
1188
+ extraData: `0x${string}`;
1189
+ gasLimit: bigint;
1190
+ gasUsed: bigint;
1191
+ hash: `0x${string}` | null;
1192
+ logsBloom: `0x${string}` | null;
1193
+ miner: `0x${string}`;
1194
+ mixHash: `0x${string}`;
1195
+ nonce: `0x${string}` | null;
1196
+ number: bigint | null;
1197
+ parentHash: `0x${string}`;
1198
+ receiptsRoot: `0x${string}`;
1199
+ sealFields: `0x${string}`[];
1200
+ sha3Uncles: `0x${string}`;
1201
+ size: bigint;
1202
+ stateRoot: `0x${string}`;
1203
+ timestamp: bigint;
1204
+ totalDifficulty: bigint | null;
1205
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1206
+ feeCurrency: `0x${string}` | null;
1207
+ gatewayFee: bigint | null;
1208
+ gatewayFeeRecipient: `0x${string}` | null;
1209
+ })[];
1210
+ transactionsRoot: `0x${string}`;
1211
+ uncles: `0x${string}`[];
1212
+ randomness: {
1213
+ committed: `0x${string}`;
1214
+ revealed: `0x${string}`;
1215
+ };
1216
+ } & {
1217
+ nonce: never;
1218
+ difficulty: never;
1219
+ gasLimit: never;
1220
+ mixHash: never;
1221
+ uncles: never;
1142
1222
  };
1143
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1223
+ type: "block";
1224
+ };
1225
+ readonly transaction: {
1226
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1144
1227
  feeCurrency: `0x${string}` | null;
1145
1228
  gatewayFee: `0x${string}` | null;
1146
1229
  gatewayFeeRecipient: `0x${string}` | null;
1147
- })[];
1148
- }) => {
1149
- baseFeePerGas: bigint | null;
1150
- difficulty: bigint;
1151
- extraData: `0x${string}`;
1152
- gasLimit: bigint;
1153
- gasUsed: bigint;
1154
- hash: `0x${string}` | null;
1155
- logsBloom: `0x${string}` | null;
1156
- miner: `0x${string}`;
1157
- mixHash: `0x${string}`;
1158
- nonce: `0x${string}` | null;
1159
- number: bigint | null;
1160
- parentHash: `0x${string}`;
1161
- receiptsRoot: `0x${string}`;
1162
- sealFields: `0x${string}`[];
1163
- sha3Uncles: `0x${string}`;
1164
- size: bigint;
1165
- stateRoot: `0x${string}`;
1166
- timestamp: bigint;
1167
- totalDifficulty: bigint | null;
1168
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1230
+ }) => ({
1231
+ blockHash: `0x${string}` | null;
1232
+ blockNumber: bigint | null;
1233
+ from: `0x${string}`;
1234
+ gas: bigint;
1235
+ hash: `0x${string}`;
1236
+ input: `0x${string}`;
1237
+ nonce: number;
1238
+ r: `0x${string}`;
1239
+ s: `0x${string}`;
1240
+ to: `0x${string}` | null;
1241
+ transactionIndex: number | null;
1242
+ typeHex: `0x${string}` | null;
1243
+ v: bigint;
1244
+ value: bigint;
1245
+ gasPrice: bigint;
1246
+ maxFeePerGas?: undefined;
1247
+ maxPriorityFeePerGas?: undefined;
1248
+ accessList?: undefined;
1249
+ chainId?: number | undefined;
1250
+ type: "legacy";
1169
1251
  feeCurrency: `0x${string}` | null;
1170
1252
  gatewayFee: bigint | null;
1171
1253
  gatewayFeeRecipient: `0x${string}` | null;
1172
- })[];
1173
- transactionsRoot: `0x${string}`;
1174
- uncles: `0x${string}`[];
1175
- randomness: {
1176
- committed: `0x${string}`;
1177
- revealed: `0x${string}`;
1178
- };
1179
- } & {
1180
- nonce: never;
1181
- difficulty: never;
1182
- gasLimit: never;
1183
- mixHash: never;
1184
- uncles: never;
1185
- };
1186
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1187
- feeCurrency: `0x${string}` | null;
1188
- gatewayFee: `0x${string}` | null;
1189
- gatewayFeeRecipient: `0x${string}` | null;
1190
- }) => ({
1191
- blockHash: `0x${string}` | null;
1192
- blockNumber: bigint | null;
1193
- from: `0x${string}`;
1194
- gas: bigint;
1195
- hash: `0x${string}`;
1196
- input: `0x${string}`;
1197
- nonce: number;
1198
- r: `0x${string}`;
1199
- s: `0x${string}`;
1200
- to: `0x${string}` | null;
1201
- transactionIndex: number | null;
1202
- typeHex: `0x${string}` | null;
1203
- v: bigint;
1204
- value: bigint;
1205
- gasPrice: bigint;
1206
- maxFeePerGas?: undefined;
1207
- maxPriorityFeePerGas?: undefined;
1208
- accessList?: undefined;
1209
- chainId?: number | undefined;
1210
- type: "legacy";
1211
- feeCurrency: `0x${string}` | null;
1212
- gatewayFee: bigint | null;
1213
- gatewayFeeRecipient: `0x${string}` | null;
1214
- } | {
1215
- blockHash: `0x${string}` | null;
1216
- blockNumber: bigint | null;
1217
- from: `0x${string}`;
1218
- gas: bigint;
1219
- hash: `0x${string}`;
1220
- input: `0x${string}`;
1221
- nonce: number;
1222
- r: `0x${string}`;
1223
- s: `0x${string}`;
1224
- to: `0x${string}` | null;
1225
- transactionIndex: number | null;
1226
- typeHex: `0x${string}` | null;
1227
- v: bigint;
1228
- value: bigint;
1229
- gasPrice: bigint;
1230
- maxFeePerGas?: undefined;
1231
- maxPriorityFeePerGas?: undefined;
1232
- accessList: import("../index.js").AccessList;
1233
- chainId: number;
1234
- type: "eip2930";
1235
- feeCurrency: `0x${string}` | null;
1236
- gatewayFee: bigint | null;
1237
- gatewayFeeRecipient: `0x${string}` | null;
1238
- } | {
1239
- blockHash: `0x${string}` | null;
1240
- blockNumber: bigint | null;
1241
- from: `0x${string}`;
1242
- gas: bigint;
1243
- hash: `0x${string}`;
1244
- input: `0x${string}`;
1245
- nonce: number;
1246
- r: `0x${string}`;
1247
- s: `0x${string}`;
1248
- to: `0x${string}` | null;
1249
- transactionIndex: number | null;
1250
- typeHex: `0x${string}` | null;
1251
- v: bigint;
1252
- value: bigint;
1253
- gasPrice?: undefined;
1254
- maxFeePerGas: bigint;
1255
- maxPriorityFeePerGas: bigint;
1256
- accessList: import("../index.js").AccessList;
1257
- chainId: number;
1258
- type: "eip1559";
1259
- feeCurrency: `0x${string}` | null;
1260
- gatewayFee: bigint | null;
1261
- gatewayFeeRecipient: `0x${string}` | null;
1262
- }) & {};
1263
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1264
- feeCurrency: `0x${string}` | null;
1265
- gatewayFee: `0x${string}` | null;
1266
- gatewayFeeRecipient: `0x${string}` | null;
1267
- }) => {
1268
- blockHash: `0x${string}`;
1269
- blockNumber: bigint;
1270
- contractAddress: `0x${string}` | null;
1271
- cumulativeGasUsed: bigint;
1272
- effectiveGasPrice: bigint;
1273
- from: `0x${string}`;
1274
- gasUsed: bigint;
1275
- logs: import("../index.js").Log<bigint, number>[];
1276
- logsBloom: `0x${string}`;
1277
- status: "success" | "reverted";
1278
- to: `0x${string}` | null;
1279
- transactionHash: `0x${string}`;
1280
- transactionIndex: number;
1281
- type: import("../index.js").TransactionType;
1282
- feeCurrency: `0x${string}` | null;
1283
- gatewayFee: bigint | null;
1284
- gatewayFeeRecipient: `0x${string}` | null;
1285
- } & {};
1286
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1287
- feeCurrency?: `0x${string}` | undefined;
1288
- gatewayFee?: bigint | undefined;
1289
- gatewayFeeRecipient?: `0x${string}` | undefined;
1290
- }) => ({
1291
- data?: `0x${string}` | undefined;
1292
- from: `0x${string}`;
1293
- gas?: `0x${string}` | undefined;
1294
- nonce?: `0x${string}` | undefined;
1295
- to?: `0x${string}` | undefined;
1296
- value?: `0x${string}` | undefined;
1297
- gasPrice?: `0x${string}` | undefined;
1298
- maxFeePerGas?: undefined;
1299
- maxPriorityFeePerGas?: undefined;
1300
- accessList?: undefined;
1301
- feeCurrency: `0x${string}` | undefined;
1302
- gatewayFee: `0x${string}` | undefined;
1303
- gatewayFeeRecipient: `0x${string}` | undefined;
1304
- } | {
1305
- data?: `0x${string}` | undefined;
1306
- from: `0x${string}`;
1307
- gas?: `0x${string}` | undefined;
1308
- nonce?: `0x${string}` | undefined;
1309
- to?: `0x${string}` | undefined;
1310
- value?: `0x${string}` | undefined;
1311
- gasPrice?: `0x${string}` | undefined;
1312
- maxFeePerGas?: undefined;
1313
- maxPriorityFeePerGas?: undefined;
1314
- accessList?: import("../index.js").AccessList | undefined;
1315
- feeCurrency: `0x${string}` | undefined;
1316
- gatewayFee: `0x${string}` | undefined;
1317
- gatewayFeeRecipient: `0x${string}` | undefined;
1318
- } | {
1319
- data?: `0x${string}` | undefined;
1320
- from: `0x${string}`;
1321
- gas?: `0x${string}` | undefined;
1322
- nonce?: `0x${string}` | undefined;
1323
- to?: `0x${string}` | undefined;
1324
- value?: `0x${string}` | undefined;
1325
- gasPrice?: undefined;
1326
- maxFeePerGas?: `0x${string}` | undefined;
1327
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1328
- accessList?: import("../index.js").AccessList | undefined;
1329
- feeCurrency: `0x${string}` | undefined;
1330
- gatewayFee: `0x${string}` | undefined;
1331
- gatewayFeeRecipient: `0x${string}` | undefined;
1332
- }) & {};
1254
+ } | {
1255
+ blockHash: `0x${string}` | null;
1256
+ blockNumber: bigint | null;
1257
+ from: `0x${string}`;
1258
+ gas: bigint;
1259
+ hash: `0x${string}`;
1260
+ input: `0x${string}`;
1261
+ nonce: number;
1262
+ r: `0x${string}`;
1263
+ s: `0x${string}`;
1264
+ to: `0x${string}` | null;
1265
+ transactionIndex: number | null;
1266
+ typeHex: `0x${string}` | null;
1267
+ v: bigint;
1268
+ value: bigint;
1269
+ gasPrice: bigint;
1270
+ maxFeePerGas?: undefined;
1271
+ maxPriorityFeePerGas?: undefined;
1272
+ accessList: import("../index.js").AccessList;
1273
+ chainId: number;
1274
+ type: "eip2930";
1275
+ feeCurrency: `0x${string}` | null;
1276
+ gatewayFee: bigint | null;
1277
+ gatewayFeeRecipient: `0x${string}` | null;
1278
+ } | {
1279
+ blockHash: `0x${string}` | null;
1280
+ blockNumber: bigint | null;
1281
+ from: `0x${string}`;
1282
+ gas: bigint;
1283
+ hash: `0x${string}`;
1284
+ input: `0x${string}`;
1285
+ nonce: number;
1286
+ r: `0x${string}`;
1287
+ s: `0x${string}`;
1288
+ to: `0x${string}` | null;
1289
+ transactionIndex: number | null;
1290
+ typeHex: `0x${string}` | null;
1291
+ v: bigint;
1292
+ value: bigint;
1293
+ gasPrice?: undefined;
1294
+ maxFeePerGas: bigint;
1295
+ maxPriorityFeePerGas: bigint;
1296
+ accessList: import("../index.js").AccessList;
1297
+ chainId: number;
1298
+ type: "eip1559";
1299
+ feeCurrency: `0x${string}` | null;
1300
+ gatewayFee: bigint | null;
1301
+ gatewayFeeRecipient: `0x${string}` | null;
1302
+ }) & {};
1303
+ type: "transaction";
1304
+ };
1305
+ readonly transactionReceipt: {
1306
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1307
+ feeCurrency: `0x${string}` | null;
1308
+ gatewayFee: `0x${string}` | null;
1309
+ gatewayFeeRecipient: `0x${string}` | null;
1310
+ }) => {
1311
+ blockHash: `0x${string}`;
1312
+ blockNumber: bigint;
1313
+ contractAddress: `0x${string}` | null;
1314
+ cumulativeGasUsed: bigint;
1315
+ effectiveGasPrice: bigint;
1316
+ from: `0x${string}`;
1317
+ gasUsed: bigint;
1318
+ logs: import("../index.js").Log<bigint, number>[];
1319
+ logsBloom: `0x${string}`;
1320
+ status: "success" | "reverted";
1321
+ to: `0x${string}` | null;
1322
+ transactionHash: `0x${string}`;
1323
+ transactionIndex: number;
1324
+ type: import("../index.js").TransactionType;
1325
+ feeCurrency: `0x${string}` | null;
1326
+ gatewayFee: bigint | null;
1327
+ gatewayFeeRecipient: `0x${string}` | null;
1328
+ } & {};
1329
+ type: "transactionReceipt";
1330
+ };
1331
+ readonly transactionRequest: {
1332
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1333
+ feeCurrency?: `0x${string}` | undefined;
1334
+ gatewayFee?: bigint | undefined;
1335
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1336
+ }) => ({
1337
+ data?: `0x${string}` | undefined;
1338
+ from: `0x${string}`;
1339
+ gas?: `0x${string}` | undefined;
1340
+ nonce?: `0x${string}` | undefined;
1341
+ to?: `0x${string}` | undefined;
1342
+ value?: `0x${string}` | undefined;
1343
+ gasPrice?: `0x${string}` | undefined;
1344
+ maxFeePerGas?: undefined;
1345
+ maxPriorityFeePerGas?: undefined;
1346
+ accessList?: undefined;
1347
+ feeCurrency: `0x${string}` | undefined;
1348
+ gatewayFee: `0x${string}` | undefined;
1349
+ gatewayFeeRecipient: `0x${string}` | undefined;
1350
+ } | {
1351
+ data?: `0x${string}` | undefined;
1352
+ from: `0x${string}`;
1353
+ gas?: `0x${string}` | undefined;
1354
+ nonce?: `0x${string}` | undefined;
1355
+ to?: `0x${string}` | undefined;
1356
+ value?: `0x${string}` | undefined;
1357
+ gasPrice?: `0x${string}` | undefined;
1358
+ maxFeePerGas?: undefined;
1359
+ maxPriorityFeePerGas?: undefined;
1360
+ accessList?: import("../index.js").AccessList | undefined;
1361
+ feeCurrency: `0x${string}` | undefined;
1362
+ gatewayFee: `0x${string}` | undefined;
1363
+ gatewayFeeRecipient: `0x${string}` | undefined;
1364
+ } | {
1365
+ data?: `0x${string}` | undefined;
1366
+ from: `0x${string}`;
1367
+ gas?: `0x${string}` | undefined;
1368
+ nonce?: `0x${string}` | undefined;
1369
+ to?: `0x${string}` | undefined;
1370
+ value?: `0x${string}` | undefined;
1371
+ gasPrice?: undefined;
1372
+ maxFeePerGas?: `0x${string}` | undefined;
1373
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1374
+ accessList?: import("../index.js").AccessList | undefined;
1375
+ feeCurrency: `0x${string}` | undefined;
1376
+ gatewayFee: `0x${string}` | undefined;
1377
+ gatewayFeeRecipient: `0x${string}` | undefined;
1378
+ }) & {};
1379
+ type: "transactionRequest";
1380
+ };
1333
1381
  }> | undefined;
1334
1382
  };
1335
1383
  export declare const celoCannoli: {
@@ -1364,398 +1412,422 @@ export declare const celoCannoli: {
1364
1412
  readonly testnet: true;
1365
1413
  } & {
1366
1414
  formatters: {
1367
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1368
- randomness: {
1369
- committed: `0x${string}`;
1370
- revealed: `0x${string}`;
1415
+ readonly block: {
1416
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1417
+ randomness: {
1418
+ committed: `0x${string}`;
1419
+ revealed: `0x${string}`;
1420
+ };
1421
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1422
+ feeCurrency: `0x${string}` | null;
1423
+ gatewayFee: `0x${string}` | null;
1424
+ gatewayFeeRecipient: `0x${string}` | null;
1425
+ })[];
1426
+ }) => {
1427
+ baseFeePerGas: bigint | null;
1428
+ difficulty: bigint;
1429
+ extraData: `0x${string}`;
1430
+ gasLimit: bigint;
1431
+ gasUsed: bigint;
1432
+ hash: `0x${string}` | null;
1433
+ logsBloom: `0x${string}` | null;
1434
+ miner: `0x${string}`;
1435
+ mixHash: `0x${string}`;
1436
+ nonce: `0x${string}` | null;
1437
+ number: bigint | null;
1438
+ parentHash: `0x${string}`;
1439
+ receiptsRoot: `0x${string}`;
1440
+ sealFields: `0x${string}`[];
1441
+ sha3Uncles: `0x${string}`;
1442
+ size: bigint;
1443
+ stateRoot: `0x${string}`;
1444
+ timestamp: bigint;
1445
+ totalDifficulty: bigint | null;
1446
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1447
+ feeCurrency: `0x${string}` | null;
1448
+ gatewayFee: bigint | null;
1449
+ gatewayFeeRecipient: `0x${string}` | null;
1450
+ })[];
1451
+ transactionsRoot: `0x${string}`;
1452
+ uncles: `0x${string}`[];
1453
+ randomness: {
1454
+ committed: `0x${string}`;
1455
+ revealed: `0x${string}`;
1456
+ };
1457
+ } & {
1458
+ nonce: never;
1459
+ difficulty: never;
1460
+ gasLimit: never;
1461
+ mixHash: never;
1462
+ uncles: never;
1371
1463
  };
1372
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1464
+ type: "block";
1465
+ };
1466
+ readonly transaction: {
1467
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1373
1468
  feeCurrency: `0x${string}` | null;
1374
1469
  gatewayFee: `0x${string}` | null;
1375
1470
  gatewayFeeRecipient: `0x${string}` | null;
1376
- })[];
1377
- }) => {
1378
- baseFeePerGas: bigint | null;
1379
- difficulty: bigint;
1380
- extraData: `0x${string}`;
1381
- gasLimit: bigint;
1382
- gasUsed: bigint;
1383
- hash: `0x${string}` | null;
1384
- logsBloom: `0x${string}` | null;
1385
- miner: `0x${string}`;
1386
- mixHash: `0x${string}`;
1387
- nonce: `0x${string}` | null;
1388
- number: bigint | null;
1389
- parentHash: `0x${string}`;
1390
- receiptsRoot: `0x${string}`;
1391
- sealFields: `0x${string}`[];
1392
- sha3Uncles: `0x${string}`;
1393
- size: bigint;
1394
- stateRoot: `0x${string}`;
1395
- timestamp: bigint;
1396
- totalDifficulty: bigint | null;
1397
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1471
+ }) => ({
1472
+ blockHash: `0x${string}` | null;
1473
+ blockNumber: bigint | null;
1474
+ from: `0x${string}`;
1475
+ gas: bigint;
1476
+ hash: `0x${string}`;
1477
+ input: `0x${string}`;
1478
+ nonce: number;
1479
+ r: `0x${string}`;
1480
+ s: `0x${string}`;
1481
+ to: `0x${string}` | null;
1482
+ transactionIndex: number | null;
1483
+ typeHex: `0x${string}` | null;
1484
+ v: bigint;
1485
+ value: bigint;
1486
+ gasPrice: bigint;
1487
+ maxFeePerGas?: undefined;
1488
+ maxPriorityFeePerGas?: undefined;
1489
+ accessList?: undefined;
1490
+ chainId?: number | undefined;
1491
+ type: "legacy";
1398
1492
  feeCurrency: `0x${string}` | null;
1399
1493
  gatewayFee: bigint | null;
1400
1494
  gatewayFeeRecipient: `0x${string}` | null;
1401
- })[];
1402
- transactionsRoot: `0x${string}`;
1403
- uncles: `0x${string}`[];
1404
- randomness: {
1405
- committed: `0x${string}`;
1406
- revealed: `0x${string}`;
1407
- };
1408
- } & {
1409
- nonce: never;
1410
- difficulty: never;
1411
- gasLimit: never;
1412
- mixHash: never;
1413
- uncles: never;
1414
- };
1415
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1416
- feeCurrency: `0x${string}` | null;
1417
- gatewayFee: `0x${string}` | null;
1418
- gatewayFeeRecipient: `0x${string}` | null;
1419
- }) => ({
1420
- blockHash: `0x${string}` | null;
1421
- blockNumber: bigint | null;
1422
- from: `0x${string}`;
1423
- gas: bigint;
1424
- hash: `0x${string}`;
1425
- input: `0x${string}`;
1426
- nonce: number;
1427
- r: `0x${string}`;
1428
- s: `0x${string}`;
1429
- to: `0x${string}` | null;
1430
- transactionIndex: number | null;
1431
- typeHex: `0x${string}` | null;
1432
- v: bigint;
1433
- value: bigint;
1434
- gasPrice: bigint;
1435
- maxFeePerGas?: undefined;
1436
- maxPriorityFeePerGas?: undefined;
1437
- accessList?: undefined;
1438
- chainId?: number | undefined;
1439
- type: "legacy";
1440
- feeCurrency: `0x${string}` | null;
1441
- gatewayFee: bigint | null;
1442
- gatewayFeeRecipient: `0x${string}` | null;
1443
- } | {
1444
- blockHash: `0x${string}` | null;
1445
- blockNumber: bigint | null;
1446
- from: `0x${string}`;
1447
- gas: bigint;
1448
- hash: `0x${string}`;
1449
- input: `0x${string}`;
1450
- nonce: number;
1451
- r: `0x${string}`;
1452
- s: `0x${string}`;
1453
- to: `0x${string}` | null;
1454
- transactionIndex: number | null;
1455
- typeHex: `0x${string}` | null;
1456
- v: bigint;
1457
- value: bigint;
1458
- gasPrice: bigint;
1459
- maxFeePerGas?: undefined;
1460
- maxPriorityFeePerGas?: undefined;
1461
- accessList: import("../index.js").AccessList;
1462
- chainId: number;
1463
- type: "eip2930";
1464
- feeCurrency: `0x${string}` | null;
1465
- gatewayFee: bigint | null;
1466
- gatewayFeeRecipient: `0x${string}` | null;
1467
- } | {
1468
- blockHash: `0x${string}` | null;
1469
- blockNumber: bigint | null;
1470
- from: `0x${string}`;
1471
- gas: bigint;
1472
- hash: `0x${string}`;
1473
- input: `0x${string}`;
1474
- nonce: number;
1475
- r: `0x${string}`;
1476
- s: `0x${string}`;
1477
- to: `0x${string}` | null;
1478
- transactionIndex: number | null;
1479
- typeHex: `0x${string}` | null;
1480
- v: bigint;
1481
- value: bigint;
1482
- gasPrice?: undefined;
1483
- maxFeePerGas: bigint;
1484
- maxPriorityFeePerGas: bigint;
1485
- accessList: import("../index.js").AccessList;
1486
- chainId: number;
1487
- type: "eip1559";
1488
- feeCurrency: `0x${string}` | null;
1489
- gatewayFee: bigint | null;
1490
- gatewayFeeRecipient: `0x${string}` | null;
1491
- }) & {};
1492
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1493
- feeCurrency: `0x${string}` | null;
1494
- gatewayFee: `0x${string}` | null;
1495
- gatewayFeeRecipient: `0x${string}` | null;
1496
- }) => {
1497
- blockHash: `0x${string}`;
1498
- blockNumber: bigint;
1499
- contractAddress: `0x${string}` | null;
1500
- cumulativeGasUsed: bigint;
1501
- effectiveGasPrice: bigint;
1502
- from: `0x${string}`;
1503
- gasUsed: bigint;
1504
- logs: import("../index.js").Log<bigint, number>[];
1505
- logsBloom: `0x${string}`;
1506
- status: "success" | "reverted";
1507
- to: `0x${string}` | null;
1508
- transactionHash: `0x${string}`;
1509
- transactionIndex: number;
1510
- type: import("../index.js").TransactionType;
1511
- feeCurrency: `0x${string}` | null;
1512
- gatewayFee: bigint | null;
1513
- gatewayFeeRecipient: `0x${string}` | null;
1514
- } & {};
1515
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1516
- feeCurrency?: `0x${string}` | undefined;
1517
- gatewayFee?: bigint | undefined;
1518
- gatewayFeeRecipient?: `0x${string}` | undefined;
1519
- }) => ({
1520
- data?: `0x${string}` | undefined;
1521
- from: `0x${string}`;
1522
- gas?: `0x${string}` | undefined;
1523
- nonce?: `0x${string}` | undefined;
1524
- to?: `0x${string}` | undefined;
1525
- value?: `0x${string}` | undefined;
1526
- gasPrice?: `0x${string}` | undefined;
1527
- maxFeePerGas?: undefined;
1528
- maxPriorityFeePerGas?: undefined;
1529
- accessList?: undefined;
1530
- feeCurrency: `0x${string}` | undefined;
1531
- gatewayFee: `0x${string}` | undefined;
1532
- gatewayFeeRecipient: `0x${string}` | undefined;
1533
- } | {
1534
- data?: `0x${string}` | undefined;
1535
- from: `0x${string}`;
1536
- gas?: `0x${string}` | undefined;
1537
- nonce?: `0x${string}` | undefined;
1538
- to?: `0x${string}` | undefined;
1539
- value?: `0x${string}` | undefined;
1540
- gasPrice?: `0x${string}` | undefined;
1541
- maxFeePerGas?: undefined;
1542
- maxPriorityFeePerGas?: undefined;
1543
- accessList?: import("../index.js").AccessList | undefined;
1544
- feeCurrency: `0x${string}` | undefined;
1545
- gatewayFee: `0x${string}` | undefined;
1546
- gatewayFeeRecipient: `0x${string}` | undefined;
1547
- } | {
1548
- data?: `0x${string}` | undefined;
1549
- from: `0x${string}`;
1550
- gas?: `0x${string}` | undefined;
1551
- nonce?: `0x${string}` | undefined;
1552
- to?: `0x${string}` | undefined;
1553
- value?: `0x${string}` | undefined;
1554
- gasPrice?: undefined;
1555
- maxFeePerGas?: `0x${string}` | undefined;
1556
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1557
- accessList?: import("../index.js").AccessList | undefined;
1558
- feeCurrency: `0x${string}` | undefined;
1559
- gatewayFee: `0x${string}` | undefined;
1560
- gatewayFeeRecipient: `0x${string}` | undefined;
1561
- }) & {};
1495
+ } | {
1496
+ blockHash: `0x${string}` | null;
1497
+ blockNumber: bigint | null;
1498
+ from: `0x${string}`;
1499
+ gas: bigint;
1500
+ hash: `0x${string}`;
1501
+ input: `0x${string}`;
1502
+ nonce: number;
1503
+ r: `0x${string}`;
1504
+ s: `0x${string}`;
1505
+ to: `0x${string}` | null;
1506
+ transactionIndex: number | null;
1507
+ typeHex: `0x${string}` | null;
1508
+ v: bigint;
1509
+ value: bigint;
1510
+ gasPrice: bigint;
1511
+ maxFeePerGas?: undefined;
1512
+ maxPriorityFeePerGas?: undefined;
1513
+ accessList: import("../index.js").AccessList;
1514
+ chainId: number;
1515
+ type: "eip2930";
1516
+ feeCurrency: `0x${string}` | null;
1517
+ gatewayFee: bigint | null;
1518
+ gatewayFeeRecipient: `0x${string}` | null;
1519
+ } | {
1520
+ blockHash: `0x${string}` | null;
1521
+ blockNumber: bigint | null;
1522
+ from: `0x${string}`;
1523
+ gas: bigint;
1524
+ hash: `0x${string}`;
1525
+ input: `0x${string}`;
1526
+ nonce: number;
1527
+ r: `0x${string}`;
1528
+ s: `0x${string}`;
1529
+ to: `0x${string}` | null;
1530
+ transactionIndex: number | null;
1531
+ typeHex: `0x${string}` | null;
1532
+ v: bigint;
1533
+ value: bigint;
1534
+ gasPrice?: undefined;
1535
+ maxFeePerGas: bigint;
1536
+ maxPriorityFeePerGas: bigint;
1537
+ accessList: import("../index.js").AccessList;
1538
+ chainId: number;
1539
+ type: "eip1559";
1540
+ feeCurrency: `0x${string}` | null;
1541
+ gatewayFee: bigint | null;
1542
+ gatewayFeeRecipient: `0x${string}` | null;
1543
+ }) & {};
1544
+ type: "transaction";
1545
+ };
1546
+ readonly transactionReceipt: {
1547
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1548
+ feeCurrency: `0x${string}` | null;
1549
+ gatewayFee: `0x${string}` | null;
1550
+ gatewayFeeRecipient: `0x${string}` | null;
1551
+ }) => {
1552
+ blockHash: `0x${string}`;
1553
+ blockNumber: bigint;
1554
+ contractAddress: `0x${string}` | null;
1555
+ cumulativeGasUsed: bigint;
1556
+ effectiveGasPrice: bigint;
1557
+ from: `0x${string}`;
1558
+ gasUsed: bigint;
1559
+ logs: import("../index.js").Log<bigint, number>[];
1560
+ logsBloom: `0x${string}`;
1561
+ status: "success" | "reverted";
1562
+ to: `0x${string}` | null;
1563
+ transactionHash: `0x${string}`;
1564
+ transactionIndex: number;
1565
+ type: import("../index.js").TransactionType;
1566
+ feeCurrency: `0x${string}` | null;
1567
+ gatewayFee: bigint | null;
1568
+ gatewayFeeRecipient: `0x${string}` | null;
1569
+ } & {};
1570
+ type: "transactionReceipt";
1571
+ };
1572
+ readonly transactionRequest: {
1573
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1574
+ feeCurrency?: `0x${string}` | undefined;
1575
+ gatewayFee?: bigint | undefined;
1576
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1577
+ }) => ({
1578
+ data?: `0x${string}` | undefined;
1579
+ from: `0x${string}`;
1580
+ gas?: `0x${string}` | undefined;
1581
+ nonce?: `0x${string}` | undefined;
1582
+ to?: `0x${string}` | undefined;
1583
+ value?: `0x${string}` | undefined;
1584
+ gasPrice?: `0x${string}` | undefined;
1585
+ maxFeePerGas?: undefined;
1586
+ maxPriorityFeePerGas?: undefined;
1587
+ accessList?: undefined;
1588
+ feeCurrency: `0x${string}` | undefined;
1589
+ gatewayFee: `0x${string}` | undefined;
1590
+ gatewayFeeRecipient: `0x${string}` | undefined;
1591
+ } | {
1592
+ data?: `0x${string}` | undefined;
1593
+ from: `0x${string}`;
1594
+ gas?: `0x${string}` | undefined;
1595
+ nonce?: `0x${string}` | undefined;
1596
+ to?: `0x${string}` | undefined;
1597
+ value?: `0x${string}` | undefined;
1598
+ gasPrice?: `0x${string}` | undefined;
1599
+ maxFeePerGas?: undefined;
1600
+ maxPriorityFeePerGas?: undefined;
1601
+ accessList?: import("../index.js").AccessList | undefined;
1602
+ feeCurrency: `0x${string}` | undefined;
1603
+ gatewayFee: `0x${string}` | undefined;
1604
+ gatewayFeeRecipient: `0x${string}` | undefined;
1605
+ } | {
1606
+ data?: `0x${string}` | undefined;
1607
+ from: `0x${string}`;
1608
+ gas?: `0x${string}` | undefined;
1609
+ nonce?: `0x${string}` | undefined;
1610
+ to?: `0x${string}` | undefined;
1611
+ value?: `0x${string}` | undefined;
1612
+ gasPrice?: undefined;
1613
+ maxFeePerGas?: `0x${string}` | undefined;
1614
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1615
+ accessList?: import("../index.js").AccessList | undefined;
1616
+ feeCurrency: `0x${string}` | undefined;
1617
+ gatewayFee: `0x${string}` | undefined;
1618
+ gatewayFeeRecipient: `0x${string}` | undefined;
1619
+ }) & {};
1620
+ type: "transactionRequest";
1621
+ };
1562
1622
  } | undefined;
1563
1623
  serializers: import("../index.js").Serializers<{
1564
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1565
- randomness: {
1566
- committed: `0x${string}`;
1567
- revealed: `0x${string}`;
1624
+ readonly block: {
1625
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1626
+ randomness: {
1627
+ committed: `0x${string}`;
1628
+ revealed: `0x${string}`;
1629
+ };
1630
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1631
+ feeCurrency: `0x${string}` | null;
1632
+ gatewayFee: `0x${string}` | null;
1633
+ gatewayFeeRecipient: `0x${string}` | null;
1634
+ })[];
1635
+ }) => {
1636
+ baseFeePerGas: bigint | null;
1637
+ difficulty: bigint;
1638
+ extraData: `0x${string}`;
1639
+ gasLimit: bigint;
1640
+ gasUsed: bigint;
1641
+ hash: `0x${string}` | null;
1642
+ logsBloom: `0x${string}` | null;
1643
+ miner: `0x${string}`;
1644
+ mixHash: `0x${string}`;
1645
+ nonce: `0x${string}` | null;
1646
+ number: bigint | null;
1647
+ parentHash: `0x${string}`;
1648
+ receiptsRoot: `0x${string}`;
1649
+ sealFields: `0x${string}`[];
1650
+ sha3Uncles: `0x${string}`;
1651
+ size: bigint;
1652
+ stateRoot: `0x${string}`;
1653
+ timestamp: bigint;
1654
+ totalDifficulty: bigint | null;
1655
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1656
+ feeCurrency: `0x${string}` | null;
1657
+ gatewayFee: bigint | null;
1658
+ gatewayFeeRecipient: `0x${string}` | null;
1659
+ })[];
1660
+ transactionsRoot: `0x${string}`;
1661
+ uncles: `0x${string}`[];
1662
+ randomness: {
1663
+ committed: `0x${string}`;
1664
+ revealed: `0x${string}`;
1665
+ };
1666
+ } & {
1667
+ nonce: never;
1668
+ difficulty: never;
1669
+ gasLimit: never;
1670
+ mixHash: never;
1671
+ uncles: never;
1568
1672
  };
1569
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1673
+ type: "block";
1674
+ };
1675
+ readonly transaction: {
1676
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1570
1677
  feeCurrency: `0x${string}` | null;
1571
1678
  gatewayFee: `0x${string}` | null;
1572
1679
  gatewayFeeRecipient: `0x${string}` | null;
1573
- })[];
1574
- }) => {
1575
- baseFeePerGas: bigint | null;
1576
- difficulty: bigint;
1577
- extraData: `0x${string}`;
1578
- gasLimit: bigint;
1579
- gasUsed: bigint;
1580
- hash: `0x${string}` | null;
1581
- logsBloom: `0x${string}` | null;
1582
- miner: `0x${string}`;
1583
- mixHash: `0x${string}`;
1584
- nonce: `0x${string}` | null;
1585
- number: bigint | null;
1586
- parentHash: `0x${string}`;
1587
- receiptsRoot: `0x${string}`;
1588
- sealFields: `0x${string}`[];
1589
- sha3Uncles: `0x${string}`;
1590
- size: bigint;
1591
- stateRoot: `0x${string}`;
1592
- timestamp: bigint;
1593
- totalDifficulty: bigint | null;
1594
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1680
+ }) => ({
1681
+ blockHash: `0x${string}` | null;
1682
+ blockNumber: bigint | null;
1683
+ from: `0x${string}`;
1684
+ gas: bigint;
1685
+ hash: `0x${string}`;
1686
+ input: `0x${string}`;
1687
+ nonce: number;
1688
+ r: `0x${string}`;
1689
+ s: `0x${string}`;
1690
+ to: `0x${string}` | null;
1691
+ transactionIndex: number | null;
1692
+ typeHex: `0x${string}` | null;
1693
+ v: bigint;
1694
+ value: bigint;
1695
+ gasPrice: bigint;
1696
+ maxFeePerGas?: undefined;
1697
+ maxPriorityFeePerGas?: undefined;
1698
+ accessList?: undefined;
1699
+ chainId?: number | undefined;
1700
+ type: "legacy";
1595
1701
  feeCurrency: `0x${string}` | null;
1596
1702
  gatewayFee: bigint | null;
1597
1703
  gatewayFeeRecipient: `0x${string}` | null;
1598
- })[];
1599
- transactionsRoot: `0x${string}`;
1600
- uncles: `0x${string}`[];
1601
- randomness: {
1602
- committed: `0x${string}`;
1603
- revealed: `0x${string}`;
1604
- };
1605
- } & {
1606
- nonce: never;
1607
- difficulty: never;
1608
- gasLimit: never;
1609
- mixHash: never;
1610
- uncles: never;
1611
- };
1612
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1613
- feeCurrency: `0x${string}` | null;
1614
- gatewayFee: `0x${string}` | null;
1615
- gatewayFeeRecipient: `0x${string}` | null;
1616
- }) => ({
1617
- blockHash: `0x${string}` | null;
1618
- blockNumber: bigint | null;
1619
- from: `0x${string}`;
1620
- gas: bigint;
1621
- hash: `0x${string}`;
1622
- input: `0x${string}`;
1623
- nonce: number;
1624
- r: `0x${string}`;
1625
- s: `0x${string}`;
1626
- to: `0x${string}` | null;
1627
- transactionIndex: number | null;
1628
- typeHex: `0x${string}` | null;
1629
- v: bigint;
1630
- value: bigint;
1631
- gasPrice: bigint;
1632
- maxFeePerGas?: undefined;
1633
- maxPriorityFeePerGas?: undefined;
1634
- accessList?: undefined;
1635
- chainId?: number | undefined;
1636
- type: "legacy";
1637
- feeCurrency: `0x${string}` | null;
1638
- gatewayFee: bigint | null;
1639
- gatewayFeeRecipient: `0x${string}` | null;
1640
- } | {
1641
- blockHash: `0x${string}` | null;
1642
- blockNumber: bigint | null;
1643
- from: `0x${string}`;
1644
- gas: bigint;
1645
- hash: `0x${string}`;
1646
- input: `0x${string}`;
1647
- nonce: number;
1648
- r: `0x${string}`;
1649
- s: `0x${string}`;
1650
- to: `0x${string}` | null;
1651
- transactionIndex: number | null;
1652
- typeHex: `0x${string}` | null;
1653
- v: bigint;
1654
- value: bigint;
1655
- gasPrice: bigint;
1656
- maxFeePerGas?: undefined;
1657
- maxPriorityFeePerGas?: undefined;
1658
- accessList: import("../index.js").AccessList;
1659
- chainId: number;
1660
- type: "eip2930";
1661
- feeCurrency: `0x${string}` | null;
1662
- gatewayFee: bigint | null;
1663
- gatewayFeeRecipient: `0x${string}` | null;
1664
- } | {
1665
- blockHash: `0x${string}` | null;
1666
- blockNumber: bigint | null;
1667
- from: `0x${string}`;
1668
- gas: bigint;
1669
- hash: `0x${string}`;
1670
- input: `0x${string}`;
1671
- nonce: number;
1672
- r: `0x${string}`;
1673
- s: `0x${string}`;
1674
- to: `0x${string}` | null;
1675
- transactionIndex: number | null;
1676
- typeHex: `0x${string}` | null;
1677
- v: bigint;
1678
- value: bigint;
1679
- gasPrice?: undefined;
1680
- maxFeePerGas: bigint;
1681
- maxPriorityFeePerGas: bigint;
1682
- accessList: import("../index.js").AccessList;
1683
- chainId: number;
1684
- type: "eip1559";
1685
- feeCurrency: `0x${string}` | null;
1686
- gatewayFee: bigint | null;
1687
- gatewayFeeRecipient: `0x${string}` | null;
1688
- }) & {};
1689
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1690
- feeCurrency: `0x${string}` | null;
1691
- gatewayFee: `0x${string}` | null;
1692
- gatewayFeeRecipient: `0x${string}` | null;
1693
- }) => {
1694
- blockHash: `0x${string}`;
1695
- blockNumber: bigint;
1696
- contractAddress: `0x${string}` | null;
1697
- cumulativeGasUsed: bigint;
1698
- effectiveGasPrice: bigint;
1699
- from: `0x${string}`;
1700
- gasUsed: bigint;
1701
- logs: import("../index.js").Log<bigint, number>[];
1702
- logsBloom: `0x${string}`;
1703
- status: "success" | "reverted";
1704
- to: `0x${string}` | null;
1705
- transactionHash: `0x${string}`;
1706
- transactionIndex: number;
1707
- type: import("../index.js").TransactionType;
1708
- feeCurrency: `0x${string}` | null;
1709
- gatewayFee: bigint | null;
1710
- gatewayFeeRecipient: `0x${string}` | null;
1711
- } & {};
1712
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1713
- feeCurrency?: `0x${string}` | undefined;
1714
- gatewayFee?: bigint | undefined;
1715
- gatewayFeeRecipient?: `0x${string}` | undefined;
1716
- }) => ({
1717
- data?: `0x${string}` | undefined;
1718
- from: `0x${string}`;
1719
- gas?: `0x${string}` | undefined;
1720
- nonce?: `0x${string}` | undefined;
1721
- to?: `0x${string}` | undefined;
1722
- value?: `0x${string}` | undefined;
1723
- gasPrice?: `0x${string}` | undefined;
1724
- maxFeePerGas?: undefined;
1725
- maxPriorityFeePerGas?: undefined;
1726
- accessList?: undefined;
1727
- feeCurrency: `0x${string}` | undefined;
1728
- gatewayFee: `0x${string}` | undefined;
1729
- gatewayFeeRecipient: `0x${string}` | undefined;
1730
- } | {
1731
- data?: `0x${string}` | undefined;
1732
- from: `0x${string}`;
1733
- gas?: `0x${string}` | undefined;
1734
- nonce?: `0x${string}` | undefined;
1735
- to?: `0x${string}` | undefined;
1736
- value?: `0x${string}` | undefined;
1737
- gasPrice?: `0x${string}` | undefined;
1738
- maxFeePerGas?: undefined;
1739
- maxPriorityFeePerGas?: undefined;
1740
- accessList?: import("../index.js").AccessList | undefined;
1741
- feeCurrency: `0x${string}` | undefined;
1742
- gatewayFee: `0x${string}` | undefined;
1743
- gatewayFeeRecipient: `0x${string}` | undefined;
1744
- } | {
1745
- data?: `0x${string}` | undefined;
1746
- from: `0x${string}`;
1747
- gas?: `0x${string}` | undefined;
1748
- nonce?: `0x${string}` | undefined;
1749
- to?: `0x${string}` | undefined;
1750
- value?: `0x${string}` | undefined;
1751
- gasPrice?: undefined;
1752
- maxFeePerGas?: `0x${string}` | undefined;
1753
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1754
- accessList?: import("../index.js").AccessList | undefined;
1755
- feeCurrency: `0x${string}` | undefined;
1756
- gatewayFee: `0x${string}` | undefined;
1757
- gatewayFeeRecipient: `0x${string}` | undefined;
1758
- }) & {};
1704
+ } | {
1705
+ blockHash: `0x${string}` | null;
1706
+ blockNumber: bigint | null;
1707
+ from: `0x${string}`;
1708
+ gas: bigint;
1709
+ hash: `0x${string}`;
1710
+ input: `0x${string}`;
1711
+ nonce: number;
1712
+ r: `0x${string}`;
1713
+ s: `0x${string}`;
1714
+ to: `0x${string}` | null;
1715
+ transactionIndex: number | null;
1716
+ typeHex: `0x${string}` | null;
1717
+ v: bigint;
1718
+ value: bigint;
1719
+ gasPrice: bigint;
1720
+ maxFeePerGas?: undefined;
1721
+ maxPriorityFeePerGas?: undefined;
1722
+ accessList: import("../index.js").AccessList;
1723
+ chainId: number;
1724
+ type: "eip2930";
1725
+ feeCurrency: `0x${string}` | null;
1726
+ gatewayFee: bigint | null;
1727
+ gatewayFeeRecipient: `0x${string}` | null;
1728
+ } | {
1729
+ blockHash: `0x${string}` | null;
1730
+ blockNumber: bigint | null;
1731
+ from: `0x${string}`;
1732
+ gas: bigint;
1733
+ hash: `0x${string}`;
1734
+ input: `0x${string}`;
1735
+ nonce: number;
1736
+ r: `0x${string}`;
1737
+ s: `0x${string}`;
1738
+ to: `0x${string}` | null;
1739
+ transactionIndex: number | null;
1740
+ typeHex: `0x${string}` | null;
1741
+ v: bigint;
1742
+ value: bigint;
1743
+ gasPrice?: undefined;
1744
+ maxFeePerGas: bigint;
1745
+ maxPriorityFeePerGas: bigint;
1746
+ accessList: import("../index.js").AccessList;
1747
+ chainId: number;
1748
+ type: "eip1559";
1749
+ feeCurrency: `0x${string}` | null;
1750
+ gatewayFee: bigint | null;
1751
+ gatewayFeeRecipient: `0x${string}` | null;
1752
+ }) & {};
1753
+ type: "transaction";
1754
+ };
1755
+ readonly transactionReceipt: {
1756
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1757
+ feeCurrency: `0x${string}` | null;
1758
+ gatewayFee: `0x${string}` | null;
1759
+ gatewayFeeRecipient: `0x${string}` | null;
1760
+ }) => {
1761
+ blockHash: `0x${string}`;
1762
+ blockNumber: bigint;
1763
+ contractAddress: `0x${string}` | null;
1764
+ cumulativeGasUsed: bigint;
1765
+ effectiveGasPrice: bigint;
1766
+ from: `0x${string}`;
1767
+ gasUsed: bigint;
1768
+ logs: import("../index.js").Log<bigint, number>[];
1769
+ logsBloom: `0x${string}`;
1770
+ status: "success" | "reverted";
1771
+ to: `0x${string}` | null;
1772
+ transactionHash: `0x${string}`;
1773
+ transactionIndex: number;
1774
+ type: import("../index.js").TransactionType;
1775
+ feeCurrency: `0x${string}` | null;
1776
+ gatewayFee: bigint | null;
1777
+ gatewayFeeRecipient: `0x${string}` | null;
1778
+ } & {};
1779
+ type: "transactionReceipt";
1780
+ };
1781
+ readonly transactionRequest: {
1782
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1783
+ feeCurrency?: `0x${string}` | undefined;
1784
+ gatewayFee?: bigint | undefined;
1785
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1786
+ }) => ({
1787
+ data?: `0x${string}` | undefined;
1788
+ from: `0x${string}`;
1789
+ gas?: `0x${string}` | undefined;
1790
+ nonce?: `0x${string}` | undefined;
1791
+ to?: `0x${string}` | undefined;
1792
+ value?: `0x${string}` | undefined;
1793
+ gasPrice?: `0x${string}` | undefined;
1794
+ maxFeePerGas?: undefined;
1795
+ maxPriorityFeePerGas?: undefined;
1796
+ accessList?: undefined;
1797
+ feeCurrency: `0x${string}` | undefined;
1798
+ gatewayFee: `0x${string}` | undefined;
1799
+ gatewayFeeRecipient: `0x${string}` | undefined;
1800
+ } | {
1801
+ data?: `0x${string}` | undefined;
1802
+ from: `0x${string}`;
1803
+ gas?: `0x${string}` | undefined;
1804
+ nonce?: `0x${string}` | undefined;
1805
+ to?: `0x${string}` | undefined;
1806
+ value?: `0x${string}` | undefined;
1807
+ gasPrice?: `0x${string}` | undefined;
1808
+ maxFeePerGas?: undefined;
1809
+ maxPriorityFeePerGas?: undefined;
1810
+ accessList?: import("../index.js").AccessList | undefined;
1811
+ feeCurrency: `0x${string}` | undefined;
1812
+ gatewayFee: `0x${string}` | undefined;
1813
+ gatewayFeeRecipient: `0x${string}` | undefined;
1814
+ } | {
1815
+ data?: `0x${string}` | undefined;
1816
+ from: `0x${string}`;
1817
+ gas?: `0x${string}` | undefined;
1818
+ nonce?: `0x${string}` | undefined;
1819
+ to?: `0x${string}` | undefined;
1820
+ value?: `0x${string}` | undefined;
1821
+ gasPrice?: undefined;
1822
+ maxFeePerGas?: `0x${string}` | undefined;
1823
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1824
+ accessList?: import("../index.js").AccessList | undefined;
1825
+ feeCurrency: `0x${string}` | undefined;
1826
+ gatewayFee: `0x${string}` | undefined;
1827
+ gatewayFeeRecipient: `0x${string}` | undefined;
1828
+ }) & {};
1829
+ type: "transactionRequest";
1830
+ };
1759
1831
  }> | undefined;
1760
1832
  };
1761
1833
  export declare const cronos: {
@@ -1776,10 +1848,6 @@ export declare const cronos: {
1776
1848
  };
1777
1849
  };
1778
1850
  readonly blockExplorers: {
1779
- readonly etherscan: {
1780
- readonly name: "CronosScan";
1781
- readonly url: "https://cronoscan.com";
1782
- };
1783
1851
  readonly default: {
1784
1852
  readonly name: "CronosScan";
1785
1853
  readonly url: "https://cronoscan.com";
@@ -1910,7 +1978,7 @@ export declare const evmos: {
1910
1978
  readonly blockExplorers: {
1911
1979
  readonly default: {
1912
1980
  readonly name: "Evmos Block Explorer";
1913
- readonly url: "https://escan.live/";
1981
+ readonly url: "https://escan.live";
1914
1982
  };
1915
1983
  };
1916
1984
  } & {
@@ -2843,542 +2911,522 @@ export declare const optimism: {
2843
2911
  };
2844
2912
  } & {
2845
2913
  formatters: {
2846
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
2847
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
2914
+ readonly block: {
2915
+ format: (args: Partial<import("../index.js").RpcBlock> & {
2916
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
2917
+ isSystemTx?: undefined;
2918
+ mint?: undefined;
2919
+ sourceHash?: undefined;
2920
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
2921
+ }) => {
2922
+ baseFeePerGas: bigint | null;
2923
+ difficulty: bigint;
2924
+ extraData: `0x${string}`;
2925
+ gasLimit: bigint;
2926
+ gasUsed: bigint;
2927
+ hash: `0x${string}` | null;
2928
+ logsBloom: `0x${string}` | null;
2929
+ miner: `0x${string}`;
2930
+ mixHash: `0x${string}`;
2931
+ nonce: `0x${string}` | null;
2932
+ number: bigint | null;
2933
+ parentHash: `0x${string}`;
2934
+ receiptsRoot: `0x${string}`;
2935
+ sealFields: `0x${string}`[];
2936
+ sha3Uncles: `0x${string}`;
2937
+ size: bigint;
2938
+ stateRoot: `0x${string}`;
2939
+ timestamp: bigint;
2940
+ totalDifficulty: bigint | null;
2941
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
2942
+ isSystemTx?: undefined;
2943
+ mint?: undefined;
2944
+ sourceHash?: undefined;
2945
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
2946
+ transactionsRoot: `0x${string}`;
2947
+ uncles: `0x${string}`[];
2948
+ } & {};
2949
+ type: "block";
2950
+ };
2951
+ readonly transaction: {
2952
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2953
+ accessList?: undefined;
2954
+ chainId?: `0x${string}` | undefined;
2955
+ type: "0x0";
2956
+ } & {
2848
2957
  isSystemTx?: undefined;
2849
2958
  mint?: undefined;
2850
2959
  sourceHash?: undefined;
2851
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
2960
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2961
+ accessList: import("../index.js").AccessList;
2962
+ chainId: `0x${string}`;
2963
+ type: "0x1";
2964
+ } & {
2965
+ isSystemTx?: undefined;
2966
+ mint?: undefined;
2967
+ sourceHash?: undefined;
2968
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
2969
+ accessList: import("../index.js").AccessList;
2970
+ chainId: `0x${string}`;
2971
+ type: "0x2";
2972
+ } & {
2973
+ isSystemTx?: undefined;
2974
+ mint?: undefined;
2975
+ sourceHash?: undefined;
2976
+ })) => ({
2977
+ blockHash: `0x${string}` | null;
2978
+ blockNumber: bigint | null;
2979
+ from: `0x${string}`;
2980
+ gas: bigint;
2981
+ hash: `0x${string}`;
2982
+ input: `0x${string}`;
2983
+ nonce: number;
2984
+ r: `0x${string}`;
2985
+ s: `0x${string}`;
2986
+ to: `0x${string}` | null;
2987
+ transactionIndex: number | null;
2988
+ typeHex: `0x${string}` | null;
2989
+ v: bigint;
2990
+ value: bigint;
2991
+ gasPrice: bigint;
2992
+ maxFeePerGas?: undefined;
2993
+ maxPriorityFeePerGas?: undefined;
2994
+ accessList?: undefined;
2995
+ chainId?: number | undefined;
2996
+ type: "legacy";
2997
+ isSystemTx?: undefined;
2998
+ mint?: undefined;
2999
+ sourceHash?: undefined;
3000
+ } | {
3001
+ blockHash: `0x${string}` | null;
3002
+ blockNumber: bigint | null;
3003
+ from: `0x${string}`;
3004
+ gas: bigint;
3005
+ hash: `0x${string}`;
3006
+ input: `0x${string}`;
3007
+ nonce: number;
3008
+ r: `0x${string}`;
3009
+ s: `0x${string}`;
3010
+ to: `0x${string}` | null;
3011
+ transactionIndex: number | null;
3012
+ typeHex: `0x${string}` | null;
3013
+ v: bigint;
3014
+ value: bigint;
3015
+ gasPrice: undefined;
3016
+ maxFeePerGas: bigint;
3017
+ maxPriorityFeePerGas: bigint;
3018
+ accessList?: undefined;
3019
+ chainId?: number | undefined;
3020
+ type: "deposit";
2852
3021
  isSystemTx?: boolean | undefined;
2853
- mint?: `0x${string}` | undefined;
3022
+ mint?: bigint | undefined;
2854
3023
  sourceHash: `0x${string}`;
2855
- type: "0x7e";
2856
- }))[];
2857
- }) => {
2858
- baseFeePerGas: bigint | null;
2859
- difficulty: bigint;
2860
- extraData: `0x${string}`;
2861
- gasLimit: bigint;
2862
- gasUsed: bigint;
2863
- hash: `0x${string}` | null;
2864
- logsBloom: `0x${string}` | null;
2865
- miner: `0x${string}`;
2866
- mixHash: `0x${string}`;
2867
- nonce: `0x${string}` | null;
2868
- number: bigint | null;
2869
- parentHash: `0x${string}`;
2870
- receiptsRoot: `0x${string}`;
2871
- sealFields: `0x${string}`[];
2872
- sha3Uncles: `0x${string}`;
2873
- size: bigint;
2874
- stateRoot: `0x${string}`;
2875
- timestamp: bigint;
2876
- totalDifficulty: bigint | null;
2877
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3024
+ } | {
3025
+ blockHash: `0x${string}` | null;
3026
+ blockNumber: bigint | null;
3027
+ from: `0x${string}`;
3028
+ gas: bigint;
3029
+ hash: `0x${string}`;
3030
+ input: `0x${string}`;
3031
+ nonce: number;
3032
+ r: `0x${string}`;
3033
+ s: `0x${string}`;
3034
+ to: `0x${string}` | null;
3035
+ transactionIndex: number | null;
3036
+ typeHex: `0x${string}` | null;
3037
+ v: bigint;
3038
+ value: bigint;
3039
+ gasPrice: bigint;
3040
+ maxFeePerGas?: undefined;
3041
+ maxPriorityFeePerGas?: undefined;
3042
+ accessList: import("../index.js").AccessList;
3043
+ chainId: number;
3044
+ type: "eip2930";
3045
+ isSystemTx?: undefined;
3046
+ mint?: undefined;
3047
+ sourceHash?: undefined;
3048
+ } | {
3049
+ blockHash: `0x${string}` | null;
3050
+ blockNumber: bigint | null;
3051
+ from: `0x${string}`;
3052
+ gas: bigint;
3053
+ hash: `0x${string}`;
3054
+ input: `0x${string}`;
3055
+ nonce: number;
3056
+ r: `0x${string}`;
3057
+ s: `0x${string}`;
3058
+ to: `0x${string}` | null;
3059
+ transactionIndex: number | null;
3060
+ typeHex: `0x${string}` | null;
3061
+ v: bigint;
3062
+ value: bigint;
3063
+ gasPrice: undefined;
3064
+ maxFeePerGas: bigint;
3065
+ maxPriorityFeePerGas: bigint;
3066
+ accessList: import("../index.js").AccessList;
3067
+ chainId: number;
3068
+ type: "eip1559";
2878
3069
  isSystemTx?: undefined;
2879
3070
  mint?: undefined;
2880
3071
  sourceHash?: undefined;
2881
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3072
+ } | {
3073
+ blockHash: `0x${string}` | null;
3074
+ blockNumber: bigint | null;
3075
+ from: `0x${string}`;
3076
+ gas: bigint;
3077
+ hash: `0x${string}`;
3078
+ input: `0x${string}`;
3079
+ nonce: number;
3080
+ r: `0x${string}`;
3081
+ s: `0x${string}`;
3082
+ to: `0x${string}` | null;
3083
+ transactionIndex: number | null;
3084
+ typeHex: `0x${string}` | null;
3085
+ v: bigint;
3086
+ value: bigint;
3087
+ gasPrice: undefined;
3088
+ maxFeePerGas: bigint;
3089
+ maxPriorityFeePerGas: bigint;
3090
+ accessList: import("../index.js").AccessList;
3091
+ chainId: number;
3092
+ type: "deposit";
2882
3093
  isSystemTx?: boolean | undefined;
2883
3094
  mint?: bigint | undefined;
2884
3095
  sourceHash: `0x${string}`;
3096
+ } | {
3097
+ blockHash: `0x${string}` | null;
3098
+ blockNumber: bigint | null;
3099
+ from: `0x${string}`;
3100
+ gas: bigint;
3101
+ hash: `0x${string}`;
3102
+ input: `0x${string}`;
3103
+ nonce: number;
3104
+ r: `0x${string}`;
3105
+ s: `0x${string}`;
3106
+ to: `0x${string}` | null;
3107
+ transactionIndex: number | null;
3108
+ typeHex: `0x${string}` | null;
3109
+ v: bigint;
3110
+ value: bigint;
3111
+ gasPrice: bigint;
3112
+ maxFeePerGas: undefined;
3113
+ maxPriorityFeePerGas: undefined;
3114
+ accessList: import("../index.js").AccessList;
3115
+ chainId: number;
3116
+ type: "eip2930";
3117
+ isSystemTx?: undefined;
3118
+ mint?: undefined;
3119
+ sourceHash?: undefined;
3120
+ } | {
3121
+ blockHash: `0x${string}` | null;
3122
+ blockNumber: bigint | null;
3123
+ from: `0x${string}`;
3124
+ gas: bigint;
3125
+ hash: `0x${string}`;
3126
+ input: `0x${string}`;
3127
+ nonce: number;
3128
+ r: `0x${string}`;
3129
+ s: `0x${string}`;
3130
+ to: `0x${string}` | null;
3131
+ transactionIndex: number | null;
3132
+ typeHex: `0x${string}` | null;
3133
+ v: bigint;
3134
+ value: bigint;
3135
+ gasPrice?: undefined;
3136
+ maxFeePerGas: bigint;
3137
+ maxPriorityFeePerGas: bigint;
3138
+ accessList: import("../index.js").AccessList;
3139
+ chainId: number;
3140
+ type: "eip1559";
3141
+ isSystemTx?: undefined;
3142
+ mint?: undefined;
3143
+ sourceHash?: undefined;
3144
+ } | {
3145
+ blockHash: `0x${string}` | null;
3146
+ blockNumber: bigint | null;
3147
+ from: `0x${string}`;
3148
+ gas: bigint;
3149
+ hash: `0x${string}`;
3150
+ input: `0x${string}`;
3151
+ nonce: number;
3152
+ r: `0x${string}`;
3153
+ s: `0x${string}`;
3154
+ to: `0x${string}` | null;
3155
+ transactionIndex: number | null;
3156
+ typeHex: `0x${string}` | null;
3157
+ v: bigint;
3158
+ value: bigint;
3159
+ gasPrice?: undefined;
3160
+ maxFeePerGas: bigint;
3161
+ maxPriorityFeePerGas: bigint;
3162
+ accessList: import("../index.js").AccessList;
3163
+ chainId: number;
2885
3164
  type: "deposit";
2886
- }))[];
2887
- transactionsRoot: `0x${string}`;
2888
- uncles: `0x${string}`[];
2889
- } & {
2890
- nonce: never;
2891
- difficulty: never;
2892
- gasLimit: never;
2893
- mixHash: never;
2894
- uncles: never;
2895
- };
2896
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2897
- accessList?: undefined;
2898
- chainId?: `0x${string}` | undefined;
2899
- type: "0x0";
2900
- } & {
2901
- isSystemTx?: undefined;
2902
- mint?: undefined;
2903
- sourceHash?: undefined;
2904
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2905
- accessList: import("../index.js").AccessList;
2906
- chainId: `0x${string}`;
2907
- type: "0x1";
2908
- } & {
2909
- isSystemTx?: undefined;
2910
- mint?: undefined;
2911
- sourceHash?: undefined;
2912
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
2913
- accessList: import("../index.js").AccessList;
2914
- chainId: `0x${string}`;
2915
- type: "0x2";
2916
- } & {
2917
- isSystemTx?: undefined;
2918
- mint?: undefined;
2919
- sourceHash?: undefined;
2920
- })) => ({
2921
- blockHash: `0x${string}` | null;
2922
- blockNumber: bigint | null;
2923
- from: `0x${string}`;
2924
- gas: bigint;
2925
- hash: `0x${string}`;
2926
- input: `0x${string}`;
2927
- nonce: number;
2928
- r: `0x${string}`;
2929
- s: `0x${string}`;
2930
- to: `0x${string}` | null;
2931
- transactionIndex: number | null;
2932
- typeHex: `0x${string}` | null;
2933
- v: bigint;
2934
- value: bigint;
2935
- gasPrice: bigint;
2936
- maxFeePerGas?: undefined;
2937
- maxPriorityFeePerGas?: undefined;
2938
- accessList?: undefined;
2939
- chainId?: number | undefined;
2940
- type: "legacy";
2941
- isSystemTx?: undefined;
2942
- mint?: undefined;
2943
- sourceHash?: undefined;
2944
- } | {
2945
- blockHash: `0x${string}` | null;
2946
- blockNumber: bigint | null;
2947
- from: `0x${string}`;
2948
- gas: bigint;
2949
- hash: `0x${string}`;
2950
- input: `0x${string}`;
2951
- nonce: number;
2952
- r: `0x${string}`;
2953
- s: `0x${string}`;
2954
- to: `0x${string}` | null;
2955
- transactionIndex: number | null;
2956
- typeHex: `0x${string}` | null;
2957
- v: bigint;
2958
- value: bigint;
2959
- gasPrice: undefined;
2960
- maxFeePerGas: bigint;
2961
- maxPriorityFeePerGas: bigint;
2962
- accessList?: undefined;
2963
- chainId?: number | undefined;
2964
- type: "deposit";
2965
- isSystemTx?: boolean | undefined;
2966
- mint?: bigint | undefined;
2967
- sourceHash: `0x${string}`;
2968
- } | {
2969
- blockHash: `0x${string}` | null;
2970
- blockNumber: bigint | null;
2971
- from: `0x${string}`;
2972
- gas: bigint;
2973
- hash: `0x${string}`;
2974
- input: `0x${string}`;
2975
- nonce: number;
2976
- r: `0x${string}`;
2977
- s: `0x${string}`;
2978
- to: `0x${string}` | null;
2979
- transactionIndex: number | null;
2980
- typeHex: `0x${string}` | null;
2981
- v: bigint;
2982
- value: bigint;
2983
- gasPrice: bigint;
2984
- maxFeePerGas?: undefined;
2985
- maxPriorityFeePerGas?: undefined;
2986
- accessList: import("../index.js").AccessList;
2987
- chainId: number;
2988
- type: "eip2930";
2989
- isSystemTx?: undefined;
2990
- mint?: undefined;
2991
- sourceHash?: undefined;
2992
- } | {
2993
- blockHash: `0x${string}` | null;
2994
- blockNumber: bigint | null;
2995
- from: `0x${string}`;
2996
- gas: bigint;
2997
- hash: `0x${string}`;
2998
- input: `0x${string}`;
2999
- nonce: number;
3000
- r: `0x${string}`;
3001
- s: `0x${string}`;
3002
- to: `0x${string}` | null;
3003
- transactionIndex: number | null;
3004
- typeHex: `0x${string}` | null;
3005
- v: bigint;
3006
- value: bigint;
3007
- gasPrice: undefined;
3008
- maxFeePerGas: bigint;
3009
- maxPriorityFeePerGas: bigint;
3010
- accessList: import("../index.js").AccessList;
3011
- chainId: number;
3012
- type: "eip1559";
3013
- isSystemTx?: undefined;
3014
- mint?: undefined;
3015
- sourceHash?: undefined;
3016
- } | {
3017
- blockHash: `0x${string}` | null;
3018
- blockNumber: bigint | null;
3019
- from: `0x${string}`;
3020
- gas: bigint;
3021
- hash: `0x${string}`;
3022
- input: `0x${string}`;
3023
- nonce: number;
3024
- r: `0x${string}`;
3025
- s: `0x${string}`;
3026
- to: `0x${string}` | null;
3027
- transactionIndex: number | null;
3028
- typeHex: `0x${string}` | null;
3029
- v: bigint;
3030
- value: bigint;
3031
- gasPrice: undefined;
3032
- maxFeePerGas: bigint;
3033
- maxPriorityFeePerGas: bigint;
3034
- accessList: import("../index.js").AccessList;
3035
- chainId: number;
3036
- type: "deposit";
3037
- isSystemTx?: boolean | undefined;
3038
- mint?: bigint | undefined;
3039
- sourceHash: `0x${string}`;
3040
- } | {
3041
- blockHash: `0x${string}` | null;
3042
- blockNumber: bigint | null;
3043
- from: `0x${string}`;
3044
- gas: bigint;
3045
- hash: `0x${string}`;
3046
- input: `0x${string}`;
3047
- nonce: number;
3048
- r: `0x${string}`;
3049
- s: `0x${string}`;
3050
- to: `0x${string}` | null;
3051
- transactionIndex: number | null;
3052
- typeHex: `0x${string}` | null;
3053
- v: bigint;
3054
- value: bigint;
3055
- gasPrice: bigint;
3056
- maxFeePerGas: undefined;
3057
- maxPriorityFeePerGas: undefined;
3058
- accessList: import("../index.js").AccessList;
3059
- chainId: number;
3060
- type: "eip2930";
3061
- isSystemTx?: undefined;
3062
- mint?: undefined;
3063
- sourceHash?: undefined;
3064
- } | {
3065
- blockHash: `0x${string}` | null;
3066
- blockNumber: bigint | null;
3067
- from: `0x${string}`;
3068
- gas: bigint;
3069
- hash: `0x${string}`;
3070
- input: `0x${string}`;
3071
- nonce: number;
3072
- r: `0x${string}`;
3073
- s: `0x${string}`;
3074
- to: `0x${string}` | null;
3075
- transactionIndex: number | null;
3076
- typeHex: `0x${string}` | null;
3077
- v: bigint;
3078
- value: bigint;
3079
- gasPrice?: undefined;
3080
- maxFeePerGas: bigint;
3081
- maxPriorityFeePerGas: bigint;
3082
- accessList: import("../index.js").AccessList;
3083
- chainId: number;
3084
- type: "eip1559";
3085
- isSystemTx?: undefined;
3086
- mint?: undefined;
3087
- sourceHash?: undefined;
3088
- } | {
3089
- blockHash: `0x${string}` | null;
3090
- blockNumber: bigint | null;
3091
- from: `0x${string}`;
3092
- gas: bigint;
3093
- hash: `0x${string}`;
3094
- input: `0x${string}`;
3095
- nonce: number;
3096
- r: `0x${string}`;
3097
- s: `0x${string}`;
3098
- to: `0x${string}` | null;
3099
- transactionIndex: number | null;
3100
- typeHex: `0x${string}` | null;
3101
- v: bigint;
3102
- value: bigint;
3103
- gasPrice?: undefined;
3104
- maxFeePerGas: bigint;
3105
- maxPriorityFeePerGas: bigint;
3106
- accessList: import("../index.js").AccessList;
3107
- chainId: number;
3108
- type: "deposit";
3109
- isSystemTx?: boolean | undefined;
3110
- mint?: bigint | undefined;
3111
- sourceHash: `0x${string}`;
3112
- }) & {};
3165
+ isSystemTx?: boolean | undefined;
3166
+ mint?: bigint | undefined;
3167
+ sourceHash: `0x${string}`;
3168
+ }) & {};
3169
+ type: "transaction";
3170
+ };
3113
3171
  } | undefined;
3114
3172
  serializers: import("../index.js").Serializers<{
3115
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3116
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3173
+ readonly block: {
3174
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3175
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3176
+ isSystemTx?: undefined;
3177
+ mint?: undefined;
3178
+ sourceHash?: undefined;
3179
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3180
+ }) => {
3181
+ baseFeePerGas: bigint | null;
3182
+ difficulty: bigint;
3183
+ extraData: `0x${string}`;
3184
+ gasLimit: bigint;
3185
+ gasUsed: bigint;
3186
+ hash: `0x${string}` | null;
3187
+ logsBloom: `0x${string}` | null;
3188
+ miner: `0x${string}`;
3189
+ mixHash: `0x${string}`;
3190
+ nonce: `0x${string}` | null;
3191
+ number: bigint | null;
3192
+ parentHash: `0x${string}`;
3193
+ receiptsRoot: `0x${string}`;
3194
+ sealFields: `0x${string}`[];
3195
+ sha3Uncles: `0x${string}`;
3196
+ size: bigint;
3197
+ stateRoot: `0x${string}`;
3198
+ timestamp: bigint;
3199
+ totalDifficulty: bigint | null;
3200
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3201
+ isSystemTx?: undefined;
3202
+ mint?: undefined;
3203
+ sourceHash?: undefined;
3204
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3205
+ transactionsRoot: `0x${string}`;
3206
+ uncles: `0x${string}`[];
3207
+ } & {};
3208
+ type: "block";
3209
+ };
3210
+ readonly transaction: {
3211
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3212
+ accessList?: undefined;
3213
+ chainId?: `0x${string}` | undefined;
3214
+ type: "0x0";
3215
+ } & {
3117
3216
  isSystemTx?: undefined;
3118
3217
  mint?: undefined;
3119
3218
  sourceHash?: undefined;
3120
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3219
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3220
+ accessList: import("../index.js").AccessList;
3221
+ chainId: `0x${string}`;
3222
+ type: "0x1";
3223
+ } & {
3224
+ isSystemTx?: undefined;
3225
+ mint?: undefined;
3226
+ sourceHash?: undefined;
3227
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3228
+ accessList: import("../index.js").AccessList;
3229
+ chainId: `0x${string}`;
3230
+ type: "0x2";
3231
+ } & {
3232
+ isSystemTx?: undefined;
3233
+ mint?: undefined;
3234
+ sourceHash?: undefined;
3235
+ })) => ({
3236
+ blockHash: `0x${string}` | null;
3237
+ blockNumber: bigint | null;
3238
+ from: `0x${string}`;
3239
+ gas: bigint;
3240
+ hash: `0x${string}`;
3241
+ input: `0x${string}`;
3242
+ nonce: number;
3243
+ r: `0x${string}`;
3244
+ s: `0x${string}`;
3245
+ to: `0x${string}` | null;
3246
+ transactionIndex: number | null;
3247
+ typeHex: `0x${string}` | null;
3248
+ v: bigint;
3249
+ value: bigint;
3250
+ gasPrice: bigint;
3251
+ maxFeePerGas?: undefined;
3252
+ maxPriorityFeePerGas?: undefined;
3253
+ accessList?: undefined;
3254
+ chainId?: number | undefined;
3255
+ type: "legacy";
3256
+ isSystemTx?: undefined;
3257
+ mint?: undefined;
3258
+ sourceHash?: undefined;
3259
+ } | {
3260
+ blockHash: `0x${string}` | null;
3261
+ blockNumber: bigint | null;
3262
+ from: `0x${string}`;
3263
+ gas: bigint;
3264
+ hash: `0x${string}`;
3265
+ input: `0x${string}`;
3266
+ nonce: number;
3267
+ r: `0x${string}`;
3268
+ s: `0x${string}`;
3269
+ to: `0x${string}` | null;
3270
+ transactionIndex: number | null;
3271
+ typeHex: `0x${string}` | null;
3272
+ v: bigint;
3273
+ value: bigint;
3274
+ gasPrice: undefined;
3275
+ maxFeePerGas: bigint;
3276
+ maxPriorityFeePerGas: bigint;
3277
+ accessList?: undefined;
3278
+ chainId?: number | undefined;
3279
+ type: "deposit";
3121
3280
  isSystemTx?: boolean | undefined;
3122
- mint?: `0x${string}` | undefined;
3281
+ mint?: bigint | undefined;
3123
3282
  sourceHash: `0x${string}`;
3124
- type: "0x7e";
3125
- }))[];
3126
- }) => {
3127
- baseFeePerGas: bigint | null;
3128
- difficulty: bigint;
3129
- extraData: `0x${string}`;
3130
- gasLimit: bigint;
3131
- gasUsed: bigint;
3132
- hash: `0x${string}` | null;
3133
- logsBloom: `0x${string}` | null;
3134
- miner: `0x${string}`;
3135
- mixHash: `0x${string}`;
3136
- nonce: `0x${string}` | null;
3137
- number: bigint | null;
3138
- parentHash: `0x${string}`;
3139
- receiptsRoot: `0x${string}`;
3140
- sealFields: `0x${string}`[];
3141
- sha3Uncles: `0x${string}`;
3142
- size: bigint;
3143
- stateRoot: `0x${string}`;
3144
- timestamp: bigint;
3145
- totalDifficulty: bigint | null;
3146
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3283
+ } | {
3284
+ blockHash: `0x${string}` | null;
3285
+ blockNumber: bigint | null;
3286
+ from: `0x${string}`;
3287
+ gas: bigint;
3288
+ hash: `0x${string}`;
3289
+ input: `0x${string}`;
3290
+ nonce: number;
3291
+ r: `0x${string}`;
3292
+ s: `0x${string}`;
3293
+ to: `0x${string}` | null;
3294
+ transactionIndex: number | null;
3295
+ typeHex: `0x${string}` | null;
3296
+ v: bigint;
3297
+ value: bigint;
3298
+ gasPrice: bigint;
3299
+ maxFeePerGas?: undefined;
3300
+ maxPriorityFeePerGas?: undefined;
3301
+ accessList: import("../index.js").AccessList;
3302
+ chainId: number;
3303
+ type: "eip2930";
3147
3304
  isSystemTx?: undefined;
3148
3305
  mint?: undefined;
3149
3306
  sourceHash?: undefined;
3150
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3307
+ } | {
3308
+ blockHash: `0x${string}` | null;
3309
+ blockNumber: bigint | null;
3310
+ from: `0x${string}`;
3311
+ gas: bigint;
3312
+ hash: `0x${string}`;
3313
+ input: `0x${string}`;
3314
+ nonce: number;
3315
+ r: `0x${string}`;
3316
+ s: `0x${string}`;
3317
+ to: `0x${string}` | null;
3318
+ transactionIndex: number | null;
3319
+ typeHex: `0x${string}` | null;
3320
+ v: bigint;
3321
+ value: bigint;
3322
+ gasPrice: undefined;
3323
+ maxFeePerGas: bigint;
3324
+ maxPriorityFeePerGas: bigint;
3325
+ accessList: import("../index.js").AccessList;
3326
+ chainId: number;
3327
+ type: "eip1559";
3328
+ isSystemTx?: undefined;
3329
+ mint?: undefined;
3330
+ sourceHash?: undefined;
3331
+ } | {
3332
+ blockHash: `0x${string}` | null;
3333
+ blockNumber: bigint | null;
3334
+ from: `0x${string}`;
3335
+ gas: bigint;
3336
+ hash: `0x${string}`;
3337
+ input: `0x${string}`;
3338
+ nonce: number;
3339
+ r: `0x${string}`;
3340
+ s: `0x${string}`;
3341
+ to: `0x${string}` | null;
3342
+ transactionIndex: number | null;
3343
+ typeHex: `0x${string}` | null;
3344
+ v: bigint;
3345
+ value: bigint;
3346
+ gasPrice: undefined;
3347
+ maxFeePerGas: bigint;
3348
+ maxPriorityFeePerGas: bigint;
3349
+ accessList: import("../index.js").AccessList;
3350
+ chainId: number;
3351
+ type: "deposit";
3151
3352
  isSystemTx?: boolean | undefined;
3152
3353
  mint?: bigint | undefined;
3153
3354
  sourceHash: `0x${string}`;
3355
+ } | {
3356
+ blockHash: `0x${string}` | null;
3357
+ blockNumber: bigint | null;
3358
+ from: `0x${string}`;
3359
+ gas: bigint;
3360
+ hash: `0x${string}`;
3361
+ input: `0x${string}`;
3362
+ nonce: number;
3363
+ r: `0x${string}`;
3364
+ s: `0x${string}`;
3365
+ to: `0x${string}` | null;
3366
+ transactionIndex: number | null;
3367
+ typeHex: `0x${string}` | null;
3368
+ v: bigint;
3369
+ value: bigint;
3370
+ gasPrice: bigint;
3371
+ maxFeePerGas: undefined;
3372
+ maxPriorityFeePerGas: undefined;
3373
+ accessList: import("../index.js").AccessList;
3374
+ chainId: number;
3375
+ type: "eip2930";
3376
+ isSystemTx?: undefined;
3377
+ mint?: undefined;
3378
+ sourceHash?: undefined;
3379
+ } | {
3380
+ blockHash: `0x${string}` | null;
3381
+ blockNumber: bigint | null;
3382
+ from: `0x${string}`;
3383
+ gas: bigint;
3384
+ hash: `0x${string}`;
3385
+ input: `0x${string}`;
3386
+ nonce: number;
3387
+ r: `0x${string}`;
3388
+ s: `0x${string}`;
3389
+ to: `0x${string}` | null;
3390
+ transactionIndex: number | null;
3391
+ typeHex: `0x${string}` | null;
3392
+ v: bigint;
3393
+ value: bigint;
3394
+ gasPrice?: undefined;
3395
+ maxFeePerGas: bigint;
3396
+ maxPriorityFeePerGas: bigint;
3397
+ accessList: import("../index.js").AccessList;
3398
+ chainId: number;
3399
+ type: "eip1559";
3400
+ isSystemTx?: undefined;
3401
+ mint?: undefined;
3402
+ sourceHash?: undefined;
3403
+ } | {
3404
+ blockHash: `0x${string}` | null;
3405
+ blockNumber: bigint | null;
3406
+ from: `0x${string}`;
3407
+ gas: bigint;
3408
+ hash: `0x${string}`;
3409
+ input: `0x${string}`;
3410
+ nonce: number;
3411
+ r: `0x${string}`;
3412
+ s: `0x${string}`;
3413
+ to: `0x${string}` | null;
3414
+ transactionIndex: number | null;
3415
+ typeHex: `0x${string}` | null;
3416
+ v: bigint;
3417
+ value: bigint;
3418
+ gasPrice?: undefined;
3419
+ maxFeePerGas: bigint;
3420
+ maxPriorityFeePerGas: bigint;
3421
+ accessList: import("../index.js").AccessList;
3422
+ chainId: number;
3154
3423
  type: "deposit";
3155
- }))[];
3156
- transactionsRoot: `0x${string}`;
3157
- uncles: `0x${string}`[];
3158
- } & {
3159
- nonce: never;
3160
- difficulty: never;
3161
- gasLimit: never;
3162
- mixHash: never;
3163
- uncles: never;
3164
- };
3165
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3166
- accessList?: undefined;
3167
- chainId?: `0x${string}` | undefined;
3168
- type: "0x0";
3169
- } & {
3170
- isSystemTx?: undefined;
3171
- mint?: undefined;
3172
- sourceHash?: undefined;
3173
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3174
- accessList: import("../index.js").AccessList;
3175
- chainId: `0x${string}`;
3176
- type: "0x1";
3177
- } & {
3178
- isSystemTx?: undefined;
3179
- mint?: undefined;
3180
- sourceHash?: undefined;
3181
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3182
- accessList: import("../index.js").AccessList;
3183
- chainId: `0x${string}`;
3184
- type: "0x2";
3185
- } & {
3186
- isSystemTx?: undefined;
3187
- mint?: undefined;
3188
- sourceHash?: undefined;
3189
- })) => ({
3190
- blockHash: `0x${string}` | null;
3191
- blockNumber: bigint | null;
3192
- from: `0x${string}`;
3193
- gas: bigint;
3194
- hash: `0x${string}`;
3195
- input: `0x${string}`;
3196
- nonce: number;
3197
- r: `0x${string}`;
3198
- s: `0x${string}`;
3199
- to: `0x${string}` | null;
3200
- transactionIndex: number | null;
3201
- typeHex: `0x${string}` | null;
3202
- v: bigint;
3203
- value: bigint;
3204
- gasPrice: bigint;
3205
- maxFeePerGas?: undefined;
3206
- maxPriorityFeePerGas?: undefined;
3207
- accessList?: undefined;
3208
- chainId?: number | undefined;
3209
- type: "legacy";
3210
- isSystemTx?: undefined;
3211
- mint?: undefined;
3212
- sourceHash?: undefined;
3213
- } | {
3214
- blockHash: `0x${string}` | null;
3215
- blockNumber: bigint | null;
3216
- from: `0x${string}`;
3217
- gas: bigint;
3218
- hash: `0x${string}`;
3219
- input: `0x${string}`;
3220
- nonce: number;
3221
- r: `0x${string}`;
3222
- s: `0x${string}`;
3223
- to: `0x${string}` | null;
3224
- transactionIndex: number | null;
3225
- typeHex: `0x${string}` | null;
3226
- v: bigint;
3227
- value: bigint;
3228
- gasPrice: undefined;
3229
- maxFeePerGas: bigint;
3230
- maxPriorityFeePerGas: bigint;
3231
- accessList?: undefined;
3232
- chainId?: number | undefined;
3233
- type: "deposit";
3234
- isSystemTx?: boolean | undefined;
3235
- mint?: bigint | undefined;
3236
- sourceHash: `0x${string}`;
3237
- } | {
3238
- blockHash: `0x${string}` | null;
3239
- blockNumber: bigint | null;
3240
- from: `0x${string}`;
3241
- gas: bigint;
3242
- hash: `0x${string}`;
3243
- input: `0x${string}`;
3244
- nonce: number;
3245
- r: `0x${string}`;
3246
- s: `0x${string}`;
3247
- to: `0x${string}` | null;
3248
- transactionIndex: number | null;
3249
- typeHex: `0x${string}` | null;
3250
- v: bigint;
3251
- value: bigint;
3252
- gasPrice: bigint;
3253
- maxFeePerGas?: undefined;
3254
- maxPriorityFeePerGas?: undefined;
3255
- accessList: import("../index.js").AccessList;
3256
- chainId: number;
3257
- type: "eip2930";
3258
- isSystemTx?: undefined;
3259
- mint?: undefined;
3260
- sourceHash?: undefined;
3261
- } | {
3262
- blockHash: `0x${string}` | null;
3263
- blockNumber: bigint | null;
3264
- from: `0x${string}`;
3265
- gas: bigint;
3266
- hash: `0x${string}`;
3267
- input: `0x${string}`;
3268
- nonce: number;
3269
- r: `0x${string}`;
3270
- s: `0x${string}`;
3271
- to: `0x${string}` | null;
3272
- transactionIndex: number | null;
3273
- typeHex: `0x${string}` | null;
3274
- v: bigint;
3275
- value: bigint;
3276
- gasPrice: undefined;
3277
- maxFeePerGas: bigint;
3278
- maxPriorityFeePerGas: bigint;
3279
- accessList: import("../index.js").AccessList;
3280
- chainId: number;
3281
- type: "eip1559";
3282
- isSystemTx?: undefined;
3283
- mint?: undefined;
3284
- sourceHash?: undefined;
3285
- } | {
3286
- blockHash: `0x${string}` | null;
3287
- blockNumber: bigint | null;
3288
- from: `0x${string}`;
3289
- gas: bigint;
3290
- hash: `0x${string}`;
3291
- input: `0x${string}`;
3292
- nonce: number;
3293
- r: `0x${string}`;
3294
- s: `0x${string}`;
3295
- to: `0x${string}` | null;
3296
- transactionIndex: number | null;
3297
- typeHex: `0x${string}` | null;
3298
- v: bigint;
3299
- value: bigint;
3300
- gasPrice: undefined;
3301
- maxFeePerGas: bigint;
3302
- maxPriorityFeePerGas: bigint;
3303
- accessList: import("../index.js").AccessList;
3304
- chainId: number;
3305
- type: "deposit";
3306
- isSystemTx?: boolean | undefined;
3307
- mint?: bigint | undefined;
3308
- sourceHash: `0x${string}`;
3309
- } | {
3310
- blockHash: `0x${string}` | null;
3311
- blockNumber: bigint | null;
3312
- from: `0x${string}`;
3313
- gas: bigint;
3314
- hash: `0x${string}`;
3315
- input: `0x${string}`;
3316
- nonce: number;
3317
- r: `0x${string}`;
3318
- s: `0x${string}`;
3319
- to: `0x${string}` | null;
3320
- transactionIndex: number | null;
3321
- typeHex: `0x${string}` | null;
3322
- v: bigint;
3323
- value: bigint;
3324
- gasPrice: bigint;
3325
- maxFeePerGas: undefined;
3326
- maxPriorityFeePerGas: undefined;
3327
- accessList: import("../index.js").AccessList;
3328
- chainId: number;
3329
- type: "eip2930";
3330
- isSystemTx?: undefined;
3331
- mint?: undefined;
3332
- sourceHash?: undefined;
3333
- } | {
3334
- blockHash: `0x${string}` | null;
3335
- blockNumber: bigint | null;
3336
- from: `0x${string}`;
3337
- gas: bigint;
3338
- hash: `0x${string}`;
3339
- input: `0x${string}`;
3340
- nonce: number;
3341
- r: `0x${string}`;
3342
- s: `0x${string}`;
3343
- to: `0x${string}` | null;
3344
- transactionIndex: number | null;
3345
- typeHex: `0x${string}` | null;
3346
- v: bigint;
3347
- value: bigint;
3348
- gasPrice?: undefined;
3349
- maxFeePerGas: bigint;
3350
- maxPriorityFeePerGas: bigint;
3351
- accessList: import("../index.js").AccessList;
3352
- chainId: number;
3353
- type: "eip1559";
3354
- isSystemTx?: undefined;
3355
- mint?: undefined;
3356
- sourceHash?: undefined;
3357
- } | {
3358
- blockHash: `0x${string}` | null;
3359
- blockNumber: bigint | null;
3360
- from: `0x${string}`;
3361
- gas: bigint;
3362
- hash: `0x${string}`;
3363
- input: `0x${string}`;
3364
- nonce: number;
3365
- r: `0x${string}`;
3366
- s: `0x${string}`;
3367
- to: `0x${string}` | null;
3368
- transactionIndex: number | null;
3369
- typeHex: `0x${string}` | null;
3370
- v: bigint;
3371
- value: bigint;
3372
- gasPrice?: undefined;
3373
- maxFeePerGas: bigint;
3374
- maxPriorityFeePerGas: bigint;
3375
- accessList: import("../index.js").AccessList;
3376
- chainId: number;
3377
- type: "deposit";
3378
- isSystemTx?: boolean | undefined;
3379
- mint?: bigint | undefined;
3380
- sourceHash: `0x${string}`;
3381
- }) & {};
3424
+ isSystemTx?: boolean | undefined;
3425
+ mint?: bigint | undefined;
3426
+ sourceHash: `0x${string}`;
3427
+ }) & {};
3428
+ type: "transaction";
3429
+ };
3382
3430
  }> | undefined;
3383
3431
  };
3384
3432
  export declare const optimismGoerli: {
@@ -3425,542 +3473,522 @@ export declare const optimismGoerli: {
3425
3473
  readonly testnet: true;
3426
3474
  } & {
3427
3475
  formatters: {
3428
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3429
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3476
+ readonly block: {
3477
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3478
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3479
+ isSystemTx?: undefined;
3480
+ mint?: undefined;
3481
+ sourceHash?: undefined;
3482
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3483
+ }) => {
3484
+ baseFeePerGas: bigint | null;
3485
+ difficulty: bigint;
3486
+ extraData: `0x${string}`;
3487
+ gasLimit: bigint;
3488
+ gasUsed: bigint;
3489
+ hash: `0x${string}` | null;
3490
+ logsBloom: `0x${string}` | null;
3491
+ miner: `0x${string}`;
3492
+ mixHash: `0x${string}`;
3493
+ nonce: `0x${string}` | null;
3494
+ number: bigint | null;
3495
+ parentHash: `0x${string}`;
3496
+ receiptsRoot: `0x${string}`;
3497
+ sealFields: `0x${string}`[];
3498
+ sha3Uncles: `0x${string}`;
3499
+ size: bigint;
3500
+ stateRoot: `0x${string}`;
3501
+ timestamp: bigint;
3502
+ totalDifficulty: bigint | null;
3503
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3504
+ isSystemTx?: undefined;
3505
+ mint?: undefined;
3506
+ sourceHash?: undefined;
3507
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3508
+ transactionsRoot: `0x${string}`;
3509
+ uncles: `0x${string}`[];
3510
+ } & {};
3511
+ type: "block";
3512
+ };
3513
+ readonly transaction: {
3514
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3515
+ accessList?: undefined;
3516
+ chainId?: `0x${string}` | undefined;
3517
+ type: "0x0";
3518
+ } & {
3519
+ isSystemTx?: undefined;
3520
+ mint?: undefined;
3521
+ sourceHash?: undefined;
3522
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3523
+ accessList: import("../index.js").AccessList;
3524
+ chainId: `0x${string}`;
3525
+ type: "0x1";
3526
+ } & {
3527
+ isSystemTx?: undefined;
3528
+ mint?: undefined;
3529
+ sourceHash?: undefined;
3530
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3531
+ accessList: import("../index.js").AccessList;
3532
+ chainId: `0x${string}`;
3533
+ type: "0x2";
3534
+ } & {
3535
+ isSystemTx?: undefined;
3536
+ mint?: undefined;
3537
+ sourceHash?: undefined;
3538
+ })) => ({
3539
+ blockHash: `0x${string}` | null;
3540
+ blockNumber: bigint | null;
3541
+ from: `0x${string}`;
3542
+ gas: bigint;
3543
+ hash: `0x${string}`;
3544
+ input: `0x${string}`;
3545
+ nonce: number;
3546
+ r: `0x${string}`;
3547
+ s: `0x${string}`;
3548
+ to: `0x${string}` | null;
3549
+ transactionIndex: number | null;
3550
+ typeHex: `0x${string}` | null;
3551
+ v: bigint;
3552
+ value: bigint;
3553
+ gasPrice: bigint;
3554
+ maxFeePerGas?: undefined;
3555
+ maxPriorityFeePerGas?: undefined;
3556
+ accessList?: undefined;
3557
+ chainId?: number | undefined;
3558
+ type: "legacy";
3430
3559
  isSystemTx?: undefined;
3431
3560
  mint?: undefined;
3432
3561
  sourceHash?: undefined;
3433
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3562
+ } | {
3563
+ blockHash: `0x${string}` | null;
3564
+ blockNumber: bigint | null;
3565
+ from: `0x${string}`;
3566
+ gas: bigint;
3567
+ hash: `0x${string}`;
3568
+ input: `0x${string}`;
3569
+ nonce: number;
3570
+ r: `0x${string}`;
3571
+ s: `0x${string}`;
3572
+ to: `0x${string}` | null;
3573
+ transactionIndex: number | null;
3574
+ typeHex: `0x${string}` | null;
3575
+ v: bigint;
3576
+ value: bigint;
3577
+ gasPrice: undefined;
3578
+ maxFeePerGas: bigint;
3579
+ maxPriorityFeePerGas: bigint;
3580
+ accessList?: undefined;
3581
+ chainId?: number | undefined;
3582
+ type: "deposit";
3434
3583
  isSystemTx?: boolean | undefined;
3435
- mint?: `0x${string}` | undefined;
3584
+ mint?: bigint | undefined;
3436
3585
  sourceHash: `0x${string}`;
3437
- type: "0x7e";
3438
- }))[];
3439
- }) => {
3440
- baseFeePerGas: bigint | null;
3441
- difficulty: bigint;
3442
- extraData: `0x${string}`;
3443
- gasLimit: bigint;
3444
- gasUsed: bigint;
3445
- hash: `0x${string}` | null;
3446
- logsBloom: `0x${string}` | null;
3447
- miner: `0x${string}`;
3448
- mixHash: `0x${string}`;
3449
- nonce: `0x${string}` | null;
3450
- number: bigint | null;
3451
- parentHash: `0x${string}`;
3452
- receiptsRoot: `0x${string}`;
3453
- sealFields: `0x${string}`[];
3454
- sha3Uncles: `0x${string}`;
3455
- size: bigint;
3456
- stateRoot: `0x${string}`;
3457
- timestamp: bigint;
3458
- totalDifficulty: bigint | null;
3459
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3586
+ } | {
3587
+ blockHash: `0x${string}` | null;
3588
+ blockNumber: bigint | null;
3589
+ from: `0x${string}`;
3590
+ gas: bigint;
3591
+ hash: `0x${string}`;
3592
+ input: `0x${string}`;
3593
+ nonce: number;
3594
+ r: `0x${string}`;
3595
+ s: `0x${string}`;
3596
+ to: `0x${string}` | null;
3597
+ transactionIndex: number | null;
3598
+ typeHex: `0x${string}` | null;
3599
+ v: bigint;
3600
+ value: bigint;
3601
+ gasPrice: bigint;
3602
+ maxFeePerGas?: undefined;
3603
+ maxPriorityFeePerGas?: undefined;
3604
+ accessList: import("../index.js").AccessList;
3605
+ chainId: number;
3606
+ type: "eip2930";
3607
+ isSystemTx?: undefined;
3608
+ mint?: undefined;
3609
+ sourceHash?: undefined;
3610
+ } | {
3611
+ blockHash: `0x${string}` | null;
3612
+ blockNumber: bigint | null;
3613
+ from: `0x${string}`;
3614
+ gas: bigint;
3615
+ hash: `0x${string}`;
3616
+ input: `0x${string}`;
3617
+ nonce: number;
3618
+ r: `0x${string}`;
3619
+ s: `0x${string}`;
3620
+ to: `0x${string}` | null;
3621
+ transactionIndex: number | null;
3622
+ typeHex: `0x${string}` | null;
3623
+ v: bigint;
3624
+ value: bigint;
3625
+ gasPrice: undefined;
3626
+ maxFeePerGas: bigint;
3627
+ maxPriorityFeePerGas: bigint;
3628
+ accessList: import("../index.js").AccessList;
3629
+ chainId: number;
3630
+ type: "eip1559";
3460
3631
  isSystemTx?: undefined;
3461
3632
  mint?: undefined;
3462
3633
  sourceHash?: undefined;
3463
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3634
+ } | {
3635
+ blockHash: `0x${string}` | null;
3636
+ blockNumber: bigint | null;
3637
+ from: `0x${string}`;
3638
+ gas: bigint;
3639
+ hash: `0x${string}`;
3640
+ input: `0x${string}`;
3641
+ nonce: number;
3642
+ r: `0x${string}`;
3643
+ s: `0x${string}`;
3644
+ to: `0x${string}` | null;
3645
+ transactionIndex: number | null;
3646
+ typeHex: `0x${string}` | null;
3647
+ v: bigint;
3648
+ value: bigint;
3649
+ gasPrice: undefined;
3650
+ maxFeePerGas: bigint;
3651
+ maxPriorityFeePerGas: bigint;
3652
+ accessList: import("../index.js").AccessList;
3653
+ chainId: number;
3654
+ type: "deposit";
3464
3655
  isSystemTx?: boolean | undefined;
3465
3656
  mint?: bigint | undefined;
3466
3657
  sourceHash: `0x${string}`;
3658
+ } | {
3659
+ blockHash: `0x${string}` | null;
3660
+ blockNumber: bigint | null;
3661
+ from: `0x${string}`;
3662
+ gas: bigint;
3663
+ hash: `0x${string}`;
3664
+ input: `0x${string}`;
3665
+ nonce: number;
3666
+ r: `0x${string}`;
3667
+ s: `0x${string}`;
3668
+ to: `0x${string}` | null;
3669
+ transactionIndex: number | null;
3670
+ typeHex: `0x${string}` | null;
3671
+ v: bigint;
3672
+ value: bigint;
3673
+ gasPrice: bigint;
3674
+ maxFeePerGas: undefined;
3675
+ maxPriorityFeePerGas: undefined;
3676
+ accessList: import("../index.js").AccessList;
3677
+ chainId: number;
3678
+ type: "eip2930";
3679
+ isSystemTx?: undefined;
3680
+ mint?: undefined;
3681
+ sourceHash?: undefined;
3682
+ } | {
3683
+ blockHash: `0x${string}` | null;
3684
+ blockNumber: bigint | null;
3685
+ from: `0x${string}`;
3686
+ gas: bigint;
3687
+ hash: `0x${string}`;
3688
+ input: `0x${string}`;
3689
+ nonce: number;
3690
+ r: `0x${string}`;
3691
+ s: `0x${string}`;
3692
+ to: `0x${string}` | null;
3693
+ transactionIndex: number | null;
3694
+ typeHex: `0x${string}` | null;
3695
+ v: bigint;
3696
+ value: bigint;
3697
+ gasPrice?: undefined;
3698
+ maxFeePerGas: bigint;
3699
+ maxPriorityFeePerGas: bigint;
3700
+ accessList: import("../index.js").AccessList;
3701
+ chainId: number;
3702
+ type: "eip1559";
3703
+ isSystemTx?: undefined;
3704
+ mint?: undefined;
3705
+ sourceHash?: undefined;
3706
+ } | {
3707
+ blockHash: `0x${string}` | null;
3708
+ blockNumber: bigint | null;
3709
+ from: `0x${string}`;
3710
+ gas: bigint;
3711
+ hash: `0x${string}`;
3712
+ input: `0x${string}`;
3713
+ nonce: number;
3714
+ r: `0x${string}`;
3715
+ s: `0x${string}`;
3716
+ to: `0x${string}` | null;
3717
+ transactionIndex: number | null;
3718
+ typeHex: `0x${string}` | null;
3719
+ v: bigint;
3720
+ value: bigint;
3721
+ gasPrice?: undefined;
3722
+ maxFeePerGas: bigint;
3723
+ maxPriorityFeePerGas: bigint;
3724
+ accessList: import("../index.js").AccessList;
3725
+ chainId: number;
3467
3726
  type: "deposit";
3468
- }))[];
3469
- transactionsRoot: `0x${string}`;
3470
- uncles: `0x${string}`[];
3471
- } & {
3472
- nonce: never;
3473
- difficulty: never;
3474
- gasLimit: never;
3475
- mixHash: never;
3476
- uncles: never;
3477
- };
3478
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3479
- accessList?: undefined;
3480
- chainId?: `0x${string}` | undefined;
3481
- type: "0x0";
3482
- } & {
3483
- isSystemTx?: undefined;
3484
- mint?: undefined;
3485
- sourceHash?: undefined;
3486
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3487
- accessList: import("../index.js").AccessList;
3488
- chainId: `0x${string}`;
3489
- type: "0x1";
3490
- } & {
3491
- isSystemTx?: undefined;
3492
- mint?: undefined;
3493
- sourceHash?: undefined;
3494
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3495
- accessList: import("../index.js").AccessList;
3496
- chainId: `0x${string}`;
3497
- type: "0x2";
3498
- } & {
3499
- isSystemTx?: undefined;
3500
- mint?: undefined;
3501
- sourceHash?: undefined;
3502
- })) => ({
3503
- blockHash: `0x${string}` | null;
3504
- blockNumber: bigint | null;
3505
- from: `0x${string}`;
3506
- gas: bigint;
3507
- hash: `0x${string}`;
3508
- input: `0x${string}`;
3509
- nonce: number;
3510
- r: `0x${string}`;
3511
- s: `0x${string}`;
3512
- to: `0x${string}` | null;
3513
- transactionIndex: number | null;
3514
- typeHex: `0x${string}` | null;
3515
- v: bigint;
3516
- value: bigint;
3517
- gasPrice: bigint;
3518
- maxFeePerGas?: undefined;
3519
- maxPriorityFeePerGas?: undefined;
3520
- accessList?: undefined;
3521
- chainId?: number | undefined;
3522
- type: "legacy";
3523
- isSystemTx?: undefined;
3524
- mint?: undefined;
3525
- sourceHash?: undefined;
3526
- } | {
3527
- blockHash: `0x${string}` | null;
3528
- blockNumber: bigint | null;
3529
- from: `0x${string}`;
3530
- gas: bigint;
3531
- hash: `0x${string}`;
3532
- input: `0x${string}`;
3533
- nonce: number;
3534
- r: `0x${string}`;
3535
- s: `0x${string}`;
3536
- to: `0x${string}` | null;
3537
- transactionIndex: number | null;
3538
- typeHex: `0x${string}` | null;
3539
- v: bigint;
3540
- value: bigint;
3541
- gasPrice: undefined;
3542
- maxFeePerGas: bigint;
3543
- maxPriorityFeePerGas: bigint;
3544
- accessList?: undefined;
3545
- chainId?: number | undefined;
3546
- type: "deposit";
3547
- isSystemTx?: boolean | undefined;
3548
- mint?: bigint | undefined;
3549
- sourceHash: `0x${string}`;
3550
- } | {
3551
- blockHash: `0x${string}` | null;
3552
- blockNumber: bigint | null;
3553
- from: `0x${string}`;
3554
- gas: bigint;
3555
- hash: `0x${string}`;
3556
- input: `0x${string}`;
3557
- nonce: number;
3558
- r: `0x${string}`;
3559
- s: `0x${string}`;
3560
- to: `0x${string}` | null;
3561
- transactionIndex: number | null;
3562
- typeHex: `0x${string}` | null;
3563
- v: bigint;
3564
- value: bigint;
3565
- gasPrice: bigint;
3566
- maxFeePerGas?: undefined;
3567
- maxPriorityFeePerGas?: undefined;
3568
- accessList: import("../index.js").AccessList;
3569
- chainId: number;
3570
- type: "eip2930";
3571
- isSystemTx?: undefined;
3572
- mint?: undefined;
3573
- sourceHash?: undefined;
3574
- } | {
3575
- blockHash: `0x${string}` | null;
3576
- blockNumber: bigint | null;
3577
- from: `0x${string}`;
3578
- gas: bigint;
3579
- hash: `0x${string}`;
3580
- input: `0x${string}`;
3581
- nonce: number;
3582
- r: `0x${string}`;
3583
- s: `0x${string}`;
3584
- to: `0x${string}` | null;
3585
- transactionIndex: number | null;
3586
- typeHex: `0x${string}` | null;
3587
- v: bigint;
3588
- value: bigint;
3589
- gasPrice: undefined;
3590
- maxFeePerGas: bigint;
3591
- maxPriorityFeePerGas: bigint;
3592
- accessList: import("../index.js").AccessList;
3593
- chainId: number;
3594
- type: "eip1559";
3595
- isSystemTx?: undefined;
3596
- mint?: undefined;
3597
- sourceHash?: undefined;
3598
- } | {
3599
- blockHash: `0x${string}` | null;
3600
- blockNumber: bigint | null;
3601
- from: `0x${string}`;
3602
- gas: bigint;
3603
- hash: `0x${string}`;
3604
- input: `0x${string}`;
3605
- nonce: number;
3606
- r: `0x${string}`;
3607
- s: `0x${string}`;
3608
- to: `0x${string}` | null;
3609
- transactionIndex: number | null;
3610
- typeHex: `0x${string}` | null;
3611
- v: bigint;
3612
- value: bigint;
3613
- gasPrice: undefined;
3614
- maxFeePerGas: bigint;
3615
- maxPriorityFeePerGas: bigint;
3616
- accessList: import("../index.js").AccessList;
3617
- chainId: number;
3618
- type: "deposit";
3619
- isSystemTx?: boolean | undefined;
3620
- mint?: bigint | undefined;
3621
- sourceHash: `0x${string}`;
3622
- } | {
3623
- blockHash: `0x${string}` | null;
3624
- blockNumber: bigint | null;
3625
- from: `0x${string}`;
3626
- gas: bigint;
3627
- hash: `0x${string}`;
3628
- input: `0x${string}`;
3629
- nonce: number;
3630
- r: `0x${string}`;
3631
- s: `0x${string}`;
3632
- to: `0x${string}` | null;
3633
- transactionIndex: number | null;
3634
- typeHex: `0x${string}` | null;
3635
- v: bigint;
3636
- value: bigint;
3637
- gasPrice: bigint;
3638
- maxFeePerGas: undefined;
3639
- maxPriorityFeePerGas: undefined;
3640
- accessList: import("../index.js").AccessList;
3641
- chainId: number;
3642
- type: "eip2930";
3643
- isSystemTx?: undefined;
3644
- mint?: undefined;
3645
- sourceHash?: undefined;
3646
- } | {
3647
- blockHash: `0x${string}` | null;
3648
- blockNumber: bigint | null;
3649
- from: `0x${string}`;
3650
- gas: bigint;
3651
- hash: `0x${string}`;
3652
- input: `0x${string}`;
3653
- nonce: number;
3654
- r: `0x${string}`;
3655
- s: `0x${string}`;
3656
- to: `0x${string}` | null;
3657
- transactionIndex: number | null;
3658
- typeHex: `0x${string}` | null;
3659
- v: bigint;
3660
- value: bigint;
3661
- gasPrice?: undefined;
3662
- maxFeePerGas: bigint;
3663
- maxPriorityFeePerGas: bigint;
3664
- accessList: import("../index.js").AccessList;
3665
- chainId: number;
3666
- type: "eip1559";
3667
- isSystemTx?: undefined;
3668
- mint?: undefined;
3669
- sourceHash?: undefined;
3670
- } | {
3671
- blockHash: `0x${string}` | null;
3672
- blockNumber: bigint | null;
3673
- from: `0x${string}`;
3674
- gas: bigint;
3675
- hash: `0x${string}`;
3676
- input: `0x${string}`;
3677
- nonce: number;
3678
- r: `0x${string}`;
3679
- s: `0x${string}`;
3680
- to: `0x${string}` | null;
3681
- transactionIndex: number | null;
3682
- typeHex: `0x${string}` | null;
3683
- v: bigint;
3684
- value: bigint;
3685
- gasPrice?: undefined;
3686
- maxFeePerGas: bigint;
3687
- maxPriorityFeePerGas: bigint;
3688
- accessList: import("../index.js").AccessList;
3689
- chainId: number;
3690
- type: "deposit";
3691
- isSystemTx?: boolean | undefined;
3692
- mint?: bigint | undefined;
3693
- sourceHash: `0x${string}`;
3694
- }) & {};
3727
+ isSystemTx?: boolean | undefined;
3728
+ mint?: bigint | undefined;
3729
+ sourceHash: `0x${string}`;
3730
+ }) & {};
3731
+ type: "transaction";
3732
+ };
3695
3733
  } | undefined;
3696
3734
  serializers: import("../index.js").Serializers<{
3697
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3698
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3735
+ readonly block: {
3736
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3737
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3738
+ isSystemTx?: undefined;
3739
+ mint?: undefined;
3740
+ sourceHash?: undefined;
3741
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3742
+ }) => {
3743
+ baseFeePerGas: bigint | null;
3744
+ difficulty: bigint;
3745
+ extraData: `0x${string}`;
3746
+ gasLimit: bigint;
3747
+ gasUsed: bigint;
3748
+ hash: `0x${string}` | null;
3749
+ logsBloom: `0x${string}` | null;
3750
+ miner: `0x${string}`;
3751
+ mixHash: `0x${string}`;
3752
+ nonce: `0x${string}` | null;
3753
+ number: bigint | null;
3754
+ parentHash: `0x${string}`;
3755
+ receiptsRoot: `0x${string}`;
3756
+ sealFields: `0x${string}`[];
3757
+ sha3Uncles: `0x${string}`;
3758
+ size: bigint;
3759
+ stateRoot: `0x${string}`;
3760
+ timestamp: bigint;
3761
+ totalDifficulty: bigint | null;
3762
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3763
+ isSystemTx?: undefined;
3764
+ mint?: undefined;
3765
+ sourceHash?: undefined;
3766
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3767
+ transactionsRoot: `0x${string}`;
3768
+ uncles: `0x${string}`[];
3769
+ } & {};
3770
+ type: "block";
3771
+ };
3772
+ readonly transaction: {
3773
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3774
+ accessList?: undefined;
3775
+ chainId?: `0x${string}` | undefined;
3776
+ type: "0x0";
3777
+ } & {
3699
3778
  isSystemTx?: undefined;
3700
3779
  mint?: undefined;
3701
3780
  sourceHash?: undefined;
3702
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3781
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3782
+ accessList: import("../index.js").AccessList;
3783
+ chainId: `0x${string}`;
3784
+ type: "0x1";
3785
+ } & {
3786
+ isSystemTx?: undefined;
3787
+ mint?: undefined;
3788
+ sourceHash?: undefined;
3789
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3790
+ accessList: import("../index.js").AccessList;
3791
+ chainId: `0x${string}`;
3792
+ type: "0x2";
3793
+ } & {
3794
+ isSystemTx?: undefined;
3795
+ mint?: undefined;
3796
+ sourceHash?: undefined;
3797
+ })) => ({
3798
+ blockHash: `0x${string}` | null;
3799
+ blockNumber: bigint | null;
3800
+ from: `0x${string}`;
3801
+ gas: bigint;
3802
+ hash: `0x${string}`;
3803
+ input: `0x${string}`;
3804
+ nonce: number;
3805
+ r: `0x${string}`;
3806
+ s: `0x${string}`;
3807
+ to: `0x${string}` | null;
3808
+ transactionIndex: number | null;
3809
+ typeHex: `0x${string}` | null;
3810
+ v: bigint;
3811
+ value: bigint;
3812
+ gasPrice: bigint;
3813
+ maxFeePerGas?: undefined;
3814
+ maxPriorityFeePerGas?: undefined;
3815
+ accessList?: undefined;
3816
+ chainId?: number | undefined;
3817
+ type: "legacy";
3818
+ isSystemTx?: undefined;
3819
+ mint?: undefined;
3820
+ sourceHash?: undefined;
3821
+ } | {
3822
+ blockHash: `0x${string}` | null;
3823
+ blockNumber: bigint | null;
3824
+ from: `0x${string}`;
3825
+ gas: bigint;
3826
+ hash: `0x${string}`;
3827
+ input: `0x${string}`;
3828
+ nonce: number;
3829
+ r: `0x${string}`;
3830
+ s: `0x${string}`;
3831
+ to: `0x${string}` | null;
3832
+ transactionIndex: number | null;
3833
+ typeHex: `0x${string}` | null;
3834
+ v: bigint;
3835
+ value: bigint;
3836
+ gasPrice: undefined;
3837
+ maxFeePerGas: bigint;
3838
+ maxPriorityFeePerGas: bigint;
3839
+ accessList?: undefined;
3840
+ chainId?: number | undefined;
3841
+ type: "deposit";
3703
3842
  isSystemTx?: boolean | undefined;
3704
- mint?: `0x${string}` | undefined;
3843
+ mint?: bigint | undefined;
3705
3844
  sourceHash: `0x${string}`;
3706
- type: "0x7e";
3707
- }))[];
3708
- }) => {
3709
- baseFeePerGas: bigint | null;
3710
- difficulty: bigint;
3711
- extraData: `0x${string}`;
3712
- gasLimit: bigint;
3713
- gasUsed: bigint;
3714
- hash: `0x${string}` | null;
3715
- logsBloom: `0x${string}` | null;
3716
- miner: `0x${string}`;
3717
- mixHash: `0x${string}`;
3718
- nonce: `0x${string}` | null;
3719
- number: bigint | null;
3720
- parentHash: `0x${string}`;
3721
- receiptsRoot: `0x${string}`;
3722
- sealFields: `0x${string}`[];
3723
- sha3Uncles: `0x${string}`;
3724
- size: bigint;
3725
- stateRoot: `0x${string}`;
3726
- timestamp: bigint;
3727
- totalDifficulty: bigint | null;
3728
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3845
+ } | {
3846
+ blockHash: `0x${string}` | null;
3847
+ blockNumber: bigint | null;
3848
+ from: `0x${string}`;
3849
+ gas: bigint;
3850
+ hash: `0x${string}`;
3851
+ input: `0x${string}`;
3852
+ nonce: number;
3853
+ r: `0x${string}`;
3854
+ s: `0x${string}`;
3855
+ to: `0x${string}` | null;
3856
+ transactionIndex: number | null;
3857
+ typeHex: `0x${string}` | null;
3858
+ v: bigint;
3859
+ value: bigint;
3860
+ gasPrice: bigint;
3861
+ maxFeePerGas?: undefined;
3862
+ maxPriorityFeePerGas?: undefined;
3863
+ accessList: import("../index.js").AccessList;
3864
+ chainId: number;
3865
+ type: "eip2930";
3729
3866
  isSystemTx?: undefined;
3730
3867
  mint?: undefined;
3731
3868
  sourceHash?: undefined;
3732
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3869
+ } | {
3870
+ blockHash: `0x${string}` | null;
3871
+ blockNumber: bigint | null;
3872
+ from: `0x${string}`;
3873
+ gas: bigint;
3874
+ hash: `0x${string}`;
3875
+ input: `0x${string}`;
3876
+ nonce: number;
3877
+ r: `0x${string}`;
3878
+ s: `0x${string}`;
3879
+ to: `0x${string}` | null;
3880
+ transactionIndex: number | null;
3881
+ typeHex: `0x${string}` | null;
3882
+ v: bigint;
3883
+ value: bigint;
3884
+ gasPrice: undefined;
3885
+ maxFeePerGas: bigint;
3886
+ maxPriorityFeePerGas: bigint;
3887
+ accessList: import("../index.js").AccessList;
3888
+ chainId: number;
3889
+ type: "eip1559";
3890
+ isSystemTx?: undefined;
3891
+ mint?: undefined;
3892
+ sourceHash?: undefined;
3893
+ } | {
3894
+ blockHash: `0x${string}` | null;
3895
+ blockNumber: bigint | null;
3896
+ from: `0x${string}`;
3897
+ gas: bigint;
3898
+ hash: `0x${string}`;
3899
+ input: `0x${string}`;
3900
+ nonce: number;
3901
+ r: `0x${string}`;
3902
+ s: `0x${string}`;
3903
+ to: `0x${string}` | null;
3904
+ transactionIndex: number | null;
3905
+ typeHex: `0x${string}` | null;
3906
+ v: bigint;
3907
+ value: bigint;
3908
+ gasPrice: undefined;
3909
+ maxFeePerGas: bigint;
3910
+ maxPriorityFeePerGas: bigint;
3911
+ accessList: import("../index.js").AccessList;
3912
+ chainId: number;
3913
+ type: "deposit";
3733
3914
  isSystemTx?: boolean | undefined;
3734
3915
  mint?: bigint | undefined;
3735
3916
  sourceHash: `0x${string}`;
3917
+ } | {
3918
+ blockHash: `0x${string}` | null;
3919
+ blockNumber: bigint | null;
3920
+ from: `0x${string}`;
3921
+ gas: bigint;
3922
+ hash: `0x${string}`;
3923
+ input: `0x${string}`;
3924
+ nonce: number;
3925
+ r: `0x${string}`;
3926
+ s: `0x${string}`;
3927
+ to: `0x${string}` | null;
3928
+ transactionIndex: number | null;
3929
+ typeHex: `0x${string}` | null;
3930
+ v: bigint;
3931
+ value: bigint;
3932
+ gasPrice: bigint;
3933
+ maxFeePerGas: undefined;
3934
+ maxPriorityFeePerGas: undefined;
3935
+ accessList: import("../index.js").AccessList;
3936
+ chainId: number;
3937
+ type: "eip2930";
3938
+ isSystemTx?: undefined;
3939
+ mint?: undefined;
3940
+ sourceHash?: undefined;
3941
+ } | {
3942
+ blockHash: `0x${string}` | null;
3943
+ blockNumber: bigint | null;
3944
+ from: `0x${string}`;
3945
+ gas: bigint;
3946
+ hash: `0x${string}`;
3947
+ input: `0x${string}`;
3948
+ nonce: number;
3949
+ r: `0x${string}`;
3950
+ s: `0x${string}`;
3951
+ to: `0x${string}` | null;
3952
+ transactionIndex: number | null;
3953
+ typeHex: `0x${string}` | null;
3954
+ v: bigint;
3955
+ value: bigint;
3956
+ gasPrice?: undefined;
3957
+ maxFeePerGas: bigint;
3958
+ maxPriorityFeePerGas: bigint;
3959
+ accessList: import("../index.js").AccessList;
3960
+ chainId: number;
3961
+ type: "eip1559";
3962
+ isSystemTx?: undefined;
3963
+ mint?: undefined;
3964
+ sourceHash?: undefined;
3965
+ } | {
3966
+ blockHash: `0x${string}` | null;
3967
+ blockNumber: bigint | null;
3968
+ from: `0x${string}`;
3969
+ gas: bigint;
3970
+ hash: `0x${string}`;
3971
+ input: `0x${string}`;
3972
+ nonce: number;
3973
+ r: `0x${string}`;
3974
+ s: `0x${string}`;
3975
+ to: `0x${string}` | null;
3976
+ transactionIndex: number | null;
3977
+ typeHex: `0x${string}` | null;
3978
+ v: bigint;
3979
+ value: bigint;
3980
+ gasPrice?: undefined;
3981
+ maxFeePerGas: bigint;
3982
+ maxPriorityFeePerGas: bigint;
3983
+ accessList: import("../index.js").AccessList;
3984
+ chainId: number;
3736
3985
  type: "deposit";
3737
- }))[];
3738
- transactionsRoot: `0x${string}`;
3739
- uncles: `0x${string}`[];
3740
- } & {
3741
- nonce: never;
3742
- difficulty: never;
3743
- gasLimit: never;
3744
- mixHash: never;
3745
- uncles: never;
3746
- };
3747
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3748
- accessList?: undefined;
3749
- chainId?: `0x${string}` | undefined;
3750
- type: "0x0";
3751
- } & {
3752
- isSystemTx?: undefined;
3753
- mint?: undefined;
3754
- sourceHash?: undefined;
3755
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3756
- accessList: import("../index.js").AccessList;
3757
- chainId: `0x${string}`;
3758
- type: "0x1";
3759
- } & {
3760
- isSystemTx?: undefined;
3761
- mint?: undefined;
3762
- sourceHash?: undefined;
3763
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3764
- accessList: import("../index.js").AccessList;
3765
- chainId: `0x${string}`;
3766
- type: "0x2";
3767
- } & {
3768
- isSystemTx?: undefined;
3769
- mint?: undefined;
3770
- sourceHash?: undefined;
3771
- })) => ({
3772
- blockHash: `0x${string}` | null;
3773
- blockNumber: bigint | null;
3774
- from: `0x${string}`;
3775
- gas: bigint;
3776
- hash: `0x${string}`;
3777
- input: `0x${string}`;
3778
- nonce: number;
3779
- r: `0x${string}`;
3780
- s: `0x${string}`;
3781
- to: `0x${string}` | null;
3782
- transactionIndex: number | null;
3783
- typeHex: `0x${string}` | null;
3784
- v: bigint;
3785
- value: bigint;
3786
- gasPrice: bigint;
3787
- maxFeePerGas?: undefined;
3788
- maxPriorityFeePerGas?: undefined;
3789
- accessList?: undefined;
3790
- chainId?: number | undefined;
3791
- type: "legacy";
3792
- isSystemTx?: undefined;
3793
- mint?: undefined;
3794
- sourceHash?: undefined;
3795
- } | {
3796
- blockHash: `0x${string}` | null;
3797
- blockNumber: bigint | null;
3798
- from: `0x${string}`;
3799
- gas: bigint;
3800
- hash: `0x${string}`;
3801
- input: `0x${string}`;
3802
- nonce: number;
3803
- r: `0x${string}`;
3804
- s: `0x${string}`;
3805
- to: `0x${string}` | null;
3806
- transactionIndex: number | null;
3807
- typeHex: `0x${string}` | null;
3808
- v: bigint;
3809
- value: bigint;
3810
- gasPrice: undefined;
3811
- maxFeePerGas: bigint;
3812
- maxPriorityFeePerGas: bigint;
3813
- accessList?: undefined;
3814
- chainId?: number | undefined;
3815
- type: "deposit";
3816
- isSystemTx?: boolean | undefined;
3817
- mint?: bigint | undefined;
3818
- sourceHash: `0x${string}`;
3819
- } | {
3820
- blockHash: `0x${string}` | null;
3821
- blockNumber: bigint | null;
3822
- from: `0x${string}`;
3823
- gas: bigint;
3824
- hash: `0x${string}`;
3825
- input: `0x${string}`;
3826
- nonce: number;
3827
- r: `0x${string}`;
3828
- s: `0x${string}`;
3829
- to: `0x${string}` | null;
3830
- transactionIndex: number | null;
3831
- typeHex: `0x${string}` | null;
3832
- v: bigint;
3833
- value: bigint;
3834
- gasPrice: bigint;
3835
- maxFeePerGas?: undefined;
3836
- maxPriorityFeePerGas?: undefined;
3837
- accessList: import("../index.js").AccessList;
3838
- chainId: number;
3839
- type: "eip2930";
3840
- isSystemTx?: undefined;
3841
- mint?: undefined;
3842
- sourceHash?: undefined;
3843
- } | {
3844
- blockHash: `0x${string}` | null;
3845
- blockNumber: bigint | null;
3846
- from: `0x${string}`;
3847
- gas: bigint;
3848
- hash: `0x${string}`;
3849
- input: `0x${string}`;
3850
- nonce: number;
3851
- r: `0x${string}`;
3852
- s: `0x${string}`;
3853
- to: `0x${string}` | null;
3854
- transactionIndex: number | null;
3855
- typeHex: `0x${string}` | null;
3856
- v: bigint;
3857
- value: bigint;
3858
- gasPrice: undefined;
3859
- maxFeePerGas: bigint;
3860
- maxPriorityFeePerGas: bigint;
3861
- accessList: import("../index.js").AccessList;
3862
- chainId: number;
3863
- type: "eip1559";
3864
- isSystemTx?: undefined;
3865
- mint?: undefined;
3866
- sourceHash?: undefined;
3867
- } | {
3868
- blockHash: `0x${string}` | null;
3869
- blockNumber: bigint | null;
3870
- from: `0x${string}`;
3871
- gas: bigint;
3872
- hash: `0x${string}`;
3873
- input: `0x${string}`;
3874
- nonce: number;
3875
- r: `0x${string}`;
3876
- s: `0x${string}`;
3877
- to: `0x${string}` | null;
3878
- transactionIndex: number | null;
3879
- typeHex: `0x${string}` | null;
3880
- v: bigint;
3881
- value: bigint;
3882
- gasPrice: undefined;
3883
- maxFeePerGas: bigint;
3884
- maxPriorityFeePerGas: bigint;
3885
- accessList: import("../index.js").AccessList;
3886
- chainId: number;
3887
- type: "deposit";
3888
- isSystemTx?: boolean | undefined;
3889
- mint?: bigint | undefined;
3890
- sourceHash: `0x${string}`;
3891
- } | {
3892
- blockHash: `0x${string}` | null;
3893
- blockNumber: bigint | null;
3894
- from: `0x${string}`;
3895
- gas: bigint;
3896
- hash: `0x${string}`;
3897
- input: `0x${string}`;
3898
- nonce: number;
3899
- r: `0x${string}`;
3900
- s: `0x${string}`;
3901
- to: `0x${string}` | null;
3902
- transactionIndex: number | null;
3903
- typeHex: `0x${string}` | null;
3904
- v: bigint;
3905
- value: bigint;
3906
- gasPrice: bigint;
3907
- maxFeePerGas: undefined;
3908
- maxPriorityFeePerGas: undefined;
3909
- accessList: import("../index.js").AccessList;
3910
- chainId: number;
3911
- type: "eip2930";
3912
- isSystemTx?: undefined;
3913
- mint?: undefined;
3914
- sourceHash?: undefined;
3915
- } | {
3916
- blockHash: `0x${string}` | null;
3917
- blockNumber: bigint | null;
3918
- from: `0x${string}`;
3919
- gas: bigint;
3920
- hash: `0x${string}`;
3921
- input: `0x${string}`;
3922
- nonce: number;
3923
- r: `0x${string}`;
3924
- s: `0x${string}`;
3925
- to: `0x${string}` | null;
3926
- transactionIndex: number | null;
3927
- typeHex: `0x${string}` | null;
3928
- v: bigint;
3929
- value: bigint;
3930
- gasPrice?: undefined;
3931
- maxFeePerGas: bigint;
3932
- maxPriorityFeePerGas: bigint;
3933
- accessList: import("../index.js").AccessList;
3934
- chainId: number;
3935
- type: "eip1559";
3936
- isSystemTx?: undefined;
3937
- mint?: undefined;
3938
- sourceHash?: undefined;
3939
- } | {
3940
- blockHash: `0x${string}` | null;
3941
- blockNumber: bigint | null;
3942
- from: `0x${string}`;
3943
- gas: bigint;
3944
- hash: `0x${string}`;
3945
- input: `0x${string}`;
3946
- nonce: number;
3947
- r: `0x${string}`;
3948
- s: `0x${string}`;
3949
- to: `0x${string}` | null;
3950
- transactionIndex: number | null;
3951
- typeHex: `0x${string}` | null;
3952
- v: bigint;
3953
- value: bigint;
3954
- gasPrice?: undefined;
3955
- maxFeePerGas: bigint;
3956
- maxPriorityFeePerGas: bigint;
3957
- accessList: import("../index.js").AccessList;
3958
- chainId: number;
3959
- type: "deposit";
3960
- isSystemTx?: boolean | undefined;
3961
- mint?: bigint | undefined;
3962
- sourceHash: `0x${string}`;
3963
- }) & {};
3986
+ isSystemTx?: boolean | undefined;
3987
+ mint?: bigint | undefined;
3988
+ sourceHash: `0x${string}`;
3989
+ }) & {};
3990
+ type: "transaction";
3991
+ };
3964
3992
  }> | undefined;
3965
3993
  };
3966
3994
  export declare const polygon: {
@@ -5202,6 +5230,45 @@ export declare const zkSyncTestnet: {
5202
5230
  formatters: import("../index.js").Formatters | undefined;
5203
5231
  serializers: import("../index.js").Serializers<import("../index.js").Formatters> | undefined;
5204
5232
  };
5233
+ export declare const zora: {
5234
+ readonly id: 7777777;
5235
+ readonly name: "ZORA";
5236
+ readonly network: "zora";
5237
+ readonly nativeCurrency: {
5238
+ readonly decimals: 18;
5239
+ readonly name: "Ether";
5240
+ readonly symbol: "ETH";
5241
+ };
5242
+ readonly rpcUrls: {
5243
+ readonly default: {
5244
+ readonly http: readonly ["https://rpc.zora.co"];
5245
+ readonly webSocket: readonly ["wss://rpc.zora.co"];
5246
+ };
5247
+ readonly public: {
5248
+ readonly http: readonly ["https://rpc.zora.co"];
5249
+ readonly webSocket: readonly ["wss://rpc.zora.co"];
5250
+ };
5251
+ };
5252
+ readonly blockExplorers: {
5253
+ readonly etherscan: {
5254
+ readonly name: "ZORA";
5255
+ readonly url: "https://explorer.zora.co";
5256
+ };
5257
+ readonly default: {
5258
+ readonly name: "ZORA";
5259
+ readonly url: "https://explorer.zora.co";
5260
+ };
5261
+ };
5262
+ readonly contracts: {
5263
+ readonly multicall3: {
5264
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
5265
+ readonly blockCreated: 5882;
5266
+ };
5267
+ };
5268
+ } & {
5269
+ formatters: import("../index.js").Formatters | undefined;
5270
+ serializers: import("../index.js").Serializers<import("../index.js").Formatters> | undefined;
5271
+ };
5205
5272
  export declare const zoraTestnet: {
5206
5273
  readonly id: 999;
5207
5274
  readonly name: "ZORA Goerli Testnet";