viem 2.0.0-alpha.3 → 2.0.0-alpha.4

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 (34) hide show
  1. package/_cjs/chains/{utils/index.js → utils.js} +5 -5
  2. package/_cjs/chains/utils.js.map +1 -0
  3. package/_cjs/errors/node.js +11 -11
  4. package/_cjs/errors/node.js.map +1 -1
  5. package/_cjs/errors/rpc.js +18 -18
  6. package/_cjs/errors/rpc.js.map +1 -1
  7. package/_cjs/errors/version.js +1 -1
  8. package/_esm/chains/utils.js +5 -0
  9. package/_esm/chains/utils.js.map +1 -0
  10. package/_esm/errors/node.js +22 -11
  11. package/_esm/errors/node.js.map +1 -1
  12. package/_esm/errors/rpc.js +36 -18
  13. package/_esm/errors/rpc.js.map +1 -1
  14. package/_esm/errors/version.js +1 -1
  15. package/_types/chains/definitions/base.d.ts +12 -12
  16. package/_types/chains/definitions/baseGoerli.d.ts +12 -12
  17. package/_types/chains/definitions/celo.d.ts +15 -15
  18. package/_types/chains/definitions/celoAlfajores.d.ts +15 -15
  19. package/_types/chains/definitions/celoCannoli.d.ts +15 -15
  20. package/_types/chains/definitions/optimism.d.ts +12 -12
  21. package/_types/chains/definitions/optimismGoerli.d.ts +12 -12
  22. package/_types/chains/definitions/zora.d.ts +12 -12
  23. package/_types/chains/definitions/zoraTestnet.d.ts +12 -12
  24. package/_types/chains/{utils/index.d.ts → utils.d.ts} +7 -7
  25. package/_types/chains/utils.d.ts.map +1 -0
  26. package/_types/errors/version.d.ts +1 -1
  27. package/chains/utils/package.json +3 -3
  28. package/chains/{utils/index.ts → utils.ts} +6 -6
  29. package/errors/version.ts +1 -1
  30. package/package.json +5 -5
  31. package/_cjs/chains/utils/index.js.map +0 -1
  32. package/_esm/chains/utils/index.js +0 -5
  33. package/_esm/chains/utils/index.js.map +0 -1
  34. package/_types/chains/utils/index.d.ts.map +0 -1
