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
@@ -42,8 +42,8 @@ export declare const base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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 base: {
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;
@@ -40,8 +40,8 @@ export declare const baseGoerli: {
40
40
  formatters?: {
41
41
  readonly block: {
42
42
  exclude: [] | undefined;
43
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
44
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
43
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
44
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
45
45
  }>) => {
46
46
  baseFeePerGas: bigint | null;
47
47
  difficulty: bigint;
@@ -62,7 +62,7 @@ export declare const baseGoerli: {
62
62
  stateRoot: `0x${string}`;
63
63
  timestamp: bigint;
64
64
  totalDifficulty: bigint | null;
65
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
65
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
66
66
  transactionsRoot: `0x${string}`;
67
67
  uncles: `0x${string}`[];
68
68
  } & {};
@@ -90,7 +90,7 @@ export declare const baseGoerli: {
90
90
  v?: `0x${string}` | undefined;
91
91
  accessList?: undefined;
92
92
  chainId?: `0x${string}` | undefined;
93
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
93
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
94
94
  isSystemTx?: undefined;
95
95
  mint?: undefined;
96
96
  sourceHash?: undefined;
@@ -139,7 +139,7 @@ export declare const baseGoerli: {
139
139
  v?: `0x${string}` | undefined;
140
140
  accessList?: import("../../index.js").AccessList | undefined;
141
141
  chainId?: `0x${string}` | undefined;
142
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
142
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
143
143
  isSystemTx?: undefined;
144
144
  mint?: undefined;
145
145
  sourceHash?: undefined;
@@ -163,7 +163,7 @@ export declare const baseGoerli: {
163
163
  v?: `0x${string}` | undefined;
164
164
  accessList?: import("../../index.js").AccessList | undefined;
165
165
  chainId?: `0x${string}` | undefined;
166
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
166
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
167
167
  isSystemTx?: undefined;
168
168
  mint?: undefined;
169
169
  sourceHash?: undefined;
@@ -187,7 +187,7 @@ export declare const baseGoerli: {
187
187
  v?: `0x${string}` | undefined;
188
188
  accessList?: import("../../index.js").AccessList | undefined;
189
189
  chainId?: `0x${string}` | undefined;
190
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
190
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
191
191
  isSystemTx?: undefined;
192
192
  mint?: undefined;
193
193
  sourceHash?: undefined;
@@ -236,7 +236,7 @@ export declare const baseGoerli: {
236
236
  v?: `0x${string}` | undefined;
237
237
  accessList?: import("../../index.js").AccessList | undefined;
238
238
  chainId?: `0x${string}` | undefined;
239
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
239
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
240
240
  isSystemTx?: undefined;
241
241
  mint?: undefined;
242
242
  sourceHash?: undefined;
@@ -260,7 +260,7 @@ export declare const baseGoerli: {
260
260
  v?: `0x${string}` | undefined;
261
261
  accessList?: import("../../index.js").AccessList | undefined;
262
262
  chainId?: `0x${string}` | undefined;
263
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
263
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
264
264
  isSystemTx?: undefined;
265
265
  mint?: undefined;
266
266
  sourceHash?: undefined;
@@ -284,7 +284,7 @@ export declare const baseGoerli: {
284
284
  v?: `0x${string}` | undefined;
285
285
  accessList?: import("../../index.js").AccessList | undefined;
286
286
  chainId?: `0x${string}` | undefined;
287
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
287
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
288
288
  isSystemTx?: undefined;
289
289
  mint?: undefined;
290
290
  sourceHash?: undefined;
@@ -510,7 +510,7 @@ export declare const baseGoerli: {
510
510
  };
511
511
  readonly transactionReceipt: {
512
512
  exclude: [] | undefined;
513
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
513
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
514
514
  blockHash: `0x${string}`;
515
515
  blockNumber: bigint;
516
516
  contractAddress: `0x${string}` | null;
@@ -536,8 +536,8 @@ export declare const baseGoerli: {
536
536
  serializers?: import("../../index.js").ChainSerializers<{
537
537
  readonly block: {
538
538
  exclude: [] | undefined;
539
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
540
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
539
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
540
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
541
541
  }>) => {
542
542
  baseFeePerGas: bigint | null;
543
543
  difficulty: bigint;
@@ -558,7 +558,7 @@ export declare const baseGoerli: {
558
558
  stateRoot: `0x${string}`;
559
559
  timestamp: bigint;
560
560
  totalDifficulty: bigint | null;
561
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
561
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
562
562
  transactionsRoot: `0x${string}`;
563
563
  uncles: `0x${string}`[];
564
564
  } & {};
@@ -586,7 +586,7 @@ export declare const baseGoerli: {
586
586
  v?: `0x${string}` | undefined;
587
587
  accessList?: undefined;
588
588
  chainId?: `0x${string}` | undefined;
589
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
589
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
590
590
  isSystemTx?: undefined;
591
591
  mint?: undefined;
592
592
  sourceHash?: undefined;
@@ -635,7 +635,7 @@ export declare const baseGoerli: {
635
635
  v?: `0x${string}` | undefined;
636
636
  accessList?: import("../../index.js").AccessList | undefined;
637
637
  chainId?: `0x${string}` | undefined;
638
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
638
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
639
639
  isSystemTx?: undefined;
640
640
  mint?: undefined;
641
641
  sourceHash?: undefined;
@@ -659,7 +659,7 @@ export declare const baseGoerli: {
659
659
  v?: `0x${string}` | undefined;
660
660
  accessList?: import("../../index.js").AccessList | undefined;
661
661
  chainId?: `0x${string}` | undefined;
662
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
662
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
663
663
  isSystemTx?: undefined;
664
664
  mint?: undefined;
665
665
  sourceHash?: undefined;
@@ -683,7 +683,7 @@ export declare const baseGoerli: {
683
683
  v?: `0x${string}` | undefined;
684
684
  accessList?: import("../../index.js").AccessList | undefined;
685
685
  chainId?: `0x${string}` | undefined;
686
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
686
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
687
687
  isSystemTx?: undefined;
688
688
  mint?: undefined;
689
689
  sourceHash?: undefined;
@@ -732,7 +732,7 @@ export declare const baseGoerli: {
732
732
  v?: `0x${string}` | undefined;
733
733
  accessList?: import("../../index.js").AccessList | undefined;
734
734
  chainId?: `0x${string}` | undefined;
735
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
735
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
736
736
  isSystemTx?: undefined;
737
737
  mint?: undefined;
738
738
  sourceHash?: undefined;
@@ -756,7 +756,7 @@ export declare const baseGoerli: {
756
756
  v?: `0x${string}` | undefined;
757
757
  accessList?: import("../../index.js").AccessList | undefined;
758
758
  chainId?: `0x${string}` | undefined;
759
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
759
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
760
760
  isSystemTx?: undefined;
761
761
  mint?: undefined;
762
762
  sourceHash?: undefined;
@@ -780,7 +780,7 @@ export declare const baseGoerli: {
780
780
  v?: `0x${string}` | undefined;
781
781
  accessList?: import("../../index.js").AccessList | undefined;
782
782
  chainId?: `0x${string}` | undefined;
783
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
783
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
784
784
  isSystemTx?: undefined;
785
785
  mint?: undefined;
786
786
  sourceHash?: undefined;
@@ -1006,7 +1006,7 @@ export declare const baseGoerli: {
1006
1006
  };
1007
1007
  readonly transactionReceipt: {
1008
1008
  exclude: [] | undefined;
1009
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1009
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1010
1010
  blockHash: `0x${string}`;
1011
1011
  blockNumber: bigint;
1012
1012
  contractAddress: `0x${string}` | null;
@@ -1032,8 +1032,8 @@ export declare const baseGoerli: {
1032
1032
  fees?: import("../../index.js").ChainFees<{
1033
1033
  readonly block: {
1034
1034
  exclude: [] | undefined;
1035
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
1036
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
1035
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").OptimismRpcBlockOverrides & {
1036
+ transactions: `0x${string}`[] | import("../utils.js").OptimismRpcTransaction[];
1037
1037
  }>) => {
1038
1038
  baseFeePerGas: bigint | null;
1039
1039
  difficulty: bigint;
@@ -1054,7 +1054,7 @@ export declare const baseGoerli: {
1054
1054
  stateRoot: `0x${string}`;
1055
1055
  timestamp: bigint;
1056
1056
  totalDifficulty: bigint | null;
1057
- transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
1057
+ transactions: `0x${string}`[] | import("../utils.js").OptimismTransaction[];
1058
1058
  transactionsRoot: `0x${string}`;
1059
1059
  uncles: `0x${string}`[];
1060
1060
  } & {};
@@ -1082,7 +1082,7 @@ export declare const baseGoerli: {
1082
1082
  v?: `0x${string}` | undefined;
1083
1083
  accessList?: undefined;
1084
1084
  chainId?: `0x${string}` | undefined;
1085
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1085
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1086
1086
  isSystemTx?: undefined;
1087
1087
  mint?: undefined;
1088
1088
  sourceHash?: undefined;
@@ -1131,7 +1131,7 @@ export declare const baseGoerli: {
1131
1131
  v?: `0x${string}` | undefined;
1132
1132
  accessList?: import("../../index.js").AccessList | undefined;
1133
1133
  chainId?: `0x${string}` | undefined;
1134
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1134
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1135
1135
  isSystemTx?: undefined;
1136
1136
  mint?: undefined;
1137
1137
  sourceHash?: undefined;
@@ -1155,7 +1155,7 @@ export declare const baseGoerli: {
1155
1155
  v?: `0x${string}` | undefined;
1156
1156
  accessList?: import("../../index.js").AccessList | undefined;
1157
1157
  chainId?: `0x${string}` | undefined;
1158
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1158
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1159
1159
  isSystemTx?: undefined;
1160
1160
  mint?: undefined;
1161
1161
  sourceHash?: undefined;
@@ -1179,7 +1179,7 @@ export declare const baseGoerli: {
1179
1179
  v?: `0x${string}` | undefined;
1180
1180
  accessList?: import("../../index.js").AccessList | undefined;
1181
1181
  chainId?: `0x${string}` | undefined;
1182
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1182
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1183
1183
  isSystemTx?: undefined;
1184
1184
  mint?: undefined;
1185
1185
  sourceHash?: undefined;
@@ -1228,7 +1228,7 @@ export declare const baseGoerli: {
1228
1228
  v?: `0x${string}` | undefined;
1229
1229
  accessList?: import("../../index.js").AccessList | undefined;
1230
1230
  chainId?: `0x${string}` | undefined;
1231
- } & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1231
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
1232
1232
  isSystemTx?: undefined;
1233
1233
  mint?: undefined;
1234
1234
  sourceHash?: undefined;
@@ -1252,7 +1252,7 @@ export declare const baseGoerli: {
1252
1252
  v?: `0x${string}` | undefined;
1253
1253
  accessList?: import("../../index.js").AccessList | undefined;
1254
1254
  chainId?: `0x${string}` | undefined;
1255
- } & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1255
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
1256
1256
  isSystemTx?: undefined;
1257
1257
  mint?: undefined;
1258
1258
  sourceHash?: undefined;
@@ -1276,7 +1276,7 @@ export declare const baseGoerli: {
1276
1276
  v?: `0x${string}` | undefined;
1277
1277
  accessList?: import("../../index.js").AccessList | undefined;
1278
1278
  chainId?: `0x${string}` | undefined;
1279
- } & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1279
+ } & import("../../types/utils.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
1280
1280
  isSystemTx?: undefined;
1281
1281
  mint?: undefined;
1282
1282
  sourceHash?: undefined;
@@ -1502,7 +1502,7 @@ export declare const baseGoerli: {
1502
1502
  };
1503
1503
  readonly transactionReceipt: {
1504
1504
  exclude: [] | undefined;
1505
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
1505
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").OptimismRpcTransactionReceiptOverrides>) => {
1506
1506
  blockHash: `0x${string}`;
1507
1507
  blockNumber: bigint;
1508
1508
  contractAddress: `0x${string}` | null;