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
@@ -31,8 +31,8 @@ export declare const celoCannoli: {
31
31
  formatters?: {
32
32
  readonly block: {
33
33
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
34
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
35
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
34
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
35
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
36
36
  }>) => {
37
37
  baseFeePerGas: bigint | null;
38
38
  difficulty: bigint;
@@ -53,7 +53,7 @@ export declare const celoCannoli: {
53
53
  stateRoot: `0x${string}`;
54
54
  timestamp: bigint;
55
55
  totalDifficulty: bigint | null;
56
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
56
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
57
57
  transactionsRoot: `0x${string}`;
58
58
  uncles: `0x${string}`[];
59
59
  randomness: {
@@ -91,7 +91,7 @@ export declare const celoCannoli: {
91
91
  v?: `0x${string}` | undefined;
92
92
  accessList?: undefined;
93
93
  chainId?: `0x${string}` | undefined;
94
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
94
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
95
95
  feeCurrency: `0x${string}` | null;
96
96
  gatewayFee: `0x${string}` | null;
97
97
  gatewayFeeRecipient: `0x${string}` | null;
@@ -140,7 +140,7 @@ export declare const celoCannoli: {
140
140
  v?: `0x${string}` | undefined;
141
141
  accessList?: import("../../index.js").AccessList | undefined;
142
142
  chainId?: `0x${string}` | undefined;
143
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
143
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
144
144
  feeCurrency: `0x${string}` | null;
145
145
  gatewayFee: `0x${string}` | null;
146
146
  gatewayFeeRecipient: `0x${string}` | null;
@@ -164,7 +164,7 @@ export declare const celoCannoli: {
164
164
  v?: `0x${string}` | undefined;
165
165
  accessList?: import("../../index.js").AccessList | undefined;
166
166
  chainId?: `0x${string}` | undefined;
167
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
167
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
168
168
  feeCurrency: `0x${string}` | null;
169
169
  gatewayFee: `0x${string}` | null;
170
170
  gatewayFeeRecipient: `0x${string}` | null;
@@ -188,7 +188,7 @@ export declare const celoCannoli: {
188
188
  v?: `0x${string}` | undefined;
189
189
  accessList?: import("../../index.js").AccessList | undefined;
190
190
  chainId?: `0x${string}` | undefined;
191
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
191
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
192
192
  feeCurrency: `0x${string}` | null;
193
193
  gatewayFee: `0x${string}` | null;
194
194
  gatewayFeeRecipient: `0x${string}` | null;
@@ -237,7 +237,7 @@ export declare const celoCannoli: {
237
237
  v?: `0x${string}` | undefined;
238
238
  accessList?: import("../../index.js").AccessList | undefined;
239
239
  chainId?: `0x${string}` | undefined;
240
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
240
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
241
241
  feeCurrency: `0x${string}` | null;
242
242
  gatewayFee: `0x${string}` | null;
243
243
  gatewayFeeRecipient: `0x${string}` | null;
@@ -261,7 +261,7 @@ export declare const celoCannoli: {
261
261
  v?: `0x${string}` | undefined;
262
262
  accessList?: import("../../index.js").AccessList | undefined;
263
263
  chainId?: `0x${string}` | undefined;
264
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
264
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
265
265
  feeCurrency: `0x${string}` | null;
266
266
  gatewayFee: `0x${string}` | null;
267
267
  gatewayFeeRecipient: `0x${string}` | null;
@@ -285,7 +285,7 @@ export declare const celoCannoli: {
285
285
  v?: `0x${string}` | undefined;
286
286
  accessList?: import("../../index.js").AccessList | undefined;
287
287
  chainId?: `0x${string}` | undefined;
288
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
288
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
289
289
  feeCurrency: `0x${string}` | null;
290
290
  gatewayFee: `0x${string}` | null;
291
291
  gatewayFeeRecipient: `0x${string}` | null;
@@ -511,7 +511,7 @@ export declare const celoCannoli: {
511
511
  };
512
512
  readonly transactionReceipt: {
513
513
  exclude: [] | undefined;
514
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
514
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
515
515
  blockHash: `0x${string}`;
516
516
  blockNumber: bigint;
517
517
  contractAddress: `0x${string}` | null;
@@ -534,7 +534,7 @@ export declare const celoCannoli: {
534
534
  };
535
535
  readonly transactionRequest: {
536
536
  exclude: [] | undefined;
537
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
537
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
538
538
  data?: `0x${string}` | undefined;
539
539
  from: `0x${string}`;
540
540
  gas?: `0x${string}` | undefined;
@@ -721,8 +721,8 @@ export declare const celoCannoli: {
721
721
  serializers?: import("../../index.js").ChainSerializers<{
722
722
  readonly block: {
723
723
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
724
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
725
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
724
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
725
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
726
726
  }>) => {
727
727
  baseFeePerGas: bigint | null;
728
728
  difficulty: bigint;
@@ -743,7 +743,7 @@ export declare const celoCannoli: {
743
743
  stateRoot: `0x${string}`;
744
744
  timestamp: bigint;
745
745
  totalDifficulty: bigint | null;
746
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
746
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
747
747
  transactionsRoot: `0x${string}`;
748
748
  uncles: `0x${string}`[];
749
749
  randomness: {
@@ -781,7 +781,7 @@ export declare const celoCannoli: {
781
781
  v?: `0x${string}` | undefined;
782
782
  accessList?: undefined;
783
783
  chainId?: `0x${string}` | undefined;
784
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
784
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
785
785
  feeCurrency: `0x${string}` | null;
786
786
  gatewayFee: `0x${string}` | null;
787
787
  gatewayFeeRecipient: `0x${string}` | null;
@@ -830,7 +830,7 @@ export declare const celoCannoli: {
830
830
  v?: `0x${string}` | undefined;
831
831
  accessList?: import("../../index.js").AccessList | undefined;
832
832
  chainId?: `0x${string}` | undefined;
833
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
833
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
834
834
  feeCurrency: `0x${string}` | null;
835
835
  gatewayFee: `0x${string}` | null;
836
836
  gatewayFeeRecipient: `0x${string}` | null;
@@ -854,7 +854,7 @@ export declare const celoCannoli: {
854
854
  v?: `0x${string}` | undefined;
855
855
  accessList?: import("../../index.js").AccessList | undefined;
856
856
  chainId?: `0x${string}` | undefined;
857
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
857
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
858
858
  feeCurrency: `0x${string}` | null;
859
859
  gatewayFee: `0x${string}` | null;
860
860
  gatewayFeeRecipient: `0x${string}` | null;
@@ -878,7 +878,7 @@ export declare const celoCannoli: {
878
878
  v?: `0x${string}` | undefined;
879
879
  accessList?: import("../../index.js").AccessList | undefined;
880
880
  chainId?: `0x${string}` | undefined;
881
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
881
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
882
882
  feeCurrency: `0x${string}` | null;
883
883
  gatewayFee: `0x${string}` | null;
884
884
  gatewayFeeRecipient: `0x${string}` | null;
@@ -927,7 +927,7 @@ export declare const celoCannoli: {
927
927
  v?: `0x${string}` | undefined;
928
928
  accessList?: import("../../index.js").AccessList | undefined;
929
929
  chainId?: `0x${string}` | undefined;
930
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
930
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
931
931
  feeCurrency: `0x${string}` | null;
932
932
  gatewayFee: `0x${string}` | null;
933
933
  gatewayFeeRecipient: `0x${string}` | null;
@@ -951,7 +951,7 @@ export declare const celoCannoli: {
951
951
  v?: `0x${string}` | undefined;
952
952
  accessList?: import("../../index.js").AccessList | undefined;
953
953
  chainId?: `0x${string}` | undefined;
954
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
954
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
955
955
  feeCurrency: `0x${string}` | null;
956
956
  gatewayFee: `0x${string}` | null;
957
957
  gatewayFeeRecipient: `0x${string}` | null;
@@ -975,7 +975,7 @@ export declare const celoCannoli: {
975
975
  v?: `0x${string}` | undefined;
976
976
  accessList?: import("../../index.js").AccessList | undefined;
977
977
  chainId?: `0x${string}` | undefined;
978
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
978
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
979
979
  feeCurrency: `0x${string}` | null;
980
980
  gatewayFee: `0x${string}` | null;
981
981
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1201,7 +1201,7 @@ export declare const celoCannoli: {
1201
1201
  };
1202
1202
  readonly transactionReceipt: {
1203
1203
  exclude: [] | undefined;
1204
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
1204
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
1205
1205
  blockHash: `0x${string}`;
1206
1206
  blockNumber: bigint;
1207
1207
  contractAddress: `0x${string}` | null;
@@ -1224,7 +1224,7 @@ export declare const celoCannoli: {
1224
1224
  };
1225
1225
  readonly transactionRequest: {
1226
1226
  exclude: [] | undefined;
1227
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
1227
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
1228
1228
  data?: `0x${string}` | undefined;
1229
1229
  from: `0x${string}`;
1230
1230
  gas?: `0x${string}` | undefined;
@@ -1411,8 +1411,8 @@ export declare const celoCannoli: {
1411
1411
  fees?: import("../../index.js").ChainFees<{
1412
1412
  readonly block: {
1413
1413
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
1414
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
1415
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
1414
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
1415
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
1416
1416
  }>) => {
1417
1417
  baseFeePerGas: bigint | null;
1418
1418
  difficulty: bigint;
@@ -1433,7 +1433,7 @@ export declare const celoCannoli: {
1433
1433
  stateRoot: `0x${string}`;
1434
1434
  timestamp: bigint;
1435
1435
  totalDifficulty: bigint | null;
1436
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
1436
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
1437
1437
  transactionsRoot: `0x${string}`;
1438
1438
  uncles: `0x${string}`[];
1439
1439
  randomness: {
@@ -1471,7 +1471,7 @@ export declare const celoCannoli: {
1471
1471
  v?: `0x${string}` | undefined;
1472
1472
  accessList?: undefined;
1473
1473
  chainId?: `0x${string}` | undefined;
1474
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1474
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1475
1475
  feeCurrency: `0x${string}` | null;
1476
1476
  gatewayFee: `0x${string}` | null;
1477
1477
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1520,7 +1520,7 @@ export declare const celoCannoli: {
1520
1520
  v?: `0x${string}` | undefined;
1521
1521
  accessList?: import("../../index.js").AccessList | undefined;
1522
1522
  chainId?: `0x${string}` | undefined;
1523
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1523
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1524
1524
  feeCurrency: `0x${string}` | null;
1525
1525
  gatewayFee: `0x${string}` | null;
1526
1526
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1544,7 +1544,7 @@ export declare const celoCannoli: {
1544
1544
  v?: `0x${string}` | undefined;
1545
1545
  accessList?: import("../../index.js").AccessList | undefined;
1546
1546
  chainId?: `0x${string}` | undefined;
1547
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1547
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1548
1548
  feeCurrency: `0x${string}` | null;
1549
1549
  gatewayFee: `0x${string}` | null;
1550
1550
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1568,7 +1568,7 @@ export declare const celoCannoli: {
1568
1568
  v?: `0x${string}` | undefined;
1569
1569
  accessList?: import("../../index.js").AccessList | undefined;
1570
1570
  chainId?: `0x${string}` | undefined;
1571
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1571
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1572
1572
  feeCurrency: `0x${string}` | null;
1573
1573
  gatewayFee: `0x${string}` | null;
1574
1574
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1617,7 +1617,7 @@ export declare const celoCannoli: {
1617
1617
  v?: `0x${string}` | undefined;
1618
1618
  accessList?: import("../../index.js").AccessList | undefined;
1619
1619
  chainId?: `0x${string}` | undefined;
1620
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1620
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1621
1621
  feeCurrency: `0x${string}` | null;
1622
1622
  gatewayFee: `0x${string}` | null;
1623
1623
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1641,7 +1641,7 @@ export declare const celoCannoli: {
1641
1641
  v?: `0x${string}` | undefined;
1642
1642
  accessList?: import("../../index.js").AccessList | undefined;
1643
1643
  chainId?: `0x${string}` | undefined;
1644
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1644
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1645
1645
  feeCurrency: `0x${string}` | null;
1646
1646
  gatewayFee: `0x${string}` | null;
1647
1647
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1665,7 +1665,7 @@ export declare const celoCannoli: {
1665
1665
  v?: `0x${string}` | undefined;
1666
1666
  accessList?: import("../../index.js").AccessList | undefined;
1667
1667
  chainId?: `0x${string}` | undefined;
1668
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1668
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1669
1669
  feeCurrency: `0x${string}` | null;
1670
1670
  gatewayFee: `0x${string}` | null;
1671
1671
  gatewayFeeRecipient: `0x${string}` | null;
@@ -1891,7 +1891,7 @@ export declare const celoCannoli: {
1891
1891
  };
1892
1892
  readonly transactionReceipt: {
1893
1893
  exclude: [] | undefined;
1894
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
1894
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
1895
1895
  blockHash: `0x${string}`;
1896
1896
  blockNumber: bigint;
1897
1897
  contractAddress: `0x${string}` | null;
@@ -1914,7 +1914,7 @@ export declare const celoCannoli: {
1914
1914
  };
1915
1915
  readonly transactionRequest: {
1916
1916
  exclude: [] | undefined;
1917
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
1917
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
1918
1918
  data?: `0x${string}` | undefined;
1919
1919
  from: `0x${string}`;
1920
1920
  gas?: `0x${string}` | undefined;
@@ -42,8 +42,8 @@ export declare const optimism: {
42
42
  formatters?: {
43
43
  readonly block: {
44
44
  exclude: [] | undefined;
45
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
46
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
45
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
46
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
47
47
  }>) => {
48
48
  baseFeePerGas: bigint | null;
49
49
  difficulty: bigint;
@@ -64,7 +64,7 @@ export declare const optimism: {
64
64
  stateRoot: `0x${string}`;
65
65
  timestamp: bigint;
66
66
  totalDifficulty: bigint | null;
67
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
67
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
68
68
  transactionsRoot: `0x${string}`;
69
69
  uncles: `0x${string}`[];
70
70
  } & {};
@@ -92,7 +92,7 @@ export declare const optimism: {
92
92
  v?: `0x${string}` | undefined;
93
93
  accessList?: undefined;
94
94
  chainId?: `0x${string}` | undefined;
95
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
95
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
96
96
  isSystemTx?: undefined;
97
97
  mint?: undefined;
98
98
  sourceHash?: undefined;
@@ -141,7 +141,7 @@ export declare const optimism: {
141
141
  v?: `0x${string}` | undefined;
142
142
  accessList?: import("../../index.js").AccessList | undefined;
143
143
  chainId?: `0x${string}` | undefined;
144
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
144
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
145
145
  isSystemTx?: undefined;
146
146
  mint?: undefined;
147
147
  sourceHash?: undefined;
@@ -165,7 +165,7 @@ export declare const optimism: {
165
165
  v?: `0x${string}` | undefined;
166
166
  accessList?: import("../../index.js").AccessList | undefined;
167
167
  chainId?: `0x${string}` | undefined;
168
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
168
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
169
169
  isSystemTx?: undefined;
170
170
  mint?: undefined;
171
171
  sourceHash?: undefined;
@@ -189,7 +189,7 @@ export declare const optimism: {
189
189
  v?: `0x${string}` | undefined;
190
190
  accessList?: import("../../index.js").AccessList | undefined;
191
191
  chainId?: `0x${string}` | undefined;
192
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
192
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
193
193
  isSystemTx?: undefined;
194
194
  mint?: undefined;
195
195
  sourceHash?: undefined;
@@ -238,7 +238,7 @@ export declare const optimism: {
238
238
  v?: `0x${string}` | undefined;
239
239
  accessList?: import("../../index.js").AccessList | undefined;
240
240
  chainId?: `0x${string}` | undefined;
241
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
241
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
242
242
  isSystemTx?: undefined;
243
243
  mint?: undefined;
244
244
  sourceHash?: undefined;
@@ -262,7 +262,7 @@ export declare const optimism: {
262
262
  v?: `0x${string}` | undefined;
263
263
  accessList?: import("../../index.js").AccessList | undefined;
264
264
  chainId?: `0x${string}` | undefined;
265
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
265
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
266
266
  isSystemTx?: undefined;
267
267
  mint?: undefined;
268
268
  sourceHash?: undefined;
@@ -286,7 +286,7 @@ export declare const optimism: {
286
286
  v?: `0x${string}` | undefined;
287
287
  accessList?: import("../../index.js").AccessList | undefined;
288
288
  chainId?: `0x${string}` | undefined;
289
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
289
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
290
290
  isSystemTx?: undefined;
291
291
  mint?: undefined;
292
292
  sourceHash?: undefined;
@@ -512,7 +512,7 @@ export declare const optimism: {
512
512
  };
513
513
  readonly transactionReceipt: {
514
514
  exclude: [] | undefined;
515
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
515
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
516
516
  blockHash: `0x${string}`;
517
517
  blockNumber: bigint;
518
518
  contractAddress: `0x${string}` | null;
@@ -538,8 +538,8 @@ export declare const optimism: {
538
538
  serializers?: import("../../index.js").ChainSerializers<{
539
539
  readonly block: {
540
540
  exclude: [] | undefined;
541
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
542
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
541
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
542
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
543
543
  }>) => {
544
544
  baseFeePerGas: bigint | null;
545
545
  difficulty: bigint;
@@ -560,7 +560,7 @@ export declare const optimism: {
560
560
  stateRoot: `0x${string}`;
561
561
  timestamp: bigint;
562
562
  totalDifficulty: bigint | null;
563
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
563
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
564
564
  transactionsRoot: `0x${string}`;
565
565
  uncles: `0x${string}`[];
566
566
  } & {};
@@ -588,7 +588,7 @@ export declare const optimism: {
588
588
  v?: `0x${string}` | undefined;
589
589
  accessList?: undefined;
590
590
  chainId?: `0x${string}` | undefined;
591
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
591
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
592
592
  isSystemTx?: undefined;
593
593
  mint?: undefined;
594
594
  sourceHash?: undefined;
@@ -637,7 +637,7 @@ export declare const optimism: {
637
637
  v?: `0x${string}` | undefined;
638
638
  accessList?: import("../../index.js").AccessList | undefined;
639
639
  chainId?: `0x${string}` | undefined;
640
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
640
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
641
641
  isSystemTx?: undefined;
642
642
  mint?: undefined;
643
643
  sourceHash?: undefined;
@@ -661,7 +661,7 @@ export declare const optimism: {
661
661
  v?: `0x${string}` | undefined;
662
662
  accessList?: import("../../index.js").AccessList | undefined;
663
663
  chainId?: `0x${string}` | undefined;
664
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
664
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
665
665
  isSystemTx?: undefined;
666
666
  mint?: undefined;
667
667
  sourceHash?: undefined;
@@ -685,7 +685,7 @@ export declare const optimism: {
685
685
  v?: `0x${string}` | undefined;
686
686
  accessList?: import("../../index.js").AccessList | undefined;
687
687
  chainId?: `0x${string}` | undefined;
688
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
688
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
689
689
  isSystemTx?: undefined;
690
690
  mint?: undefined;
691
691
  sourceHash?: undefined;
@@ -734,7 +734,7 @@ export declare const optimism: {
734
734
  v?: `0x${string}` | undefined;
735
735
  accessList?: import("../../index.js").AccessList | undefined;
736
736
  chainId?: `0x${string}` | undefined;
737
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
737
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
738
738
  isSystemTx?: undefined;
739
739
  mint?: undefined;
740
740
  sourceHash?: undefined;
@@ -758,7 +758,7 @@ export declare const optimism: {
758
758
  v?: `0x${string}` | undefined;
759
759
  accessList?: import("../../index.js").AccessList | undefined;
760
760
  chainId?: `0x${string}` | undefined;
761
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
761
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
762
762
  isSystemTx?: undefined;
763
763
  mint?: undefined;
764
764
  sourceHash?: undefined;
@@ -782,7 +782,7 @@ export declare const optimism: {
782
782
  v?: `0x${string}` | undefined;
783
783
  accessList?: import("../../index.js").AccessList | undefined;
784
784
  chainId?: `0x${string}` | undefined;
785
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
785
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
786
786
  isSystemTx?: undefined;
787
787
  mint?: undefined;
788
788
  sourceHash?: undefined;
@@ -1008,7 +1008,7 @@ export declare const optimism: {
1008
1008
  };
1009
1009
  readonly transactionReceipt: {
1010
1010
  exclude: [] | undefined;
1011
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1011
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1012
1012
  blockHash: `0x${string}`;
1013
1013
  blockNumber: bigint;
1014
1014
  contractAddress: `0x${string}` | null;
@@ -1034,8 +1034,8 @@ export declare const optimism: {
1034
1034
  fees?: import("../../index.js").ChainFees<{
1035
1035
  readonly block: {
1036
1036
  exclude: [] | undefined;
1037
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
1038
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
1037
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
1038
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
1039
1039
  }>) => {
1040
1040
  baseFeePerGas: bigint | null;
1041
1041
  difficulty: bigint;
@@ -1056,7 +1056,7 @@ export declare const optimism: {
1056
1056
  stateRoot: `0x${string}`;
1057
1057
  timestamp: bigint;
1058
1058
  totalDifficulty: bigint | null;
1059
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
1059
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
1060
1060
  transactionsRoot: `0x${string}`;
1061
1061
  uncles: `0x${string}`[];
1062
1062
  } & {};
@@ -1084,7 +1084,7 @@ export declare const optimism: {
1084
1084
  v?: `0x${string}` | undefined;
1085
1085
  accessList?: undefined;
1086
1086
  chainId?: `0x${string}` | undefined;
1087
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1087
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1088
1088
  isSystemTx?: undefined;
1089
1089
  mint?: undefined;
1090
1090
  sourceHash?: undefined;
@@ -1133,7 +1133,7 @@ export declare const optimism: {
1133
1133
  v?: `0x${string}` | undefined;
1134
1134
  accessList?: import("../../index.js").AccessList | undefined;
1135
1135
  chainId?: `0x${string}` | undefined;
1136
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1136
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1137
1137
  isSystemTx?: undefined;
1138
1138
  mint?: undefined;
1139
1139
  sourceHash?: undefined;
@@ -1157,7 +1157,7 @@ export declare const optimism: {
1157
1157
  v?: `0x${string}` | undefined;
1158
1158
  accessList?: import("../../index.js").AccessList | undefined;
1159
1159
  chainId?: `0x${string}` | undefined;
1160
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1160
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1161
1161
  isSystemTx?: undefined;
1162
1162
  mint?: undefined;
1163
1163
  sourceHash?: undefined;
@@ -1181,7 +1181,7 @@ export declare const optimism: {
1181
1181
  v?: `0x${string}` | undefined;
1182
1182
  accessList?: import("../../index.js").AccessList | undefined;
1183
1183
  chainId?: `0x${string}` | undefined;
1184
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1184
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1185
1185
  isSystemTx?: undefined;
1186
1186
  mint?: undefined;
1187
1187
  sourceHash?: undefined;
@@ -1230,7 +1230,7 @@ export declare const optimism: {
1230
1230
  v?: `0x${string}` | undefined;
1231
1231
  accessList?: import("../../index.js").AccessList | undefined;
1232
1232
  chainId?: `0x${string}` | undefined;
1233
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1233
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1234
1234
  isSystemTx?: undefined;
1235
1235
  mint?: undefined;
1236
1236
  sourceHash?: undefined;
@@ -1254,7 +1254,7 @@ export declare const optimism: {
1254
1254
  v?: `0x${string}` | undefined;
1255
1255
  accessList?: import("../../index.js").AccessList | undefined;
1256
1256
  chainId?: `0x${string}` | undefined;
1257
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1257
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1258
1258
  isSystemTx?: undefined;
1259
1259
  mint?: undefined;
1260
1260
  sourceHash?: undefined;
@@ -1278,7 +1278,7 @@ export declare const optimism: {
1278
1278
  v?: `0x${string}` | undefined;
1279
1279
  accessList?: import("../../index.js").AccessList | undefined;
1280
1280
  chainId?: `0x${string}` | undefined;
1281
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1281
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1282
1282
  isSystemTx?: undefined;
1283
1283
  mint?: undefined;
1284
1284
  sourceHash?: undefined;
@@ -1504,7 +1504,7 @@ export declare const optimism: {
1504
1504
  };
1505
1505
  readonly transactionReceipt: {
1506
1506
  exclude: [] | undefined;
1507
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1507
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1508
1508
  blockHash: `0x${string}`;
1509
1509
  blockNumber: bigint;
1510
1510
  contractAddress: `0x${string}` | null;