@apibara/evm 2.1.0-beta.5 → 2.1.0-beta.51

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.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { StreamConfig } from '@apibara/protocol';
2
2
  import _m0 from 'protobufjs/minimal.js';
3
- import * as _effect_schema_AST from '@effect/schema/AST';
4
- import { Schema } from '@effect/schema';
3
+ import { Codec, CodecType, MessageCodec } from '@apibara/protocol/codec';
5
4
 
6
5
  declare const protobufPackage$2 = "evm.v2";
7
6
  /**
@@ -102,6 +101,34 @@ declare enum TransactionStatus$1 {
102
101
  }
103
102
  declare function transactionStatusFromJSON(object: any): TransactionStatus$1;
104
103
  declare function transactionStatusToJSON(object: TransactionStatus$1): string;
104
+ declare enum CallType$1 {
105
+ UNSPECIFIED = 0,
106
+ CALL = 1,
107
+ CALL_CODE = 2,
108
+ DELEGATE_CALL = 3,
109
+ STATIC_CALL = 4,
110
+ AUTH_CALL = 5,
111
+ UNRECOGNIZED = -1
112
+ }
113
+ declare function callTypeFromJSON(object: any): CallType$1;
114
+ declare function callTypeToJSON(object: CallType$1): string;
115
+ declare enum CreationMethod$1 {
116
+ UNSPECIFIED = 0,
117
+ CREATE = 1,
118
+ CREATE2 = 2,
119
+ EOF_CREATE = 3,
120
+ UNRECOGNIZED = -1
121
+ }
122
+ declare function creationMethodFromJSON(object: any): CreationMethod$1;
123
+ declare function creationMethodToJSON(object: CreationMethod$1): string;
124
+ declare enum RewardType$1 {
125
+ UNSPECIFIED = 0,
126
+ BLOCK = 1,
127
+ UNCLE = 2,
128
+ UNRECOGNIZED = -1
129
+ }
130
+ declare function rewardTypeFromJSON(object: any): RewardType$1;
131
+ declare function rewardTypeToJSON(object: RewardType$1): string;
105
132
  /** Requested data, grouped by block. */
