viem 2.0.0-alpha.3 → 2.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  2. package/_cjs/chains/{utils/index.js → utils.js} +5 -5
  3. package/_cjs/chains/utils.js.map +1 -0
  4. package/_cjs/clients/decorators/wallet.js.map +1 -1
  5. package/_cjs/errors/node.js +11 -11
  6. package/_cjs/errors/node.js.map +1 -1
  7. package/_cjs/errors/rpc.js +18 -18
  8. package/_cjs/errors/rpc.js.map +1 -1
  9. package/_cjs/errors/version.js +1 -1
  10. package/_esm/actions/wallet/writeContract.js.map +1 -1
  11. package/_esm/chains/utils.js +5 -0
  12. package/_esm/chains/utils.js.map +1 -0
  13. package/_esm/clients/decorators/wallet.js.map +1 -1
  14. package/_esm/errors/node.js +22 -11
  15. package/_esm/errors/node.js.map +1 -1
  16. package/_esm/errors/rpc.js +36 -18
  17. package/_esm/errors/rpc.js.map +1 -1
  18. package/_esm/errors/version.js +1 -1
  19. package/_types/actions/wallet/writeContract.d.ts +3 -3
  20. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  21. package/_types/chains/celo/formatters.d.ts +7 -7
  22. package/_types/chains/definitions/base.d.ts +33 -33
  23. package/_types/chains/definitions/baseGoerli.d.ts +33 -33
  24. package/_types/chains/definitions/celo.d.ts +36 -36
  25. package/_types/chains/definitions/celoAlfajores.d.ts +36 -36
  26. package/_types/chains/definitions/celoCannoli.d.ts +36 -36
  27. package/_types/chains/definitions/optimism.d.ts +33 -33
  28. package/_types/chains/definitions/optimismGoerli.d.ts +33 -33
  29. package/_types/chains/definitions/zora.d.ts +33 -33
  30. package/_types/chains/definitions/zoraTestnet.d.ts +33 -33
  31. package/_types/chains/optimism/formatters.d.ts +7 -7
  32. package/_types/chains/{utils/index.d.ts → utils.d.ts} +7 -7
  33. package/_types/chains/utils.d.ts.map +1 -0
  34. package/_types/errors/version.d.ts +1 -1
  35. package/_types/types/utils.d.ts +12 -8
  36. package/_types/types/utils.d.ts.map +1 -1
  37. package/_types/utils/formatters/transaction.d.ts +2 -2
  38. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  39. package/actions/wallet/writeContract.ts +35 -29
  40. package/chains/utils/package.json +3 -3
  41. package/chains/{utils/index.ts → utils.ts} +6 -6
  42. package/clients/decorators/wallet.ts +1 -1
  43. package/errors/version.ts +1 -1
  44. package/package.json +5 -5
  45. package/types/utils.ts +32 -11
  46. package/utils/formatters/transaction.ts +2 -2
  47. package/_cjs/chains/utils/index.js.map +0 -1
  48. package/_esm/chains/utils/index.js +0 -5
  49. package/_esm/chains/utils/index.js.map +0 -1
  50. package/_types/chains/utils/index.d.ts.map +0 -1