@@ -57,7 +57,7 @@ export class ProviderRpcError extends RpcError {
57
57
  *
58
58
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
59
59
  */
60
- export class ParseRpcError extends RpcError {
60
+ class ParseRpcError extends RpcError {
61
61
  constructor(cause) {
62
62
  super(cause, {
63
63
  code: ParseRpcError.code,
@@ -77,12 +77,13 @@ Object.defineProperty(ParseRpcError, "code", {
77
77
  writable: true,
78
78
  value: -32700
79
79
  });
80
+ export { ParseRpcError };
80
81
  /**
81
82
  * Subclass for a "Invalid request" EIP-1474 error.
82
83
  *
83
84
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
84
85
  */
85
- export class InvalidRequestRpcError extends RpcError {
86
+ class InvalidRequestRpcError extends RpcError {
86
87
  constructor(cause) {
87
88
  super(cause, {
88
89
  code: InvalidRequestRpcError.code,
@@ -102,12 +103,13 @@ Object.defineProperty(InvalidRequestRpcError, "code", {
102
103
  writable: true,
103
104
  value: -32600
104
105
  });
106
+ export { InvalidRequestRpcError };
105
107
  /**
106
108
  * Subclass for a "Method not found" EIP-1474 error.
107
109
  *
108
110
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
109
111
  */
110
- export class MethodNotFoundRpcError extends RpcError {
112
+ class MethodNotFoundRpcError extends RpcError {
111
113
  constructor(cause) {
112
114
  super(cause, {
113
115
  code: MethodNotFoundRpcError.code,
@@ -127,12 +129,13 @@ Object.defineProperty(MethodNotFoundRpcError, "code", {
127
129
  writable: true,
128
130
  value: -32601
129
131
  });
132
+ export { MethodNotFoundRpcError };
130
133
  /**
131
134
  * Subclass for an "Invalid params" EIP-1474 error.
132
135
  *
133
136
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
134
137
  */
135
- export class InvalidParamsRpcError extends RpcError {
138
+ class InvalidParamsRpcError extends RpcError {
136
139
  constructor(cause) {
137
140
  super(cause, {
138
141
  code: InvalidParamsRpcError.code,
@@ -155,12 +158,13 @@ Object.defineProperty(InvalidParamsRpcError, "code", {
155
158
  writable: true,
156
159
  value: -32602
157
160
  });
161
+ export { InvalidParamsRpcError };
158
162
  /**
159
163
  * Subclass for an "Internal error" EIP-1474 error.
160
164
  *
161
165
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
162
166
  */
163
- export class InternalRpcError extends RpcError {
167
+ class InternalRpcError extends RpcError {
164
168
  constructor(cause) {
165
169
  super(cause, {
166
170
  code: InternalRpcError.code,
@@ -180,12 +184,13 @@ Object.defineProperty(InternalRpcError, "code", {
180
184
  writable: true,
181
185
  value: -32603
182
186
  });
187
+ export { InternalRpcError };
183
188
  /**
184
189
  * Subclass for an "Invalid input" EIP-1474 error.
185
190
  *
186
191
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
187
192
  */
188
- export class InvalidInputRpcError extends RpcError {
193
+ class InvalidInputRpcError extends RpcError {
189
194
  constructor(cause) {
190
195
  super(cause, {
191
196
  code: InvalidInputRpcError.code,
@@ -208,12 +213,13 @@ Object.defineProperty(InvalidInputRpcError, "code", {
208
213
  writable: true,
209
214
  value: -32000
210
215
  });
216
+ export { InvalidInputRpcError };
211
217
  /**
212
218
  * Subclass for a "Resource not found" EIP-1474 error.
213
219
  *
214
220
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
215
221
  */
216
- export class ResourceNotFoundRpcError extends RpcError {
222
+ class ResourceNotFoundRpcError extends RpcError {
217
223
  constructor(cause) {
218
224
  super(cause, {
219
225
  code: ResourceNotFoundRpcError.code,
@@ -233,12 +239,13 @@ Object.defineProperty(ResourceNotFoundRpcError, "code", {
233
239
  writable: true,
234
240
  value: -32001
235
241
  });
242
+ export { ResourceNotFoundRpcError };
236
243
  /**
237
244
  * Subclass for a "Resource unavailable" EIP-1474 error.
238
245
  *
239
246
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
240
247
  */
241
- export class ResourceUnavailableRpcError extends RpcError {
248
+ class ResourceUnavailableRpcError extends RpcError {
242
249
  constructor(cause) {
243
250
  super(cause, {
244
251
  code: ResourceUnavailableRpcError.code,
@@ -258,12 +265,13 @@ Object.defineProperty(ResourceUnavailableRpcError, "code", {
258
265
  writable: true,
259
266
  value: -32002
260
267
  });
268
+ export { ResourceUnavailableRpcError };
261
269
  /**
262
270
  * Subclass for a "Transaction rejected" EIP-1474 error.
263
271
  *
264
272
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
265
273
  */
266
- export class TransactionRejectedRpcError extends RpcError {
274
+ class TransactionRejectedRpcError extends RpcError {
267
275
  constructor(cause) {
268
276
  super(cause, {
269
277
  code: TransactionRejectedRpcError.code,
@@ -283,12 +291,13 @@ Object.defineProperty(TransactionRejectedRpcError, "code", {
283
291
  writable: true,
284
292
  value: -32003
285
293
  });
294
+ export { TransactionRejectedRpcError };
286
295
  /**
287
296
  * Subclass for a "Method not supported" EIP-1474 error.
288
297
  *
289
298
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
290
299
  */
291
- export class MethodNotSupportedRpcError extends RpcError {
300
+ class MethodNotSupportedRpcError extends RpcError {
292
301
  constructor(cause) {
293
302
  super(cause, {
294
303
  code: MethodNotSupportedRpcError.code,
@@ -308,12 +317,13 @@ Object.defineProperty(MethodNotSupportedRpcError, "code", {
308
317
  writable: true,
309
318
  value: -32004
310
319
  });
320
+ export { MethodNotSupportedRpcError };
311
321
  /**
312
322
  * Subclass for a "Limit exceeded" EIP-1474 error.
313
323
  *
314
324
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
315
325
  */
316
- export class LimitExceededRpcError extends RpcError {
326
+ class LimitExceededRpcError extends RpcError {
317
327
  constructor(cause) {
318
328
  super(cause, {
319
329
  code: LimitExceededRpcError.code,
@@ -333,12 +343,13 @@ Object.defineProperty(LimitExceededRpcError, "code", {
333
343
  writable: true,
334
344
  value: -32005
335
345
  });
346
+ export { LimitExceededRpcError };
336
347
  /**
337
348
  * Subclass for a "JSON-RPC version not supported" EIP-1474 error.
338
349
  *
339
350
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
340
351
  */
341
- export class JsonRpcVersionUnsupportedError extends RpcError {
352
+ class JsonRpcVersionUnsupportedError extends RpcError {
342
353
  constructor(cause) {
343
354
  super(cause, {
344
355
  code: JsonRpcVersionUnsupportedError.code,
@@ -358,12 +369,13 @@ Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
358
369
  writable: true,
359
370
  value: -32006
360
371
  });
372
+ export { JsonRpcVersionUnsupportedError };
361
373
  /**
362
374
  * Subclass for a "User Rejected Request" EIP-1193 error.
363
375
  *
364
376
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
365
377
  */
366
- export class UserRejectedRequestError extends ProviderRpcError {
378
+ class UserRejectedRequestError extends ProviderRpcError {
367
379
  constructor(cause) {
368
380
  super(cause, {
369
381
  code: UserRejectedRequestError.code,
@@ -383,12 +395,13 @@ Object.defineProperty(UserRejectedRequestError, "code", {
383
395
  writable: true,
384
396
  value: 4001
385
397
  });
398
+ export { UserRejectedRequestError };
386
399
  /**
387
400
  * Subclass for an "Unauthorized" EIP-1193 error.
388
401
  *
389
402
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
390
403
  */
391
- export class UnauthorizedProviderError extends ProviderRpcError {
404
+ class UnauthorizedProviderError extends ProviderRpcError {
392
405
  constructor(cause) {
393
406
  super(cause, {
394
407
  code: UnauthorizedProviderError.code,
@@ -408,12 +421,13 @@ Object.defineProperty(UnauthorizedProviderError, "code", {
408
421
  writable: true,
409
422
  value: 4100
410
423
  });
424
+ export { UnauthorizedProviderError };
411
425
  /**
412
426
  * Subclass for an "Unsupported Method" EIP-1193 error.
413
427
  *
414
428
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
415
429
  */
416
- export class UnsupportedProviderMethodError extends ProviderRpcError {
430
+ class UnsupportedProviderMethodError extends ProviderRpcError {
417
431
  constructor(cause) {
418
432
  super(cause, {
419
433
  code: UnsupportedProviderMethodError.code,
@@ -433,12 +447,13 @@ Object.defineProperty(UnsupportedProviderMethodError, "code", {
433
447
  writable: true,
434
448
  value: 4200
435
449
  });
450
+ export { UnsupportedProviderMethodError };
436
451
  /**
437
452
  * Subclass for an "Disconnected" EIP-1193 error.
438
453
  *
439
454
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
440
455
  */
441
- export class ProviderDisconnectedError extends ProviderRpcError {
456
+ class ProviderDisconnectedError extends ProviderRpcError {
442
457
  constructor(cause) {
443
458
  super(cause, {
444
459
  code: ProviderDisconnectedError.code,
@@ -458,12 +473,13 @@ Object.defineProperty(ProviderDisconnectedError, "code", {
458
473
  writable: true,
459
474
  value: 4900
460
475
  });
476
+ export { ProviderDisconnectedError };
461
477
  /**
462
478
  * Subclass for an "Chain Disconnected" EIP-1193 error.
463
479
  *
464
480
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
465
481
  */
466
- export class ChainDisconnectedError extends ProviderRpcError {
482
+ class ChainDisconnectedError extends ProviderRpcError {
467
483
  constructor(cause) {
468
484
  super(cause, {
469
485
  code: ChainDisconnectedError.code,
@@ -483,12 +499,13 @@ Object.defineProperty(ChainDisconnectedError, "code", {
483
499
  writable: true,
484
500
  value: 4901
485
501
  });
502
+ export { ChainDisconnectedError };
486
503
  /**
487
504
  * Subclass for an "Switch Chain" EIP-1193 error.
488
505
  *
489
506
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
490
507
  */
491
- export class SwitchChainError extends ProviderRpcError {
508
+ class SwitchChainError extends ProviderRpcError {
492
509
  constructor(cause) {
493
510
  super(cause, {
494
511
  code: SwitchChainError.code,
@@ -508,6 +525,7 @@ Object.defineProperty(SwitchChainError, "code", {
508
525
  writable: true,
509
526
  value: 4902
510
527
  });
528
+ export { SwitchChainError };
511
529
  /**
512
530
  * Subclass for an unknown RPC error.
513
531
  */
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../errors/rpc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,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eAAgB,SAAQ,QAAQ;IAG3C,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CAAA;QALK;;;;mBAAO,iBAAiB;WAAA;IAMjC,CAAC;CACF"}
@@ -1,2 +1,2 @@
1
- export const version = '2.0.0-alpha.3';
1
+ export const version = '2.0.0-alpha.4';
2
2
  //# sourceMappingURL=version.js.map
@@ -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
  } & {};
@@ -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
  } & {};
@@ -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
  } & {};
@@ -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
  } & {};
@@ -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
  } & {};
@@ -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
  } & {};
@@ -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;
@@ -38,8 +38,8 @@ export declare const celo: {
38
38
  formatters?: {
39
39
  readonly block: {
40
40
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
41
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
42
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
41
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
42
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
43
43
  }>) => {
44
44
  baseFeePerGas: bigint | null;
45
45
  difficulty: bigint;
@@ -60,7 +60,7 @@ export declare const celo: {
60
60
  stateRoot: `0x${string}`;
61
61
  timestamp: bigint;
62
62
  totalDifficulty: bigint | null;
63
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
63
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
64
64
  transactionsRoot: `0x${string}`;
65
65
  uncles: `0x${string}`[];
66
66
  randomness: {
@@ -518,7 +518,7 @@ export declare const celo: {
518
518
  };
519
519
  readonly transactionReceipt: {
520
520
  exclude: [] | undefined;
521
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
521
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
522
522
  blockHash: `0x${string}`;
523
523
  blockNumber: bigint;
524
524
  contractAddress: `0x${string}` | null;
@@ -541,7 +541,7 @@ export declare const celo: {
541
541
  };
542
542
  readonly transactionRequest: {
543
543
  exclude: [] | undefined;
544
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
544
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
545
545
  data?: `0x${string}` | undefined;
546
546
  from: `0x${string}`;
547
547
  gas?: `0x${string}` | undefined;
@@ -728,8 +728,8 @@ export declare const celo: {
728
728
  serializers?: import("../../index.js").ChainSerializers<{
729
729
  readonly block: {
730
730
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
731
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
732
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
731
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
732
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
733
733
  }>) => {
734
734
  baseFeePerGas: bigint | null;
735
735
  difficulty: bigint;
@@ -750,7 +750,7 @@ export declare const celo: {
750
750
  stateRoot: `0x${string}`;
751
751
  timestamp: bigint;
752
752
  totalDifficulty: bigint | null;
753
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
753
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
754
754
  transactionsRoot: `0x${string}`;
755
755
  uncles: `0x${string}`[];
756
756
  randomness: {
@@ -1208,7 +1208,7 @@ export declare const celo: {
1208
1208
  };
1209
1209
  readonly transactionReceipt: {
1210
1210
  exclude: [] | undefined;
1211
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
1211
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
1212
1212
  blockHash: `0x${string}`;
1213
1213
  blockNumber: bigint;
1214
1214
  contractAddress: `0x${string}` | null;
@@ -1231,7 +1231,7 @@ export declare const celo: {
1231
1231
  };
1232
1232
  readonly transactionRequest: {
1233
1233
  exclude: [] | undefined;
1234
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
1234
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
1235
1235
  data?: `0x${string}` | undefined;
1236
1236
  from: `0x${string}`;
1237
1237
  gas?: `0x${string}` | undefined;
@@ -1418,8 +1418,8 @@ export declare const celo: {
1418
1418
  fees?: import("../../index.js").ChainFees<{
1419
1419
  readonly block: {
1420
1420
  exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
1421
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../celo/types.js").CeloBlockOverrides & {
1422
- transactions: `0x${string}`[] | import("../celo/types.js").CeloRpcTransaction[];
1421
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../utils.js").CeloBlockOverrides & {
1422
+ transactions: `0x${string}`[] | import("../utils.js").CeloRpcTransaction[];
1423
1423
  }>) => {
1424
1424
  baseFeePerGas: bigint | null;
1425
1425
  difficulty: bigint;
@@ -1440,7 +1440,7 @@ export declare const celo: {
1440
1440
  stateRoot: `0x${string}`;
1441
1441
  timestamp: bigint;
1442
1442
  totalDifficulty: bigint | null;
1443
- transactions: `0x${string}`[] | import("../celo/types.js").CeloTransaction[];
1443
+ transactions: `0x${string}`[] | import("../utils.js").CeloTransaction[];
1444
1444
  transactionsRoot: `0x${string}`;
1445
1445
  uncles: `0x${string}`[];
1446
1446
  randomness: {
@@ -1898,7 +1898,7 @@ export declare const celo: {
1898
1898
  };
1899
1899
  readonly transactionReceipt: {
1900
1900
  exclude: [] | undefined;
1901
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../celo/types.js").CeloRpcTransactionReceiptOverrides>) => {
1901
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../utils.js").CeloRpcTransactionReceiptOverrides>) => {
1902
1902
  blockHash: `0x${string}`;
1903
1903
  blockNumber: bigint;
1904
1904
  contractAddress: `0x${string}` | null;
@@ -1921,7 +1921,7 @@ export declare const celo: {
1921
1921
  };
1922
1922
  readonly transactionRequest: {
1923
1923
  exclude: [] | undefined;
1924
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../celo/types.js").CeloTransactionRequest>) => ({
1924
+ format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, import("../utils.js").CeloTransactionRequest>) => ({
1925
1925
  data?: `0x${string}` | undefined;
1926
1926
  from: `0x${string}`;
1927
1927
  gas?: `0x${string}` | undefined;