106
133
  interface Block$1 {
107
134
  /** The header. */
@@ -114,6 +141,8 @@ interface Block$1 {
114
141
  readonly receipts?: readonly TransactionReceipt$1[] | undefined;
115
142
  /** List of logs. */
116
143
  readonly logs?: readonly Log$1[] | undefined;
144
+ /** List of transaction traces. */
145
+ readonly traces?: readonly TransactionTrace$1[] | undefined;
117
146
  }
118
147
  declare const Block$1: {
119
148
  encode(message: Block$1, writer?: _m0.Writer): _m0.Writer;
@@ -169,6 +198,11 @@ interface BlockHeader$1 {
169
198
  readonly excessBlobGas?: U128$1 | undefined;
170
199
  /** Parent beacon block root. */
171
200
  readonly parentBeaconBlockRoot?: B256$1 | undefined;
201
+ /**
202
+ * The Keccak 256-bit hash of the an RLP encoded list with each EIP-7685
203
+ * request in the block body.
204
+ */
205
+ readonly requestsHash?: B256$1 | undefined;
172
206
  }
173
207
  declare const BlockHeader$1: {
174
208
  encode(message: BlockHeader$1, writer?: _m0.Writer): _m0.Writer;
@@ -343,6 +377,163 @@ declare const AccessListItem$1: {
343
377
  create(base?: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
344
378
  fromPartial(object: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
345
379
  };
380
+ interface TransactionTrace$1 {
381
+ readonly filterIds?: readonly number[] | undefined;
382
+ /** Index of the transaction in the block. */
383
+ readonly transactionIndex?: number | undefined;
384
+ /** Transaction hash. */
385
+ readonly transactionHash?: B256$1 | undefined;
386
+ /** Traces. */
387
+ readonly traces?: readonly Trace$1[] | undefined;
388
+ }
389
+ declare const TransactionTrace$1: {
390
+ encode(message: TransactionTrace$1, writer?: _m0.Writer): _m0.Writer;
391
+ decode(input: _m0.Reader | Uint8Array, length?: number): TransactionTrace$1;
392
+ fromJSON(object: any): TransactionTrace$1;
393
+ toJSON(message: TransactionTrace$1): unknown;
394
+ create(base?: DeepPartial$1<TransactionTrace$1>): TransactionTrace$1;
395
+ fromPartial(object: DeepPartial$1<TransactionTrace$1>): TransactionTrace$1;
396
+ };
397
+ interface Trace$1 {
398
+ readonly action?: {
399
+ readonly $case: "call";
400
+ readonly call: CallAction$1;
401
+ } | {
402
+ readonly $case: "create";
403
+ readonly create: CreateAction$1;
404
+ } | {
405
+ readonly $case: "selfDestruct";
406
+ readonly selfDestruct: SelfDestructAction$1;
407
+ } | {
408
+ readonly $case: "reward";
409
+ readonly reward: RewardAction$1;
410
+ } | undefined;
411
+ /** Error message if the transaction failed. */
412
+ readonly error?: string | undefined;
413
+ readonly output?: {
414
+ readonly $case: "callOutput";
415
+ readonly callOutput: CallOutput$1;
416
+ } | {
417
+ readonly $case: "createOutput";
418
+ readonly createOutput: CreateOutput$1;
419
+ } | undefined;
420
+ /** Number of sub traces. */
421
+ readonly subtraces?: number | undefined;
422
+ /** The identifier of this trace in the trace tree. */
423
+ readonly traceAddress?: readonly number[] | undefined;
424
+ }
425
+ declare const Trace$1: {
426
+ encode(message: Trace$1, writer?: _m0.Writer): _m0.Writer;
427
+ decode(input: _m0.Reader | Uint8Array, length?: number): Trace$1;
428
+ fromJSON(object: any): Trace$1;
429
+ toJSON(message: Trace$1): unknown;
430
+ create(base?: DeepPartial$1<Trace$1>): Trace$1;
431
+ fromPartial(object: DeepPartial$1<Trace$1>): Trace$1;
432
+ };
433
+ interface CallAction$1 {
434
+ /** Address of the sending account. */
435
+ readonly fromAddress?: Address$1 | undefined;
436
+ /** Call type. */
437
+ readonly type?: CallType$1 | undefined;
438
+ /** The gas available to execute the call. */
439
+ readonly gas?: bigint | undefined;
440
+ /** Input data provided by the call. */
441
+ readonly input?: Uint8Array | undefined;
442
+ /** Target of the destination address. */
443
+ readonly toAddress?: Address$1 | undefined;
444
+ /** Value transferred to the destination account. */
445
+ readonly value?: U256$1 | undefined;
446
+ }
447
+ declare const CallAction$1: {
448
+ encode(message: CallAction$1, writer?: _m0.Writer): _m0.Writer;
449
+ decode(input: _m0.Reader | Uint8Array, length?: number): CallAction$1;
450
+ fromJSON(object: any): CallAction$1;
451
+ toJSON(message: CallAction$1): unknown;
452
+ create(base?: DeepPartial$1<CallAction$1>): CallAction$1;
453
+ fromPartial(object: DeepPartial$1<CallAction$1>): CallAction$1;
454
+ };
455
+ interface CreateAction$1 {
456
+ /** Address of the sending account. */
457
+ readonly fromAddress?: Address$1 | undefined;
458
+ /** The gas available to execute the call. */
459
+ readonly gas?: bigint | undefined;
460
+ /** Input data provided by the call. */
461
+ readonly init?: Uint8Array | undefined;
462
+ /** Value transferred to the ne account. */
463
+ readonly value?: U256$1 | undefined;
464
+ /** Contract creation method. */
465
+ readonly creationMethod?: CreationMethod$1 | undefined;
466
+ }
467
+ declare const CreateAction$1: {
468
+ encode(message: CreateAction$1, writer?: _m0.Writer): _m0.Writer;
469
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateAction$1;
470
+ fromJSON(object: any): CreateAction$1;
471
+ toJSON(message: CreateAction$1): unknown;
472
+ create(base?: DeepPartial$1<CreateAction$1>): CreateAction$1;
473
+ fromPartial(object: DeepPartial$1<CreateAction$1>): CreateAction$1;
474
+ };
475
+ interface SelfDestructAction$1 {
476
+ /** The destroyed address. */
477
+ readonly address?: Address$1 | undefined;
478
+ /** Balance of the destroyed account before destruct. */
479
+ readonly balance?: U256$1 | undefined;
480
+ /** The heir address. */
481
+ readonly refundAddress?: Address$1 | undefined;
482
+ }
483
+ declare const SelfDestructAction$1: {
484
+ encode(message: SelfDestructAction$1, writer?: _m0.Writer): _m0.Writer;
485
+ decode(input: _m0.Reader | Uint8Array, length?: number): SelfDestructAction$1;
486
+ fromJSON(object: any): SelfDestructAction$1;
487
+ toJSON(message: SelfDestructAction$1): unknown;
488
+ create(base?: DeepPartial$1<SelfDestructAction$1>): SelfDestructAction$1;
489
+ fromPartial(object: DeepPartial$1<SelfDestructAction$1>): SelfDestructAction$1;
490
+ };
491
+ interface RewardAction$1 {
492
+ /** The author's address. */
493
+ readonly author?: Address$1 | undefined;
494
+ /** Reward type. */
495
+ readonly type?: RewardType$1 | undefined;
496
+ /** The reward's value. */
497
+ readonly value?: U256$1 | undefined;
498
+ }
499
+ declare const RewardAction$1: {
500
+ encode(message: RewardAction$1, writer?: _m0.Writer): _m0.Writer;
501
+ decode(input: _m0.Reader | Uint8Array, length?: number): RewardAction$1;
502
+ fromJSON(object: any): RewardAction$1;
503
+ toJSON(message: RewardAction$1): unknown;
504
+ create(base?: DeepPartial$1<RewardAction$1>): RewardAction$1;
505
+ fromPartial(object: DeepPartial$1<RewardAction$1>): RewardAction$1;
506
+ };
507
+ interface CallOutput$1 {
508
+ /** Gas used. */
509
+ readonly gasUsed?: bigint | undefined;
510
+ /** Output data. */
511
+ readonly output?: Uint8Array | undefined;
512
+ }
513
+ declare const CallOutput$1: {
514
+ encode(message: CallOutput$1, writer?: _m0.Writer): _m0.Writer;
515
+ decode(input: _m0.Reader | Uint8Array, length?: number): CallOutput$1;
516
+ fromJSON(object: any): CallOutput$1;
517
+ toJSON(message: CallOutput$1): unknown;
518
+ create(base?: DeepPartial$1<CallOutput$1>): CallOutput$1;
519
+ fromPartial(object: DeepPartial$1<CallOutput$1>): CallOutput$1;
520
+ };
521
+ interface CreateOutput$1 {
522
+ /** Contract address. */
523
+ readonly address?: Address$1 | undefined;
524
+ /** Code */
525
+ readonly code?: Uint8Array | undefined;
526
+ /** Gas used. */
527
+ readonly gasUsed?: bigint | undefined;
528
+ }
529
+ declare const CreateOutput$1: {
530
+ encode(message: CreateOutput$1, writer?: _m0.Writer): _m0.Writer;
531
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateOutput$1;
532
+ fromJSON(object: any): CreateOutput$1;
533
+ toJSON(message: CreateOutput$1): unknown;
534
+ create(base?: DeepPartial$1<CreateOutput$1>): CreateOutput$1;
535
+ fromPartial(object: DeepPartial$1<CreateOutput$1>): CreateOutput$1;
536
+ };
346
537
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
347
538
  type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {
348
539
  readonly $case: string;
@@ -354,10 +545,16 @@ type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<inf
354
545
  [K in keyof T]?: DeepPartial$1<T[K]>;
355
546
  } : Partial<T>;
356
547
 
548
+ declare const data_callTypeFromJSON: typeof callTypeFromJSON;
549
+ declare const data_callTypeToJSON: typeof callTypeToJSON;
550
+ declare const data_creationMethodFromJSON: typeof creationMethodFromJSON;
551
+ declare const data_creationMethodToJSON: typeof creationMethodToJSON;
552
+ declare const data_rewardTypeFromJSON: typeof rewardTypeFromJSON;
553
+ declare const data_rewardTypeToJSON: typeof rewardTypeToJSON;
357
554
  declare const data_transactionStatusFromJSON: typeof transactionStatusFromJSON;
358
555
  declare const data_transactionStatusToJSON: typeof transactionStatusToJSON;
359
556
  declare namespace data {
360
- export { AccessListItem$1 as AccessListItem, Block$1 as Block, BlockHeader$1 as BlockHeader, type DeepPartial$1 as DeepPartial, Log$1 as Log, Signature$1 as Signature, Transaction$1 as Transaction, TransactionReceipt$1 as TransactionReceipt, TransactionStatus$1 as TransactionStatus, Withdrawal$1 as Withdrawal, protobufPackage$1 as protobufPackage, data_transactionStatusFromJSON as transactionStatusFromJSON, data_transactionStatusToJSON as transactionStatusToJSON };
557
+ export { AccessListItem$1 as AccessListItem, Block$1 as Block, BlockHeader$1 as BlockHeader, CallAction$1 as CallAction, CallOutput$1 as CallOutput, CallType$1 as CallType, CreateAction$1 as CreateAction, CreateOutput$1 as CreateOutput, CreationMethod$1 as CreationMethod, type DeepPartial$1 as DeepPartial, Log$1 as Log, RewardAction$1 as RewardAction, RewardType$1 as RewardType, SelfDestructAction$1 as SelfDestructAction, Signature$1 as Signature, Trace$1 as Trace, Transaction$1 as Transaction, TransactionReceipt$1 as TransactionReceipt, TransactionStatus$1 as TransactionStatus, TransactionTrace$1 as TransactionTrace, Withdrawal$1 as Withdrawal, data_callTypeFromJSON as callTypeFromJSON, data_callTypeToJSON as callTypeToJSON, data_creationMethodFromJSON as creationMethodFromJSON, data_creationMethodToJSON as creationMethodToJSON, protobufPackage$1 as protobufPackage, data_rewardTypeFromJSON as rewardTypeFromJSON, data_rewardTypeToJSON as rewardTypeToJSON, data_transactionStatusFromJSON as transactionStatusFromJSON, data_transactionStatusToJSON as transactionStatusToJSON };
361
558
  }
362
559
 
363
560
  declare const protobufPackage = "evm.v2";
@@ -431,6 +628,8 @@ interface TransactionFilter$1 {
431
628
  readonly includeReceipt?: boolean | undefined;
432
629
  /** Flag to request the transaction's logs. Defaults to `false`. */
433
630
  readonly includeLogs?: boolean | undefined;
631
+ /** Flag to request the transaction's trace. Defaults to `false`. */
632
+ readonly includeTransactionTrace?: boolean | undefined;
434
633
  }
435
634
  declare const TransactionFilter$1: {
436
635
  encode(message: TransactionFilter$1, writer?: _m0.Writer): _m0.Writer;
@@ -468,6 +667,8 @@ interface LogFilter$1 {
468
667
  * Defaults to false.
469
668
  */
470
669
  readonly includeSiblings?: boolean | undefined;
670
+ /** Flag to request the log's trace. Defaults to `false`. */
671
+ readonly includeTransactionTrace?: boolean | undefined;
471
672
  }
472
673
  declare const LogFilter$1: {
473
674
  encode(message: LogFilter$1, writer?: _m0.Writer): _m0.Writer;
@@ -519,70 +720,17 @@ declare namespace index {
519
720
  }
520
721
 
521
722
  /** An Ethereum address. */
522
- declare const Address: Schema.transform<Schema.Struct<{
523
- x0: typeof Schema.BigIntFromSelf;
524
- x1: typeof Schema.BigIntFromSelf;
525
- x2: typeof Schema.Number;
526
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
527
- type Address = typeof Address.Type;
528
- /** Wire representation of `B256`. */
529
- declare const B256Proto: Schema.Struct<{
530
- x0: typeof Schema.BigIntFromSelf;
531
- x1: typeof Schema.BigIntFromSelf;
532
- x2: typeof Schema.BigIntFromSelf;
533
- x3: typeof Schema.BigIntFromSelf;
534
- }>;
723
+ declare const Address: Codec<`0x${string}`, Address$1>;
724
+ type Address = CodecType<typeof Address>;
535
725
  /** Data with length 256 bits. */
536
- declare const B256: Schema.transform<Schema.Struct<{
537
- x0: typeof Schema.BigIntFromSelf;
538
- x1: typeof Schema.BigIntFromSelf;
539
- x2: typeof Schema.BigIntFromSelf;
540
- x3: typeof Schema.BigIntFromSelf;
541
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
542
- declare const b256ToProto: (a: `0x${string}`, overrideOptions?: _effect_schema_AST.ParseOptions) => {
543
- readonly x0: bigint;
544
- readonly x1: bigint;
545
- readonly x2: bigint;
546
- readonly x3: bigint;
547
- };
548
- declare const b256FromProto: (i: {
549
- readonly x0: bigint;
550
- readonly x1: bigint;
551
- readonly x2: bigint;
552
- readonly x3: bigint;
553
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => `0x${string}`;
726
+ declare const B256: Codec<`0x${string}`, B256$1>;
727
+ type B256 = CodecType<typeof B256>;
554
728
  /** Data with length 256 bits. */
555
- declare const U256: Schema.transform<Schema.Struct<{
556
- x0: typeof Schema.BigIntFromSelf;
557
- x1: typeof Schema.BigIntFromSelf;
558
- x2: typeof Schema.BigIntFromSelf;
559
- x3: typeof Schema.BigIntFromSelf;
560
- }>, typeof Schema.BigIntFromSelf>;
561
- declare const u256ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
562
- readonly x0: bigint;
563
- readonly x1: bigint;
564
- readonly x2: bigint;
565
- readonly x3: bigint;
566
- };
567
- declare const u256FromProto: (i: {
568
- readonly x0: bigint;
569
- readonly x1: bigint;
570
- readonly x2: bigint;
571
- readonly x3: bigint;
572
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => bigint;
729
+ declare const U256: Codec<bigint, U256$1>;
730
+ type U256 = CodecType<typeof U256>;
573
731
  /** Data with length 128 bits. */
574
- declare const U128: Schema.transform<Schema.Struct<{
575
- x0: typeof Schema.BigIntFromSelf;
576
- x1: typeof Schema.BigIntFromSelf;
577
- }>, typeof Schema.BigIntFromSelf>;
578
- declare const u128ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
579
- readonly x0: bigint;
580
- readonly x1: bigint;
581
- };
582
- declare const u128FromProto: (i: {
583
- readonly x0: bigint;
584
- readonly x1: bigint;
585
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => bigint;
732
+ declare const U128: Codec<bigint, U128$1>;
733
+ type U128 = CodecType<typeof U128>;
586
734
 
587
735
  /** Header options.
588
736
  *
@@ -590,1383 +738,1106 @@ declare const u128FromProto: (i: {
590
738
  * - `on_data`: receive headers only if any other filter matches.
591
739
  * - `on_data_or_on_new_block`: receive headers only if any other filter matches and for "live" blocks.
592
740
  */
593
- declare const HeaderFilter: Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>;
594
- type HeaderFilter = typeof HeaderFilter.Type;
595
- declare const WithdrawalFilter: Schema.Struct<{
596
- id: Schema.optional<typeof Schema.Number>;
597
- validatorIndex: Schema.optional<typeof Schema.Number>;
598
- address: Schema.optional<Schema.transform<Schema.Struct<{
599
- x0: typeof Schema.BigIntFromSelf;
600
- x1: typeof Schema.BigIntFromSelf;
601
- x2: typeof Schema.Number;
602
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
741
+ declare const HeaderFilter: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown", HeaderFilter$1>;
742
+ type HeaderFilter = CodecType<typeof HeaderFilter>;
743
+ declare const WithdrawalFilter: MessageCodec<{
744
+ id: Codec<number | undefined, number | undefined>;
745
+ validatorIndex: Codec<number | undefined, number | undefined>;
746
+ address: Codec<`0x${string}` | undefined, Address$1 | undefined>;
603
747
  }>;
604
- type WithdrawalFilter = typeof WithdrawalFilter.Type;
605
- declare const TransactionStatusFilter: Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>;
606
- type TransactionStatusFilter = typeof TransactionStatusFilter.Type;
607
- declare const Topic: Schema.transform<Schema.Struct<{
608
- value: Schema.UndefinedOr<Schema.Struct<{
609
- x0: typeof Schema.BigIntFromSelf;
610
- x1: typeof Schema.BigIntFromSelf;
611
- x2: typeof Schema.BigIntFromSelf;
612
- x3: typeof Schema.BigIntFromSelf;
613
- }>>;
614
- }>, Schema.NullOr<Schema.transform<Schema.Struct<{
615
- x0: typeof Schema.BigIntFromSelf;
616
- x1: typeof Schema.BigIntFromSelf;
617
- x2: typeof Schema.BigIntFromSelf;
618
- x3: typeof Schema.BigIntFromSelf;
619
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>;
620
- declare const LogFilter: Schema.Struct<{
621
- id: Schema.optional<typeof Schema.Number>;
622
- address: Schema.optional<Schema.transform<Schema.Struct<{
623
- x0: typeof Schema.BigIntFromSelf;
624
- x1: typeof Schema.BigIntFromSelf;
625
- x2: typeof Schema.Number;
626
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
627
- topics: Schema.optional<Schema.Array$<Schema.transform<Schema.Struct<{
628
- value: Schema.UndefinedOr<Schema.Struct<{
629
- x0: typeof Schema.BigIntFromSelf;
630
- x1: typeof Schema.BigIntFromSelf;
631
- x2: typeof Schema.BigIntFromSelf;
632
- x3: typeof Schema.BigIntFromSelf;
633
- }>>;
634
- }>, Schema.NullOr<Schema.transform<Schema.Struct<{
635
- x0: typeof Schema.BigIntFromSelf;
636
- x1: typeof Schema.BigIntFromSelf;
637
- x2: typeof Schema.BigIntFromSelf;
638
- x3: typeof Schema.BigIntFromSelf;
639
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>>>;
640
- strict: Schema.optional<typeof Schema.Boolean>;
641
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
642
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
643
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
748
+ type WithdrawalFilter = CodecType<typeof WithdrawalFilter>;
749
+ declare const TransactionStatusFilter: Codec<"succeeded" | "reverted" | "all" | "unknown", TransactionStatusFilter$1>;
750
+ type TransactionStatusFilter = CodecType<typeof TransactionStatusFilter>;
751
+ declare const Topic: Codec<B256 | null, {
752
+ value?: B256$1 | undefined;
644
753
  }>;
645
- type LogFilter = typeof LogFilter.Type;
646
- declare const TransactionFilter: Schema.Struct<{
647
- id: Schema.optional<typeof Schema.Number>;
648
- from: Schema.optional<Schema.transform<Schema.Struct<{
649
- x0: typeof Schema.BigIntFromSelf;
650
- x1: typeof Schema.BigIntFromSelf;
651
- x2: typeof Schema.Number;
652
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
653
- to: Schema.optional<Schema.transform<Schema.Struct<{
654
- x0: typeof Schema.BigIntFromSelf;
655
- x1: typeof Schema.BigIntFromSelf;
656
- x2: typeof Schema.Number;
657
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
658
- create: Schema.optional<typeof Schema.Boolean>;
659
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
660
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
661
- includeLogs: Schema.optional<typeof Schema.Boolean>;
754
+ type Topic = CodecType<typeof Topic>;
755
+ declare const LogFilter: MessageCodec<{
756
+ id: Codec<number | undefined, number | undefined>;
757
+ address: Codec<`0x${string}` | undefined, Address$1 | undefined>;
758
+ topics: Codec<readonly (`0x${string}` | null)[] | undefined, readonly {
759
+ value?: B256$1 | undefined;
760
+ }[] | undefined>;
761
+ strict: Codec<boolean | undefined, boolean | undefined>;
762
+ transactionStatus: Codec<"unknown" | "succeeded" | "reverted" | "all" | undefined, TransactionStatusFilter$1 | undefined>;
763
+ includeTransaction: Codec<boolean | undefined, boolean | undefined>;
764
+ includeReceipt: Codec<boolean | undefined, boolean | undefined>;
765
+ includeTransactionTrace: Codec<boolean | undefined, boolean | undefined>;
662
766
  }>;
663
- type TransactionFilter = typeof TransactionFilter.Type;
664
- declare const Filter: Schema.Struct<{
665
- header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
666
- withdrawals: Schema.optional<Schema.Array$<Schema.Struct<{
667
- id: Schema.optional<typeof Schema.Number>;
668
- validatorIndex: Schema.optional<typeof Schema.Number>;
669
- address: Schema.optional<Schema.transform<Schema.Struct<{
670
- x0: typeof Schema.BigIntFromSelf;
671
- x1: typeof Schema.BigIntFromSelf;
672
- x2: typeof Schema.Number;
673
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
674
- }>>>;
675
- transactions: Schema.optional<Schema.Array$<Schema.Struct<{
676
- id: Schema.optional<typeof Schema.Number>;
677
- from: Schema.optional<Schema.transform<Schema.Struct<{
678
- x0: typeof Schema.BigIntFromSelf;
679
- x1: typeof Schema.BigIntFromSelf;
680
- x2: typeof Schema.Number;
681
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
682
- to: Schema.optional<Schema.transform<Schema.Struct<{
683
- x0: typeof Schema.BigIntFromSelf;
684
- x1: typeof Schema.BigIntFromSelf;
685
- x2: typeof Schema.Number;
686
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
687
- create: Schema.optional<typeof Schema.Boolean>;
688
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
689
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
690
- includeLogs: Schema.optional<typeof Schema.Boolean>;
691
- }>>>;
692
- logs: Schema.optional<Schema.Array$<Schema.Struct<{
693
- id: Schema.optional<typeof Schema.Number>;
694
- address: Schema.optional<Schema.transform<Schema.Struct<{
695
- x0: typeof Schema.BigIntFromSelf;
696
- x1: typeof Schema.BigIntFromSelf;
697
- x2: typeof Schema.Number;
698
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
699
- topics: Schema.optional<Schema.Array$<Schema.transform<Schema.Struct<{
700
- value: Schema.UndefinedOr<Schema.Struct<{
701
- x0: typeof Schema.BigIntFromSelf;
702
- x1: typeof Schema.BigIntFromSelf;
703
- x2: typeof Schema.BigIntFromSelf;
704
- x3: typeof Schema.BigIntFromSelf;
705
- }>>;
706
- }>, Schema.NullOr<Schema.transform<Schema.Struct<{
707
- x0: typeof Schema.BigIntFromSelf;
708
- x1: typeof Schema.BigIntFromSelf;
709
- x2: typeof Schema.BigIntFromSelf;
710
- x3: typeof Schema.BigIntFromSelf;
711
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>>>;
712
- strict: Schema.optional<typeof Schema.Boolean>;
713
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
714
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
715
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
716
- }>>>;
767
+ type LogFilter = Readonly<CodecType<typeof LogFilter>>;
768
+ declare const TransactionFilter: MessageCodec<{
769
+ id: Codec<number | undefined, number | undefined>;
770
+ from: Codec<`0x${string}` | undefined, Address$1 | undefined>;
771
+ to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
772
+ create: Codec<boolean | undefined, boolean | undefined>;
773
+ transactionStatus: Codec<"unknown" | "succeeded" | "reverted" | "all" | undefined, TransactionStatusFilter$1 | undefined>;
774
+ includeReceipt: Codec<boolean | undefined, boolean | undefined>;
775
+ includeLogs: Codec<boolean | undefined, boolean | undefined>;
776
+ includeTransactionTrace: Codec<boolean | undefined, boolean | undefined>;
717
777
  }>;
718
- type Filter = typeof Filter.Type;
719
- declare const filterToProto: (a: {
720
- readonly header?: "unknown" | "always" | "on_data" | "on_data_or_on_new_block" | undefined;
721
- readonly withdrawals?: readonly {
722
- readonly id?: number | undefined;
723
- readonly validatorIndex?: number | undefined;
724
- readonly address?: `0x${string}` | undefined;
725
- }[] | undefined;
726
- readonly transactions?: readonly {
727
- readonly id?: number | undefined;
728
- readonly from?: `0x${string}` | undefined;
729
- readonly to?: `0x${string}` | undefined;
730
- readonly create?: boolean | undefined;
731
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
732
- readonly includeReceipt?: boolean | undefined;
733
- readonly includeLogs?: boolean | undefined;
734
- }[] | undefined;
735
- readonly logs?: readonly {
736
- readonly id?: number | undefined;
737
- readonly address?: `0x${string}` | undefined;
738
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
739
- readonly includeReceipt?: boolean | undefined;
740
- readonly topics?: readonly (`0x${string}` | null)[] | undefined;
741
- readonly strict?: boolean | undefined;
742
- readonly includeTransaction?: boolean | undefined;
743
- }[] | undefined;
744
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
745
- readonly header?: HeaderFilter$1 | undefined;
746
- readonly withdrawals?: readonly {
747
- readonly id?: number | undefined;
748
- readonly validatorIndex?: number | undefined;
749
- readonly address?: {
750
- readonly x0: bigint;
751
- readonly x1: bigint;
752
- readonly x2: number;
753
- } | undefined;
754
- }[] | undefined;
755
- readonly transactions?: readonly {
756
- readonly id?: number | undefined;
757
- readonly from?: {
758
- readonly x0: bigint;
759
- readonly x1: bigint;
760
- readonly x2: number;
761
- } | undefined;
762
- readonly to?: {
763
- readonly x0: bigint;
764
- readonly x1: bigint;
765
- readonly x2: number;
766
- } | undefined;
767
- readonly create?: boolean | undefined;
768
- readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
769
- readonly includeReceipt?: boolean | undefined;
770
- readonly includeLogs?: boolean | undefined;
771
- }[] | undefined;
772
- readonly logs?: readonly {
773
- readonly id?: number | undefined;
774
- readonly address?: {
775
- readonly x0: bigint;
776
- readonly x1: bigint;
777
- readonly x2: number;
778
- } | undefined;
779
- readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
780
- readonly includeReceipt?: boolean | undefined;
781
- readonly topics?: readonly {
782
- readonly value: {
783
- readonly x0: bigint;
784
- readonly x1: bigint;
785
- readonly x2: bigint;
786
- readonly x3: bigint;
787
- } | undefined;
788
- }[] | undefined;
789
- readonly strict?: boolean | undefined;
790
- readonly includeTransaction?: boolean | undefined;
791
- }[] | undefined;
792
- };
793
- declare const filterFromProto: (i: {
794
- readonly header?: HeaderFilter$1 | undefined;
795
- readonly withdrawals?: readonly {
796
- readonly id?: number | undefined;
797
- readonly validatorIndex?: number | undefined;
798
- readonly address?: {
799
- readonly x0: bigint;
800
- readonly x1: bigint;
801
- readonly x2: number;
802
- } | undefined;
803
- }[] | undefined;
804
- readonly transactions?: readonly {
805
- readonly id?: number | undefined;
806
- readonly from?: {
807
- readonly x0: bigint;
808
- readonly x1: bigint;
809
- readonly x2: number;
810
- } | undefined;
811
- readonly to?: {
812
- readonly x0: bigint;
813
- readonly x1: bigint;
814
- readonly x2: number;
815
- } | undefined;
816
- readonly create?: boolean | undefined;
817
- readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
818
- readonly includeReceipt?: boolean | undefined;
819
- readonly includeLogs?: boolean | undefined;
820
- }[] | undefined;
821
- readonly logs?: readonly {
822
- readonly id?: number | undefined;
823
- readonly address?: {
824
- readonly x0: bigint;
825
- readonly x1: bigint;
826
- readonly x2: number;
827
- } | undefined;
828
- readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
829
- readonly includeReceipt?: boolean | undefined;
830
- readonly topics?: readonly {
831
- readonly value: {
832
- readonly x0: bigint;
833
- readonly x1: bigint;
834
- readonly x2: bigint;
835
- readonly x3: bigint;
836
- } | undefined;
778
+ type TransactionFilter = Readonly<CodecType<typeof TransactionFilter>>;
779
+ declare const Filter: MessageCodec<{
780
+ header: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined, HeaderFilter$1 | undefined>;
781
+ withdrawals: Codec<readonly {
782
+ id?: number | undefined;
783
+ validatorIndex?: number | undefined;
784
+ address?: `0x${string}` | undefined;
785
+ }[] | undefined, readonly {
786
+ id?: number | undefined;
787
+ validatorIndex?: number | undefined;
788
+ address?: Address$1 | undefined;
789
+ }[] | undefined>;
790
+ transactions: Codec<readonly {
791
+ id?: number | undefined;
792
+ from?: `0x${string}` | undefined;
793
+ to?: `0x${string}` | undefined;
794
+ create?: boolean | undefined;
795
+ transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
796
+ includeReceipt?: boolean | undefined;
797
+ includeLogs?: boolean | undefined;
798
+ includeTransactionTrace?: boolean | undefined;
799
+ }[] | undefined, readonly {
800
+ id?: number | undefined;
801
+ from?: Address$1 | undefined;
802
+ to?: Address$1 | undefined;
803
+ create?: boolean | undefined;
804
+ transactionStatus?: TransactionStatusFilter$1 | undefined;
805
+ includeReceipt?: boolean | undefined;
806
+ includeLogs?: boolean | undefined;
807
+ includeTransactionTrace?: boolean | undefined;
808
+ }[] | undefined>;
809
+ logs: Codec<readonly {
810
+ id?: number | undefined;
811
+ address?: `0x${string}` | undefined;
812
+ topics?: readonly (`0x${string}` | null)[] | undefined;
813
+ strict?: boolean | undefined;
814
+ transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
815
+ includeTransaction?: boolean | undefined;
816
+ includeReceipt?: boolean | undefined;
817
+ includeTransactionTrace?: boolean | undefined;
818
+ }[] | undefined, readonly {
819
+ id?: number | undefined;
820
+ address?: Address$1 | undefined;
821
+ topics?: readonly {
822
+ value?: B256$1 | undefined;
837
823
  }[] | undefined;
838
- readonly strict?: boolean | undefined;
839
- readonly includeTransaction?: boolean | undefined;
840
- }[] | undefined;
841
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
842
- readonly header?: "unknown" | "always" | "on_data" | "on_data_or_on_new_block" | undefined;
843
- readonly withdrawals?: readonly {
844
- readonly id?: number | undefined;
845
- readonly validatorIndex?: number | undefined;
846
- readonly address?: `0x${string}` | undefined;
847
- }[] | undefined;
848
- readonly transactions?: readonly {
849
- readonly id?: number | undefined;
850
- readonly from?: `0x${string}` | undefined;
851
- readonly to?: `0x${string}` | undefined;
852
- readonly create?: boolean | undefined;
853
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
854
- readonly includeReceipt?: boolean | undefined;
855
- readonly includeLogs?: boolean | undefined;
856
- }[] | undefined;
857
- readonly logs?: readonly {
858
- readonly id?: number | undefined;
859
- readonly address?: `0x${string}` | undefined;
860
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
861
- readonly includeReceipt?: boolean | undefined;
862
- readonly topics?: readonly (`0x${string}` | null)[] | undefined;
863
- readonly strict?: boolean | undefined;
864
- readonly includeTransaction?: boolean | undefined;
865
- }[] | undefined;
866
- };
867
- declare const FilterFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.Struct<{
868
- header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
869
- withdrawals: Schema.optional<Schema.Array$<Schema.Struct<{
870
- id: Schema.optional<typeof Schema.Number>;
871
- validatorIndex: Schema.optional<typeof Schema.Number>;
872
- address: Schema.optional<Schema.transform<Schema.Struct<{
873
- x0: typeof Schema.BigIntFromSelf;
874
- x1: typeof Schema.BigIntFromSelf;
875
- x2: typeof Schema.Number;
876
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
877
- }>>>;
878
- transactions: Schema.optional<Schema.Array$<Schema.Struct<{
879
- id: Schema.optional<typeof Schema.Number>;
880
- from: Schema.optional<Schema.transform<Schema.Struct<{
881
- x0: typeof Schema.BigIntFromSelf;
882
- x1: typeof Schema.BigIntFromSelf;
883
- x2: typeof Schema.Number;
884
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
885
- to: Schema.optional<Schema.transform<Schema.Struct<{
886
- x0: typeof Schema.BigIntFromSelf;
887
- x1: typeof Schema.BigIntFromSelf;
888
- x2: typeof Schema.Number;
889
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
890
- create: Schema.optional<typeof Schema.Boolean>;
891
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
892
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
893
- includeLogs: Schema.optional<typeof Schema.Boolean>;
894
- }>>>;
895
- logs: Schema.optional<Schema.Array$<Schema.Struct<{
896
- id: Schema.optional<typeof Schema.Number>;
897
- address: Schema.optional<Schema.transform<Schema.Struct<{
898
- x0: typeof Schema.BigIntFromSelf;
899
- x1: typeof Schema.BigIntFromSelf;
900
- x2: typeof Schema.Number;
901
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
902
- topics: Schema.optional<Schema.Array$<Schema.transform<Schema.Struct<{
903
- value: Schema.UndefinedOr<Schema.Struct<{
904
- x0: typeof Schema.BigIntFromSelf;
905
- x1: typeof Schema.BigIntFromSelf;
906
- x2: typeof Schema.BigIntFromSelf;
907
- x3: typeof Schema.BigIntFromSelf;
908
- }>>;
909
- }>, Schema.NullOr<Schema.transform<Schema.Struct<{
910
- x0: typeof Schema.BigIntFromSelf;
911
- x1: typeof Schema.BigIntFromSelf;
912
- x2: typeof Schema.BigIntFromSelf;
913
- x3: typeof Schema.BigIntFromSelf;
914
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>>>;
915
- strict: Schema.optional<typeof Schema.Boolean>;
916
- transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
917
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
918
- includeReceipt: Schema.optional<typeof Schema.Boolean>;
919
- }>>>;
920
- }>>;
921
- declare const filterToBytes: (a: {
922
- readonly header?: "unknown" | "always" | "on_data" | "on_data_or_on_new_block" | undefined;
923
- readonly withdrawals?: readonly {
924
- readonly id?: number | undefined;
925
- readonly validatorIndex?: number | undefined;
926
- readonly address?: `0x${string}` | undefined;
927
- }[] | undefined;
928
- readonly transactions?: readonly {
929
- readonly id?: number | undefined;
930
- readonly from?: `0x${string}` | undefined;
931
- readonly to?: `0x${string}` | undefined;
932
- readonly create?: boolean | undefined;
933
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
934
- readonly includeReceipt?: boolean | undefined;
935
- readonly includeLogs?: boolean | undefined;
936
- }[] | undefined;
937
- readonly logs?: readonly {
938
- readonly id?: number | undefined;
939
- readonly address?: `0x${string}` | undefined;
940
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
941
- readonly includeReceipt?: boolean | undefined;
942
- readonly topics?: readonly (`0x${string}` | null)[] | undefined;
943
- readonly strict?: boolean | undefined;
944
- readonly includeTransaction?: boolean | undefined;
945
- }[] | undefined;
946
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => Uint8Array;
947
- declare const filterFromBytes: (i: Uint8Array, overrideOptions?: _effect_schema_AST.ParseOptions) => {
948
- readonly header?: "unknown" | "always" | "on_data" | "on_data_or_on_new_block" | undefined;
949
- readonly withdrawals?: readonly {
950
- readonly id?: number | undefined;
951
- readonly validatorIndex?: number | undefined;
952
- readonly address?: `0x${string}` | undefined;
953
- }[] | undefined;
954
- readonly transactions?: readonly {
955
- readonly id?: number | undefined;
956
- readonly from?: `0x${string}` | undefined;
957
- readonly to?: `0x${string}` | undefined;
958
- readonly create?: boolean | undefined;
959
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
960
- readonly includeReceipt?: boolean | undefined;
961
- readonly includeLogs?: boolean | undefined;
962
- }[] | undefined;
963
- readonly logs?: readonly {
964
- readonly id?: number | undefined;
965
- readonly address?: `0x${string}` | undefined;
966
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
967
- readonly includeReceipt?: boolean | undefined;
968
- readonly topics?: readonly (`0x${string}` | null)[] | undefined;
969
- readonly strict?: boolean | undefined;
970
- readonly includeTransaction?: boolean | undefined;
971
- }[] | undefined;
972
- };
824
+ strict?: boolean | undefined;
825
+ transactionStatus?: TransactionStatusFilter$1 | undefined;
826
+ includeTransaction?: boolean | undefined;
827
+ includeReceipt?: boolean | undefined;
828
+ includeTransactionTrace?: boolean | undefined;
829
+ }[] | undefined>;
830
+ }>;
831
+ type Filter = Readonly<CodecType<typeof Filter>>;
832
+ declare const FilterFromBytes: Codec<Filter, Uint8Array>;
973
833
  declare function mergeFilter(a: Filter, b: Filter): Filter;
974
834
 
975
- declare const Bloom: Schema.transform<Schema.Struct<{
976
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
977
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
978
- declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
979
- type TransactionStatus = typeof TransactionStatus.Type;
980
- declare const BlockHeader: Schema.Struct<{
981
- blockNumber: typeof Schema.BigIntFromSelf;
982
- blockHash: Schema.transform<Schema.Struct<{
983
- x0: typeof Schema.BigIntFromSelf;
984
- x1: typeof Schema.BigIntFromSelf;
985
- x2: typeof Schema.BigIntFromSelf;
986
- x3: typeof Schema.BigIntFromSelf;
987
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
988
- parentBlockHash: Schema.transform<Schema.Struct<{
989
- x0: typeof Schema.BigIntFromSelf;
990
- x1: typeof Schema.BigIntFromSelf;
991
- x2: typeof Schema.BigIntFromSelf;
992
- x3: typeof Schema.BigIntFromSelf;
993
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
994
- unclesHash: Schema.transform<Schema.Struct<{
995
- x0: typeof Schema.BigIntFromSelf;
996
- x1: typeof Schema.BigIntFromSelf;
997
- x2: typeof Schema.BigIntFromSelf;
998
- x3: typeof Schema.BigIntFromSelf;
999
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1000
- miner: Schema.transform<Schema.Struct<{
1001
- x0: typeof Schema.BigIntFromSelf;
1002
- x1: typeof Schema.BigIntFromSelf;
1003
- x2: typeof Schema.Number;
1004
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1005
- stateRoot: Schema.transform<Schema.Struct<{
1006
- x0: typeof Schema.BigIntFromSelf;
1007
- x1: typeof Schema.BigIntFromSelf;
1008
- x2: typeof Schema.BigIntFromSelf;
1009
- x3: typeof Schema.BigIntFromSelf;
1010
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1011
- transactionsRoot: Schema.transform<Schema.Struct<{
1012
- x0: typeof Schema.BigIntFromSelf;
1013
- x1: typeof Schema.BigIntFromSelf;
1014
- x2: typeof Schema.BigIntFromSelf;
1015
- x3: typeof Schema.BigIntFromSelf;
1016
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1017
- receiptsRoot: Schema.transform<Schema.Struct<{
1018
- x0: typeof Schema.BigIntFromSelf;
1019
- x1: typeof Schema.BigIntFromSelf;
1020
- x2: typeof Schema.BigIntFromSelf;
1021
- x3: typeof Schema.BigIntFromSelf;
1022
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1023
- logsBloom: Schema.transform<Schema.Struct<{
1024
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1025
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1026
- difficulty: Schema.transform<Schema.Struct<{
1027
- x0: typeof Schema.BigIntFromSelf;
1028
- x1: typeof Schema.BigIntFromSelf;
1029
- x2: typeof Schema.BigIntFromSelf;
1030
- x3: typeof Schema.BigIntFromSelf;
1031
- }>, typeof Schema.BigIntFromSelf>;
1032
- gasLimit: Schema.transform<Schema.Struct<{
1033
- x0: typeof Schema.BigIntFromSelf;
1034
- x1: typeof Schema.BigIntFromSelf;
1035
- }>, typeof Schema.BigIntFromSelf>;
1036
- gasUsed: Schema.transform<Schema.Struct<{
1037
- x0: typeof Schema.BigIntFromSelf;
1038
- x1: typeof Schema.BigIntFromSelf;
1039
- }>, typeof Schema.BigIntFromSelf>;
1040
- timestamp: typeof Schema.DateFromSelf;
1041
- extraData: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1042
- mixHash: Schema.optional<Schema.transform<Schema.Struct<{
1043
- x0: typeof Schema.BigIntFromSelf;
1044
- x1: typeof Schema.BigIntFromSelf;
1045
- x2: typeof Schema.BigIntFromSelf;
1046
- x3: typeof Schema.BigIntFromSelf;
1047
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1048
- nonce: Schema.optional<typeof Schema.BigIntFromSelf>;
1049
- baseFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1050
- x0: typeof Schema.BigIntFromSelf;
1051
- x1: typeof Schema.BigIntFromSelf;
1052
- }>, typeof Schema.BigIntFromSelf>>;
1053
- withdrawalsRoot: Schema.optional<Schema.transform<Schema.Struct<{
1054
- x0: typeof Schema.BigIntFromSelf;
1055
- x1: typeof Schema.BigIntFromSelf;
1056
- x2: typeof Schema.BigIntFromSelf;
1057
- x3: typeof Schema.BigIntFromSelf;
1058
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1059
- totalDifficulty: Schema.optional<Schema.transform<Schema.Struct<{
1060
- x0: typeof Schema.BigIntFromSelf;
1061
- x1: typeof Schema.BigIntFromSelf;
1062
- x2: typeof Schema.BigIntFromSelf;
1063
- x3: typeof Schema.BigIntFromSelf;
1064
- }>, typeof Schema.BigIntFromSelf>>;
1065
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1066
- x0: typeof Schema.BigIntFromSelf;
1067
- x1: typeof Schema.BigIntFromSelf;
1068
- }>, typeof Schema.BigIntFromSelf>>;
1069
- excessBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1070
- x0: typeof Schema.BigIntFromSelf;
1071
- x1: typeof Schema.BigIntFromSelf;
1072
- }>, typeof Schema.BigIntFromSelf>>;
1073
- parentBeaconBlockRoot: Schema.optional<Schema.transform<Schema.Struct<{
1074
- x0: typeof Schema.BigIntFromSelf;
1075
- x1: typeof Schema.BigIntFromSelf;
1076
- x2: typeof Schema.BigIntFromSelf;
1077
- x3: typeof Schema.BigIntFromSelf;
1078
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
835
+ declare const Bloom: Codec<`0x${string}` | undefined, {
836
+ value?: Uint8Array | undefined;
837
+ }>;
838
+ type Bloom = CodecType<typeof Bloom>;
839
+ declare const TransactionStatus: Codec<"unknown" | "succeeded" | "reverted", TransactionStatus$1>;
840
+ type TransactionStatus = CodecType<typeof TransactionStatus>;
841
+ declare const BlockHeader: MessageCodec<{
842
+ blockNumber: Codec<bigint, bigint | undefined>;
843
+ blockHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
844
+ parentBlockHash: Codec<`0x${string}`, B256$1 | undefined>;
845
+ unclesHash: Codec<`0x${string}`, B256$1 | undefined>;
846
+ miner: Codec<`0x${string}` | undefined, Address$1 | undefined>;
847
+ stateRoot: Codec<`0x${string}`, B256$1 | undefined>;
848
+ transactionsRoot: Codec<`0x${string}`, B256$1 | undefined>;
849
+ receiptsRoot: Codec<`0x${string}`, B256$1 | undefined>;
850
+ logsBloom: Codec<`0x${string}` | undefined, {
851
+ value?: Uint8Array | undefined;
852
+ } | undefined>;
853
+ difficulty: Codec<bigint, U256$1 | undefined>;
854
+ gasLimit: Codec<bigint, U128$1 | undefined>;
855
+ gasUsed: Codec<bigint, U128$1 | undefined>;
856
+ timestamp: Codec<Date, Date | undefined>;
857
+ extraData: Codec<`0x${string}`, Uint8Array | undefined>;
858
+ mixHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
859
+ nonce: Codec<bigint | undefined, bigint | undefined>;
860
+ baseFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
861
+ withdrawalsRoot: Codec<`0x${string}` | undefined, B256$1 | undefined>;
862
+ totalDifficulty: Codec<bigint | undefined, U256$1 | undefined>;
863
+ blobGasUsed: Codec<bigint | undefined, U128$1 | undefined>;
864
+ excessBlobGas: Codec<bigint | undefined, U128$1 | undefined>;
865
+ parentBeaconBlockRoot: Codec<`0x${string}` | undefined, B256$1 | undefined>;
866
+ requestsHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
867
+ }>;
868
+ type BlockHeader = CodecType<typeof BlockHeader>;
869
+ declare const Withdrawal: MessageCodec<{
870
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
871
+ withdrawalIndex: Codec<number, number | undefined>;
872
+ index: Codec<bigint, bigint | undefined>;
873
+ validatorIndex: Codec<number, number | undefined>;
874
+ address: Codec<`0x${string}`, Address$1 | undefined>;
875
+ amount: Codec<bigint, bigint | undefined>;
876
+ }>;
877
+ type Withdrawal = CodecType<typeof Withdrawal>;
878
+ declare const AccessListItem: MessageCodec<{
879
+ address: Codec<`0x${string}`, Address$1 | undefined>;
880
+ storageKeys: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
881
+ }>;
882
+ type AccessListItem = CodecType<typeof AccessListItem>;
883
+ declare const Signature: MessageCodec<{
884
+ r: Codec<bigint, U256$1 | undefined>;
885
+ s: Codec<bigint, U256$1 | undefined>;
886
+ v: Codec<bigint | undefined, U256$1 | undefined>;
887
+ YParity: Codec<boolean | undefined, boolean | undefined>;
888
+ }>;
889
+ type Signature = CodecType<typeof Signature>;
890
+ declare const Transaction: MessageCodec<{
891
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
892
+ transactionIndex: Codec<number, number | undefined>;
893
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
894
+ nonce: Codec<bigint, bigint | undefined>;
895
+ from: Codec<`0x${string}`, Address$1 | undefined>;
896
+ to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
897
+ value: Codec<bigint, U256$1 | undefined>;
898
+ gasPrice: Codec<bigint | undefined, U128$1 | undefined>;
899
+ gas: Codec<bigint, U128$1 | undefined>;
900
+ maxFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
901
+ maxPriorityFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
902
+ input: Codec<`0x${string}`, Uint8Array | undefined>;
903
+ signature: Codec<{
904
+ r: bigint;
905
+ s: bigint;
906
+ v?: bigint | undefined;
907
+ YParity?: boolean | undefined;
908
+ } | undefined, {
909
+ r?: U256$1 | undefined;
910
+ s?: U256$1 | undefined;
911
+ v?: U256$1 | undefined;
912
+ YParity?: boolean | undefined;
913
+ } | undefined>;
914
+ chainId: Codec<bigint | undefined, bigint | undefined>;
915
+ accessList: Codec<readonly {
916
+ address: `0x${string}`;
917
+ storageKeys: readonly `0x${string}`[];
918
+ }[], readonly {
919
+ address?: Address$1 | undefined;
920
+ storageKeys?: readonly B256$1[] | undefined;
921
+ }[] | undefined>;
922
+ transactionType: Codec<bigint, bigint | undefined>;
923
+ maxFeePerBlobGas: Codec<bigint | undefined, U128$1 | undefined>;
924
+ blobVersionedHashes: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
925
+ transactionStatus: Codec<"unknown", TransactionStatus$1 | undefined> | Codec<"succeeded", TransactionStatus$1 | undefined> | Codec<"reverted", TransactionStatus$1 | undefined>;
926
+ }>;
927
+ type Transaction = CodecType<typeof Transaction>;
928
+ declare const TransactionReceipt: MessageCodec<{
929
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
930
+ transactionIndex: Codec<number, number | undefined>;
931
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
932
+ cumulativeGasUsed: Codec<bigint, U128$1 | undefined>;
933
+ gasUsed: Codec<bigint, U128$1 | undefined>;
934
+ effectiveGasPrice: Codec<bigint, U128$1 | undefined>;
935
+ from: Codec<`0x${string}`, Address$1 | undefined>;
936
+ to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
937
+ contractAddress: Codec<`0x${string}` | undefined, Address$1 | undefined>;
938
+ logsBloom: Codec<`0x${string}`, {
939
+ value?: Uint8Array | undefined;
940
+ } | undefined>;
941
+ transactionType: Codec<bigint, bigint | undefined>;
942
+ blobGasUsed: Codec<bigint | undefined, U128$1 | undefined>;
943
+ blobGasPrice: Codec<bigint | undefined, U128$1 | undefined>;
944
+ transactionStatus: Codec<"unknown", TransactionStatus$1 | undefined> | Codec<"succeeded", TransactionStatus$1 | undefined> | Codec<"reverted", TransactionStatus$1 | undefined>;
945
+ }>;
946
+ type TransactionReceipt = CodecType<typeof TransactionReceipt>;
947
+ declare const Log: MessageCodec<{
948
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
949
+ address: Codec<`0x${string}`, Address$1 | undefined>;
950
+ topics: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
951
+ data: Codec<`0x${string}`, Uint8Array | undefined>;
952
+ logIndex: Codec<number, number | undefined>;
953
+ logIndexInTransaction: Codec<number, number | undefined>;
954
+ transactionIndex: Codec<number, number | undefined>;
955
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
956
+ transactionStatus: Codec<"unknown", TransactionStatus$1 | undefined> | Codec<"succeeded", TransactionStatus$1 | undefined> | Codec<"reverted", TransactionStatus$1 | undefined>;
1079
957
  }>;
1080
- type BlockHeader = typeof BlockHeader.Type;
1081
- declare const Withdrawal: Schema.Struct<{
1082
- filterIds: Schema.Array$<typeof Schema.Number>;
1083
- withdrawalIndex: typeof Schema.Number;
1084
- index: typeof Schema.BigIntFromSelf;
1085
- validatorIndex: typeof Schema.Number;
1086
- address: Schema.transform<Schema.Struct<{
1087
- x0: typeof Schema.BigIntFromSelf;
1088
- x1: typeof Schema.BigIntFromSelf;
1089
- x2: typeof Schema.Number;
1090
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1091
- amount: typeof Schema.BigIntFromSelf;
958
+ type Log = CodecType<typeof Log>;
959
+ declare const CallType: Codec<"unknown" | "call" | "delegateCall" | "callCode" | "staticCall" | "authCall", CallType$1>;
960
+ type CallType = CodecType<typeof CallType>;
961
+ declare const CreationMethod: Codec<"unknown" | "create" | "create2" | "eofCreate", CreationMethod$1>;
962
+ type CreationMethod = CodecType<typeof CreationMethod>;
963
+ declare const CallAction: MessageCodec<{
964
+ fromAddress: Codec<`0x${string}`, Address$1 | undefined>;
965
+ type: Codec<"unknown", CallType$1 | undefined> | Codec<"call", CallType$1 | undefined> | Codec<"delegateCall", CallType$1 | undefined> | Codec<"callCode", CallType$1 | undefined> | Codec<"staticCall", CallType$1 | undefined> | Codec<"authCall", CallType$1 | undefined>;
966
+ gas: Codec<bigint, bigint | undefined>;
967
+ input: Codec<`0x${string}`, Uint8Array | undefined>;
968
+ toAddress: Codec<`0x${string}`, Address$1 | undefined>;
969
+ value: Codec<bigint, U256$1 | undefined>;
1092
970
  }>;
1093
- declare const AccessListItem: Schema.Struct<{
1094
- address: Schema.transform<Schema.Struct<{
1095
- x0: typeof Schema.BigIntFromSelf;
1096
- x1: typeof Schema.BigIntFromSelf;
1097
- x2: typeof Schema.Number;
1098
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1099
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1100
- x0: typeof Schema.BigIntFromSelf;
1101
- x1: typeof Schema.BigIntFromSelf;
1102
- x2: typeof Schema.BigIntFromSelf;
1103
- x3: typeof Schema.BigIntFromSelf;
1104
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
971
+ type CallAction = CodecType<typeof CallAction>;
972
+ declare const CreateAction: MessageCodec<{
973
+ fromAddress: Codec<`0x${string}`, Address$1 | undefined>;
974
+ gas: Codec<bigint, bigint | undefined>;
975
+ init: Codec<`0x${string}`, Uint8Array | undefined>;
976
+ value: Codec<bigint, U256$1 | undefined>;
977
+ creationMethod: Codec<"unknown", CreationMethod$1 | undefined> | Codec<"create", CreationMethod$1 | undefined> | Codec<"create2", CreationMethod$1 | undefined> | Codec<"eofCreate", CreationMethod$1 | undefined>;
1105
978
  }>;
1106
- declare const Signature: Schema.Struct<{
1107
- r: Schema.transform<Schema.Struct<{
1108
- x0: typeof Schema.BigIntFromSelf;
1109
- x1: typeof Schema.BigIntFromSelf;
1110
- x2: typeof Schema.BigIntFromSelf;
1111
- x3: typeof Schema.BigIntFromSelf;
1112
- }>, typeof Schema.BigIntFromSelf>;
1113
- s: Schema.transform<Schema.Struct<{
1114
- x0: typeof Schema.BigIntFromSelf;
1115
- x1: typeof Schema.BigIntFromSelf;
1116
- x2: typeof Schema.BigIntFromSelf;
1117
- x3: typeof Schema.BigIntFromSelf;
1118
- }>, typeof Schema.BigIntFromSelf>;
1119
- v: Schema.transform<Schema.Struct<{
1120
- x0: typeof Schema.BigIntFromSelf;
1121
- x1: typeof Schema.BigIntFromSelf;
1122
- x2: typeof Schema.BigIntFromSelf;
1123
- x3: typeof Schema.BigIntFromSelf;
1124
- }>, typeof Schema.BigIntFromSelf>;
1125
- YParity: Schema.optional<typeof Schema.Boolean>;
979
+ type CreateAction = CodecType<typeof CreateAction>;
980
+ declare const SelfDestructAction: MessageCodec<{
981
+ address: Codec<`0x${string}`, Address$1 | undefined>;
982
+ balance: Codec<bigint, U256$1 | undefined>;
983
+ refundAddress: Codec<`0x${string}`, Address$1 | undefined>;
1126
984
  }>;
1127
- declare const Transaction: Schema.Struct<{
1128
- filterIds: Schema.Array$<typeof Schema.Number>;
1129
- transactionIndex: typeof Schema.Number;
1130
- transactionHash: Schema.transform<Schema.Struct<{
1131
- x0: typeof Schema.BigIntFromSelf;
1132
- x1: typeof Schema.BigIntFromSelf;
1133
- x2: typeof Schema.BigIntFromSelf;
1134
- x3: typeof Schema.BigIntFromSelf;
1135
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1136
- nonce: typeof Schema.BigIntFromSelf;
1137
- from: Schema.transform<Schema.Struct<{
1138
- x0: typeof Schema.BigIntFromSelf;
1139
- x1: typeof Schema.BigIntFromSelf;
1140
- x2: typeof Schema.Number;
1141
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1142
- to: Schema.optional<Schema.transform<Schema.Struct<{
1143
- x0: typeof Schema.BigIntFromSelf;
1144
- x1: typeof Schema.BigIntFromSelf;
1145
- x2: typeof Schema.Number;
1146
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1147
- value: Schema.transform<Schema.Struct<{
1148
- x0: typeof Schema.BigIntFromSelf;
1149
- x1: typeof Schema.BigIntFromSelf;
1150
- x2: typeof Schema.BigIntFromSelf;
1151
- x3: typeof Schema.BigIntFromSelf;
1152
- }>, typeof Schema.BigIntFromSelf>;
1153
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1154
- x0: typeof Schema.BigIntFromSelf;
1155
- x1: typeof Schema.BigIntFromSelf;
1156
- }>, typeof Schema.BigIntFromSelf>>;
1157
- gas: Schema.transform<Schema.Struct<{
1158
- x0: typeof Schema.BigIntFromSelf;
1159
- x1: typeof Schema.BigIntFromSelf;
1160
- }>, typeof Schema.BigIntFromSelf>;
1161
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1162
- x0: typeof Schema.BigIntFromSelf;
1163
- x1: typeof Schema.BigIntFromSelf;
1164
- }>, typeof Schema.BigIntFromSelf>>;
1165
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1166
- x0: typeof Schema.BigIntFromSelf;
1167
- x1: typeof Schema.BigIntFromSelf;
1168
- }>, typeof Schema.BigIntFromSelf>>;
1169
- input: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1170
- signature: Schema.optional<Schema.Struct<{
1171
- r: Schema.transform<Schema.Struct<{
1172
- x0: typeof Schema.BigIntFromSelf;
1173
- x1: typeof Schema.BigIntFromSelf;
1174
- x2: typeof Schema.BigIntFromSelf;
1175
- x3: typeof Schema.BigIntFromSelf;
1176
- }>, typeof Schema.BigIntFromSelf>;
1177
- s: Schema.transform<Schema.Struct<{
1178
- x0: typeof Schema.BigIntFromSelf;
1179
- x1: typeof Schema.BigIntFromSelf;
1180
- x2: typeof Schema.BigIntFromSelf;
1181
- x3: typeof Schema.BigIntFromSelf;
1182
- }>, typeof Schema.BigIntFromSelf>;
1183
- v: Schema.transform<Schema.Struct<{
1184
- x0: typeof Schema.BigIntFromSelf;
1185
- x1: typeof Schema.BigIntFromSelf;
1186
- x2: typeof Schema.BigIntFromSelf;
1187
- x3: typeof Schema.BigIntFromSelf;
1188
- }>, typeof Schema.BigIntFromSelf>;
1189
- YParity: Schema.optional<typeof Schema.Boolean>;
1190
- }>>;
1191
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
1192
- accessList: Schema.Array$<Schema.Struct<{
1193
- address: Schema.transform<Schema.Struct<{
1194
- x0: typeof Schema.BigIntFromSelf;
1195
- x1: typeof Schema.BigIntFromSelf;
1196
- x2: typeof Schema.Number;
1197
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1198
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1199
- x0: typeof Schema.BigIntFromSelf;
1200
- x1: typeof Schema.BigIntFromSelf;
1201
- x2: typeof Schema.BigIntFromSelf;
1202
- x3: typeof Schema.BigIntFromSelf;
1203
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1204
- }>>;
1205
- transactionType: typeof Schema.BigIntFromSelf;
1206
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1207
- x0: typeof Schema.BigIntFromSelf;
1208
- x1: typeof Schema.BigIntFromSelf;
1209
- }>, typeof Schema.BigIntFromSelf>>;
1210
- blobVersionedHashes: Schema.Array$<Schema.transform<Schema.Struct<{
1211
- x0: typeof Schema.BigIntFromSelf;
1212
- x1: typeof Schema.BigIntFromSelf;
1213
- x2: typeof Schema.BigIntFromSelf;
1214
- x3: typeof Schema.BigIntFromSelf;
1215
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1216
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
985
+ type SelfDestructAction = CodecType<typeof SelfDestructAction>;
986
+ declare const RewardType: Codec<"unknown" | "block" | "uncle", RewardType$1>;
987
+ type RewardType = CodecType<typeof RewardType>;
988
+ declare const RewardAction: MessageCodec<{
989
+ author: Codec<`0x${string}`, Address$1 | undefined>;
990
+ type: Codec<"unknown", RewardType$1 | undefined> | Codec<"block", RewardType$1 | undefined> | Codec<"uncle", RewardType$1 | undefined>;
991
+ value: Codec<bigint, U256$1 | undefined>;
1217
992
  }>;
1218
- declare const TransactionReceipt: Schema.Struct<{
1219
- filterIds: Schema.Array$<typeof Schema.Number>;
1220
- transactionIndex: typeof Schema.Number;
1221
- transactionHash: Schema.transform<Schema.Struct<{
1222
- x0: typeof Schema.BigIntFromSelf;
1223
- x1: typeof Schema.BigIntFromSelf;
1224
- x2: typeof Schema.BigIntFromSelf;
1225
- x3: typeof Schema.BigIntFromSelf;
1226
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1227
- cumulativeGasUsed: Schema.transform<Schema.Struct<{
1228
- x0: typeof Schema.BigIntFromSelf;
1229
- x1: typeof Schema.BigIntFromSelf;
1230
- }>, typeof Schema.BigIntFromSelf>;
1231
- gasUsed: Schema.transform<Schema.Struct<{
1232
- x0: typeof Schema.BigIntFromSelf;
1233
- x1: typeof Schema.BigIntFromSelf;
1234
- }>, typeof Schema.BigIntFromSelf>;
1235
- effectiveGasPrice: Schema.transform<Schema.Struct<{
1236
- x0: typeof Schema.BigIntFromSelf;
1237
- x1: typeof Schema.BigIntFromSelf;
1238
- }>, typeof Schema.BigIntFromSelf>;
1239
- from: Schema.transform<Schema.Struct<{
1240
- x0: typeof Schema.BigIntFromSelf;
1241
- x1: typeof Schema.BigIntFromSelf;
1242
- x2: typeof Schema.Number;
1243
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1244
- to: Schema.optional<Schema.transform<Schema.Struct<{
1245
- x0: typeof Schema.BigIntFromSelf;
1246
- x1: typeof Schema.BigIntFromSelf;
1247
- x2: typeof Schema.Number;
1248
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1249
- contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1250
- x0: typeof Schema.BigIntFromSelf;
1251
- x1: typeof Schema.BigIntFromSelf;
1252
- x2: typeof Schema.Number;
1253
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1254
- logsBloom: Schema.transform<Schema.Struct<{
1255
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1256
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1257
- transactionType: typeof Schema.BigIntFromSelf;
1258
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1259
- x0: typeof Schema.BigIntFromSelf;
1260
- x1: typeof Schema.BigIntFromSelf;
1261
- }>, typeof Schema.BigIntFromSelf>>;
1262
- blobGasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1263
- x0: typeof Schema.BigIntFromSelf;
1264
- x1: typeof Schema.BigIntFromSelf;
1265
- }>, typeof Schema.BigIntFromSelf>>;
1266
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
993
+ type RewardAction = CodecType<typeof RewardAction>;
994
+ declare const CallOutput: MessageCodec<{
995
+ gasUsed: Codec<bigint, bigint | undefined>;
996
+ output: Codec<`0x${string}`, Uint8Array | undefined>;
1267
997
  }>;
1268
- declare const Log: Schema.Struct<{
1269
- filterIds: Schema.Array$<typeof Schema.Number>;
1270
- address: Schema.transform<Schema.Struct<{
1271
- x0: typeof Schema.BigIntFromSelf;
1272
- x1: typeof Schema.BigIntFromSelf;
1273
- x2: typeof Schema.Number;
1274
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1275
- topics: Schema.Array$<Schema.transform<Schema.Struct<{
1276
- x0: typeof Schema.BigIntFromSelf;
1277
- x1: typeof Schema.BigIntFromSelf;
1278
- x2: typeof Schema.BigIntFromSelf;
1279
- x3: typeof Schema.BigIntFromSelf;
1280
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1281
- data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1282
- logIndex: typeof Schema.Number;
1283
- logIndexInTransaction: typeof Schema.Number;
1284
- transactionIndex: typeof Schema.Number;
1285
- transactionHash: Schema.transform<Schema.Struct<{
1286
- x0: typeof Schema.BigIntFromSelf;
1287
- x1: typeof Schema.BigIntFromSelf;
1288
- x2: typeof Schema.BigIntFromSelf;
1289
- x3: typeof Schema.BigIntFromSelf;
1290
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1291
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
998
+ type CallOutput = CodecType<typeof CallOutput>;
999
+ declare const CreateOutput: MessageCodec<{
1000
+ address: Codec<`0x${string}`, Address$1 | undefined>;
1001
+ code: Codec<`0x${string}`, Uint8Array | undefined>;
1002
+ gasUsed: Codec<bigint, bigint | undefined>;
1292
1003
  }>;
1293
- type Log = typeof Log.Type;
1294
- declare const Block: Schema.Struct<{
1295
- header: Schema.Struct<{
1296
- blockNumber: typeof Schema.BigIntFromSelf;
1297
- blockHash: Schema.transform<Schema.Struct<{
1298
- x0: typeof Schema.BigIntFromSelf;
1299
- x1: typeof Schema.BigIntFromSelf;
1300
- x2: typeof Schema.BigIntFromSelf;
1301
- x3: typeof Schema.BigIntFromSelf;
1302
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1303
- parentBlockHash: Schema.transform<Schema.Struct<{
1304
- x0: typeof Schema.BigIntFromSelf;
1305
- x1: typeof Schema.BigIntFromSelf;
1306
- x2: typeof Schema.BigIntFromSelf;
1307
- x3: typeof Schema.BigIntFromSelf;
1308
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1309
- unclesHash: Schema.transform<Schema.Struct<{
1310
- x0: typeof Schema.BigIntFromSelf;
1311
- x1: typeof Schema.BigIntFromSelf;
1312
- x2: typeof Schema.BigIntFromSelf;
1313
- x3: typeof Schema.BigIntFromSelf;
1314
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1315
- miner: Schema.transform<Schema.Struct<{
1316
- x0: typeof Schema.BigIntFromSelf;
1317
- x1: typeof Schema.BigIntFromSelf;
1318
- x2: typeof Schema.Number;
1319
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1320
- stateRoot: Schema.transform<Schema.Struct<{
1321
- x0: typeof Schema.BigIntFromSelf;
1322
- x1: typeof Schema.BigIntFromSelf;
1323
- x2: typeof Schema.BigIntFromSelf;
1324
- x3: typeof Schema.BigIntFromSelf;
1325
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1326
- transactionsRoot: Schema.transform<Schema.Struct<{
1327
- x0: typeof Schema.BigIntFromSelf;
1328
- x1: typeof Schema.BigIntFromSelf;
1329
- x2: typeof Schema.BigIntFromSelf;
1330
- x3: typeof Schema.BigIntFromSelf;
1331
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1332
- receiptsRoot: Schema.transform<Schema.Struct<{
1333
- x0: typeof Schema.BigIntFromSelf;
1334
- x1: typeof Schema.BigIntFromSelf;
1335
- x2: typeof Schema.BigIntFromSelf;
1336
- x3: typeof Schema.BigIntFromSelf;
1337
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1338
- logsBloom: Schema.transform<Schema.Struct<{
1339
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1340
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1341
- difficulty: Schema.transform<Schema.Struct<{
1342
- x0: typeof Schema.BigIntFromSelf;
1343
- x1: typeof Schema.BigIntFromSelf;
1344
- x2: typeof Schema.BigIntFromSelf;
1345
- x3: typeof Schema.BigIntFromSelf;
1346
- }>, typeof Schema.BigIntFromSelf>;
1347
- gasLimit: Schema.transform<Schema.Struct<{
1348
- x0: typeof Schema.BigIntFromSelf;
1349
- x1: typeof Schema.BigIntFromSelf;
1350
- }>, typeof Schema.BigIntFromSelf>;
1351
- gasUsed: Schema.transform<Schema.Struct<{
1352
- x0: typeof Schema.BigIntFromSelf;
1353
- x1: typeof Schema.BigIntFromSelf;
1354
- }>, typeof Schema.BigIntFromSelf>;
1355
- timestamp: typeof Schema.DateFromSelf;
1356
- extraData: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1357
- mixHash: Schema.optional<Schema.transform<Schema.Struct<{
1358
- x0: typeof Schema.BigIntFromSelf;
1359
- x1: typeof Schema.BigIntFromSelf;
1360
- x2: typeof Schema.BigIntFromSelf;
1361
- x3: typeof Schema.BigIntFromSelf;
1362
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1363
- nonce: Schema.optional<typeof Schema.BigIntFromSelf>;
1364
- baseFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1365
- x0: typeof Schema.BigIntFromSelf;
1366
- x1: typeof Schema.BigIntFromSelf;
1367
- }>, typeof Schema.BigIntFromSelf>>;
1368
- withdrawalsRoot: Schema.optional<Schema.transform<Schema.Struct<{
1369
- x0: typeof Schema.BigIntFromSelf;
1370
- x1: typeof Schema.BigIntFromSelf;
1371
- x2: typeof Schema.BigIntFromSelf;
1372
- x3: typeof Schema.BigIntFromSelf;
1373
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1374
- totalDifficulty: Schema.optional<Schema.transform<Schema.Struct<{
1375
- x0: typeof Schema.BigIntFromSelf;
1376
- x1: typeof Schema.BigIntFromSelf;
1377
- x2: typeof Schema.BigIntFromSelf;
1378
- x3: typeof Schema.BigIntFromSelf;
1379
- }>, typeof Schema.BigIntFromSelf>>;
1380
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1381
- x0: typeof Schema.BigIntFromSelf;
1382
- x1: typeof Schema.BigIntFromSelf;
1383
- }>, typeof Schema.BigIntFromSelf>>;
1384
- excessBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1385
- x0: typeof Schema.BigIntFromSelf;
1386
- x1: typeof Schema.BigIntFromSelf;
1387
- }>, typeof Schema.BigIntFromSelf>>;
1388
- parentBeaconBlockRoot: Schema.optional<Schema.transform<Schema.Struct<{
1389
- x0: typeof Schema.BigIntFromSelf;
1390
- x1: typeof Schema.BigIntFromSelf;
1391
- x2: typeof Schema.BigIntFromSelf;
1392
- x3: typeof Schema.BigIntFromSelf;
1393
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1394
- }>;
1395
- withdrawals: Schema.Array$<Schema.Struct<{
1396
- filterIds: Schema.Array$<typeof Schema.Number>;
1397
- withdrawalIndex: typeof Schema.Number;
1398
- index: typeof Schema.BigIntFromSelf;
1399
- validatorIndex: typeof Schema.Number;
1400
- address: Schema.transform<Schema.Struct<{
1401
- x0: typeof Schema.BigIntFromSelf;
1402
- x1: typeof Schema.BigIntFromSelf;
1403
- x2: typeof Schema.Number;
1404
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1405
- amount: typeof Schema.BigIntFromSelf;
1406
- }>>;
1407
- transactions: Schema.Array$<Schema.Struct<{
1408
- filterIds: Schema.Array$<typeof Schema.Number>;
1409
- transactionIndex: typeof Schema.Number;
1410
- transactionHash: Schema.transform<Schema.Struct<{
1411
- x0: typeof Schema.BigIntFromSelf;
1412
- x1: typeof Schema.BigIntFromSelf;
1413
- x2: typeof Schema.BigIntFromSelf;
1414
- x3: typeof Schema.BigIntFromSelf;
1415
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1416
- nonce: typeof Schema.BigIntFromSelf;
1417
- from: Schema.transform<Schema.Struct<{
1418
- x0: typeof Schema.BigIntFromSelf;
1419
- x1: typeof Schema.BigIntFromSelf;
1420
- x2: typeof Schema.Number;
1421
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1422
- to: Schema.optional<Schema.transform<Schema.Struct<{
1423
- x0: typeof Schema.BigIntFromSelf;
1424
- x1: typeof Schema.BigIntFromSelf;
1425
- x2: typeof Schema.Number;
1426
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1427
- value: Schema.transform<Schema.Struct<{
1428
- x0: typeof Schema.BigIntFromSelf;
1429
- x1: typeof Schema.BigIntFromSelf;
1430
- x2: typeof Schema.BigIntFromSelf;
1431
- x3: typeof Schema.BigIntFromSelf;
1432
- }>, typeof Schema.BigIntFromSelf>;
1433
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1434
- x0: typeof Schema.BigIntFromSelf;
1435
- x1: typeof Schema.BigIntFromSelf;
1436
- }>, typeof Schema.BigIntFromSelf>>;
1437
- gas: Schema.transform<Schema.Struct<{
1438
- x0: typeof Schema.BigIntFromSelf;
1439
- x1: typeof Schema.BigIntFromSelf;
1440
- }>, typeof Schema.BigIntFromSelf>;
1441
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1442
- x0: typeof Schema.BigIntFromSelf;
1443
- x1: typeof Schema.BigIntFromSelf;
1444
- }>, typeof Schema.BigIntFromSelf>>;
1445
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1446
- x0: typeof Schema.BigIntFromSelf;
1447
- x1: typeof Schema.BigIntFromSelf;
1448
- }>, typeof Schema.BigIntFromSelf>>;
1449
- input: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1450
- signature: Schema.optional<Schema.Struct<{
1451
- r: Schema.transform<Schema.Struct<{
1452
- x0: typeof Schema.BigIntFromSelf;
1453
- x1: typeof Schema.BigIntFromSelf;
1454
- x2: typeof Schema.BigIntFromSelf;
1455
- x3: typeof Schema.BigIntFromSelf;
1456
- }>, typeof Schema.BigIntFromSelf>;
1457
- s: Schema.transform<Schema.Struct<{
1458
- x0: typeof Schema.BigIntFromSelf;
1459
- x1: typeof Schema.BigIntFromSelf;
1460
- x2: typeof Schema.BigIntFromSelf;
1461
- x3: typeof Schema.BigIntFromSelf;
1462
- }>, typeof Schema.BigIntFromSelf>;
1463
- v: Schema.transform<Schema.Struct<{
1464
- x0: typeof Schema.BigIntFromSelf;
1465
- x1: typeof Schema.BigIntFromSelf;
1466
- x2: typeof Schema.BigIntFromSelf;
1467
- x3: typeof Schema.BigIntFromSelf;
1468
- }>, typeof Schema.BigIntFromSelf>;
1469
- YParity: Schema.optional<typeof Schema.Boolean>;
1470
- }>>;
1471
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
1472
- accessList: Schema.Array$<Schema.Struct<{
1473
- address: Schema.transform<Schema.Struct<{
1474
- x0: typeof Schema.BigIntFromSelf;
1475
- x1: typeof Schema.BigIntFromSelf;
1476
- x2: typeof Schema.Number;
1477
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1478
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1479
- x0: typeof Schema.BigIntFromSelf;
1480
- x1: typeof Schema.BigIntFromSelf;
1481
- x2: typeof Schema.BigIntFromSelf;
1482
- x3: typeof Schema.BigIntFromSelf;
1483
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1484
- }>>;
1485
- transactionType: typeof Schema.BigIntFromSelf;
1486
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1487
- x0: typeof Schema.BigIntFromSelf;
1488
- x1: typeof Schema.BigIntFromSelf;
1489
- }>, typeof Schema.BigIntFromSelf>>;
1490
- blobVersionedHashes: Schema.Array$<Schema.transform<Schema.Struct<{
1491
- x0: typeof Schema.BigIntFromSelf;
1492
- x1: typeof Schema.BigIntFromSelf;
1493
- x2: typeof Schema.BigIntFromSelf;
1494
- x3: typeof Schema.BigIntFromSelf;
1495
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1496
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1497
- }>>;
1498
- receipts: Schema.Array$<Schema.Struct<{
1499
- filterIds: Schema.Array$<typeof Schema.Number>;
1500
- transactionIndex: typeof Schema.Number;
1501
- transactionHash: Schema.transform<Schema.Struct<{
1502
- x0: typeof Schema.BigIntFromSelf;
1503
- x1: typeof Schema.BigIntFromSelf;
1504
- x2: typeof Schema.BigIntFromSelf;
1505
- x3: typeof Schema.BigIntFromSelf;
1506
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1507
- cumulativeGasUsed: Schema.transform<Schema.Struct<{
1508
- x0: typeof Schema.BigIntFromSelf;
1509
- x1: typeof Schema.BigIntFromSelf;
1510
- }>, typeof Schema.BigIntFromSelf>;
1511
- gasUsed: Schema.transform<Schema.Struct<{
1512
- x0: typeof Schema.BigIntFromSelf;
1513
- x1: typeof Schema.BigIntFromSelf;
1514
- }>, typeof Schema.BigIntFromSelf>;
1515
- effectiveGasPrice: Schema.transform<Schema.Struct<{
1516
- x0: typeof Schema.BigIntFromSelf;
1517
- x1: typeof Schema.BigIntFromSelf;
1518
- }>, typeof Schema.BigIntFromSelf>;
1519
- from: Schema.transform<Schema.Struct<{
1520
- x0: typeof Schema.BigIntFromSelf;
1521
- x1: typeof Schema.BigIntFromSelf;
1522
- x2: typeof Schema.Number;
1523
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1524
- to: Schema.optional<Schema.transform<Schema.Struct<{
1525
- x0: typeof Schema.BigIntFromSelf;
1526
- x1: typeof Schema.BigIntFromSelf;
1527
- x2: typeof Schema.Number;
1528
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1529
- contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1530
- x0: typeof Schema.BigIntFromSelf;
1531
- x1: typeof Schema.BigIntFromSelf;
1532
- x2: typeof Schema.Number;
1533
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1534
- logsBloom: Schema.transform<Schema.Struct<{
1535
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1536
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1537
- transactionType: typeof Schema.BigIntFromSelf;
1538
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1539
- x0: typeof Schema.BigIntFromSelf;
1540
- x1: typeof Schema.BigIntFromSelf;
1541
- }>, typeof Schema.BigIntFromSelf>>;
1542
- blobGasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1543
- x0: typeof Schema.BigIntFromSelf;
1544
- x1: typeof Schema.BigIntFromSelf;
1545
- }>, typeof Schema.BigIntFromSelf>>;
1546
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1547
- }>>;
1548
- logs: Schema.Array$<Schema.Struct<{
1549
- filterIds: Schema.Array$<typeof Schema.Number>;
1550
- address: Schema.transform<Schema.Struct<{
1551
- x0: typeof Schema.BigIntFromSelf;
1552
- x1: typeof Schema.BigIntFromSelf;
1553
- x2: typeof Schema.Number;
1554
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1555
- topics: Schema.Array$<Schema.transform<Schema.Struct<{
1556
- x0: typeof Schema.BigIntFromSelf;
1557
- x1: typeof Schema.BigIntFromSelf;
1558
- x2: typeof Schema.BigIntFromSelf;
1559
- x3: typeof Schema.BigIntFromSelf;
1560
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1561
- data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1562
- logIndex: typeof Schema.Number;
1563
- logIndexInTransaction: typeof Schema.Number;
1564
- transactionIndex: typeof Schema.Number;
1565
- transactionHash: Schema.transform<Schema.Struct<{
1566
- x0: typeof Schema.BigIntFromSelf;
1567
- x1: typeof Schema.BigIntFromSelf;
1568
- x2: typeof Schema.BigIntFromSelf;
1569
- x3: typeof Schema.BigIntFromSelf;
1570
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1571
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1572
- }>>;
1004
+ type CreateOutput = CodecType<typeof CreateOutput>;
1005
+ declare const Trace: MessageCodec<{
1006
+ action: Codec<{
1007
+ _tag: "create";
1008
+ } & {
1009
+ create: {
1010
+ fromAddress: `0x${string}`;
1011
+ gas: bigint;
1012
+ init: `0x${string}`;
1013
+ value: bigint;
1014
+ creationMethod: "unknown" | "create" | "create2" | "eofCreate";
1015
+ };
1016
+ }, (({
1017
+ $case: "create";
1018
+ } & {
1019
+ create: {
1020
+ fromAddress?: Address$1 | undefined;
1021
+ gas?: bigint | undefined;
1022
+ init?: Uint8Array | undefined;
1023
+ value?: U256$1 | undefined;
1024
+ creationMethod?: CreationMethod$1 | undefined;
1025
+ };
1026
+ }) | ({
1027
+ $case: "call";
1028
+ } & {
1029
+ call: {
1030
+ fromAddress?: Address$1 | undefined;
1031
+ type?: CallType$1 | undefined;
1032
+ gas?: bigint | undefined;
1033
+ input?: Uint8Array | undefined;
1034
+ toAddress?: Address$1 | undefined;
1035
+ value?: U256$1 | undefined;
1036
+ };
1037
+ }) | ({
1038
+ $case: "selfDestruct";
1039
+ } & {
1040
+ selfDestruct: {
1041
+ address?: Address$1 | undefined;
1042
+ balance?: U256$1 | undefined;
1043
+ refundAddress?: Address$1 | undefined;
1044
+ };
1045
+ }) | ({
1046
+ $case: "reward";
1047
+ } & {
1048
+ reward: {
1049
+ author?: Address$1 | undefined;
1050
+ type?: RewardType$1 | undefined;
1051
+ value?: U256$1 | undefined;
1052
+ };
1053
+ })) | undefined> | Codec<{
1054
+ _tag: "call";
1055
+ } & {
1056
+ call: {
1057
+ fromAddress: `0x${string}`;
1058
+ type: "unknown" | "call" | "delegateCall" | "callCode" | "staticCall" | "authCall";
1059
+ gas: bigint;
1060
+ input: `0x${string}`;
1061
+ toAddress: `0x${string}`;
1062
+ value: bigint;
1063
+ };
1064
+ }, (({
1065
+ $case: "create";
1066
+ } & {
1067
+ create: {
1068
+ fromAddress?: Address$1 | undefined;
1069
+ gas?: bigint | undefined;
1070
+ init?: Uint8Array | undefined;
1071
+ value?: U256$1 | undefined;
1072
+ creationMethod?: CreationMethod$1 | undefined;
1073
+ };
1074
+ }) | ({
1075
+ $case: "call";
1076
+ } & {
1077
+ call: {
1078
+ fromAddress?: Address$1 | undefined;
1079
+ type?: CallType$1 | undefined;
1080
+ gas?: bigint | undefined;
1081
+ input?: Uint8Array | undefined;
1082
+ toAddress?: Address$1 | undefined;
1083
+ value?: U256$1 | undefined;
1084
+ };
1085
+ }) | ({
1086
+ $case: "selfDestruct";
1087
+ } & {
1088
+ selfDestruct: {
1089
+ address?: Address$1 | undefined;
1090
+ balance?: U256$1 | undefined;
1091
+ refundAddress?: Address$1 | undefined;
1092
+ };
1093
+ }) | ({
1094
+ $case: "reward";
1095
+ } & {
1096
+ reward: {
1097
+ author?: Address$1 | undefined;
1098
+ type?: RewardType$1 | undefined;
1099
+ value?: U256$1 | undefined;
1100
+ };
1101
+ })) | undefined> | Codec<{
1102
+ _tag: "selfDestruct";
1103
+ } & {
1104
+ selfDestruct: {
1105
+ address: `0x${string}`;
1106
+ balance: bigint;
1107
+ refundAddress: `0x${string}`;
1108
+ };
1109
+ }, (({
1110
+ $case: "create";
1111
+ } & {
1112
+ create: {
1113
+ fromAddress?: Address$1 | undefined;
1114
+ gas?: bigint | undefined;
1115
+ init?: Uint8Array | undefined;
1116
+ value?: U256$1 | undefined;
1117
+ creationMethod?: CreationMethod$1 | undefined;
1118
+ };
1119
+ }) | ({
1120
+ $case: "call";
1121
+ } & {
1122
+ call: {
1123
+ fromAddress?: Address$1 | undefined;
1124
+ type?: CallType$1 | undefined;
1125
+ gas?: bigint | undefined;
1126
+ input?: Uint8Array | undefined;
1127
+ toAddress?: Address$1 | undefined;
1128
+ value?: U256$1 | undefined;
1129
+ };
1130
+ }) | ({
1131
+ $case: "selfDestruct";
1132
+ } & {
1133
+ selfDestruct: {
1134
+ address?: Address$1 | undefined;
1135
+ balance?: U256$1 | undefined;
1136
+ refundAddress?: Address$1 | undefined;
1137
+ };
1138
+ }) | ({
1139
+ $case: "reward";
1140
+ } & {
1141
+ reward: {
1142
+ author?: Address$1 | undefined;
1143
+ type?: RewardType$1 | undefined;
1144
+ value?: U256$1 | undefined;
1145
+ };
1146
+ })) | undefined> | Codec<{
1147
+ _tag: "reward";
1148
+ } & {
1149
+ reward: {
1150
+ author: `0x${string}`;
1151
+ type: "unknown" | "block" | "uncle";
1152
+ value: bigint;
1153
+ };
1154
+ }, (({
1155
+ $case: "create";
1156
+ } & {
1157
+ create: {
1158
+ fromAddress?: Address$1 | undefined;
1159
+ gas?: bigint | undefined;
1160
+ init?: Uint8Array | undefined;
1161
+ value?: U256$1 | undefined;
1162
+ creationMethod?: CreationMethod$1 | undefined;
1163
+ };
1164
+ }) | ({
1165
+ $case: "call";
1166
+ } & {
1167
+ call: {
1168
+ fromAddress?: Address$1 | undefined;
1169
+ type?: CallType$1 | undefined;
1170
+ gas?: bigint | undefined;
1171
+ input?: Uint8Array | undefined;
1172
+ toAddress?: Address$1 | undefined;
1173
+ value?: U256$1 | undefined;
1174
+ };
1175
+ }) | ({
1176
+ $case: "selfDestruct";
1177
+ } & {
1178
+ selfDestruct: {
1179
+ address?: Address$1 | undefined;
1180
+ balance?: U256$1 | undefined;
1181
+ refundAddress?: Address$1 | undefined;
1182
+ };
1183
+ }) | ({
1184
+ $case: "reward";
1185
+ } & {
1186
+ reward: {
1187
+ author?: Address$1 | undefined;
1188
+ type?: RewardType$1 | undefined;
1189
+ value?: U256$1 | undefined;
1190
+ };
1191
+ })) | undefined>;
1192
+ error: Codec<string | undefined, string | undefined>;
1193
+ output: Codec<(({
1194
+ _tag: "callOutput";
1195
+ } & {
1196
+ callOutput: {
1197
+ gasUsed: bigint;
1198
+ output: `0x${string}`;
1199
+ };
1200
+ }) | ({
1201
+ _tag: "createOutput";
1202
+ } & {
1203
+ createOutput: {
1204
+ address: `0x${string}`;
1205
+ code: `0x${string}`;
1206
+ gasUsed: bigint;
1207
+ };
1208
+ })) | undefined, (({
1209
+ $case: "callOutput";
1210
+ } & {
1211
+ callOutput: {
1212
+ gasUsed?: bigint | undefined;
1213
+ output?: Uint8Array | undefined;
1214
+ };
1215
+ }) | ({
1216
+ $case: "createOutput";
1217
+ } & {
1218
+ createOutput: {
1219
+ address?: Address$1 | undefined;
1220
+ code?: Uint8Array | undefined;
1221
+ gasUsed?: bigint | undefined;
1222
+ };
1223
+ })) | undefined>;
1224
+ subtraces: Codec<number, number | undefined>;
1225
+ traceAddress: Codec<readonly number[], readonly number[] | undefined>;
1573
1226
  }>;
1574
- type Block = typeof Block.Type;
1575
- declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.NullOr<Schema.Struct<{
1576
- header: Schema.Struct<{
1577
- blockNumber: typeof Schema.BigIntFromSelf;
1578
- blockHash: Schema.transform<Schema.Struct<{
1579
- x0: typeof Schema.BigIntFromSelf;
1580
- x1: typeof Schema.BigIntFromSelf;
1581
- x2: typeof Schema.BigIntFromSelf;
1582
- x3: typeof Schema.BigIntFromSelf;
1583
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1584
- parentBlockHash: Schema.transform<Schema.Struct<{
1585
- x0: typeof Schema.BigIntFromSelf;
1586
- x1: typeof Schema.BigIntFromSelf;
1587
- x2: typeof Schema.BigIntFromSelf;
1588
- x3: typeof Schema.BigIntFromSelf;
1589
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1590
- unclesHash: Schema.transform<Schema.Struct<{
1591
- x0: typeof Schema.BigIntFromSelf;
1592
- x1: typeof Schema.BigIntFromSelf;
1593
- x2: typeof Schema.BigIntFromSelf;
1594
- x3: typeof Schema.BigIntFromSelf;
1595
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1596
- miner: Schema.transform<Schema.Struct<{
1597
- x0: typeof Schema.BigIntFromSelf;
1598
- x1: typeof Schema.BigIntFromSelf;
1599
- x2: typeof Schema.Number;
1600
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1601
- stateRoot: Schema.transform<Schema.Struct<{
1602
- x0: typeof Schema.BigIntFromSelf;
1603
- x1: typeof Schema.BigIntFromSelf;
1604
- x2: typeof Schema.BigIntFromSelf;
1605
- x3: typeof Schema.BigIntFromSelf;
1606
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1607
- transactionsRoot: Schema.transform<Schema.Struct<{
1608
- x0: typeof Schema.BigIntFromSelf;
1609
- x1: typeof Schema.BigIntFromSelf;
1610
- x2: typeof Schema.BigIntFromSelf;
1611
- x3: typeof Schema.BigIntFromSelf;
1612
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1613
- receiptsRoot: Schema.transform<Schema.Struct<{
1614
- x0: typeof Schema.BigIntFromSelf;
1615
- x1: typeof Schema.BigIntFromSelf;
1616
- x2: typeof Schema.BigIntFromSelf;
1617
- x3: typeof Schema.BigIntFromSelf;
1618
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1619
- logsBloom: Schema.transform<Schema.Struct<{
1620
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1621
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1622
- difficulty: Schema.transform<Schema.Struct<{
1623
- x0: typeof Schema.BigIntFromSelf;
1624
- x1: typeof Schema.BigIntFromSelf;
1625
- x2: typeof Schema.BigIntFromSelf;
1626
- x3: typeof Schema.BigIntFromSelf;
1627
- }>, typeof Schema.BigIntFromSelf>;
1628
- gasLimit: Schema.transform<Schema.Struct<{
1629
- x0: typeof Schema.BigIntFromSelf;
1630
- x1: typeof Schema.BigIntFromSelf;
1631
- }>, typeof Schema.BigIntFromSelf>;
1632
- gasUsed: Schema.transform<Schema.Struct<{
1633
- x0: typeof Schema.BigIntFromSelf;
1634
- x1: typeof Schema.BigIntFromSelf;
1635
- }>, typeof Schema.BigIntFromSelf>;
1636
- timestamp: typeof Schema.DateFromSelf;
1637
- extraData: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1638
- mixHash: Schema.optional<Schema.transform<Schema.Struct<{
1639
- x0: typeof Schema.BigIntFromSelf;
1640
- x1: typeof Schema.BigIntFromSelf;
1641
- x2: typeof Schema.BigIntFromSelf;
1642
- x3: typeof Schema.BigIntFromSelf;
1643
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1644
- nonce: Schema.optional<typeof Schema.BigIntFromSelf>;
1645
- baseFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1646
- x0: typeof Schema.BigIntFromSelf;
1647
- x1: typeof Schema.BigIntFromSelf;
1648
- }>, typeof Schema.BigIntFromSelf>>;
1649
- withdrawalsRoot: Schema.optional<Schema.transform<Schema.Struct<{
1650
- x0: typeof Schema.BigIntFromSelf;
1651
- x1: typeof Schema.BigIntFromSelf;
1652
- x2: typeof Schema.BigIntFromSelf;
1653
- x3: typeof Schema.BigIntFromSelf;
1654
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1655
- totalDifficulty: Schema.optional<Schema.transform<Schema.Struct<{
1656
- x0: typeof Schema.BigIntFromSelf;
1657
- x1: typeof Schema.BigIntFromSelf;
1658
- x2: typeof Schema.BigIntFromSelf;
1659
- x3: typeof Schema.BigIntFromSelf;
1660
- }>, typeof Schema.BigIntFromSelf>>;
1661
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1662
- x0: typeof Schema.BigIntFromSelf;
1663
- x1: typeof Schema.BigIntFromSelf;
1664
- }>, typeof Schema.BigIntFromSelf>>;
1665
- excessBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1666
- x0: typeof Schema.BigIntFromSelf;
1667
- x1: typeof Schema.BigIntFromSelf;
1668
- }>, typeof Schema.BigIntFromSelf>>;
1669
- parentBeaconBlockRoot: Schema.optional<Schema.transform<Schema.Struct<{
1670
- x0: typeof Schema.BigIntFromSelf;
1671
- x1: typeof Schema.BigIntFromSelf;
1672
- x2: typeof Schema.BigIntFromSelf;
1673
- x3: typeof Schema.BigIntFromSelf;
1674
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1675
- }>;
1676
- withdrawals: Schema.Array$<Schema.Struct<{
1677
- filterIds: Schema.Array$<typeof Schema.Number>;
1678
- withdrawalIndex: typeof Schema.Number;
1679
- index: typeof Schema.BigIntFromSelf;
1680
- validatorIndex: typeof Schema.Number;
1681
- address: Schema.transform<Schema.Struct<{
1682
- x0: typeof Schema.BigIntFromSelf;
1683
- x1: typeof Schema.BigIntFromSelf;
1684
- x2: typeof Schema.Number;
1685
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1686
- amount: typeof Schema.BigIntFromSelf;
1687
- }>>;
1688
- transactions: Schema.Array$<Schema.Struct<{
1689
- filterIds: Schema.Array$<typeof Schema.Number>;
1690
- transactionIndex: typeof Schema.Number;
1691
- transactionHash: Schema.transform<Schema.Struct<{
1692
- x0: typeof Schema.BigIntFromSelf;
1693
- x1: typeof Schema.BigIntFromSelf;
1694
- x2: typeof Schema.BigIntFromSelf;
1695
- x3: typeof Schema.BigIntFromSelf;
1696
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1697
- nonce: typeof Schema.BigIntFromSelf;
1698
- from: Schema.transform<Schema.Struct<{
1699
- x0: typeof Schema.BigIntFromSelf;
1700
- x1: typeof Schema.BigIntFromSelf;
1701
- x2: typeof Schema.Number;
1702
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1703
- to: Schema.optional<Schema.transform<Schema.Struct<{
1704
- x0: typeof Schema.BigIntFromSelf;
1705
- x1: typeof Schema.BigIntFromSelf;
1706
- x2: typeof Schema.Number;
1707
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1708
- value: Schema.transform<Schema.Struct<{
1709
- x0: typeof Schema.BigIntFromSelf;
1710
- x1: typeof Schema.BigIntFromSelf;
1711
- x2: typeof Schema.BigIntFromSelf;
1712
- x3: typeof Schema.BigIntFromSelf;
1713
- }>, typeof Schema.BigIntFromSelf>;
1714
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1715
- x0: typeof Schema.BigIntFromSelf;
1716
- x1: typeof Schema.BigIntFromSelf;
1717
- }>, typeof Schema.BigIntFromSelf>>;
1718
- gas: Schema.transform<Schema.Struct<{
1719
- x0: typeof Schema.BigIntFromSelf;
1720
- x1: typeof Schema.BigIntFromSelf;
1721
- }>, typeof Schema.BigIntFromSelf>;
1722
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1723
- x0: typeof Schema.BigIntFromSelf;
1724
- x1: typeof Schema.BigIntFromSelf;
1725
- }>, typeof Schema.BigIntFromSelf>>;
1726
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1727
- x0: typeof Schema.BigIntFromSelf;
1728
- x1: typeof Schema.BigIntFromSelf;
1729
- }>, typeof Schema.BigIntFromSelf>>;
1730
- input: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1731
- signature: Schema.optional<Schema.Struct<{
1732
- r: Schema.transform<Schema.Struct<{
1733
- x0: typeof Schema.BigIntFromSelf;
1734
- x1: typeof Schema.BigIntFromSelf;
1735
- x2: typeof Schema.BigIntFromSelf;
1736
- x3: typeof Schema.BigIntFromSelf;
1737
- }>, typeof Schema.BigIntFromSelf>;
1738
- s: Schema.transform<Schema.Struct<{
1739
- x0: typeof Schema.BigIntFromSelf;
1740
- x1: typeof Schema.BigIntFromSelf;
1741
- x2: typeof Schema.BigIntFromSelf;
1742
- x3: typeof Schema.BigIntFromSelf;
1743
- }>, typeof Schema.BigIntFromSelf>;
1744
- v: Schema.transform<Schema.Struct<{
1745
- x0: typeof Schema.BigIntFromSelf;
1746
- x1: typeof Schema.BigIntFromSelf;
1747
- x2: typeof Schema.BigIntFromSelf;
1748
- x3: typeof Schema.BigIntFromSelf;
1749
- }>, typeof Schema.BigIntFromSelf>;
1750
- YParity: Schema.optional<typeof Schema.Boolean>;
1751
- }>>;
1752
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
1753
- accessList: Schema.Array$<Schema.Struct<{
1754
- address: Schema.transform<Schema.Struct<{
1755
- x0: typeof Schema.BigIntFromSelf;
1756
- x1: typeof Schema.BigIntFromSelf;
1757
- x2: typeof Schema.Number;
1758
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1759
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1760
- x0: typeof Schema.BigIntFromSelf;
1761
- x1: typeof Schema.BigIntFromSelf;
1762
- x2: typeof Schema.BigIntFromSelf;
1763
- x3: typeof Schema.BigIntFromSelf;
1764
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1765
- }>>;
1766
- transactionType: typeof Schema.BigIntFromSelf;
1767
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1768
- x0: typeof Schema.BigIntFromSelf;
1769
- x1: typeof Schema.BigIntFromSelf;
1770
- }>, typeof Schema.BigIntFromSelf>>;
1771
- blobVersionedHashes: Schema.Array$<Schema.transform<Schema.Struct<{
1772
- x0: typeof Schema.BigIntFromSelf;
1773
- x1: typeof Schema.BigIntFromSelf;
1774
- x2: typeof Schema.BigIntFromSelf;
1775
- x3: typeof Schema.BigIntFromSelf;
1776
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1777
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1778
- }>>;
1779
- receipts: Schema.Array$<Schema.Struct<{
1780
- filterIds: Schema.Array$<typeof Schema.Number>;
1781
- transactionIndex: typeof Schema.Number;
1782
- transactionHash: Schema.transform<Schema.Struct<{
1783
- x0: typeof Schema.BigIntFromSelf;
1784
- x1: typeof Schema.BigIntFromSelf;
1785
- x2: typeof Schema.BigIntFromSelf;
1786
- x3: typeof Schema.BigIntFromSelf;
1787
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1788
- cumulativeGasUsed: Schema.transform<Schema.Struct<{
1789
- x0: typeof Schema.BigIntFromSelf;
1790
- x1: typeof Schema.BigIntFromSelf;
1791
- }>, typeof Schema.BigIntFromSelf>;
1792
- gasUsed: Schema.transform<Schema.Struct<{
1793
- x0: typeof Schema.BigIntFromSelf;
1794
- x1: typeof Schema.BigIntFromSelf;
1795
- }>, typeof Schema.BigIntFromSelf>;
1796
- effectiveGasPrice: Schema.transform<Schema.Struct<{
1797
- x0: typeof Schema.BigIntFromSelf;
1798
- x1: typeof Schema.BigIntFromSelf;
1799
- }>, typeof Schema.BigIntFromSelf>;
1800
- from: Schema.transform<Schema.Struct<{
1801
- x0: typeof Schema.BigIntFromSelf;
1802
- x1: typeof Schema.BigIntFromSelf;
1803
- x2: typeof Schema.Number;
1804
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1805
- to: Schema.optional<Schema.transform<Schema.Struct<{
1806
- x0: typeof Schema.BigIntFromSelf;
1807
- x1: typeof Schema.BigIntFromSelf;
1808
- x2: typeof Schema.Number;
1809
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1810
- contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1811
- x0: typeof Schema.BigIntFromSelf;
1812
- x1: typeof Schema.BigIntFromSelf;
1813
- x2: typeof Schema.Number;
1814
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1815
- logsBloom: Schema.transform<Schema.Struct<{
1816
- value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1817
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1818
- transactionType: typeof Schema.BigIntFromSelf;
1819
- blobGasUsed: Schema.optional<Schema.transform<Schema.Struct<{
1820
- x0: typeof Schema.BigIntFromSelf;
1821
- x1: typeof Schema.BigIntFromSelf;
1822
- }>, typeof Schema.BigIntFromSelf>>;
1823
- blobGasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1824
- x0: typeof Schema.BigIntFromSelf;
1825
- x1: typeof Schema.BigIntFromSelf;
1826
- }>, typeof Schema.BigIntFromSelf>>;
1827
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1828
- }>>;
1829
- logs: Schema.Array$<Schema.Struct<{
1830
- filterIds: Schema.Array$<typeof Schema.Number>;
1831
- address: Schema.transform<Schema.Struct<{
1832
- x0: typeof Schema.BigIntFromSelf;
1833
- x1: typeof Schema.BigIntFromSelf;
1834
- x2: typeof Schema.Number;
1835
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1836
- topics: Schema.Array$<Schema.transform<Schema.Struct<{
1837
- x0: typeof Schema.BigIntFromSelf;
1838
- x1: typeof Schema.BigIntFromSelf;
1839
- x2: typeof Schema.BigIntFromSelf;
1840
- x3: typeof Schema.BigIntFromSelf;
1841
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1842
- data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1843
- logIndex: typeof Schema.Number;
1844
- logIndexInTransaction: typeof Schema.Number;
1845
- transactionIndex: typeof Schema.Number;
1846
- transactionHash: Schema.transform<Schema.Struct<{
1847
- x0: typeof Schema.BigIntFromSelf;
1848
- x1: typeof Schema.BigIntFromSelf;
1849
- x2: typeof Schema.BigIntFromSelf;
1850
- x3: typeof Schema.BigIntFromSelf;
1851
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1852
- transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1853
- }>>;
1854
- }>>>;
1227
+ type Trace = CodecType<typeof Trace>;
1228
+ declare const TransactionTrace: MessageCodec<{
1229
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
1230
+ transactionIndex: Codec<number, number | undefined>;
1231
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
1232
+ traces: Codec<readonly {
1233
+ action: ({
1234
+ _tag: "create";
1235
+ } & {
1236
+ create: {
1237
+ fromAddress: `0x${string}`;
1238
+ gas: bigint;
1239
+ init: `0x${string}`;
1240
+ value: bigint;
1241
+ creationMethod: "unknown" | "create" | "create2" | "eofCreate";
1242
+ };
1243
+ }) | ({
1244
+ _tag: "call";
1245
+ } & {
1246
+ call: {
1247
+ fromAddress: `0x${string}`;
1248
+ type: "unknown" | "call" | "delegateCall" | "callCode" | "staticCall" | "authCall";
1249
+ gas: bigint;
1250
+ input: `0x${string}`;
1251
+ toAddress: `0x${string}`;
1252
+ value: bigint;
1253
+ };
1254
+ }) | ({
1255
+ _tag: "selfDestruct";
1256
+ } & {
1257
+ selfDestruct: {
1258
+ address: `0x${string}`;
1259
+ balance: bigint;
1260
+ refundAddress: `0x${string}`;
1261
+ };
1262
+ }) | ({
1263
+ _tag: "reward";
1264
+ } & {
1265
+ reward: {
1266
+ author: `0x${string}`;
1267
+ type: "unknown" | "block" | "uncle";
1268
+ value: bigint;
1269
+ };
1270
+ });
1271
+ error?: string | undefined;
1272
+ output?: (({
1273
+ _tag: "callOutput";
1274
+ } & {
1275
+ callOutput: {
1276
+ gasUsed: bigint;
1277
+ output: `0x${string}`;
1278
+ };
1279
+ }) | ({
1280
+ _tag: "createOutput";
1281
+ } & {
1282
+ createOutput: {
1283
+ address: `0x${string}`;
1284
+ code: `0x${string}`;
1285
+ gasUsed: bigint;
1286
+ };
1287
+ })) | undefined;
1288
+ subtraces: number;
1289
+ traceAddress: readonly number[];
1290
+ }[], readonly {
1291
+ action?: (({
1292
+ $case: "create";
1293
+ } & {
1294
+ create: {
1295
+ fromAddress?: Address$1 | undefined;
1296
+ gas?: bigint | undefined;
1297
+ init?: Uint8Array | undefined;
1298
+ value?: U256$1 | undefined;
1299
+ creationMethod?: CreationMethod$1 | undefined;
1300
+ };
1301
+ }) | ({
1302
+ $case: "call";
1303
+ } & {
1304
+ call: {
1305
+ fromAddress?: Address$1 | undefined;
1306
+ type?: CallType$1 | undefined;
1307
+ gas?: bigint | undefined;
1308
+ input?: Uint8Array | undefined;
1309
+ toAddress?: Address$1 | undefined;
1310
+ value?: U256$1 | undefined;
1311
+ };
1312
+ }) | ({
1313
+ $case: "selfDestruct";
1314
+ } & {
1315
+ selfDestruct: {
1316
+ address?: Address$1 | undefined;
1317
+ balance?: U256$1 | undefined;
1318
+ refundAddress?: Address$1 | undefined;
1319
+ };
1320
+ }) | ({
1321
+ $case: "reward";
1322
+ } & {
1323
+ reward: {
1324
+ author?: Address$1 | undefined;
1325
+ type?: RewardType$1 | undefined;
1326
+ value?: U256$1 | undefined;
1327
+ };
1328
+ })) | undefined;
1329
+ error?: string | undefined;
1330
+ output?: (({
1331
+ $case: "callOutput";
1332
+ } & {
1333
+ callOutput: {
1334
+ gasUsed?: bigint | undefined;
1335
+ output?: Uint8Array | undefined;
1336
+ };
1337
+ }) | ({
1338
+ $case: "createOutput";
1339
+ } & {
1340
+ createOutput: {
1341
+ address?: Address$1 | undefined;
1342
+ code?: Uint8Array | undefined;
1343
+ gasUsed?: bigint | undefined;
1344
+ };
1345
+ })) | undefined;
1346
+ subtraces?: number | undefined;
1347
+ traceAddress?: readonly number[] | undefined;
1348
+ }[] | undefined>;
1349
+ }>;
1350
+ type TransactionTrace = CodecType<typeof TransactionTrace>;
1351
+ declare const Block: MessageCodec<{
1352
+ header: Codec<{
1353
+ blockNumber: bigint;
1354
+ blockHash?: `0x${string}` | undefined;
1355
+ parentBlockHash: `0x${string}`;
1356
+ unclesHash: `0x${string}`;
1357
+ miner?: `0x${string}` | undefined;
1358
+ stateRoot: `0x${string}`;
1359
+ transactionsRoot: `0x${string}`;
1360
+ receiptsRoot: `0x${string}`;
1361
+ logsBloom?: `0x${string}` | undefined;
1362
+ difficulty: bigint;
1363
+ gasLimit: bigint;
1364
+ gasUsed: bigint;
1365
+ timestamp: Date;
1366
+ extraData: `0x${string}`;
1367
+ mixHash?: `0x${string}` | undefined;
1368
+ nonce?: bigint | undefined;
1369
+ baseFeePerGas?: bigint | undefined;
1370
+ withdrawalsRoot?: `0x${string}` | undefined;
1371
+ totalDifficulty?: bigint | undefined;
1372
+ blobGasUsed?: bigint | undefined;
1373
+ excessBlobGas?: bigint | undefined;
1374
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
1375
+ requestsHash?: `0x${string}` | undefined;
1376
+ }, {
1377
+ blockNumber?: bigint | undefined;
1378
+ blockHash?: B256$1 | undefined;
1379
+ parentBlockHash?: B256$1 | undefined;
1380
+ unclesHash?: B256$1 | undefined;
1381
+ miner?: Address$1 | undefined;
1382
+ stateRoot?: B256$1 | undefined;
1383
+ transactionsRoot?: B256$1 | undefined;
1384
+ receiptsRoot?: B256$1 | undefined;
1385
+ logsBloom?: {
1386
+ value?: Uint8Array | undefined;
1387
+ } | undefined;
1388
+ difficulty?: U256$1 | undefined;
1389
+ gasLimit?: U128$1 | undefined;
1390
+ gasUsed?: U128$1 | undefined;
1391
+ timestamp?: Date | undefined;
1392
+ extraData?: Uint8Array | undefined;
1393
+ mixHash?: B256$1 | undefined;
1394
+ nonce?: bigint | undefined;
1395
+ baseFeePerGas?: U128$1 | undefined;
1396
+ withdrawalsRoot?: B256$1 | undefined;
1397
+ totalDifficulty?: U256$1 | undefined;
1398
+ blobGasUsed?: U128$1 | undefined;
1399
+ excessBlobGas?: U128$1 | undefined;
1400
+ parentBeaconBlockRoot?: B256$1 | undefined;
1401
+ requestsHash?: B256$1 | undefined;
1402
+ } | undefined>;
1403
+ withdrawals: Codec<readonly {
1404
+ filterIds: readonly number[];
1405
+ withdrawalIndex: number;
1406
+ index: bigint;
1407
+ validatorIndex: number;
1408
+ address: `0x${string}`;
1409
+ amount: bigint;
1410
+ }[], readonly {
1411
+ filterIds?: readonly number[] | undefined;
1412
+ withdrawalIndex?: number | undefined;
1413
+ index?: bigint | undefined;
1414
+ validatorIndex?: number | undefined;
1415
+ address?: Address$1 | undefined;
1416
+ amount?: bigint | undefined;
1417
+ }[] | undefined>;
1418
+ transactions: Codec<readonly {
1419
+ filterIds: readonly number[];
1420
+ transactionIndex: number;
1421
+ transactionHash: `0x${string}`;
1422
+ nonce: bigint;
1423
+ from: `0x${string}`;
1424
+ to?: `0x${string}` | undefined;
1425
+ value: bigint;
1426
+ gasPrice?: bigint | undefined;
1427
+ gas: bigint;
1428
+ maxFeePerGas?: bigint | undefined;
1429
+ maxPriorityFeePerGas?: bigint | undefined;
1430
+ input: `0x${string}`;
1431
+ signature?: {
1432
+ r: bigint;
1433
+ s: bigint;
1434
+ v?: bigint | undefined;
1435
+ YParity?: boolean | undefined;
1436
+ } | undefined;
1437
+ chainId?: bigint | undefined;
1438
+ accessList: readonly {
1439
+ address: `0x${string}`;
1440
+ storageKeys: readonly `0x${string}`[];
1441
+ }[];
1442
+ transactionType: bigint;
1443
+ maxFeePerBlobGas?: bigint | undefined;
1444
+ blobVersionedHashes: readonly `0x${string}`[];
1445
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1446
+ }[], readonly {
1447
+ filterIds?: readonly number[] | undefined;
1448
+ transactionIndex?: number | undefined;
1449
+ transactionHash?: B256$1 | undefined;
1450
+ nonce?: bigint | undefined;
1451
+ from?: Address$1 | undefined;
1452
+ to?: Address$1 | undefined;
1453
+ value?: U256$1 | undefined;
1454
+ gasPrice?: U128$1 | undefined;
1455
+ gas?: U128$1 | undefined;
1456
+ maxFeePerGas?: U128$1 | undefined;
1457
+ maxPriorityFeePerGas?: U128$1 | undefined;
1458
+ input?: Uint8Array | undefined;
1459
+ signature?: {
1460
+ r?: U256$1 | undefined;
1461
+ s?: U256$1 | undefined;
1462
+ v?: U256$1 | undefined;
1463
+ YParity?: boolean | undefined;
1464
+ } | undefined;
1465
+ chainId?: bigint | undefined;
1466
+ accessList?: readonly {
1467
+ address?: Address$1 | undefined;
1468
+ storageKeys?: readonly B256$1[] | undefined;
1469
+ }[] | undefined;
1470
+ transactionType?: bigint | undefined;
1471
+ maxFeePerBlobGas?: U128$1 | undefined;
1472
+ blobVersionedHashes?: readonly B256$1[] | undefined;
1473
+ transactionStatus?: TransactionStatus$1 | undefined;
1474
+ }[] | undefined>;
1475
+ receipts: Codec<readonly {
1476
+ filterIds: readonly number[];
1477
+ transactionIndex: number;
1478
+ transactionHash: `0x${string}`;
1479
+ cumulativeGasUsed: bigint;
1480
+ gasUsed: bigint;
1481
+ effectiveGasPrice: bigint;
1482
+ from: `0x${string}`;
1483
+ to?: `0x${string}` | undefined;
1484
+ contractAddress?: `0x${string}` | undefined;
1485
+ logsBloom: `0x${string}`;
1486
+ transactionType: bigint;
1487
+ blobGasUsed?: bigint | undefined;
1488
+ blobGasPrice?: bigint | undefined;
1489
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1490
+ }[], readonly {
1491
+ filterIds?: readonly number[] | undefined;
1492
+ transactionIndex?: number | undefined;
1493
+ transactionHash?: B256$1 | undefined;
1494
+ cumulativeGasUsed?: U128$1 | undefined;
1495
+ gasUsed?: U128$1 | undefined;
1496
+ effectiveGasPrice?: U128$1 | undefined;
1497
+ from?: Address$1 | undefined;
1498
+ to?: Address$1 | undefined;
1499
+ contractAddress?: Address$1 | undefined;
1500
+ logsBloom?: {
1501
+ value?: Uint8Array | undefined;
1502
+ } | undefined;
1503
+ transactionType?: bigint | undefined;
1504
+ blobGasUsed?: U128$1 | undefined;
1505
+ blobGasPrice?: U128$1 | undefined;
1506
+ transactionStatus?: TransactionStatus$1 | undefined;
1507
+ }[] | undefined>;
1508
+ logs: Codec<readonly {
1509
+ filterIds: readonly number[];
1510
+ address: `0x${string}`;
1511
+ topics: readonly `0x${string}`[];
1512
+ data: `0x${string}`;
1513
+ logIndex: number;
1514
+ logIndexInTransaction: number;
1515
+ transactionIndex: number;
1516
+ transactionHash: `0x${string}`;
1517
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1518
+ }[], readonly {
1519
+ filterIds?: readonly number[] | undefined;
1520
+ address?: Address$1 | undefined;
1521
+ topics?: readonly B256$1[] | undefined;
1522
+ data?: Uint8Array | undefined;
1523
+ logIndex?: number | undefined;
1524
+ logIndexInTransaction?: number | undefined;
1525
+ transactionIndex?: number | undefined;
1526
+ transactionHash?: B256$1 | undefined;
1527
+ transactionStatus?: TransactionStatus$1 | undefined;
1528
+ }[] | undefined>;
1529
+ traces: Codec<readonly {
1530
+ filterIds: readonly number[];
1531
+ transactionIndex: number;
1532
+ transactionHash: `0x${string}`;
1533
+ traces: readonly {
1534
+ action: ({
1535
+ _tag: "create";
1536
+ } & {
1537
+ create: {
1538
+ fromAddress: `0x${string}`;
1539
+ gas: bigint;
1540
+ init: `0x${string}`;
1541
+ value: bigint;
1542
+ creationMethod: "unknown" | "create" | "create2" | "eofCreate";
1543
+ };
1544
+ }) | ({
1545
+ _tag: "call";
1546
+ } & {
1547
+ call: {
1548
+ fromAddress: `0x${string}`;
1549
+ type: "unknown" | "call" | "delegateCall" | "callCode" | "staticCall" | "authCall";
1550
+ gas: bigint;
1551
+ input: `0x${string}`;
1552
+ toAddress: `0x${string}`;
1553
+ value: bigint;
1554
+ };
1555
+ }) | ({
1556
+ _tag: "selfDestruct";
1557
+ } & {
1558
+ selfDestruct: {
1559
+ address: `0x${string}`;
1560
+ balance: bigint;
1561
+ refundAddress: `0x${string}`;
1562
+ };
1563
+ }) | ({
1564
+ _tag: "reward";
1565
+ } & {
1566
+ reward: {
1567
+ author: `0x${string}`;
1568
+ type: "unknown" | "block" | "uncle";
1569
+ value: bigint;
1570
+ };
1571
+ });
1572
+ error?: string | undefined;
1573
+ output?: (({
1574
+ _tag: "callOutput";
1575
+ } & {
1576
+ callOutput: {
1577
+ gasUsed: bigint;
1578
+ output: `0x${string}`;
1579
+ };
1580
+ }) | ({
1581
+ _tag: "createOutput";
1582
+ } & {
1583
+ createOutput: {
1584
+ address: `0x${string}`;
1585
+ code: `0x${string}`;
1586
+ gasUsed: bigint;
1587
+ };
1588
+ })) | undefined;
1589
+ subtraces: number;
1590
+ traceAddress: readonly number[];
1591
+ }[];
1592
+ }[], readonly {
1593
+ filterIds?: readonly number[] | undefined;
1594
+ transactionIndex?: number | undefined;
1595
+ transactionHash?: B256$1 | undefined;
1596
+ traces?: readonly {
1597
+ action?: (({
1598
+ $case: "create";
1599
+ } & {
1600
+ create: {
1601
+ fromAddress?: Address$1 | undefined;
1602
+ gas?: bigint | undefined;
1603
+ init?: Uint8Array | undefined;
1604
+ value?: U256$1 | undefined;
1605
+ creationMethod?: CreationMethod$1 | undefined;
1606
+ };
1607
+ }) | ({
1608
+ $case: "call";
1609
+ } & {
1610
+ call: {
1611
+ fromAddress?: Address$1 | undefined;
1612
+ type?: CallType$1 | undefined;
1613
+ gas?: bigint | undefined;
1614
+ input?: Uint8Array | undefined;
1615
+ toAddress?: Address$1 | undefined;
1616
+ value?: U256$1 | undefined;
1617
+ };
1618
+ }) | ({
1619
+ $case: "selfDestruct";
1620
+ } & {
1621
+ selfDestruct: {
1622
+ address?: Address$1 | undefined;
1623
+ balance?: U256$1 | undefined;
1624
+ refundAddress?: Address$1 | undefined;
1625
+ };
1626
+ }) | ({
1627
+ $case: "reward";
1628
+ } & {
1629
+ reward: {
1630
+ author?: Address$1 | undefined;
1631
+ type?: RewardType$1 | undefined;
1632
+ value?: U256$1 | undefined;
1633
+ };
1634
+ })) | undefined;
1635
+ error?: string | undefined;
1636
+ output?: (({
1637
+ $case: "callOutput";
1638
+ } & {
1639
+ callOutput: {
1640
+ gasUsed?: bigint | undefined;
1641
+ output?: Uint8Array | undefined;
1642
+ };
1643
+ }) | ({
1644
+ $case: "createOutput";
1645
+ } & {
1646
+ createOutput: {
1647
+ address?: Address$1 | undefined;
1648
+ code?: Uint8Array | undefined;
1649
+ gasUsed?: bigint | undefined;
1650
+ };
1651
+ })) | undefined;
1652
+ subtraces?: number | undefined;
1653
+ traceAddress?: readonly number[] | undefined;
1654
+ }[] | undefined;
1655
+ }[] | undefined>;
1656
+ }>;
1657
+ type Block = CodecType<typeof Block>;
1658
+ declare const BlockFromBytes: Codec<Block, Uint8Array>;
1855
1659
 
1856
- declare const EvmStream: StreamConfig<{
1857
- readonly header?: "unknown" | "always" | "on_data" | "on_data_or_on_new_block" | undefined;
1858
- readonly withdrawals?: readonly {
1859
- readonly id?: number | undefined;
1860
- readonly validatorIndex?: number | undefined;
1861
- readonly address?: `0x${string}` | undefined;
1660
+ declare const EvmStream: StreamConfig<Readonly<{
1661
+ header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1662
+ withdrawals?: readonly {
1663
+ id?: number | undefined;
1664
+ validatorIndex?: number | undefined;
1665
+ address?: `0x${string}` | undefined;
1862
1666
  }[] | undefined;
1863
- readonly transactions?: readonly {
1864
- readonly id?: number | undefined;
1865
- readonly from?: `0x${string}` | undefined;
1866
- readonly to?: `0x${string}` | undefined;
1867
- readonly create?: boolean | undefined;
1868
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
1869
- readonly includeReceipt?: boolean | undefined;
1870
- readonly includeLogs?: boolean | undefined;
1667
+ transactions?: readonly {
1668
+ id?: number | undefined;
1669
+ from?: `0x${string}` | undefined;
1670
+ to?: `0x${string}` | undefined;
1671
+ create?: boolean | undefined;
1672
+ transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1673
+ includeReceipt?: boolean | undefined;
1674
+ includeLogs?: boolean | undefined;
1675
+ includeTransactionTrace?: boolean | undefined;
1871
1676
  }[] | undefined;
1872
- readonly logs?: readonly {
1873
- readonly id?: number | undefined;
1874
- readonly address?: `0x${string}` | undefined;
1875
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
1876
- readonly includeReceipt?: boolean | undefined;
1877
- readonly topics?: readonly (`0x${string}` | null)[] | undefined;
1878
- readonly strict?: boolean | undefined;
1879
- readonly includeTransaction?: boolean | undefined;
1677
+ logs?: readonly {
1678
+ id?: number | undefined;
1679
+ address?: `0x${string}` | undefined;
1680
+ topics?: readonly (`0x${string}` | null)[] | undefined;
1681
+ strict?: boolean | undefined;
1682
+ transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1683
+ includeTransaction?: boolean | undefined;
1684
+ includeReceipt?: boolean | undefined;
1685
+ includeTransactionTrace?: boolean | undefined;
1880
1686
  }[] | undefined;
1881
- }, {
1882
- readonly header: {
1883
- readonly blockNumber: bigint;
1884
- readonly blockHash: `0x${string}`;
1885
- readonly parentBlockHash: `0x${string}`;
1886
- readonly unclesHash: `0x${string}`;
1887
- readonly miner: `0x${string}`;
1888
- readonly stateRoot: `0x${string}`;
1889
- readonly transactionsRoot: `0x${string}`;
1890
- readonly receiptsRoot: `0x${string}`;
1891
- readonly logsBloom: `0x${string}`;
1892
- readonly difficulty: bigint;
1893
- readonly gasLimit: bigint;
1894
- readonly gasUsed: bigint;
1895
- readonly timestamp: Date;
1896
- readonly extraData?: `0x${string}` | undefined;
1897
- readonly mixHash?: `0x${string}` | undefined;
1898
- readonly nonce?: bigint | undefined;
1899
- readonly baseFeePerGas?: bigint | undefined;
1900
- readonly withdrawalsRoot?: `0x${string}` | undefined;
1901
- readonly totalDifficulty?: bigint | undefined;
1902
- readonly blobGasUsed?: bigint | undefined;
1903
- readonly excessBlobGas?: bigint | undefined;
1904
- readonly parentBeaconBlockRoot?: `0x${string}` | undefined;
1687
+ }>, {
1688
+ header: {
1689
+ blockNumber: bigint;
1690
+ blockHash?: `0x${string}` | undefined;
1691
+ parentBlockHash: `0x${string}`;
1692
+ unclesHash: `0x${string}`;
1693
+ miner?: `0x${string}` | undefined;
1694
+ stateRoot: `0x${string}`;
1695
+ transactionsRoot: `0x${string}`;
1696
+ receiptsRoot: `0x${string}`;
1697
+ logsBloom?: `0x${string}` | undefined;
1698
+ difficulty: bigint;
1699
+ gasLimit: bigint;
1700
+ gasUsed: bigint;
1701
+ timestamp: Date;
1702
+ extraData: `0x${string}`;
1703
+ mixHash?: `0x${string}` | undefined;
1704
+ nonce?: bigint | undefined;
1705
+ baseFeePerGas?: bigint | undefined;
1706
+ withdrawalsRoot?: `0x${string}` | undefined;
1707
+ totalDifficulty?: bigint | undefined;
1708
+ blobGasUsed?: bigint | undefined;
1709
+ excessBlobGas?: bigint | undefined;
1710
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
1711
+ requestsHash?: `0x${string}` | undefined;
1905
1712
  };
1906
- readonly withdrawals: readonly {
1907
- readonly validatorIndex: number;
1908
- readonly address: `0x${string}`;
1909
- readonly filterIds: readonly number[];
1910
- readonly withdrawalIndex: number;
1911
- readonly index: bigint;
1912
- readonly amount: bigint;
1713
+ withdrawals: readonly {
1714
+ filterIds: readonly number[];
1715
+ withdrawalIndex: number;
1716
+ index: bigint;
1717
+ validatorIndex: number;
1718
+ address: `0x${string}`;
1719
+ amount: bigint;
1913
1720
  }[];
1914
- readonly transactions: readonly {
1915
- readonly value: bigint;
1916
- readonly from: `0x${string}`;
1917
- readonly to?: `0x${string}` | undefined;
1918
- readonly transactionStatus: "succeeded" | "reverted" | "unknown";
1919
- readonly nonce: bigint;
1920
- readonly filterIds: readonly number[];
1921
- readonly transactionIndex: number;
1922
- readonly transactionHash: `0x${string}`;
1923
- readonly gasPrice?: bigint | undefined;
1924
- readonly gas: bigint;
1925
- readonly maxFeePerGas?: bigint | undefined;
1926
- readonly maxPriorityFeePerGas?: bigint | undefined;
1927
- readonly input?: `0x${string}` | undefined;
1928
- readonly signature?: {
1929
- readonly r: bigint;
1930
- readonly s: bigint;
1931
- readonly v: bigint;
1932
- readonly YParity?: boolean | undefined;
1721
+ transactions: readonly {
1722
+ filterIds: readonly number[];
1723
+ transactionIndex: number;
1724
+ transactionHash: `0x${string}`;
1725
+ nonce: bigint;
1726
+ from: `0x${string}`;
1727
+ to?: `0x${string}` | undefined;
1728
+ value: bigint;
1729
+ gasPrice?: bigint | undefined;
1730
+ gas: bigint;
1731
+ maxFeePerGas?: bigint | undefined;
1732
+ maxPriorityFeePerGas?: bigint | undefined;
1733
+ input: `0x${string}`;
1734
+ signature?: {
1735
+ r: bigint;
1736
+ s: bigint;
1737
+ v?: bigint | undefined;
1738
+ YParity?: boolean | undefined;
1933
1739
  } | undefined;
1934
- readonly chainId?: bigint | undefined;
1935
- readonly accessList: readonly {
1936
- readonly address: `0x${string}`;
1937
- readonly storageKeys: readonly `0x${string}`[];
1740
+ chainId?: bigint | undefined;
1741
+ accessList: readonly {
1742
+ address: `0x${string}`;
1743
+ storageKeys: readonly `0x${string}`[];
1938
1744
  }[];
1939
- readonly transactionType: bigint;
1940
- readonly maxFeePerBlobGas?: bigint | undefined;
1941
- readonly blobVersionedHashes: readonly `0x${string}`[];
1745
+ transactionType: bigint;
1746
+ maxFeePerBlobGas?: bigint | undefined;
1747
+ blobVersionedHashes: readonly `0x${string}`[];
1748
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1749
+ }[];
1750
+ receipts: readonly {
1751
+ filterIds: readonly number[];
1752
+ transactionIndex: number;
1753
+ transactionHash: `0x${string}`;
1754
+ cumulativeGasUsed: bigint;
1755
+ gasUsed: bigint;
1756
+ effectiveGasPrice: bigint;
1757
+ from: `0x${string}`;
1758
+ to?: `0x${string}` | undefined;
1759
+ contractAddress?: `0x${string}` | undefined;
1760
+ logsBloom: `0x${string}`;
1761
+ transactionType: bigint;
1762
+ blobGasUsed?: bigint | undefined;
1763
+ blobGasPrice?: bigint | undefined;
1764
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1942
1765
  }[];
1943
- readonly logs: readonly {
1944
- readonly address: `0x${string}`;
1945
- readonly transactionStatus: "succeeded" | "reverted" | "unknown";
1946
- readonly topics: readonly `0x${string}`[];
1947
- readonly filterIds: readonly number[];
1948
- readonly transactionIndex: number;
1949
- readonly transactionHash: `0x${string}`;
1950
- readonly data?: `0x${string}` | undefined;
1951
- readonly logIndex: number;
1952
- readonly logIndexInTransaction: number;
1766
+ logs: readonly {
1767
+ filterIds: readonly number[];
1768
+ address: `0x${string}`;
1769
+ topics: readonly `0x${string}`[];
1770
+ data: `0x${string}`;
1771
+ logIndex: number;
1772
+ logIndexInTransaction: number;
1773
+ transactionIndex: number;
1774
+ transactionHash: `0x${string}`;
1775
+ transactionStatus: "unknown" | "succeeded" | "reverted";
1953
1776
  }[];
1954
- readonly receipts: readonly {
1955
- readonly from: `0x${string}`;
1956
- readonly to?: `0x${string}` | undefined;
1957
- readonly transactionStatus: "succeeded" | "reverted" | "unknown";
1958
- readonly logsBloom: `0x${string}`;
1959
- readonly gasUsed: bigint;
1960
- readonly blobGasUsed?: bigint | undefined;
1961
- readonly filterIds: readonly number[];
1962
- readonly transactionIndex: number;
1963
- readonly transactionHash: `0x${string}`;
1964
- readonly transactionType: bigint;
1965
- readonly cumulativeGasUsed: bigint;
1966
- readonly effectiveGasPrice: bigint;
1967
- readonly contractAddress?: `0x${string}` | undefined;
1968
- readonly blobGasPrice?: bigint | undefined;
1777
+ traces: readonly {
1778
+ filterIds: readonly number[];
1779
+ transactionIndex: number;
1780
+ transactionHash: `0x${string}`;
1781
+ traces: readonly {
1782
+ action: ({
1783
+ _tag: "create";
1784
+ } & {
1785
+ create: {
1786
+ fromAddress: `0x${string}`;
1787
+ gas: bigint;
1788
+ init: `0x${string}`;
1789
+ value: bigint;
1790
+ creationMethod: "unknown" | "create" | "create2" | "eofCreate";
1791
+ };
1792
+ }) | ({
1793
+ _tag: "call";
1794
+ } & {
1795
+ call: {
1796
+ fromAddress: `0x${string}`;
1797
+ type: "unknown" | "call" | "delegateCall" | "callCode" | "staticCall" | "authCall";
1798
+ gas: bigint;
1799
+ input: `0x${string}`;
1800
+ toAddress: `0x${string}`;
1801
+ value: bigint;
1802
+ };
1803
+ }) | ({
1804
+ _tag: "selfDestruct";
1805
+ } & {
1806
+ selfDestruct: {
1807
+ address: `0x${string}`;
1808
+ balance: bigint;
1809
+ refundAddress: `0x${string}`;
1810
+ };
1811
+ }) | ({
1812
+ _tag: "reward";
1813
+ } & {
1814
+ reward: {
1815
+ author: `0x${string}`;
1816
+ type: "unknown" | "block" | "uncle";
1817
+ value: bigint;
1818
+ };
1819
+ });
1820
+ error?: string | undefined;
1821
+ output?: (({
1822
+ _tag: "callOutput";
1823
+ } & {
1824
+ callOutput: {
1825
+ gasUsed: bigint;
1826
+ output: `0x${string}`;
1827
+ };
1828
+ }) | ({
1829
+ _tag: "createOutput";
1830
+ } & {
1831
+ createOutput: {
1832
+ address: `0x${string}`;
1833
+ code: `0x${string}`;
1834
+ gasUsed: bigint;
1835
+ };
1836
+ })) | undefined;
1837
+ subtraces: number;
1838
+ traceAddress: readonly number[];
1839
+ }[];
1969
1840
  }[];
1970
1841
  }>;
1971
1842
 
1972
- export { AccessListItem, Address, B256, B256Proto, Block, BlockFromBytes, BlockHeader, Bloom, EvmStream, Filter, FilterFromBytes, HeaderFilter, Log, LogFilter, Signature, Topic, Transaction, TransactionFilter, TransactionReceipt, TransactionStatus, TransactionStatusFilter, U128, U256, Withdrawal, WithdrawalFilter, b256FromProto, b256ToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, mergeFilter, index as proto, u128FromProto, u128ToProto, u256FromProto, u256ToProto };
1843
+ export { AccessListItem, Address, B256, Block, BlockFromBytes, BlockHeader, Bloom, CallAction, CallOutput, CallType, CreateAction, CreateOutput, CreationMethod, EvmStream, Filter, FilterFromBytes, HeaderFilter, Log, LogFilter, RewardAction, RewardType, SelfDestructAction, Signature, Topic, Trace, Transaction, TransactionFilter, TransactionReceipt, TransactionStatus, TransactionStatusFilter, TransactionTrace, U128, U256, Withdrawal, WithdrawalFilter, mergeFilter, index as proto };