@@ -43,8 +43,8 @@ export declare const optimismGoerli: {
43
43
  formatters?: {
44
44
  readonly block: {
45
45
  exclude: [] | undefined;
46
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
47
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
46
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
47
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
48
48
  }>) => {
49
49
  baseFeePerGas: bigint | null;
50
50
  difficulty: bigint;
@@ -65,7 +65,7 @@ export declare const optimismGoerli: {
65
65
  stateRoot: `0x${string}`;
66
66
  timestamp: bigint;
67
67
  totalDifficulty: bigint | null;
68
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
68
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
69
69
  transactionsRoot: `0x${string}`;
70
70
  uncles: `0x${string}`[];
71
71
  } & {};
@@ -93,7 +93,7 @@ export declare const optimismGoerli: {
93
93
  v?: `0x${string}` | undefined;
94
94
  accessList?: undefined;
95
95
  chainId?: `0x${string}` | undefined;
96
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
96
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
97
97
  isSystemTx?: undefined;
98
98
  mint?: undefined;
99
99
  sourceHash?: undefined;
@@ -142,7 +142,7 @@ export declare const optimismGoerli: {
142
142
  v?: `0x${string}` | undefined;
143
143
  accessList?: import("../../index.js").AccessList | undefined;
144
144
  chainId?: `0x${string}` | undefined;
145
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
145
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
146
146
  isSystemTx?: undefined;
147
147
  mint?: undefined;
148
148
  sourceHash?: undefined;
@@ -166,7 +166,7 @@ export declare const optimismGoerli: {
166
166
  v?: `0x${string}` | undefined;
167
167
  accessList?: import("../../index.js").AccessList | undefined;
168
168
  chainId?: `0x${string}` | undefined;
169
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
169
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
170
170
  isSystemTx?: undefined;
171
171
  mint?: undefined;
172
172
  sourceHash?: undefined;
@@ -190,7 +190,7 @@ export declare const optimismGoerli: {
190
190
  v?: `0x${string}` | undefined;
191
191
  accessList?: import("../../index.js").AccessList | undefined;
192
192
  chainId?: `0x${string}` | undefined;
193
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
193
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
194
194
  isSystemTx?: undefined;
195
195
  mint?: undefined;
196
196
  sourceHash?: undefined;
@@ -239,7 +239,7 @@ export declare const optimismGoerli: {
239
239
  v?: `0x${string}` | undefined;
240
240
  accessList?: import("../../index.js").AccessList | undefined;
241
241
  chainId?: `0x${string}` | undefined;
242
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
242
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
243
243
  isSystemTx?: undefined;
244
244
  mint?: undefined;
245
245
  sourceHash?: undefined;
@@ -263,7 +263,7 @@ export declare const optimismGoerli: {
263
263
  v?: `0x${string}` | undefined;
264
264
  accessList?: import("../../index.js").AccessList | undefined;
265
265
  chainId?: `0x${string}` | undefined;
266
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
266
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
267
267
  isSystemTx?: undefined;
268
268
  mint?: undefined;
269
269
  sourceHash?: undefined;
@@ -287,7 +287,7 @@ export declare const optimismGoerli: {
287
287
  v?: `0x${string}` | undefined;
288
288
  accessList?: import("../../index.js").AccessList | undefined;
289
289
  chainId?: `0x${string}` | undefined;
290
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
290
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
291
291
  isSystemTx?: undefined;
292
292
  mint?: undefined;
293
293
  sourceHash?: undefined;
@@ -513,7 +513,7 @@ export declare const optimismGoerli: {
513
513
  };
514
514
  readonly transactionReceipt: {
515
515
  exclude: [] | undefined;
516
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
516
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
517
517
  blockHash: `0x${string}`;
518
518
  blockNumber: bigint;
519
519
  contractAddress: `0x${string}` | null;
@@ -539,8 +539,8 @@ export declare const optimismGoerli: {
539
539
  serializers?: import("../../index.js").ChainSerializers<{
540
540
  readonly block: {
541
541
  exclude: [] | undefined;
542
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
543
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
542
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
543
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
544
544
  }>) => {
545
545
  baseFeePerGas: bigint | null;
546
546
  difficulty: bigint;
@@ -561,7 +561,7 @@ export declare const optimismGoerli: {
561
561
  stateRoot: `0x${string}`;
562
562
  timestamp: bigint;
563
563
  totalDifficulty: bigint | null;
564
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
564
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
565
565
  transactionsRoot: `0x${string}`;
566
566
  uncles: `0x${string}`[];
567
567
  } & {};
@@ -589,7 +589,7 @@ export declare const optimismGoerli: {
589
589
  v?: `0x${string}` | undefined;
590
590
  accessList?: undefined;
591
591
  chainId?: `0x${string}` | undefined;
592
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
592
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
593
593
  isSystemTx?: undefined;
594
594
  mint?: undefined;
595
595
  sourceHash?: undefined;
@@ -638,7 +638,7 @@ export declare const optimismGoerli: {
638
638
  v?: `0x${string}` | undefined;
639
639
  accessList?: import("../../index.js").AccessList | undefined;
640
640
  chainId?: `0x${string}` | undefined;
641
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
641
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
642
642
  isSystemTx?: undefined;
643
643
  mint?: undefined;
644
644
  sourceHash?: undefined;
@@ -662,7 +662,7 @@ export declare const optimismGoerli: {
662
662
  v?: `0x${string}` | undefined;
663
663
  accessList?: import("../../index.js").AccessList | undefined;
664
664
  chainId?: `0x${string}` | undefined;
665
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
665
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
666
666
  isSystemTx?: undefined;
667
667
  mint?: undefined;
668
668
  sourceHash?: undefined;
@@ -686,7 +686,7 @@ export declare const optimismGoerli: {
686
686
  v?: `0x${string}` | undefined;
687
687
  accessList?: import("../../index.js").AccessList | undefined;
688
688
  chainId?: `0x${string}` | undefined;
689
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
689
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
690
690
  isSystemTx?: undefined;
691
691
  mint?: undefined;
692
692
  sourceHash?: undefined;
@@ -735,7 +735,7 @@ export declare const optimismGoerli: {
735
735
  v?: `0x${string}` | undefined;
736
736
  accessList?: import("../../index.js").AccessList | undefined;
737
737
  chainId?: `0x${string}` | undefined;
738
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
738
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
739
739
  isSystemTx?: undefined;
740
740
  mint?: undefined;
741
741
  sourceHash?: undefined;
@@ -759,7 +759,7 @@ export declare const optimismGoerli: {
759
759
  v?: `0x${string}` | undefined;
760
760
  accessList?: import("../../index.js").AccessList | undefined;
761
761
  chainId?: `0x${string}` | undefined;
762
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
762
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
763
763
  isSystemTx?: undefined;
764
764
  mint?: undefined;
765
765
  sourceHash?: undefined;
@@ -783,7 +783,7 @@ export declare const optimismGoerli: {
783
783
  v?: `0x${string}` | undefined;
784
784
  accessList?: import("../../index.js").AccessList | undefined;
785
785
  chainId?: `0x${string}` | undefined;
786
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
786
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
787
787
  isSystemTx?: undefined;
788
788
  mint?: undefined;
789
789
  sourceHash?: undefined;
@@ -1009,7 +1009,7 @@ export declare const optimismGoerli: {
1009
1009
  };
1010
1010
  readonly transactionReceipt: {
1011
1011
  exclude: [] | undefined;
1012
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1012
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1013
1013
  blockHash: `0x${string}`;
1014
1014
  blockNumber: bigint;
1015
1015
  contractAddress: `0x${string}` | null;
@@ -1035,8 +1035,8 @@ export declare const optimismGoerli: {
1035
1035
  fees?: import("../../index.js").ChainFees<{
1036
1036
  readonly block: {
1037
1037
  exclude: [] | undefined;
1038
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
1039
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
1038
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
1039
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
1040
1040
  }>) => {
1041
1041
  baseFeePerGas: bigint | null;
1042
1042
  difficulty: bigint;
@@ -1057,7 +1057,7 @@ export declare const optimismGoerli: {
1057
1057
  stateRoot: `0x${string}`;
1058
1058
  timestamp: bigint;
1059
1059
  totalDifficulty: bigint | null;
1060
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
1060
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
1061
1061
  transactionsRoot: `0x${string}`;
1062
1062
  uncles: `0x${string}`[];
1063
1063
  } & {};
@@ -1085,7 +1085,7 @@ export declare const optimismGoerli: {
1085
1085
  v?: `0x${string}` | undefined;
1086
1086
  accessList?: undefined;
1087
1087
  chainId?: `0x${string}` | undefined;
1088
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1088
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1089
1089
  isSystemTx?: undefined;
1090
1090
  mint?: undefined;
1091
1091
  sourceHash?: undefined;
@@ -1134,7 +1134,7 @@ export declare const optimismGoerli: {
1134
1134
  v?: `0x${string}` | undefined;
1135
1135
  accessList?: import("../../index.js").AccessList | undefined;
1136
1136
  chainId?: `0x${string}` | undefined;
1137
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1137
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1138
1138
  isSystemTx?: undefined;
1139
1139
  mint?: undefined;
1140
1140
  sourceHash?: undefined;
@@ -1158,7 +1158,7 @@ export declare const optimismGoerli: {
1158
1158
  v?: `0x${string}` | undefined;
1159
1159
  accessList?: import("../../index.js").AccessList | undefined;
1160
1160
  chainId?: `0x${string}` | undefined;
1161
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1161
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1162
1162
  isSystemTx?: undefined;
1163
1163
  mint?: undefined;
1164
1164
  sourceHash?: undefined;
@@ -1182,7 +1182,7 @@ export declare const optimismGoerli: {
1182
1182
  v?: `0x${string}` | undefined;
1183
1183
  accessList?: import("../../index.js").AccessList | undefined;
1184
1184
  chainId?: `0x${string}` | undefined;
1185
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1185
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1186
1186
  isSystemTx?: undefined;
1187
1187
  mint?: undefined;
1188
1188
  sourceHash?: undefined;
@@ -1231,7 +1231,7 @@ export declare const optimismGoerli: {
1231
1231
  v?: `0x${string}` | undefined;
1232
1232
  accessList?: import("../../index.js").AccessList | undefined;
1233
1233
  chainId?: `0x${string}` | undefined;
1234
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1234
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1235
1235
  isSystemTx?: undefined;
1236
1236
  mint?: undefined;
1237
1237
  sourceHash?: undefined;
@@ -1255,7 +1255,7 @@ export declare const optimismGoerli: {
1255
1255
  v?: `0x${string}` | undefined;
1256
1256
  accessList?: import("../../index.js").AccessList | undefined;
1257
1257
  chainId?: `0x${string}` | undefined;
1258
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1258
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1259
1259
  isSystemTx?: undefined;
1260
1260
  mint?: undefined;
1261
1261
  sourceHash?: undefined;
@@ -1279,7 +1279,7 @@ export declare const optimismGoerli: {
1279
1279
  v?: `0x${string}` | undefined;
1280
1280
  accessList?: import("../../index.js").AccessList | undefined;
1281
1281
  chainId?: `0x${string}` | undefined;
1282
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1282
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1283
1283
  isSystemTx?: undefined;
1284
1284
  mint?: undefined;
1285
1285
  sourceHash?: undefined;
@@ -1505,7 +1505,7 @@ export declare const optimismGoerli: {
1505
1505
  };
1506
1506
  readonly transactionReceipt: {
1507
1507
  exclude: [] | undefined;
1508
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1508
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1509
1509
  blockHash: `0x${string}`;
1510
1510
  blockNumber: bigint;
1511
1511
  contractAddress: `0x${string}` | null;
@@ -32,8 +32,8 @@ export declare const zora: {
32
32
  formatters?: {
33
33
  readonly block: {
34
34
  exclude: [] | undefined;
35
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
36
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
35
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
36
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
37
37
  }>) => {
38
38
  baseFeePerGas: bigint | null;
39
39
  difficulty: bigint;
@@ -54,7 +54,7 @@ export declare const zora: {
54
54
  stateRoot: `0x${string}`;
55
55
  timestamp: bigint;
56
56
  totalDifficulty: bigint | null;
57
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
57
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
58
58
  transactionsRoot: `0x${string}`;
59
59
  uncles: `0x${string}`[];
60
60
  } & {};
@@ -82,7 +82,7 @@ export declare const zora: {
82
82
  v?: `0x${string}` | undefined;
83
83
  accessList?: undefined;
84
84
  chainId?: `0x${string}` | undefined;
85
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
85
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
86
86
  isSystemTx?: undefined;
87
87
  mint?: undefined;
88
88
  sourceHash?: undefined;
@@ -131,7 +131,7 @@ export declare const zora: {
131
131
  v?: `0x${string}` | undefined;
132
132
  accessList?: import("../../index.js").AccessList | undefined;
133
133
  chainId?: `0x${string}` | undefined;
134
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
134
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
135
135
  isSystemTx?: undefined;
136
136
  mint?: undefined;
137
137
  sourceHash?: undefined;
@@ -155,7 +155,7 @@ export declare const zora: {
155
155
  v?: `0x${string}` | undefined;
156
156
  accessList?: import("../../index.js").AccessList | undefined;
157
157
  chainId?: `0x${string}` | undefined;
158
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
158
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
159
159
  isSystemTx?: undefined;
160
160
  mint?: undefined;
161
161
  sourceHash?: undefined;
@@ -179,7 +179,7 @@ export declare const zora: {
179
179
  v?: `0x${string}` | undefined;
180
180
  accessList?: import("../../index.js").AccessList | undefined;
181
181
  chainId?: `0x${string}` | undefined;
182
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
182
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
183
183
  isSystemTx?: undefined;
184
184
  mint?: undefined;
185
185
  sourceHash?: undefined;
@@ -228,7 +228,7 @@ export declare const zora: {
228
228
  v?: `0x${string}` | undefined;
229
229
  accessList?: import("../../index.js").AccessList | undefined;
230
230
  chainId?: `0x${string}` | undefined;
231
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
231
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
232
232
  isSystemTx?: undefined;
233
233
  mint?: undefined;
234
234
  sourceHash?: undefined;
@@ -252,7 +252,7 @@ export declare const zora: {
252
252
  v?: `0x${string}` | undefined;
253
253
  accessList?: import("../../index.js").AccessList | undefined;
254
254
  chainId?: `0x${string}` | undefined;
255
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
255
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
256
256
  isSystemTx?: undefined;
257
257
  mint?: undefined;
258
258
  sourceHash?: undefined;
@@ -276,7 +276,7 @@ export declare const zora: {
276
276
  v?: `0x${string}` | undefined;
277
277
  accessList?: import("../../index.js").AccessList | undefined;
278
278
  chainId?: `0x${string}` | undefined;
279
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
279
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
280
280
  isSystemTx?: undefined;
281
281
  mint?: undefined;
282
282
  sourceHash?: undefined;
@@ -502,7 +502,7 @@ export declare const zora: {
502
502
  };
503
503
  readonly transactionReceipt: {
504
504
  exclude: [] | undefined;
505
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
505
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
506
506
  blockHash: `0x${string}`;
507
507
  blockNumber: bigint;
508
508
  contractAddress: `0x${string}` | null;
@@ -528,8 +528,8 @@ export declare const zora: {
528
528
  serializers?: import("../../index.js").ChainSerializers<{
529
529
  readonly block: {
530
530
  exclude: [] | undefined;
531
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
532
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
531
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
532
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
533
533
  }>) => {
534
534
  baseFeePerGas: bigint | null;
535
535
  difficulty: bigint;
@@ -550,7 +550,7 @@ export declare const zora: {
550
550
  stateRoot: `0x${string}`;
551
551
  timestamp: bigint;
552
552
  totalDifficulty: bigint | null;
553
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
553
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
554
554
  transactionsRoot: `0x${string}`;
555
555
  uncles: `0x${string}`[];
556
556
  } & {};
@@ -578,7 +578,7 @@ export declare const zora: {
578
578
  v?: `0x${string}` | undefined;
579
579
  accessList?: undefined;
580
580
  chainId?: `0x${string}` | undefined;
581
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
581
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
582
582
  isSystemTx?: undefined;
583
583
  mint?: undefined;
584
584
  sourceHash?: undefined;
@@ -627,7 +627,7 @@ export declare const zora: {
627
627
  v?: `0x${string}` | undefined;
628
628
  accessList?: import("../../index.js").AccessList | undefined;
629
629
  chainId?: `0x${string}` | undefined;
630
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
630
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
631
631
  isSystemTx?: undefined;
632
632
  mint?: undefined;
633
633
  sourceHash?: undefined;
@@ -651,7 +651,7 @@ export declare const zora: {
651
651
  v?: `0x${string}` | undefined;
652
652
  accessList?: import("../../index.js").AccessList | undefined;
653
653
  chainId?: `0x${string}` | undefined;
654
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
654
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
655
655
  isSystemTx?: undefined;
656
656
  mint?: undefined;
657
657
  sourceHash?: undefined;
@@ -675,7 +675,7 @@ export declare const zora: {
675
675
  v?: `0x${string}` | undefined;
676
676
  accessList?: import("../../index.js").AccessList | undefined;
677
677
  chainId?: `0x${string}` | undefined;
678
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
678
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
679
679
  isSystemTx?: undefined;
680
680
  mint?: undefined;
681
681
  sourceHash?: undefined;
@@ -724,7 +724,7 @@ export declare const zora: {
724
724
  v?: `0x${string}` | undefined;
725
725
  accessList?: import("../../index.js").AccessList | undefined;
726
726
  chainId?: `0x${string}` | undefined;
727
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
727
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
728
728
  isSystemTx?: undefined;
729
729
  mint?: undefined;
730
730
  sourceHash?: undefined;
@@ -748,7 +748,7 @@ export declare const zora: {
748
748
  v?: `0x${string}` | undefined;
749
749
  accessList?: import("../../index.js").AccessList | undefined;
750
750
  chainId?: `0x${string}` | undefined;
751
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
751
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
752
752
  isSystemTx?: undefined;
753
753
  mint?: undefined;
754
754
  sourceHash?: undefined;
@@ -772,7 +772,7 @@ export declare const zora: {
772
772
  v?: `0x${string}` | undefined;
773
773
  accessList?: import("../../index.js").AccessList | undefined;
774
774
  chainId?: `0x${string}` | undefined;
775
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
775
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
776
776
  isSystemTx?: undefined;
777
777
  mint?: undefined;
778
778
  sourceHash?: undefined;
@@ -998,7 +998,7 @@ export declare const zora: {
998
998
  };
999
999
  readonly transactionReceipt: {
1000
1000
  exclude: [] | undefined;
1001
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1001
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1002
1002
  blockHash: `0x${string}`;
1003
1003
  blockNumber: bigint;
1004
1004
  contractAddress: `0x${string}` | null;
@@ -1024,8 +1024,8 @@ export declare const zora: {
1024
1024
  fees?: import("../../index.js").ChainFees<{
1025
1025
  readonly block: {
1026
1026
  exclude: [] | undefined;
1027
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
1028
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
1027
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
1028
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
1029
1029
  }>) => {
1030
1030
  baseFeePerGas: bigint | null;
1031
1031
  difficulty: bigint;
@@ -1046,7 +1046,7 @@ export declare const zora: {
1046
1046
  stateRoot: `0x${string}`;
1047
1047
  timestamp: bigint;
1048
1048
  totalDifficulty: bigint | null;
1049
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
1049
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
1050
1050
  transactionsRoot: `0x${string}`;
1051
1051
  uncles: `0x${string}`[];
1052
1052
  } & {};
@@ -1074,7 +1074,7 @@ export declare const zora: {
1074
1074
  v?: `0x${string}` | undefined;
1075
1075
  accessList?: undefined;
1076
1076
  chainId?: `0x${string}` | undefined;
1077
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1077
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1078
1078
  isSystemTx?: undefined;
1079
1079
  mint?: undefined;
1080
1080
  sourceHash?: undefined;
@@ -1123,7 +1123,7 @@ export declare const zora: {
1123
1123
  v?: `0x${string}` | undefined;
1124
1124
  accessList?: import("../../index.js").AccessList | undefined;
1125
1125
  chainId?: `0x${string}` | undefined;
1126
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1126
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1127
1127
  isSystemTx?: undefined;
1128
1128
  mint?: undefined;
1129
1129
  sourceHash?: undefined;
@@ -1147,7 +1147,7 @@ export declare const zora: {
1147
1147
  v?: `0x${string}` | undefined;
1148
1148
  accessList?: import("../../index.js").AccessList | undefined;
1149
1149
  chainId?: `0x${string}` | undefined;
1150
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1150
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1151
1151
  isSystemTx?: undefined;
1152
1152
  mint?: undefined;
1153
1153
  sourceHash?: undefined;
@@ -1171,7 +1171,7 @@ export declare const zora: {
1171
1171
  v?: `0x${string}` | undefined;
1172
1172
  accessList?: import("../../index.js").AccessList | undefined;
1173
1173
  chainId?: `0x${string}` | undefined;
1174
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1174
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1175
1175
  isSystemTx?: undefined;
1176
1176
  mint?: undefined;
1177
1177
  sourceHash?: undefined;
@@ -1220,7 +1220,7 @@ export declare const zora: {
1220
1220
  v?: `0x${string}` | undefined;
1221
1221
  accessList?: import("../../index.js").AccessList | undefined;
1222
1222
  chainId?: `0x${string}` | undefined;
1223
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1223
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1224
1224
  isSystemTx?: undefined;
1225
1225
  mint?: undefined;
1226
1226
  sourceHash?: undefined;
@@ -1244,7 +1244,7 @@ export declare const zora: {
1244
1244
  v?: `0x${string}` | undefined;
1245
1245
  accessList?: import("../../index.js").AccessList | undefined;
1246
1246
  chainId?: `0x${string}` | undefined;
1247
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1247
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1248
1248
  isSystemTx?: undefined;
1249
1249
  mint?: undefined;
1250
1250
  sourceHash?: undefined;
@@ -1268,7 +1268,7 @@ export declare const zora: {
1268
1268
  v?: `0x${string}` | undefined;
1269
1269
  accessList?: import("../../index.js").AccessList | undefined;
1270
1270
  chainId?: `0x${string}` | undefined;
1271
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1271
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1272
1272
  isSystemTx?: undefined;
1273
1273
  mint?: undefined;
1274
1274
  sourceHash?: undefined;
@@ -1494,7 +1494,7 @@ export declare const zora: {
1494
1494
  };
1495
1495
  readonly transactionReceipt: {
1496
1496
  exclude: [] | undefined;
1497
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1497
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1498
1498
  blockHash: `0x${string}`;
1499
1499
  blockNumber: bigint;
1500
1500
  contractAddress: `0x${string}` | null;