@apibara/beaconchain 2.1.0-beta.3 → 2.1.0-beta.31

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.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { StreamConfig } from '@apibara/protocol';
2
2
  import _m0 from 'protobufjs/minimal.js';
3
- import { Schema } from '@effect/schema';
4
- import * as _effect_schema_AST from '@effect/schema/AST';
5
- export { Address, B256, U128, U256 } from '@apibara/evm';
3
+ import { Codec, CodecType, MessageCodec } from '@apibara/protocol/codec';
6
4
 
7
5
  declare const protobufPackage$2 = "beaconchain.v2";
8
6
  /** Validator status */
@@ -26,48 +24,48 @@ declare function validatorStatusToJSON(object: ValidatorStatus$1): string;
26
24
  *
27
25
  * As a separate type so that the API is clearer.
28
26
  */
29
- interface Address {
27
+ interface Address$1 {
30
28
  readonly x0?: bigint | undefined;
31
29
  readonly x1?: bigint | undefined;
32
30
  readonly x2?: number | undefined;
33
31
  }
34
- declare const Address: {
35
- encode(message: Address, writer?: _m0.Writer): _m0.Writer;
36
- decode(input: _m0.Reader | Uint8Array, length?: number): Address;
37
- fromJSON(object: any): Address;
38
- toJSON(message: Address): unknown;
39
- create(base?: DeepPartial$2<Address>): Address;
40
- fromPartial(object: DeepPartial$2<Address>): Address;
32
+ declare const Address$1: {
33
+ encode(message: Address$1, writer?: _m0.Writer): _m0.Writer;
34
+ decode(input: _m0.Reader | Uint8Array, length?: number): Address$1;
35
+ fromJSON(object: any): Address$1;
36
+ toJSON(message: Address$1): unknown;
37
+ create(base?: DeepPartial$2<Address$1>): Address$1;
38
+ fromPartial(object: DeepPartial$2<Address$1>): Address$1;
41
39
  };
42
40
  /** Unsigned integer of 256 bits. */
43
- interface U256 {
41
+ interface U256$1 {
44
42
  readonly x0?: bigint | undefined;
45
43
  readonly x1?: bigint | undefined;
46
44
  readonly x2?: bigint | undefined;
47
45
  readonly x3?: bigint | undefined;
48
46
  }
49
- declare const U256: {
50
- encode(message: U256, writer?: _m0.Writer): _m0.Writer;
51
- decode(input: _m0.Reader | Uint8Array, length?: number): U256;
52
- fromJSON(object: any): U256;
53
- toJSON(message: U256): unknown;
54
- create(base?: DeepPartial$2<U256>): U256;
55
- fromPartial(object: DeepPartial$2<U256>): U256;
47
+ declare const U256$1: {
48
+ encode(message: U256$1, writer?: _m0.Writer): _m0.Writer;
49
+ decode(input: _m0.Reader | Uint8Array, length?: number): U256$1;
50
+ fromJSON(object: any): U256$1;
51
+ toJSON(message: U256$1): unknown;
52
+ create(base?: DeepPartial$2<U256$1>): U256$1;
53
+ fromPartial(object: DeepPartial$2<U256$1>): U256$1;
56
54
  };
57
55
  /** Byte array of 256 bits. */
58
- interface B256 {
56
+ interface B256$1 {
59
57
  readonly x0?: bigint | undefined;
60
58
  readonly x1?: bigint | undefined;
61
59
  readonly x2?: bigint | undefined;
62
60
  readonly x3?: bigint | undefined;
63
61
  }
64
- declare const B256: {
65
- encode(message: B256, writer?: _m0.Writer): _m0.Writer;
66
- decode(input: _m0.Reader | Uint8Array, length?: number): B256;
67
- fromJSON(object: any): B256;
68
- toJSON(message: B256): unknown;
69
- create(base?: DeepPartial$2<B256>): B256;
70
- fromPartial(object: DeepPartial$2<B256>): B256;
62
+ declare const B256$1: {
63
+ encode(message: B256$1, writer?: _m0.Writer): _m0.Writer;
64
+ decode(input: _m0.Reader | Uint8Array, length?: number): B256$1;
65
+ fromJSON(object: any): B256$1;
66
+ toJSON(message: B256$1): unknown;
67
+ create(base?: DeepPartial$2<B256$1>): B256$1;
68
+ fromPartial(object: DeepPartial$2<B256$1>): B256$1;
71
69
  };
72
70
  /** Byte array of 384 bits. */
73
71
  interface B384$1 {
@@ -87,17 +85,17 @@ declare const B384$1: {
87
85
  fromPartial(object: DeepPartial$2<B384$1>): B384$1;
88
86
  };
89
87
  /** Unsigned integer of 128 bits. */
90
- interface U128 {
88
+ interface U128$1 {
91
89
  readonly x0?: bigint | undefined;
92
90
  readonly x1?: bigint | undefined;
93
91
  }
94
- declare const U128: {
95
- encode(message: U128, writer?: _m0.Writer): _m0.Writer;
96
- decode(input: _m0.Reader | Uint8Array, length?: number): U128;
97
- fromJSON(object: any): U128;
98
- toJSON(message: U128): unknown;
99
- create(base?: DeepPartial$2<U128>): U128;
100
- fromPartial(object: DeepPartial$2<U128>): U128;
92
+ declare const U128$1: {
93
+ encode(message: U128$1, writer?: _m0.Writer): _m0.Writer;
94
+ decode(input: _m0.Reader | Uint8Array, length?: number): U128$1;
95
+ fromJSON(object: any): U128$1;
96
+ toJSON(message: U128$1): unknown;
97
+ create(base?: DeepPartial$2<U128$1>): U128$1;
98
+ fromPartial(object: DeepPartial$2<U128$1>): U128$1;
101
99
  };
102
100
  type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
103
101
  type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {
@@ -110,14 +108,10 @@ type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<inf
110
108
  [K in keyof T]?: DeepPartial$2<T[K]>;
111
109
  } : Partial<T>;
112
110
 
113
- declare const common_Address: typeof Address;
114
- declare const common_B256: typeof B256;
115
- declare const common_U128: typeof U128;
116
- declare const common_U256: typeof U256;
117
111
  declare const common_validatorStatusFromJSON: typeof validatorStatusFromJSON;
118
112
  declare const common_validatorStatusToJSON: typeof validatorStatusToJSON;
119
113
  declare namespace common {
120
- export { common_Address as Address, common_B256 as B256, B384$1 as B384, type DeepPartial$2 as DeepPartial, common_U128 as U128, common_U256 as U256, ValidatorStatus$1 as ValidatorStatus, protobufPackage$2 as protobufPackage, common_validatorStatusFromJSON as validatorStatusFromJSON, common_validatorStatusToJSON as validatorStatusToJSON };
114
+ export { Address$1 as Address, B256$1 as B256, B384$1 as B384, type DeepPartial$2 as DeepPartial, U128$1 as U128, U256$1 as U256, ValidatorStatus$1 as ValidatorStatus, protobufPackage$2 as protobufPackage, common_validatorStatusFromJSON as validatorStatusFromJSON, common_validatorStatusToJSON as validatorStatusToJSON };
121
115
  }
122
116
 
123
117
  declare const protobufPackage$1 = "beaconchain.v2";
@@ -147,19 +141,19 @@ interface BlockHeader$1 {
147
141
  /** Proposer index. */
148
142
  readonly proposerIndex?: number | undefined;
149
143
  /** Parent root. */
150
- readonly parentRoot?: B256 | undefined;
144
+ readonly parentRoot?: B256$1 | undefined;
151
145
  /** State root. */
152
- readonly stateRoot?: B256 | undefined;
146
+ readonly stateRoot?: B256$1 | undefined;
153
147
  /** Randao reveal. */
154
148
  readonly randaoReveal?: Uint8Array | undefined;
155
149
  /** Deposit count. */
156
150
  readonly depositCount?: bigint | undefined;
157
151
  /** Deposit state root. */
158
- readonly depositRoot?: B256 | undefined;
152
+ readonly depositRoot?: B256$1 | undefined;
159
153
  /** Block hash. */
160
- readonly blockHash?: B256 | undefined;
154
+ readonly blockHash?: B256$1 | undefined;
161
155
  /** Graffiti. */
162
- readonly graffiti?: B256 | undefined;
156
+ readonly graffiti?: B256$1 | undefined;
163
157
  /** Execution payload. */
164
158
  readonly executionPayload?: ExecutionPayload$1 | undefined;
165
159
  /** Blob kzg commitments. */
@@ -176,25 +170,25 @@ declare const BlockHeader$1: {
176
170
  interface Transaction$1 {
177
171
  readonly filterIds?: readonly number[] | undefined;
178
172
  /** Transaction hash. */
179
- readonly transactionHash?: B256 | undefined;
173
+ readonly transactionHash?: B256$1 | undefined;
180
174
  /** Nonce. */
181
175
  readonly nonce?: bigint | undefined;
182
176
  /** Transaction index in the block. */
183
177
  readonly transactionIndex?: number | undefined;
184
178
  /** Sender. */
185
- readonly from?: Address | undefined;
179
+ readonly from?: Address$1 | undefined;
186
180
  /** Recipient. */
187
- readonly to?: Address | undefined;
181
+ readonly to?: Address$1 | undefined;
188
182
  /** Amount of wei transferred. */
189
- readonly value?: U256 | undefined;
183
+ readonly value?: U256$1 | undefined;
190
184
  /** Gas price. */
191
- readonly gasPrice?: U128 | undefined;
185
+ readonly gasPrice?: U128$1 | undefined;
192
186
  /** Gas amount. */
193
- readonly gasLimit?: U128 | undefined;
187
+ readonly gasLimit?: U128$1 | undefined;
194
188
  /** Max base fee per gas the sender is willing to pay. */
195
- readonly maxFeePerGas?: U128 | undefined;
189
+ readonly maxFeePerGas?: U128$1 | undefined;
196
190
  /** Miner's tip. */
197
- readonly maxPriorityFeePerGas?: U128 | undefined;
191
+ readonly maxPriorityFeePerGas?: U128$1 | undefined;
198
192
  /** Data. */
199
193
  readonly input?: Uint8Array | undefined;
200
194
  /** The signature's r,s,v,yParity values. */
@@ -202,13 +196,13 @@ interface Transaction$1 {
202
196
  /** Chain ID. */
203
197
  readonly chainId?: bigint | undefined;
204
198
  /** EIP-2930 access list. */
205
- readonly accessList?: readonly AccessListItem[] | undefined;
199
+ readonly accessList?: readonly AccessListItem$1[] | undefined;
206
200
  /** EIP-2718 transaction type. */
207
201
  readonly transactionType?: bigint | undefined;
208
202
  /** EIP-4844 max gas fee per blob. */
209
- readonly maxFeePerBlobGas?: U128 | undefined;
203
+ readonly maxFeePerBlobGas?: U128$1 | undefined;
210
204
  /** EIP-4844 blob hashes. */
211
- readonly blobVersionedHashes?: readonly B256[] | undefined;
205
+ readonly blobVersionedHashes?: readonly B256$1[] | undefined;
212
206
  }
213
207
  declare const Transaction$1: {
214
208
  encode(message: Transaction$1, writer?: _m0.Writer): _m0.Writer;
@@ -224,7 +218,7 @@ interface Validator$1 {
224
218
  readonly balance?: bigint | undefined;
225
219
  readonly status?: ValidatorStatus$1 | undefined;
226
220
  readonly pubkey?: B384$1 | undefined;
227
- readonly withdrawalCredentials?: B256 | undefined;
221
+ readonly withdrawalCredentials?: B256$1 | undefined;
228
222
  readonly effectiveBalance?: bigint | undefined;
229
223
  readonly slashed?: boolean | undefined;
230
224
  readonly activationEligibilityEpoch?: bigint | undefined;
@@ -251,13 +245,13 @@ interface Blob$1 {
251
245
  /** KZG proof. */
252
246
  readonly kzgProof?: B384$1 | undefined;
253
247
  /** KZG commitment inclusion proof. */
254
- readonly kzgCommitmentInclusionProof?: readonly B256[] | undefined;
248
+ readonly kzgCommitmentInclusionProof?: readonly B256$1[] | undefined;
255
249
  /** Blob hash. */
256
- readonly blobHash?: B256 | undefined;
250
+ readonly blobHash?: B256$1 | undefined;
257
251
  /** Index of the transaction that posted the blob. */
258
252
  readonly transactionIndex?: number | undefined;
259
253
  /** Hash of the transaction that posted the blob. */
260
- readonly transactionHash?: B256 | undefined;
254
+ readonly transactionHash?: B256$1 | undefined;
261
255
  }
262
256
  declare const Blob$1: {
263
257
  encode(message: Blob$1, writer?: _m0.Writer): _m0.Writer;
@@ -269,17 +263,17 @@ declare const Blob$1: {
269
263
  };
270
264
  interface ExecutionPayload$1 {
271
265
  /** Parent block hash. */
272
- readonly parentHash?: B256 | undefined;
266
+ readonly parentHash?: B256$1 | undefined;
273
267
  /** Address of the fee recipient. */
274
- readonly feeRecipient?: Address | undefined;
268
+ readonly feeRecipient?: Address$1 | undefined;
275
269
  /** State root. */
276
- readonly stateRoot?: B256 | undefined;
270
+ readonly stateRoot?: B256$1 | undefined;
277
271
  /** Receipts root. */
278
- readonly receiptsRoot?: B256 | undefined;
272
+ readonly receiptsRoot?: B256$1 | undefined;
279
273
  /** Logs bloom. */
280
274
  readonly logsBloom?: Uint8Array | undefined;
281
275
  /** Previous RANDAO. */
282
- readonly prevRandao?: B256 | undefined;
276
+ readonly prevRandao?: B256$1 | undefined;
283
277
  /** Block number. */
284
278
  readonly blockNumber?: bigint | undefined;
285
279
  /** Block timestamp. */
@@ -295,9 +289,9 @@ declare const ExecutionPayload$1: {
295
289
  };
296
290
  interface Signature$1 {
297
291
  /** The signature's r value. */
298
- readonly r?: U256 | undefined;
292
+ readonly r?: U256$1 | undefined;
299
293
  /** The signature's s value. */
300
- readonly s?: U256 | undefined;
294
+ readonly s?: U256$1 | undefined;
301
295
  }
302
296
  declare const Signature$1: {
303
297
  encode(message: Signature$1, writer?: _m0.Writer): _m0.Writer;
@@ -307,19 +301,19 @@ declare const Signature$1: {
307
301
  create(base?: DeepPartial$1<Signature$1>): Signature$1;
308
302
  fromPartial(object: DeepPartial$1<Signature$1>): Signature$1;
309
303
  };
310
- interface AccessListItem {
304
+ interface AccessListItem$1 {
311
305
  /** Account address to be loaded at the start of the transaction. */
312
- readonly address?: Address | undefined;
306
+ readonly address?: Address$1 | undefined;
313
307
  /** Storage keys to be loaded at the start of the transaction. */
314
- readonly storageKeys?: readonly B256[] | undefined;
308
+ readonly storageKeys?: readonly B256$1[] | undefined;
315
309
  }
316
- declare const AccessListItem: {
317
- encode(message: AccessListItem, writer?: _m0.Writer): _m0.Writer;
318
- decode(input: _m0.Reader | Uint8Array, length?: number): AccessListItem;
319
- fromJSON(object: any): AccessListItem;
320
- toJSON(message: AccessListItem): unknown;
321
- create(base?: DeepPartial$1<AccessListItem>): AccessListItem;
322
- fromPartial(object: DeepPartial$1<AccessListItem>): AccessListItem;
310
+ declare const AccessListItem$1: {
311
+ encode(message: AccessListItem$1, writer?: _m0.Writer): _m0.Writer;
312
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccessListItem$1;
313
+ fromJSON(object: any): AccessListItem$1;
314
+ toJSON(message: AccessListItem$1): unknown;
315
+ create(base?: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
316
+ fromPartial(object: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
323
317
  };
324
318
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
325
319
  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 {
@@ -332,9 +326,8 @@ type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<inf
332
326
  [K in keyof T]?: DeepPartial$1<T[K]>;
333
327
  } : Partial<T>;
334
328
 
335
- declare const data_AccessListItem: typeof AccessListItem;
336
329
  declare namespace data {
337
- export { data_AccessListItem as AccessListItem, Blob$1 as Blob, Block$1 as Block, BlockHeader$1 as BlockHeader, type DeepPartial$1 as DeepPartial, ExecutionPayload$1 as ExecutionPayload, Signature$1 as Signature, Transaction$1 as Transaction, Validator$1 as Validator, protobufPackage$1 as protobufPackage };
330
+ export { AccessListItem$1 as AccessListItem, Blob$1 as Blob, Block$1 as Block, BlockHeader$1 as BlockHeader, type DeepPartial$1 as DeepPartial, ExecutionPayload$1 as ExecutionPayload, Signature$1 as Signature, Transaction$1 as Transaction, Validator$1 as Validator, protobufPackage$1 as protobufPackage };
338
331
  }
339
332
 
340
333
  declare const protobufPackage = "beaconchain.v2";
@@ -369,9 +362,9 @@ declare const Filter$1: {
369
362
  interface TransactionFilter$1 {
370
363
  readonly id?: number | undefined;
371
364
  /** Filter based on the transaction's sender address. */
372
- readonly from?: Address | undefined;
365
+ readonly from?: Address$1 | undefined;
373
366
  /** Filter based on the transaction's recipient address. */
374
- readonly to?: Address | undefined;
367
+ readonly to?: Address$1 | undefined;
375
368
  /** Only return `creat` transactions. Defaults to `false`. */
376
369
  readonly create?: boolean | undefined;
377
370
  /** Include the transaction's blob. Defaults to `false`. */
@@ -439,16 +432,22 @@ declare namespace index {
439
432
  export { index_common as common, index_data as data, index_filter as filter };
440
433
  }
441
434
 
442
- declare const ValidatorStatus: Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>;
443
- declare const B384: Schema.transform<Schema.Struct<{
444
- x0: typeof Schema.BigIntFromSelf;
445
- x1: typeof Schema.BigIntFromSelf;
446
- x2: typeof Schema.BigIntFromSelf;
447
- x3: typeof Schema.BigIntFromSelf;
448
- x4: typeof Schema.BigIntFromSelf;
449
- x5: typeof Schema.BigIntFromSelf;
450
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
451
- type B384 = typeof B384.Type;
435
+ /** An Ethereum address. */
436
+ declare const Address: Codec<`0x${string}`, Address$1>;
437
+ type Address = CodecType<typeof Address>;
438
+ /** Data with length 256 bits. */
439
+ declare const B256: Codec<`0x${string}`, B256$1>;
440
+ type B256 = CodecType<typeof B256>;
441
+ /** Data with length 256 bits. */
442
+ declare const U256: Codec<bigint, U256$1>;
443
+ type U256 = CodecType<typeof U256>;
444
+ /** Data with length 128 bits. */
445
+ declare const U128: Codec<bigint, U128$1>;
446
+ type U128 = CodecType<typeof U128>;
447
+ declare const B384: Codec<`0x${string}`, B384$1>;
448
+ type B384 = CodecType<typeof B384>;
449
+ declare const ValidatorStatus: Codec<"pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | "unknown", ValidatorStatus$1>;
450
+ type ValidatorStatus = CodecType<typeof ValidatorStatus>;
452
451
 
453
452
  /** Header options.
454
453
  *
@@ -456,1101 +455,447 @@ type B384 = typeof B384.Type;
456
455
  * - `on_data`: receive headers only if any other filter matches.
457
456
  * - `on_data_or_on_new_block`: receive headers only if any other filter matches and for "live" blocks.
458
457
  */
459
- declare const HeaderFilter: Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>;
460
- type HeaderFilter = typeof HeaderFilter.Type;
458
+ declare const HeaderFilter: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown", HeaderFilter$1>;
459
+ type HeaderFilter = CodecType<typeof HeaderFilter>;
461
460
  /** Filter transactions.
462
461
  *
463
462
  * @prop from Filter transactions by the sender address.
464
463
  * @prop to Filter transactions by the target address.
465
464
  * @prop includeBlob Include any blob posted by the transaction..
466
465
  */
467
- declare const TransactionFilter: Schema.Struct<{
468
- id: Schema.optional<typeof Schema.Number>;
469
- from: Schema.optional<Schema.transform<Schema.Struct<{
470
- x0: typeof Schema.BigIntFromSelf;
471
- x1: typeof Schema.BigIntFromSelf;
472
- x2: typeof Schema.Number;
473
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
474
- to: Schema.optional<Schema.transform<Schema.Struct<{
475
- x0: typeof Schema.BigIntFromSelf;
476
- x1: typeof Schema.BigIntFromSelf;
477
- x2: typeof Schema.Number;
478
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
479
- create: Schema.optional<typeof Schema.Boolean>;
480
- includeBlob: Schema.optional<typeof Schema.Boolean>;
466
+ declare const TransactionFilter: MessageCodec<{
467
+ id: Codec<number | undefined, number | undefined>;
468
+ from: Codec<`0x${string}` | undefined, Address$1 | undefined>;
469
+ to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
470
+ create: Codec<boolean | undefined, boolean | undefined>;
471
+ includeBlob: Codec<boolean | undefined, boolean | undefined>;
481
472
  }>;
482
- type TransactionFilter = typeof TransactionFilter.Type;
473
+ type TransactionFilter = CodecType<typeof TransactionFilter>;
483
474
  /** Filter validators.
484
475
  *
485
476
  * @prop validatorIndex Filter validators by their index.
486
477
  * @prop status Filter validators by their status.
487
478
  */
488
- declare const ValidatorFilter: Schema.Struct<{
489
- id: Schema.optional<typeof Schema.Number>;
490
- validatorIndex: Schema.optional<typeof Schema.Number>;
491
- status: Schema.optional<Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>>;
479
+ declare const ValidatorFilter: MessageCodec<{
480
+ id: Codec<number | undefined, number | undefined>;
481
+ validatorIndex: Codec<number | undefined, number | undefined>;
482
+ status: Codec<"unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined, ValidatorStatus$1 | undefined>;
492
483
  }>;
493
- type ValidatorFilter = typeof ValidatorFilter.Type;
484
+ type ValidatorFilter = CodecType<typeof ValidatorFilter>;
494
485
  /** Filter blobs.
495
486
  *
496
487
  * @prop includeTransaction Include the transaction that posted the blob.
497
488
  */
498
- declare const BlobFilter: Schema.Struct<{
499
- id: Schema.optional<typeof Schema.Number>;
500
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
489
+ declare const BlobFilter: MessageCodec<{
490
+ id: Codec<number | undefined, number | undefined>;
491
+ includeTransaction: Codec<boolean | undefined, boolean | undefined>;
501
492
  }>;
502
- type BlobFilter = typeof BlobFilter.Type;
493
+ type BlobFilter = CodecType<typeof BlobFilter>;
503
494
  /** Filter block data.
504
495
  *
505
496
  * @prop header Change how block headers are returned.
506
497
  * @prop validators Filter validators.
507
498
  */
508
- declare const Filter: Schema.Struct<{
509
- header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
510
- transactions: Schema.optional<Schema.Array$<Schema.Struct<{
511
- id: Schema.optional<typeof Schema.Number>;
512
- from: Schema.optional<Schema.transform<Schema.Struct<{
513
- x0: typeof Schema.BigIntFromSelf;
514
- x1: typeof Schema.BigIntFromSelf;
515
- x2: typeof Schema.Number;
516
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
517
- to: Schema.optional<Schema.transform<Schema.Struct<{
518
- x0: typeof Schema.BigIntFromSelf;
519
- x1: typeof Schema.BigIntFromSelf;
520
- x2: typeof Schema.Number;
521
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
522
- create: Schema.optional<typeof Schema.Boolean>;
523
- includeBlob: Schema.optional<typeof Schema.Boolean>;
524
- }>>>;
525
- validators: Schema.optional<Schema.Array$<Schema.Struct<{
526
- id: Schema.optional<typeof Schema.Number>;
527
- validatorIndex: Schema.optional<typeof Schema.Number>;
528
- status: Schema.optional<Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>>;
529
- }>>>;
530
- blobs: Schema.optional<Schema.Array$<Schema.Struct<{
531
- id: Schema.optional<typeof Schema.Number>;
532
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
533
- }>>>;
499
+ declare const Filter: MessageCodec<{
500
+ header: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined, HeaderFilter$1 | undefined>;
501
+ transactions: Codec<readonly {
502
+ id?: number | undefined;
503
+ from?: `0x${string}` | undefined;
504
+ to?: `0x${string}` | undefined;
505
+ create?: boolean | undefined;
506
+ includeBlob?: boolean | undefined;
507
+ }[] | undefined, readonly {
508
+ id?: number | undefined;
509
+ from?: Address$1 | undefined;
510
+ to?: Address$1 | undefined;
511
+ create?: boolean | undefined;
512
+ includeBlob?: boolean | undefined;
513
+ }[] | undefined>;
514
+ validators: Codec<readonly {
515
+ id?: number | undefined;
516
+ validatorIndex?: number | undefined;
517
+ status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
518
+ }[] | undefined, readonly {
519
+ id?: number | undefined;
520
+ validatorIndex?: number | undefined;
521
+ status?: ValidatorStatus$1 | undefined;
522
+ }[] | undefined>;
523
+ blobs: Codec<readonly {
524
+ id?: number | undefined;
525
+ includeTransaction?: boolean | undefined;
526
+ }[] | undefined, readonly {
527
+ id?: number | undefined;
528
+ includeTransaction?: boolean | undefined;
529
+ }[] | undefined>;
534
530
  }>;
535
- type Filter = typeof Filter.Type;
536
- declare const filterToProto: (a: {
537
- readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
538
- readonly transactions?: readonly {
539
- readonly from?: `0x${string}` | undefined;
540
- readonly to?: `0x${string}` | undefined;
541
- readonly id?: number | undefined;
542
- readonly create?: boolean | undefined;
543
- readonly includeBlob?: boolean | undefined;
544
- }[] | undefined;
545
- readonly validators?: readonly {
546
- readonly id?: number | undefined;
547
- readonly validatorIndex?: number | undefined;
548
- readonly status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
549
- }[] | undefined;
550
- readonly blobs?: readonly {
551
- readonly id?: number | undefined;
552
- readonly includeTransaction?: boolean | undefined;
553
- }[] | undefined;
554
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
555
- readonly header?: HeaderFilter$1 | undefined;
556
- readonly transactions?: readonly {
557
- readonly from?: {
558
- readonly x0: bigint;
559
- readonly x1: bigint;
560
- readonly x2: number;
561
- } | undefined;
562
- readonly to?: {
563
- readonly x0: bigint;
564
- readonly x1: bigint;
565
- readonly x2: number;
566
- } | undefined;
567
- readonly id?: number | undefined;
568
- readonly create?: boolean | undefined;
569
- readonly includeBlob?: boolean | undefined;
570
- }[] | undefined;
571
- readonly validators?: readonly {
572
- readonly id?: number | undefined;
573
- readonly validatorIndex?: number | undefined;
574
- readonly status?: ValidatorStatus$1 | undefined;
575
- }[] | undefined;
576
- readonly blobs?: readonly {
577
- readonly id?: number | undefined;
578
- readonly includeTransaction?: boolean | undefined;
579
- }[] | undefined;
580
- };
581
- declare const filterFromProto: (i: {
582
- readonly header?: HeaderFilter$1 | undefined;
583
- readonly transactions?: readonly {
584
- readonly from?: {
585
- readonly x0: bigint;
586
- readonly x1: bigint;
587
- readonly x2: number;
588
- } | undefined;
589
- readonly to?: {
590
- readonly x0: bigint;
591
- readonly x1: bigint;
592
- readonly x2: number;
593
- } | undefined;
594
- readonly id?: number | undefined;
595
- readonly create?: boolean | undefined;
596
- readonly includeBlob?: boolean | undefined;
597
- }[] | undefined;
598
- readonly validators?: readonly {
599
- readonly id?: number | undefined;
600
- readonly validatorIndex?: number | undefined;
601
- readonly status?: ValidatorStatus$1 | undefined;
602
- }[] | undefined;
603
- readonly blobs?: readonly {
604
- readonly id?: number | undefined;
605
- readonly includeTransaction?: boolean | undefined;
606
- }[] | undefined;
607
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
608
- readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
609
- readonly transactions?: readonly {
610
- readonly from?: `0x${string}` | undefined;
611
- readonly to?: `0x${string}` | undefined;
612
- readonly id?: number | undefined;
613
- readonly create?: boolean | undefined;
614
- readonly includeBlob?: boolean | undefined;
615
- }[] | undefined;
616
- readonly validators?: readonly {
617
- readonly id?: number | undefined;
618
- readonly validatorIndex?: number | undefined;
619
- readonly status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
620
- }[] | undefined;
621
- readonly blobs?: readonly {
622
- readonly id?: number | undefined;
623
- readonly includeTransaction?: boolean | undefined;
624
- }[] | undefined;
625
- };
626
- declare const FilterFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.Struct<{
627
- header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
628
- transactions: Schema.optional<Schema.Array$<Schema.Struct<{
629
- id: Schema.optional<typeof Schema.Number>;
630
- from: Schema.optional<Schema.transform<Schema.Struct<{
631
- x0: typeof Schema.BigIntFromSelf;
632
- x1: typeof Schema.BigIntFromSelf;
633
- x2: typeof Schema.Number;
634
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
635
- to: Schema.optional<Schema.transform<Schema.Struct<{
636
- x0: typeof Schema.BigIntFromSelf;
637
- x1: typeof Schema.BigIntFromSelf;
638
- x2: typeof Schema.Number;
639
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
640
- create: Schema.optional<typeof Schema.Boolean>;
641
- includeBlob: Schema.optional<typeof Schema.Boolean>;
642
- }>>>;
643
- validators: Schema.optional<Schema.Array$<Schema.Struct<{
644
- id: Schema.optional<typeof Schema.Number>;
645
- validatorIndex: Schema.optional<typeof Schema.Number>;
646
- status: Schema.optional<Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>>;
647
- }>>>;
648
- blobs: Schema.optional<Schema.Array$<Schema.Struct<{
649
- id: Schema.optional<typeof Schema.Number>;
650
- includeTransaction: Schema.optional<typeof Schema.Boolean>;
651
- }>>>;
652
- }>>;
653
- declare const filterToBytes: (a: {
654
- readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
655
- readonly transactions?: readonly {
656
- readonly from?: `0x${string}` | undefined;
657
- readonly to?: `0x${string}` | undefined;
658
- readonly id?: number | undefined;
659
- readonly create?: boolean | undefined;
660
- readonly includeBlob?: boolean | undefined;
661
- }[] | undefined;
662
- readonly validators?: readonly {
663
- readonly id?: number | undefined;
664
- readonly validatorIndex?: number | undefined;
665
- readonly status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
666
- }[] | undefined;
667
- readonly blobs?: readonly {
668
- readonly id?: number | undefined;
669
- readonly includeTransaction?: boolean | undefined;
670
- }[] | undefined;
671
- }, overrideOptions?: _effect_schema_AST.ParseOptions) => Uint8Array;
672
- declare const filterFromBytes: (i: Uint8Array, overrideOptions?: _effect_schema_AST.ParseOptions) => {
673
- readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
674
- readonly transactions?: readonly {
675
- readonly from?: `0x${string}` | undefined;
676
- readonly to?: `0x${string}` | undefined;
677
- readonly id?: number | undefined;
678
- readonly create?: boolean | undefined;
679
- readonly includeBlob?: boolean | undefined;
680
- }[] | undefined;
681
- readonly validators?: readonly {
682
- readonly id?: number | undefined;
683
- readonly validatorIndex?: number | undefined;
684
- readonly status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
685
- }[] | undefined;
686
- readonly blobs?: readonly {
687
- readonly id?: number | undefined;
688
- readonly includeTransaction?: boolean | undefined;
689
- }[] | undefined;
690
- };
531
+ type Filter = CodecType<typeof Filter>;
532
+ declare const FilterFromBytes: Codec<Filter, Uint8Array>;
691
533
  declare function mergeFilter(a: Filter, b: Filter): Filter;
692
534
 
693
- declare const ExecutionPayload: Schema.Struct<{
694
- parentHash: Schema.transform<Schema.Struct<{
695
- x0: typeof Schema.BigIntFromSelf;
696
- x1: typeof Schema.BigIntFromSelf;
697
- x2: typeof Schema.BigIntFromSelf;
698
- x3: typeof Schema.BigIntFromSelf;
699
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
700
- feeRecipient: Schema.transform<Schema.Struct<{
701
- x0: typeof Schema.BigIntFromSelf;
702
- x1: typeof Schema.BigIntFromSelf;
703
- x2: typeof Schema.Number;
704
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
705
- stateRoot: Schema.transform<Schema.Struct<{
706
- x0: typeof Schema.BigIntFromSelf;
707
- x1: typeof Schema.BigIntFromSelf;
708
- x2: typeof Schema.BigIntFromSelf;
709
- x3: typeof Schema.BigIntFromSelf;
710
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
711
- receiptsRoot: Schema.transform<Schema.Struct<{
712
- x0: typeof Schema.BigIntFromSelf;
713
- x1: typeof Schema.BigIntFromSelf;
714
- x2: typeof Schema.BigIntFromSelf;
715
- x3: typeof Schema.BigIntFromSelf;
716
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
717
- logsBloom: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
718
- prevRandao: Schema.transform<Schema.Struct<{
719
- x0: typeof Schema.BigIntFromSelf;
720
- x1: typeof Schema.BigIntFromSelf;
721
- x2: typeof Schema.BigIntFromSelf;
722
- x3: typeof Schema.BigIntFromSelf;
723
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
724
- blockNumber: typeof Schema.BigIntFromSelf;
725
- timestamp: typeof Schema.DateFromSelf;
535
+ declare const ExecutionPayload: MessageCodec<{
536
+ parentHash: Codec<`0x${string}`, B256$1 | undefined>;
537
+ feeRecipient: Codec<`0x${string}`, Address$1 | undefined>;
538
+ stateRoot: Codec<`0x${string}`, B256$1 | undefined>;
539
+ receiptsRoot: Codec<`0x${string}`, B256$1 | undefined>;
540
+ logsBloom: Codec<`0x${string}`, Uint8Array | undefined>;
541
+ prevRandao: Codec<`0x${string}`, B256$1 | undefined>;
542
+ blockNumber: Codec<bigint, bigint | undefined>;
543
+ timestamp: Codec<Date, Date | undefined>;
544
+ }>;
545
+ type ExecutionPayload = CodecType<typeof ExecutionPayload>;
546
+ declare const BlockHeader: MessageCodec<{
547
+ slot: Codec<bigint, bigint | undefined>;
548
+ proposerIndex: Codec<number, number | undefined>;
549
+ parentRoot: Codec<`0x${string}`, B256$1 | undefined>;
550
+ stateRoot: Codec<`0x${string}`, B256$1 | undefined>;
551
+ randaoReveal: Codec<`0x${string}`, Uint8Array | undefined>;
552
+ depositCount: Codec<bigint, bigint | undefined>;
553
+ depositRoot: Codec<`0x${string}`, B256$1 | undefined>;
554
+ blockHash: Codec<`0x${string}`, B256$1 | undefined>;
555
+ graffiti: Codec<`0x${string}`, B256$1 | undefined>;
556
+ executionPayload: Codec<{
557
+ parentHash: `0x${string}`;
558
+ feeRecipient: `0x${string}`;
559
+ stateRoot: `0x${string}`;
560
+ receiptsRoot: `0x${string}`;
561
+ logsBloom: `0x${string}`;
562
+ prevRandao: `0x${string}`;
563
+ blockNumber: bigint;
564
+ timestamp: Date;
565
+ } | undefined, {
566
+ parentHash?: B256$1 | undefined;
567
+ feeRecipient?: Address$1 | undefined;
568
+ stateRoot?: B256$1 | undefined;
569
+ receiptsRoot?: B256$1 | undefined;
570
+ logsBloom?: Uint8Array | undefined;
571
+ prevRandao?: B256$1 | undefined;
572
+ blockNumber?: bigint | undefined;
573
+ timestamp?: Date | undefined;
574
+ } | undefined>;
575
+ blobKzgCommitments: Codec<readonly `0x${string}`[], readonly B384$1[] | undefined>;
726
576
  }>;
727
- type ExecutionPayload = typeof ExecutionPayload.Type;
728
- declare const BlockHeader: Schema.Struct<{
729
- slot: typeof Schema.BigIntFromSelf;
730
- proposerIndex: typeof Schema.Number;
731
- parentRoot: Schema.transform<Schema.Struct<{
732
- x0: typeof Schema.BigIntFromSelf;
733
- x1: typeof Schema.BigIntFromSelf;
734
- x2: typeof Schema.BigIntFromSelf;
735
- x3: typeof Schema.BigIntFromSelf;
736
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
737
- stateRoot: Schema.transform<Schema.Struct<{
738
- x0: typeof Schema.BigIntFromSelf;
739
- x1: typeof Schema.BigIntFromSelf;
740
- x2: typeof Schema.BigIntFromSelf;
741
- x3: typeof Schema.BigIntFromSelf;
742
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
743
- randaoReveal: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
744
- depositCount: typeof Schema.BigIntFromSelf;
745
- depositRoot: Schema.transform<Schema.Struct<{
746
- x0: typeof Schema.BigIntFromSelf;
747
- x1: typeof Schema.BigIntFromSelf;
748
- x2: typeof Schema.BigIntFromSelf;
749
- x3: typeof Schema.BigIntFromSelf;
750
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
751
- blockHash: Schema.transform<Schema.Struct<{
752
- x0: typeof Schema.BigIntFromSelf;
753
- x1: typeof Schema.BigIntFromSelf;
754
- x2: typeof Schema.BigIntFromSelf;
755
- x3: typeof Schema.BigIntFromSelf;
756
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
757
- graffiti: Schema.transform<Schema.Struct<{
758
- x0: typeof Schema.BigIntFromSelf;
759
- x1: typeof Schema.BigIntFromSelf;
760
- x2: typeof Schema.BigIntFromSelf;
761
- x3: typeof Schema.BigIntFromSelf;
762
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
763
- executionPayload: Schema.optional<Schema.Struct<{
764
- parentHash: Schema.transform<Schema.Struct<{
765
- x0: typeof Schema.BigIntFromSelf;
766
- x1: typeof Schema.BigIntFromSelf;
767
- x2: typeof Schema.BigIntFromSelf;
768
- x3: typeof Schema.BigIntFromSelf;
769
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
770
- feeRecipient: Schema.transform<Schema.Struct<{
771
- x0: typeof Schema.BigIntFromSelf;
772
- x1: typeof Schema.BigIntFromSelf;
773
- x2: typeof Schema.Number;
774
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
775
- stateRoot: Schema.transform<Schema.Struct<{
776
- x0: typeof Schema.BigIntFromSelf;
777
- x1: typeof Schema.BigIntFromSelf;
778
- x2: typeof Schema.BigIntFromSelf;
779
- x3: typeof Schema.BigIntFromSelf;
780
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
781
- receiptsRoot: Schema.transform<Schema.Struct<{
782
- x0: typeof Schema.BigIntFromSelf;
783
- x1: typeof Schema.BigIntFromSelf;
784
- x2: typeof Schema.BigIntFromSelf;
785
- x3: typeof Schema.BigIntFromSelf;
786
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
787
- logsBloom: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
788
- prevRandao: Schema.transform<Schema.Struct<{
789
- x0: typeof Schema.BigIntFromSelf;
790
- x1: typeof Schema.BigIntFromSelf;
791
- x2: typeof Schema.BigIntFromSelf;
792
- x3: typeof Schema.BigIntFromSelf;
793
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
794
- blockNumber: typeof Schema.BigIntFromSelf;
795
- timestamp: typeof Schema.DateFromSelf;
796
- }>>;
797
- blobKzgCommitments: Schema.Array$<Schema.transform<Schema.Struct<{
798
- x0: typeof Schema.BigIntFromSelf;
799
- x1: typeof Schema.BigIntFromSelf;
800
- x2: typeof Schema.BigIntFromSelf;
801
- x3: typeof Schema.BigIntFromSelf;
802
- x4: typeof Schema.BigIntFromSelf;
803
- x5: typeof Schema.BigIntFromSelf;
804
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
577
+ type BlockHeader = CodecType<typeof BlockHeader>;
578
+ declare const Validator: MessageCodec<{
579
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
580
+ validatorIndex: Codec<number, number | undefined>;
581
+ balance: Codec<bigint, bigint | undefined>;
582
+ status: Codec<"unknown", ValidatorStatus$1 | undefined> | Codec<"pending_initialized", ValidatorStatus$1 | undefined> | Codec<"pending_queued", ValidatorStatus$1 | undefined> | Codec<"active_ongoing", ValidatorStatus$1 | undefined> | Codec<"active_exiting", ValidatorStatus$1 | undefined> | Codec<"active_slashed", ValidatorStatus$1 | undefined> | Codec<"exited_unslashed", ValidatorStatus$1 | undefined> | Codec<"exited_slashed", ValidatorStatus$1 | undefined> | Codec<"withdrawal_possible", ValidatorStatus$1 | undefined> | Codec<"withdrawal_done", ValidatorStatus$1 | undefined>;
583
+ pubkey: Codec<`0x${string}`, B384$1 | undefined>;
584
+ withdrawalCredentials: Codec<`0x${string}`, B256$1 | undefined>;
585
+ effectiveBalance: Codec<bigint, bigint | undefined>;
586
+ slashed: Codec<false, boolean | undefined> | Codec<true, boolean | undefined>;
587
+ activationEligibilityEpoch: Codec<bigint, bigint | undefined>;
588
+ activationEpoch: Codec<bigint, bigint | undefined>;
589
+ exitEpoch: Codec<bigint, bigint | undefined>;
590
+ withdrawableEpoch: Codec<bigint, bigint | undefined>;
805
591
  }>;
806
- type BlockHeader = typeof BlockHeader.Type;
807
- declare const Validator: Schema.Struct<{
808
- filterIds: Schema.Array$<typeof Schema.Number>;
809
- validatorIndex: typeof Schema.Number;
810
- balance: typeof Schema.BigIntFromSelf;
811
- status: Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>;
812
- pubkey: Schema.transform<Schema.Struct<{
813
- x0: typeof Schema.BigIntFromSelf;
814
- x1: typeof Schema.BigIntFromSelf;
815
- x2: typeof Schema.BigIntFromSelf;
816
- x3: typeof Schema.BigIntFromSelf;
817
- x4: typeof Schema.BigIntFromSelf;
818
- x5: typeof Schema.BigIntFromSelf;
819
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
820
- withdrawalCredentials: Schema.transform<Schema.Struct<{
821
- x0: typeof Schema.BigIntFromSelf;
822
- x1: typeof Schema.BigIntFromSelf;
823
- x2: typeof Schema.BigIntFromSelf;
824
- x3: typeof Schema.BigIntFromSelf;
825
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
826
- effectiveBalance: typeof Schema.BigIntFromSelf;
827
- slashed: typeof Schema.Boolean;
828
- activationEligibilityEpoch: typeof Schema.BigIntFromSelf;
829
- activationEpoch: typeof Schema.BigIntFromSelf;
830
- exitEpoch: typeof Schema.BigIntFromSelf;
831
- withdrawableEpoch: typeof Schema.BigIntFromSelf;
592
+ type Validator = CodecType<typeof Validator>;
593
+ declare const Blob: MessageCodec<{
594
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
595
+ blobIndex: Codec<number, number | undefined>;
596
+ blob: Codec<`0x${string}`, Uint8Array | undefined>;
597
+ kzgCommitment: Codec<`0x${string}`, B384$1 | undefined>;
598
+ kzgProof: Codec<`0x${string}`, B384$1 | undefined>;
599
+ kzgCommitmentInclusionProof: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
600
+ blobHash: Codec<`0x${string}`, B256$1 | undefined>;
601
+ transactionIndex: Codec<number, number | undefined>;
602
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
832
603
  }>;
833
- declare const Blob: Schema.Struct<{
834
- filterIds: Schema.Array$<typeof Schema.Number>;
835
- blobIndex: typeof Schema.Number;
836
- blob: Schema.Schema<Uint8Array, Uint8Array, never>;
837
- kzgCommitment: Schema.transform<Schema.Struct<{
838
- x0: typeof Schema.BigIntFromSelf;
839
- x1: typeof Schema.BigIntFromSelf;
840
- x2: typeof Schema.BigIntFromSelf;
841
- x3: typeof Schema.BigIntFromSelf;
842
- x4: typeof Schema.BigIntFromSelf;
843
- x5: typeof Schema.BigIntFromSelf;
844
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
845
- kzgProof: Schema.transform<Schema.Struct<{
846
- x0: typeof Schema.BigIntFromSelf;
847
- x1: typeof Schema.BigIntFromSelf;
848
- x2: typeof Schema.BigIntFromSelf;
849
- x3: typeof Schema.BigIntFromSelf;
850
- x4: typeof Schema.BigIntFromSelf;
851
- x5: typeof Schema.BigIntFromSelf;
852
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
853
- kzgCommitmentInclusionProof: Schema.Array$<Schema.transform<Schema.Struct<{
854
- x0: typeof Schema.BigIntFromSelf;
855
- x1: typeof Schema.BigIntFromSelf;
856
- x2: typeof Schema.BigIntFromSelf;
857
- x3: typeof Schema.BigIntFromSelf;
858
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
859
- blobHash: Schema.transform<Schema.Struct<{
860
- x0: typeof Schema.BigIntFromSelf;
861
- x1: typeof Schema.BigIntFromSelf;
862
- x2: typeof Schema.BigIntFromSelf;
863
- x3: typeof Schema.BigIntFromSelf;
864
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
865
- transactionIndex: typeof Schema.Number;
866
- transactionHash: Schema.transform<Schema.Struct<{
867
- x0: typeof Schema.BigIntFromSelf;
868
- x1: typeof Schema.BigIntFromSelf;
869
- x2: typeof Schema.BigIntFromSelf;
870
- x3: typeof Schema.BigIntFromSelf;
871
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
604
+ type Blob = CodecType<typeof Blob>;
605
+ declare const Signature: MessageCodec<{
606
+ r: Codec<bigint | undefined, U256$1 | undefined>;
607
+ s: Codec<bigint | undefined, U256$1 | undefined>;
608
+ v: Codec<bigint | undefined, U256$1 | undefined>;
609
+ YParity: Codec<boolean | undefined, boolean | undefined>;
872
610
  }>;
873
- declare const Signature: Schema.Struct<{
874
- r: Schema.optional<Schema.transform<Schema.Struct<{
875
- x0: typeof Schema.BigIntFromSelf;
876
- x1: typeof Schema.BigIntFromSelf;
877
- x2: typeof Schema.BigIntFromSelf;
878
- x3: typeof Schema.BigIntFromSelf;
879
- }>, typeof Schema.BigIntFromSelf>>;
880
- s: Schema.optional<Schema.transform<Schema.Struct<{
881
- x0: typeof Schema.BigIntFromSelf;
882
- x1: typeof Schema.BigIntFromSelf;
883
- x2: typeof Schema.BigIntFromSelf;
884
- x3: typeof Schema.BigIntFromSelf;
885
- }>, typeof Schema.BigIntFromSelf>>;
886
- v: Schema.optional<Schema.transform<Schema.Struct<{
887
- x0: typeof Schema.BigIntFromSelf;
888
- x1: typeof Schema.BigIntFromSelf;
889
- x2: typeof Schema.BigIntFromSelf;
890
- x3: typeof Schema.BigIntFromSelf;
891
- }>, typeof Schema.BigIntFromSelf>>;
892
- YParity: Schema.optional<typeof Schema.Boolean>;
611
+ type Signature = CodecType<typeof Signature>;
612
+ declare const AccessListItem: MessageCodec<{
613
+ address: Codec<`0x${string}`, Address$1 | undefined>;
614
+ storageKeys: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
893
615
  }>;
894
- type Signature = typeof Signature.Type;
895
- declare const Transaction: Schema.Struct<{
896
- filterIds: Schema.Array$<typeof Schema.Number>;
897
- transactionHash: Schema.transform<Schema.Struct<{
898
- x0: typeof Schema.BigIntFromSelf;
899
- x1: typeof Schema.BigIntFromSelf;
900
- x2: typeof Schema.BigIntFromSelf;
901
- x3: typeof Schema.BigIntFromSelf;
902
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
903
- nonce: typeof Schema.BigIntFromSelf;
904
- transactionIndex: typeof Schema.Number;
905
- from: Schema.transform<Schema.Struct<{
906
- x0: typeof Schema.BigIntFromSelf;
907
- x1: typeof Schema.BigIntFromSelf;
908
- x2: typeof Schema.Number;
909
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
910
- to: Schema.optional<Schema.transform<Schema.Struct<{
911
- x0: typeof Schema.BigIntFromSelf;
912
- x1: typeof Schema.BigIntFromSelf;
913
- x2: typeof Schema.Number;
914
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
915
- value: Schema.transform<Schema.Struct<{
916
- x0: typeof Schema.BigIntFromSelf;
917
- x1: typeof Schema.BigIntFromSelf;
918
- x2: typeof Schema.BigIntFromSelf;
919
- x3: typeof Schema.BigIntFromSelf;
920
- }>, typeof Schema.BigIntFromSelf>;
921
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
922
- x0: typeof Schema.BigIntFromSelf;
923
- x1: typeof Schema.BigIntFromSelf;
924
- }>, typeof Schema.BigIntFromSelf>>;
925
- gasLimit: Schema.optional<Schema.transform<Schema.Struct<{
926
- x0: typeof Schema.BigIntFromSelf;
927
- x1: typeof Schema.BigIntFromSelf;
928
- }>, typeof Schema.BigIntFromSelf>>;
929
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
930
- x0: typeof Schema.BigIntFromSelf;
931
- x1: typeof Schema.BigIntFromSelf;
932
- }>, typeof Schema.BigIntFromSelf>>;
933
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
934
- x0: typeof Schema.BigIntFromSelf;
935
- x1: typeof Schema.BigIntFromSelf;
936
- }>, typeof Schema.BigIntFromSelf>>;
937
- input: Schema.Schema<Uint8Array, Uint8Array, never>;
938
- signature: Schema.optional<Schema.Struct<{
939
- r: Schema.optional<Schema.transform<Schema.Struct<{
940
- x0: typeof Schema.BigIntFromSelf;
941
- x1: typeof Schema.BigIntFromSelf;
942
- x2: typeof Schema.BigIntFromSelf;
943
- x3: typeof Schema.BigIntFromSelf;
944
- }>, typeof Schema.BigIntFromSelf>>;
945
- s: Schema.optional<Schema.transform<Schema.Struct<{
946
- x0: typeof Schema.BigIntFromSelf;
947
- x1: typeof Schema.BigIntFromSelf;
948
- x2: typeof Schema.BigIntFromSelf;
949
- x3: typeof Schema.BigIntFromSelf;
950
- }>, typeof Schema.BigIntFromSelf>>;
951
- v: Schema.optional<Schema.transform<Schema.Struct<{
952
- x0: typeof Schema.BigIntFromSelf;
953
- x1: typeof Schema.BigIntFromSelf;
954
- x2: typeof Schema.BigIntFromSelf;
955
- x3: typeof Schema.BigIntFromSelf;
956
- }>, typeof Schema.BigIntFromSelf>>;
957
- YParity: Schema.optional<typeof Schema.Boolean>;
958
- }>>;
959
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
960
- accessList: Schema.Array$<Schema.Struct<{
961
- address: Schema.transform<Schema.Struct<{
962
- x0: typeof Schema.BigIntFromSelf;
963
- x1: typeof Schema.BigIntFromSelf;
964
- x2: typeof Schema.Number;
965
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
966
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
967
- x0: typeof Schema.BigIntFromSelf;
968
- x1: typeof Schema.BigIntFromSelf;
969
- x2: typeof Schema.BigIntFromSelf;
970
- x3: typeof Schema.BigIntFromSelf;
971
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
972
- }>>;
973
- transactionType: typeof Schema.BigIntFromSelf;
974
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
975
- x0: typeof Schema.BigIntFromSelf;
976
- x1: typeof Schema.BigIntFromSelf;
977
- }>, typeof Schema.BigIntFromSelf>>;
978
- blobVersionedHashes: Schema.Array$<Schema.transform<Schema.Struct<{
979
- x0: typeof Schema.BigIntFromSelf;
980
- x1: typeof Schema.BigIntFromSelf;
981
- x2: typeof Schema.BigIntFromSelf;
982
- x3: typeof Schema.BigIntFromSelf;
983
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
616
+ type AccessListItem = CodecType<typeof AccessListItem>;
617
+ declare const Transaction: MessageCodec<{
618
+ filterIds: Codec<readonly number[], readonly number[] | undefined>;
619
+ transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
620
+ nonce: Codec<bigint, bigint | undefined>;
621
+ transactionIndex: Codec<number, number | undefined>;
622
+ from: Codec<`0x${string}`, Address$1 | undefined>;
623
+ to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
624
+ value: Codec<bigint, U256$1 | undefined>;
625
+ gasPrice: Codec<bigint | undefined, U128$1 | undefined>;
626
+ gasLimit: Codec<bigint | undefined, U128$1 | undefined>;
627
+ maxFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
628
+ maxPriorityFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
629
+ input: Codec<`0x${string}`, Uint8Array | undefined>;
630
+ signature: Codec<{
631
+ r?: bigint | undefined;
632
+ s?: bigint | undefined;
633
+ v?: bigint | undefined;
634
+ YParity?: boolean | undefined;
635
+ } | undefined, {
636
+ r?: U256$1 | undefined;
637
+ s?: U256$1 | undefined;
638
+ v?: U256$1 | undefined;
639
+ YParity?: boolean | undefined;
640
+ } | undefined>;
641
+ chainId: Codec<bigint | undefined, bigint | undefined>;
642
+ accessList: Codec<readonly {
643
+ address: `0x${string}`;
644
+ storageKeys: readonly `0x${string}`[];
645
+ }[], readonly {
646
+ address?: Address$1 | undefined;
647
+ storageKeys?: readonly B256$1[] | undefined;
648
+ }[] | undefined>;
649
+ transactionType: Codec<bigint, bigint | undefined>;
650
+ maxFeePerBlobGas: Codec<bigint | undefined, U128$1 | undefined>;
651
+ blobVersionedHashes: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
984
652
  }>;
985
- type Transaction = typeof Transaction.Type;
986
- declare const Block: Schema.Struct<{
987
- header: Schema.Struct<{
988
- slot: typeof Schema.BigIntFromSelf;
989
- proposerIndex: typeof Schema.Number;
990
- parentRoot: Schema.transform<Schema.Struct<{
991
- x0: typeof Schema.BigIntFromSelf;
992
- x1: typeof Schema.BigIntFromSelf;
993
- x2: typeof Schema.BigIntFromSelf;
994
- x3: typeof Schema.BigIntFromSelf;
995
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
996
- stateRoot: Schema.transform<Schema.Struct<{
997
- x0: typeof Schema.BigIntFromSelf;
998
- x1: typeof Schema.BigIntFromSelf;
999
- x2: typeof Schema.BigIntFromSelf;
1000
- x3: typeof Schema.BigIntFromSelf;
1001
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1002
- randaoReveal: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1003
- depositCount: typeof Schema.BigIntFromSelf;
1004
- depositRoot: Schema.transform<Schema.Struct<{
1005
- x0: typeof Schema.BigIntFromSelf;
1006
- x1: typeof Schema.BigIntFromSelf;
1007
- x2: typeof Schema.BigIntFromSelf;
1008
- x3: typeof Schema.BigIntFromSelf;
1009
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1010
- blockHash: Schema.transform<Schema.Struct<{
1011
- x0: typeof Schema.BigIntFromSelf;
1012
- x1: typeof Schema.BigIntFromSelf;
1013
- x2: typeof Schema.BigIntFromSelf;
1014
- x3: typeof Schema.BigIntFromSelf;
1015
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1016
- graffiti: Schema.transform<Schema.Struct<{
1017
- x0: typeof Schema.BigIntFromSelf;
1018
- x1: typeof Schema.BigIntFromSelf;
1019
- x2: typeof Schema.BigIntFromSelf;
1020
- x3: typeof Schema.BigIntFromSelf;
1021
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1022
- executionPayload: Schema.optional<Schema.Struct<{
1023
- parentHash: Schema.transform<Schema.Struct<{
1024
- x0: typeof Schema.BigIntFromSelf;
1025
- x1: typeof Schema.BigIntFromSelf;
1026
- x2: typeof Schema.BigIntFromSelf;
1027
- x3: typeof Schema.BigIntFromSelf;
1028
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1029
- feeRecipient: Schema.transform<Schema.Struct<{
1030
- x0: typeof Schema.BigIntFromSelf;
1031
- x1: typeof Schema.BigIntFromSelf;
1032
- x2: typeof Schema.Number;
1033
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1034
- stateRoot: Schema.transform<Schema.Struct<{
1035
- x0: typeof Schema.BigIntFromSelf;
1036
- x1: typeof Schema.BigIntFromSelf;
1037
- x2: typeof Schema.BigIntFromSelf;
1038
- x3: typeof Schema.BigIntFromSelf;
1039
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1040
- receiptsRoot: Schema.transform<Schema.Struct<{
1041
- x0: typeof Schema.BigIntFromSelf;
1042
- x1: typeof Schema.BigIntFromSelf;
1043
- x2: typeof Schema.BigIntFromSelf;
1044
- x3: typeof Schema.BigIntFromSelf;
1045
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1046
- logsBloom: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1047
- prevRandao: Schema.transform<Schema.Struct<{
1048
- x0: typeof Schema.BigIntFromSelf;
1049
- x1: typeof Schema.BigIntFromSelf;
1050
- x2: typeof Schema.BigIntFromSelf;
1051
- x3: typeof Schema.BigIntFromSelf;
1052
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1053
- blockNumber: typeof Schema.BigIntFromSelf;
1054
- timestamp: typeof Schema.DateFromSelf;
1055
- }>>;
1056
- blobKzgCommitments: Schema.Array$<Schema.transform<Schema.Struct<{
1057
- x0: typeof Schema.BigIntFromSelf;
1058
- x1: typeof Schema.BigIntFromSelf;
1059
- x2: typeof Schema.BigIntFromSelf;
1060
- x3: typeof Schema.BigIntFromSelf;
1061
- x4: typeof Schema.BigIntFromSelf;
1062
- x5: typeof Schema.BigIntFromSelf;
1063
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1064
- }>;
1065
- validators: Schema.Array$<Schema.Struct<{
1066
- filterIds: Schema.Array$<typeof Schema.Number>;
1067
- validatorIndex: typeof Schema.Number;
1068
- balance: typeof Schema.BigIntFromSelf;
1069
- status: Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>;
1070
- pubkey: Schema.transform<Schema.Struct<{
1071
- x0: typeof Schema.BigIntFromSelf;
1072
- x1: typeof Schema.BigIntFromSelf;
1073
- x2: typeof Schema.BigIntFromSelf;
1074
- x3: typeof Schema.BigIntFromSelf;
1075
- x4: typeof Schema.BigIntFromSelf;
1076
- x5: typeof Schema.BigIntFromSelf;
1077
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1078
- withdrawalCredentials: Schema.transform<Schema.Struct<{
1079
- x0: typeof Schema.BigIntFromSelf;
1080
- x1: typeof Schema.BigIntFromSelf;
1081
- x2: typeof Schema.BigIntFromSelf;
1082
- x3: typeof Schema.BigIntFromSelf;
1083
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1084
- effectiveBalance: typeof Schema.BigIntFromSelf;
1085
- slashed: typeof Schema.Boolean;
1086
- activationEligibilityEpoch: typeof Schema.BigIntFromSelf;
1087
- activationEpoch: typeof Schema.BigIntFromSelf;
1088
- exitEpoch: typeof Schema.BigIntFromSelf;
1089
- withdrawableEpoch: typeof Schema.BigIntFromSelf;
1090
- }>>;
1091
- blobs: Schema.Array$<Schema.Struct<{
1092
- filterIds: Schema.Array$<typeof Schema.Number>;
1093
- blobIndex: typeof Schema.Number;
1094
- blob: Schema.Schema<Uint8Array, Uint8Array, never>;
1095
- kzgCommitment: Schema.transform<Schema.Struct<{
1096
- x0: typeof Schema.BigIntFromSelf;
1097
- x1: typeof Schema.BigIntFromSelf;
1098
- x2: typeof Schema.BigIntFromSelf;
1099
- x3: typeof Schema.BigIntFromSelf;
1100
- x4: typeof Schema.BigIntFromSelf;
1101
- x5: typeof Schema.BigIntFromSelf;
1102
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1103
- kzgProof: Schema.transform<Schema.Struct<{
1104
- x0: typeof Schema.BigIntFromSelf;
1105
- x1: typeof Schema.BigIntFromSelf;
1106
- x2: typeof Schema.BigIntFromSelf;
1107
- x3: typeof Schema.BigIntFromSelf;
1108
- x4: typeof Schema.BigIntFromSelf;
1109
- x5: typeof Schema.BigIntFromSelf;
1110
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1111
- kzgCommitmentInclusionProof: Schema.Array$<Schema.transform<Schema.Struct<{
1112
- x0: typeof Schema.BigIntFromSelf;
1113
- x1: typeof Schema.BigIntFromSelf;
1114
- x2: typeof Schema.BigIntFromSelf;
1115
- x3: typeof Schema.BigIntFromSelf;
1116
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1117
- blobHash: Schema.transform<Schema.Struct<{
1118
- x0: typeof Schema.BigIntFromSelf;
1119
- x1: typeof Schema.BigIntFromSelf;
1120
- x2: typeof Schema.BigIntFromSelf;
1121
- x3: typeof Schema.BigIntFromSelf;
1122
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1123
- transactionIndex: typeof Schema.Number;
1124
- transactionHash: Schema.transform<Schema.Struct<{
1125
- x0: typeof Schema.BigIntFromSelf;
1126
- x1: typeof Schema.BigIntFromSelf;
1127
- x2: typeof Schema.BigIntFromSelf;
1128
- x3: typeof Schema.BigIntFromSelf;
1129
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1130
- }>>;
1131
- transactions: Schema.Array$<Schema.Struct<{
1132
- filterIds: Schema.Array$<typeof Schema.Number>;
1133
- transactionHash: Schema.transform<Schema.Struct<{
1134
- x0: typeof Schema.BigIntFromSelf;
1135
- x1: typeof Schema.BigIntFromSelf;
1136
- x2: typeof Schema.BigIntFromSelf;
1137
- x3: typeof Schema.BigIntFromSelf;
1138
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1139
- nonce: typeof Schema.BigIntFromSelf;
1140
- transactionIndex: typeof Schema.Number;
1141
- from: Schema.transform<Schema.Struct<{
1142
- x0: typeof Schema.BigIntFromSelf;
1143
- x1: typeof Schema.BigIntFromSelf;
1144
- x2: typeof Schema.Number;
1145
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1146
- to: Schema.optional<Schema.transform<Schema.Struct<{
1147
- x0: typeof Schema.BigIntFromSelf;
1148
- x1: typeof Schema.BigIntFromSelf;
1149
- x2: typeof Schema.Number;
1150
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1151
- value: Schema.transform<Schema.Struct<{
1152
- x0: typeof Schema.BigIntFromSelf;
1153
- x1: typeof Schema.BigIntFromSelf;
1154
- x2: typeof Schema.BigIntFromSelf;
1155
- x3: typeof Schema.BigIntFromSelf;
1156
- }>, typeof Schema.BigIntFromSelf>;
1157
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1158
- x0: typeof Schema.BigIntFromSelf;
1159
- x1: typeof Schema.BigIntFromSelf;
1160
- }>, typeof Schema.BigIntFromSelf>>;
1161
- gasLimit: Schema.optional<Schema.transform<Schema.Struct<{
1162
- x0: typeof Schema.BigIntFromSelf;
1163
- x1: typeof Schema.BigIntFromSelf;
1164
- }>, typeof Schema.BigIntFromSelf>>;
1165
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1166
- x0: typeof Schema.BigIntFromSelf;
1167
- x1: typeof Schema.BigIntFromSelf;
1168
- }>, typeof Schema.BigIntFromSelf>>;
1169
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1170
- x0: typeof Schema.BigIntFromSelf;
1171
- x1: typeof Schema.BigIntFromSelf;
1172
- }>, typeof Schema.BigIntFromSelf>>;
1173
- input: Schema.Schema<Uint8Array, Uint8Array, never>;
1174
- signature: Schema.optional<Schema.Struct<{
1175
- r: Schema.optional<Schema.transform<Schema.Struct<{
1176
- x0: typeof Schema.BigIntFromSelf;
1177
- x1: typeof Schema.BigIntFromSelf;
1178
- x2: typeof Schema.BigIntFromSelf;
1179
- x3: typeof Schema.BigIntFromSelf;
1180
- }>, typeof Schema.BigIntFromSelf>>;
1181
- s: Schema.optional<Schema.transform<Schema.Struct<{
1182
- x0: typeof Schema.BigIntFromSelf;
1183
- x1: typeof Schema.BigIntFromSelf;
1184
- x2: typeof Schema.BigIntFromSelf;
1185
- x3: typeof Schema.BigIntFromSelf;
1186
- }>, typeof Schema.BigIntFromSelf>>;
1187
- v: Schema.optional<Schema.transform<Schema.Struct<{
1188
- x0: typeof Schema.BigIntFromSelf;
1189
- x1: typeof Schema.BigIntFromSelf;
1190
- x2: typeof Schema.BigIntFromSelf;
1191
- x3: typeof Schema.BigIntFromSelf;
1192
- }>, typeof Schema.BigIntFromSelf>>;
1193
- YParity: Schema.optional<typeof Schema.Boolean>;
1194
- }>>;
1195
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
1196
- accessList: Schema.Array$<Schema.Struct<{
1197
- address: Schema.transform<Schema.Struct<{
1198
- x0: typeof Schema.BigIntFromSelf;
1199
- x1: typeof Schema.BigIntFromSelf;
1200
- x2: typeof Schema.Number;
1201
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1202
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1203
- x0: typeof Schema.BigIntFromSelf;
1204
- x1: typeof Schema.BigIntFromSelf;
1205
- x2: typeof Schema.BigIntFromSelf;
1206
- x3: typeof Schema.BigIntFromSelf;
1207
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1208
- }>>;
1209
- transactionType: typeof Schema.BigIntFromSelf;
1210
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1211
- x0: typeof Schema.BigIntFromSelf;
1212
- x1: typeof Schema.BigIntFromSelf;
1213
- }>, typeof Schema.BigIntFromSelf>>;
1214
- blobVersionedHashes: Schema.Array$<Schema.transform<Schema.Struct<{
1215
- x0: typeof Schema.BigIntFromSelf;
1216
- x1: typeof Schema.BigIntFromSelf;
1217
- x2: typeof Schema.BigIntFromSelf;
1218
- x3: typeof Schema.BigIntFromSelf;
1219
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1220
- }>>;
653
+ type Transaction = CodecType<typeof Transaction>;
654
+ declare const Block: MessageCodec<{
655
+ header: Codec<{
656
+ slot: bigint;
657
+ proposerIndex: number;
658
+ parentRoot: `0x${string}`;
659
+ stateRoot: `0x${string}`;
660
+ randaoReveal: `0x${string}`;
661
+ depositCount: bigint;
662
+ depositRoot: `0x${string}`;
663
+ blockHash: `0x${string}`;
664
+ graffiti: `0x${string}`;
665
+ executionPayload?: {
666
+ parentHash: `0x${string}`;
667
+ feeRecipient: `0x${string}`;
668
+ stateRoot: `0x${string}`;
669
+ receiptsRoot: `0x${string}`;
670
+ logsBloom: `0x${string}`;
671
+ prevRandao: `0x${string}`;
672
+ blockNumber: bigint;
673
+ timestamp: Date;
674
+ } | undefined;
675
+ blobKzgCommitments: readonly `0x${string}`[];
676
+ }, {
677
+ slot?: bigint | undefined;
678
+ proposerIndex?: number | undefined;
679
+ parentRoot?: B256$1 | undefined;
680
+ stateRoot?: B256$1 | undefined;
681
+ randaoReveal?: Uint8Array | undefined;
682
+ depositCount?: bigint | undefined;
683
+ depositRoot?: B256$1 | undefined;
684
+ blockHash?: B256$1 | undefined;
685
+ graffiti?: B256$1 | undefined;
686
+ executionPayload?: {
687
+ parentHash?: B256$1 | undefined;
688
+ feeRecipient?: Address$1 | undefined;
689
+ stateRoot?: B256$1 | undefined;
690
+ receiptsRoot?: B256$1 | undefined;
691
+ logsBloom?: Uint8Array | undefined;
692
+ prevRandao?: B256$1 | undefined;
693
+ blockNumber?: bigint | undefined;
694
+ timestamp?: Date | undefined;
695
+ } | undefined;
696
+ blobKzgCommitments?: readonly B384$1[] | undefined;
697
+ } | undefined>;
698
+ validators: Codec<readonly {
699
+ filterIds: readonly number[];
700
+ validatorIndex: number;
701
+ balance: bigint;
702
+ status: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
703
+ pubkey: `0x${string}`;
704
+ withdrawalCredentials: `0x${string}`;
705
+ effectiveBalance: bigint;
706
+ slashed: boolean;
707
+ activationEligibilityEpoch: bigint;
708
+ activationEpoch: bigint;
709
+ exitEpoch: bigint;
710
+ withdrawableEpoch: bigint;
711
+ }[], readonly {
712
+ filterIds?: readonly number[] | undefined;
713
+ validatorIndex?: number | undefined;
714
+ balance?: bigint | undefined;
715
+ status?: ValidatorStatus$1 | undefined;
716
+ pubkey?: B384$1 | undefined;
717
+ withdrawalCredentials?: B256$1 | undefined;
718
+ effectiveBalance?: bigint | undefined;
719
+ slashed?: boolean | undefined;
720
+ activationEligibilityEpoch?: bigint | undefined;
721
+ activationEpoch?: bigint | undefined;
722
+ exitEpoch?: bigint | undefined;
723
+ withdrawableEpoch?: bigint | undefined;
724
+ }[] | undefined>;
725
+ blobs: Codec<readonly {
726
+ filterIds: readonly number[];
727
+ blobIndex: number;
728
+ blob: `0x${string}`;
729
+ kzgCommitment: `0x${string}`;
730
+ kzgProof: `0x${string}`;
731
+ kzgCommitmentInclusionProof: readonly `0x${string}`[];
732
+ blobHash: `0x${string}`;
733
+ transactionIndex: number;
734
+ transactionHash: `0x${string}`;
735
+ }[], readonly {
736
+ filterIds?: readonly number[] | undefined;
737
+ blobIndex?: number | undefined;
738
+ blob?: Uint8Array | undefined;
739
+ kzgCommitment?: B384$1 | undefined;
740
+ kzgProof?: B384$1 | undefined;
741
+ kzgCommitmentInclusionProof?: readonly B256$1[] | undefined;
742
+ blobHash?: B256$1 | undefined;
743
+ transactionIndex?: number | undefined;
744
+ transactionHash?: B256$1 | undefined;
745
+ }[] | undefined>;
746
+ transactions: Codec<readonly {
747
+ filterIds: readonly number[];
748
+ transactionHash: `0x${string}`;
749
+ nonce: bigint;
750
+ transactionIndex: number;
751
+ from: `0x${string}`;
752
+ to?: `0x${string}` | undefined;
753
+ value: bigint;
754
+ gasPrice?: bigint | undefined;
755
+ gasLimit?: bigint | undefined;
756
+ maxFeePerGas?: bigint | undefined;
757
+ maxPriorityFeePerGas?: bigint | undefined;
758
+ input: `0x${string}`;
759
+ signature?: {
760
+ r?: bigint | undefined;
761
+ s?: bigint | undefined;
762
+ v?: bigint | undefined;
763
+ YParity?: boolean | undefined;
764
+ } | undefined;
765
+ chainId?: bigint | undefined;
766
+ accessList: readonly {
767
+ address: `0x${string}`;
768
+ storageKeys: readonly `0x${string}`[];
769
+ }[];
770
+ transactionType: bigint;
771
+ maxFeePerBlobGas?: bigint | undefined;
772
+ blobVersionedHashes: readonly `0x${string}`[];
773
+ }[], readonly {
774
+ filterIds?: readonly number[] | undefined;
775
+ transactionHash?: B256$1 | undefined;
776
+ nonce?: bigint | undefined;
777
+ transactionIndex?: number | undefined;
778
+ from?: Address$1 | undefined;
779
+ to?: Address$1 | undefined;
780
+ value?: U256$1 | undefined;
781
+ gasPrice?: U128$1 | undefined;
782
+ gasLimit?: U128$1 | undefined;
783
+ maxFeePerGas?: U128$1 | undefined;
784
+ maxPriorityFeePerGas?: U128$1 | undefined;
785
+ input?: Uint8Array | undefined;
786
+ signature?: {
787
+ r?: U256$1 | undefined;
788
+ s?: U256$1 | undefined;
789
+ v?: U256$1 | undefined;
790
+ YParity?: boolean | undefined;
791
+ } | undefined;
792
+ chainId?: bigint | undefined;
793
+ accessList?: readonly {
794
+ address?: Address$1 | undefined;
795
+ storageKeys?: readonly B256$1[] | undefined;
796
+ }[] | undefined;
797
+ transactionType?: bigint | undefined;
798
+ maxFeePerBlobGas?: U128$1 | undefined;
799
+ blobVersionedHashes?: readonly B256$1[] | undefined;
800
+ }[] | undefined>;
1221
801
  }>;
1222
- type Block = typeof Block.Type;
1223
- declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.NullOr<Schema.Struct<{
1224
- header: Schema.Struct<{
1225
- slot: typeof Schema.BigIntFromSelf;
1226
- proposerIndex: typeof Schema.Number;
1227
- parentRoot: Schema.transform<Schema.Struct<{
1228
- x0: typeof Schema.BigIntFromSelf;
1229
- x1: typeof Schema.BigIntFromSelf;
1230
- x2: typeof Schema.BigIntFromSelf;
1231
- x3: typeof Schema.BigIntFromSelf;
1232
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1233
- stateRoot: Schema.transform<Schema.Struct<{
1234
- x0: typeof Schema.BigIntFromSelf;
1235
- x1: typeof Schema.BigIntFromSelf;
1236
- x2: typeof Schema.BigIntFromSelf;
1237
- x3: typeof Schema.BigIntFromSelf;
1238
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1239
- randaoReveal: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1240
- depositCount: typeof Schema.BigIntFromSelf;
1241
- depositRoot: Schema.transform<Schema.Struct<{
1242
- x0: typeof Schema.BigIntFromSelf;
1243
- x1: typeof Schema.BigIntFromSelf;
1244
- x2: typeof Schema.BigIntFromSelf;
1245
- x3: typeof Schema.BigIntFromSelf;
1246
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1247
- blockHash: Schema.transform<Schema.Struct<{
1248
- x0: typeof Schema.BigIntFromSelf;
1249
- x1: typeof Schema.BigIntFromSelf;
1250
- x2: typeof Schema.BigIntFromSelf;
1251
- x3: typeof Schema.BigIntFromSelf;
1252
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1253
- graffiti: Schema.transform<Schema.Struct<{
1254
- x0: typeof Schema.BigIntFromSelf;
1255
- x1: typeof Schema.BigIntFromSelf;
1256
- x2: typeof Schema.BigIntFromSelf;
1257
- x3: typeof Schema.BigIntFromSelf;
1258
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1259
- executionPayload: Schema.optional<Schema.Struct<{
1260
- parentHash: Schema.transform<Schema.Struct<{
1261
- x0: typeof Schema.BigIntFromSelf;
1262
- x1: typeof Schema.BigIntFromSelf;
1263
- x2: typeof Schema.BigIntFromSelf;
1264
- x3: typeof Schema.BigIntFromSelf;
1265
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1266
- feeRecipient: Schema.transform<Schema.Struct<{
1267
- x0: typeof Schema.BigIntFromSelf;
1268
- x1: typeof Schema.BigIntFromSelf;
1269
- x2: typeof Schema.Number;
1270
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1271
- stateRoot: Schema.transform<Schema.Struct<{
1272
- x0: typeof Schema.BigIntFromSelf;
1273
- x1: typeof Schema.BigIntFromSelf;
1274
- x2: typeof Schema.BigIntFromSelf;
1275
- x3: typeof Schema.BigIntFromSelf;
1276
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1277
- receiptsRoot: Schema.transform<Schema.Struct<{
1278
- x0: typeof Schema.BigIntFromSelf;
1279
- x1: typeof Schema.BigIntFromSelf;
1280
- x2: typeof Schema.BigIntFromSelf;
1281
- x3: typeof Schema.BigIntFromSelf;
1282
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1283
- logsBloom: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
1284
- prevRandao: Schema.transform<Schema.Struct<{
1285
- x0: typeof Schema.BigIntFromSelf;
1286
- x1: typeof Schema.BigIntFromSelf;
1287
- x2: typeof Schema.BigIntFromSelf;
1288
- x3: typeof Schema.BigIntFromSelf;
1289
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1290
- blockNumber: typeof Schema.BigIntFromSelf;
1291
- timestamp: typeof Schema.DateFromSelf;
1292
- }>>;
1293
- blobKzgCommitments: Schema.Array$<Schema.transform<Schema.Struct<{
1294
- x0: typeof Schema.BigIntFromSelf;
1295
- x1: typeof Schema.BigIntFromSelf;
1296
- x2: typeof Schema.BigIntFromSelf;
1297
- x3: typeof Schema.BigIntFromSelf;
1298
- x4: typeof Schema.BigIntFromSelf;
1299
- x5: typeof Schema.BigIntFromSelf;
1300
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1301
- }>;
1302
- validators: Schema.Array$<Schema.Struct<{
1303
- filterIds: Schema.Array$<typeof Schema.Number>;
1304
- validatorIndex: typeof Schema.Number;
1305
- balance: typeof Schema.BigIntFromSelf;
1306
- status: Schema.transform<Schema.Enums<typeof ValidatorStatus$1>, Schema.Literal<["pending_initialized", "pending_queued", "active_ongoing", "active_exiting", "active_slashed", "exited_unslashed", "exited_slashed", "withdrawal_possible", "withdrawal_done", "unknown"]>>;
1307
- pubkey: Schema.transform<Schema.Struct<{
1308
- x0: typeof Schema.BigIntFromSelf;
1309
- x1: typeof Schema.BigIntFromSelf;
1310
- x2: typeof Schema.BigIntFromSelf;
1311
- x3: typeof Schema.BigIntFromSelf;
1312
- x4: typeof Schema.BigIntFromSelf;
1313
- x5: typeof Schema.BigIntFromSelf;
1314
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1315
- withdrawalCredentials: Schema.transform<Schema.Struct<{
1316
- x0: typeof Schema.BigIntFromSelf;
1317
- x1: typeof Schema.BigIntFromSelf;
1318
- x2: typeof Schema.BigIntFromSelf;
1319
- x3: typeof Schema.BigIntFromSelf;
1320
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1321
- effectiveBalance: typeof Schema.BigIntFromSelf;
1322
- slashed: typeof Schema.Boolean;
1323
- activationEligibilityEpoch: typeof Schema.BigIntFromSelf;
1324
- activationEpoch: typeof Schema.BigIntFromSelf;
1325
- exitEpoch: typeof Schema.BigIntFromSelf;
1326
- withdrawableEpoch: typeof Schema.BigIntFromSelf;
1327
- }>>;
1328
- blobs: Schema.Array$<Schema.Struct<{
1329
- filterIds: Schema.Array$<typeof Schema.Number>;
1330
- blobIndex: typeof Schema.Number;
1331
- blob: Schema.Schema<Uint8Array, Uint8Array, never>;
1332
- kzgCommitment: 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
- x4: typeof Schema.BigIntFromSelf;
1338
- x5: typeof Schema.BigIntFromSelf;
1339
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1340
- kzgProof: Schema.transform<Schema.Struct<{
1341
- x0: typeof Schema.BigIntFromSelf;
1342
- x1: typeof Schema.BigIntFromSelf;
1343
- x2: typeof Schema.BigIntFromSelf;
1344
- x3: typeof Schema.BigIntFromSelf;
1345
- x4: typeof Schema.BigIntFromSelf;
1346
- x5: typeof Schema.BigIntFromSelf;
1347
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1348
- kzgCommitmentInclusionProof: Schema.Array$<Schema.transform<Schema.Struct<{
1349
- x0: typeof Schema.BigIntFromSelf;
1350
- x1: typeof Schema.BigIntFromSelf;
1351
- x2: typeof Schema.BigIntFromSelf;
1352
- x3: typeof Schema.BigIntFromSelf;
1353
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1354
- blobHash: Schema.transform<Schema.Struct<{
1355
- x0: typeof Schema.BigIntFromSelf;
1356
- x1: typeof Schema.BigIntFromSelf;
1357
- x2: typeof Schema.BigIntFromSelf;
1358
- x3: typeof Schema.BigIntFromSelf;
1359
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1360
- transactionIndex: typeof Schema.Number;
1361
- transactionHash: Schema.transform<Schema.Struct<{
1362
- x0: typeof Schema.BigIntFromSelf;
1363
- x1: typeof Schema.BigIntFromSelf;
1364
- x2: typeof Schema.BigIntFromSelf;
1365
- x3: typeof Schema.BigIntFromSelf;
1366
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1367
- }>>;
1368
- transactions: Schema.Array$<Schema.Struct<{
1369
- filterIds: Schema.Array$<typeof Schema.Number>;
1370
- transactionHash: Schema.transform<Schema.Struct<{
1371
- x0: typeof Schema.BigIntFromSelf;
1372
- x1: typeof Schema.BigIntFromSelf;
1373
- x2: typeof Schema.BigIntFromSelf;
1374
- x3: typeof Schema.BigIntFromSelf;
1375
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1376
- nonce: typeof Schema.BigIntFromSelf;
1377
- transactionIndex: typeof Schema.Number;
1378
- from: Schema.transform<Schema.Struct<{
1379
- x0: typeof Schema.BigIntFromSelf;
1380
- x1: typeof Schema.BigIntFromSelf;
1381
- x2: typeof Schema.Number;
1382
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1383
- to: Schema.optional<Schema.transform<Schema.Struct<{
1384
- x0: typeof Schema.BigIntFromSelf;
1385
- x1: typeof Schema.BigIntFromSelf;
1386
- x2: typeof Schema.Number;
1387
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1388
- value: 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
- }>, typeof Schema.BigIntFromSelf>;
1394
- gasPrice: Schema.optional<Schema.transform<Schema.Struct<{
1395
- x0: typeof Schema.BigIntFromSelf;
1396
- x1: typeof Schema.BigIntFromSelf;
1397
- }>, typeof Schema.BigIntFromSelf>>;
1398
- gasLimit: Schema.optional<Schema.transform<Schema.Struct<{
1399
- x0: typeof Schema.BigIntFromSelf;
1400
- x1: typeof Schema.BigIntFromSelf;
1401
- }>, typeof Schema.BigIntFromSelf>>;
1402
- maxFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1403
- x0: typeof Schema.BigIntFromSelf;
1404
- x1: typeof Schema.BigIntFromSelf;
1405
- }>, typeof Schema.BigIntFromSelf>>;
1406
- maxPriorityFeePerGas: Schema.optional<Schema.transform<Schema.Struct<{
1407
- x0: typeof Schema.BigIntFromSelf;
1408
- x1: typeof Schema.BigIntFromSelf;
1409
- }>, typeof Schema.BigIntFromSelf>>;
1410
- input: Schema.Schema<Uint8Array, Uint8Array, never>;
1411
- signature: Schema.optional<Schema.Struct<{
1412
- r: Schema.optional<Schema.transform<Schema.Struct<{
1413
- x0: typeof Schema.BigIntFromSelf;
1414
- x1: typeof Schema.BigIntFromSelf;
1415
- x2: typeof Schema.BigIntFromSelf;
1416
- x3: typeof Schema.BigIntFromSelf;
1417
- }>, typeof Schema.BigIntFromSelf>>;
1418
- s: Schema.optional<Schema.transform<Schema.Struct<{
1419
- x0: typeof Schema.BigIntFromSelf;
1420
- x1: typeof Schema.BigIntFromSelf;
1421
- x2: typeof Schema.BigIntFromSelf;
1422
- x3: typeof Schema.BigIntFromSelf;
1423
- }>, typeof Schema.BigIntFromSelf>>;
1424
- v: Schema.optional<Schema.transform<Schema.Struct<{
1425
- x0: typeof Schema.BigIntFromSelf;
1426
- x1: typeof Schema.BigIntFromSelf;
1427
- x2: typeof Schema.BigIntFromSelf;
1428
- x3: typeof Schema.BigIntFromSelf;
1429
- }>, typeof Schema.BigIntFromSelf>>;
1430
- YParity: Schema.optional<typeof Schema.Boolean>;
1431
- }>>;
1432
- chainId: Schema.optional<typeof Schema.BigIntFromSelf>;
1433
- accessList: Schema.Array$<Schema.Struct<{
1434
- address: Schema.transform<Schema.Struct<{
1435
- x0: typeof Schema.BigIntFromSelf;
1436
- x1: typeof Schema.BigIntFromSelf;
1437
- x2: typeof Schema.Number;
1438
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1439
- storageKeys: Schema.Array$<Schema.transform<Schema.Struct<{
1440
- x0: typeof Schema.BigIntFromSelf;
1441
- x1: typeof Schema.BigIntFromSelf;
1442
- x2: typeof Schema.BigIntFromSelf;
1443
- x3: typeof Schema.BigIntFromSelf;
1444
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1445
- }>>;
1446
- transactionType: typeof Schema.BigIntFromSelf;
1447
- maxFeePerBlobGas: Schema.optional<Schema.transform<Schema.Struct<{
1448
- x0: typeof Schema.BigIntFromSelf;
1449
- x1: typeof Schema.BigIntFromSelf;
1450
- }>, typeof Schema.BigIntFromSelf>>;
1451
- blobVersionedHashes: Schema.Array$<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
- }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1457
- }>>;
1458
- }>>>;
802
+ type Block = CodecType<typeof Block>;
803
+ declare const BlockFromBytes: Codec<Block, Uint8Array>;
1459
804
 
1460
805
  declare const BeaconChainStream: StreamConfig<{
1461
- readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1462
- readonly transactions?: readonly {
1463
- readonly from?: `0x${string}` | undefined;
1464
- readonly to?: `0x${string}` | undefined;
1465
- readonly id?: number | undefined;
1466
- readonly create?: boolean | undefined;
1467
- readonly includeBlob?: boolean | undefined;
806
+ header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
807
+ transactions?: readonly {
808
+ id?: number | undefined;
809
+ from?: `0x${string}` | undefined;
810
+ to?: `0x${string}` | undefined;
811
+ create?: boolean | undefined;
812
+ includeBlob?: boolean | undefined;
1468
813
  }[] | undefined;
1469
- readonly validators?: readonly {
1470
- readonly id?: number | undefined;
1471
- readonly validatorIndex?: number | undefined;
1472
- readonly status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
814
+ validators?: readonly {
815
+ id?: number | undefined;
816
+ validatorIndex?: number | undefined;
817
+ status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
1473
818
  }[] | undefined;
1474
- readonly blobs?: readonly {
1475
- readonly id?: number | undefined;
1476
- readonly includeTransaction?: boolean | undefined;
819
+ blobs?: readonly {
820
+ id?: number | undefined;
821
+ includeTransaction?: boolean | undefined;
1477
822
  }[] | undefined;
1478
823
  }, {
1479
- readonly header: {
1480
- readonly slot: bigint;
1481
- readonly proposerIndex: number;
1482
- readonly parentRoot: `0x${string}`;
1483
- readonly stateRoot: `0x${string}`;
1484
- readonly randaoReveal?: `0x${string}` | undefined;
1485
- readonly depositCount: bigint;
1486
- readonly depositRoot: `0x${string}`;
1487
- readonly blockHash: `0x${string}`;
1488
- readonly graffiti: `0x${string}`;
1489
- readonly executionPayload?: {
1490
- readonly stateRoot: `0x${string}`;
1491
- readonly parentHash: `0x${string}`;
1492
- readonly feeRecipient: `0x${string}`;
1493
- readonly receiptsRoot: `0x${string}`;
1494
- readonly logsBloom?: `0x${string}` | undefined;
1495
- readonly prevRandao: `0x${string}`;
1496
- readonly blockNumber: bigint;
1497
- readonly timestamp: Date;
824
+ header: {
825
+ slot: bigint;
826
+ proposerIndex: number;
827
+ parentRoot: `0x${string}`;
828
+ stateRoot: `0x${string}`;
829
+ randaoReveal: `0x${string}`;
830
+ depositCount: bigint;
831
+ depositRoot: `0x${string}`;
832
+ blockHash: `0x${string}`;
833
+ graffiti: `0x${string}`;
834
+ executionPayload?: {
835
+ parentHash: `0x${string}`;
836
+ feeRecipient: `0x${string}`;
837
+ stateRoot: `0x${string}`;
838
+ receiptsRoot: `0x${string}`;
839
+ logsBloom: `0x${string}`;
840
+ prevRandao: `0x${string}`;
841
+ blockNumber: bigint;
842
+ timestamp: Date;
1498
843
  } | undefined;
1499
- readonly blobKzgCommitments: readonly `0x${string}`[];
844
+ blobKzgCommitments: readonly `0x${string}`[];
1500
845
  };
1501
- readonly transactions: readonly {
1502
- readonly from: `0x${string}`;
1503
- readonly to?: `0x${string}` | undefined;
1504
- readonly value: bigint;
1505
- readonly filterIds: readonly number[];
1506
- readonly transactionIndex: number;
1507
- readonly transactionHash: `0x${string}`;
1508
- readonly nonce: bigint;
1509
- readonly gasPrice?: bigint | undefined;
1510
- readonly gasLimit?: bigint | undefined;
1511
- readonly maxFeePerGas?: bigint | undefined;
1512
- readonly maxPriorityFeePerGas?: bigint | undefined;
1513
- readonly input: Uint8Array;
1514
- readonly signature?: {
1515
- readonly r?: bigint | undefined;
1516
- readonly s?: bigint | undefined;
1517
- readonly v?: bigint | undefined;
1518
- readonly YParity?: boolean | undefined;
1519
- } | undefined;
1520
- readonly chainId?: bigint | undefined;
1521
- readonly accessList: readonly {
1522
- readonly address: `0x${string}`;
1523
- readonly storageKeys: readonly `0x${string}`[];
1524
- }[];
1525
- readonly transactionType: bigint;
1526
- readonly maxFeePerBlobGas?: bigint | undefined;
1527
- readonly blobVersionedHashes: readonly `0x${string}`[];
846
+ validators: readonly {
847
+ filterIds: readonly number[];
848
+ validatorIndex: number;
849
+ balance: bigint;
850
+ status: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
851
+ pubkey: `0x${string}`;
852
+ withdrawalCredentials: `0x${string}`;
853
+ effectiveBalance: bigint;
854
+ slashed: boolean;
855
+ activationEligibilityEpoch: bigint;
856
+ activationEpoch: bigint;
857
+ exitEpoch: bigint;
858
+ withdrawableEpoch: bigint;
1528
859
  }[];
1529
- readonly validators: readonly {
1530
- readonly validatorIndex: number;
1531
- readonly status: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
1532
- readonly filterIds: readonly number[];
1533
- readonly balance: bigint;
1534
- readonly pubkey: `0x${string}`;
1535
- readonly withdrawalCredentials: `0x${string}`;
1536
- readonly effectiveBalance: bigint;
1537
- readonly slashed: boolean;
1538
- readonly activationEligibilityEpoch: bigint;
1539
- readonly activationEpoch: bigint;
1540
- readonly exitEpoch: bigint;
1541
- readonly withdrawableEpoch: bigint;
860
+ blobs: readonly {
861
+ filterIds: readonly number[];
862
+ blobIndex: number;
863
+ blob: `0x${string}`;
864
+ kzgCommitment: `0x${string}`;
865
+ kzgProof: `0x${string}`;
866
+ kzgCommitmentInclusionProof: readonly `0x${string}`[];
867
+ blobHash: `0x${string}`;
868
+ transactionIndex: number;
869
+ transactionHash: `0x${string}`;
1542
870
  }[];
1543
- readonly blobs: readonly {
1544
- readonly filterIds: readonly number[];
1545
- readonly blobIndex: number;
1546
- readonly blob: Uint8Array;
1547
- readonly kzgCommitment: `0x${string}`;
1548
- readonly kzgProof: `0x${string}`;
1549
- readonly kzgCommitmentInclusionProof: readonly `0x${string}`[];
1550
- readonly blobHash: `0x${string}`;
1551
- readonly transactionIndex: number;
1552
- readonly transactionHash: `0x${string}`;
871
+ transactions: readonly {
872
+ filterIds: readonly number[];
873
+ transactionHash: `0x${string}`;
874
+ nonce: bigint;
875
+ transactionIndex: number;
876
+ from: `0x${string}`;
877
+ to?: `0x${string}` | undefined;
878
+ value: bigint;
879
+ gasPrice?: bigint | undefined;
880
+ gasLimit?: bigint | undefined;
881
+ maxFeePerGas?: bigint | undefined;
882
+ maxPriorityFeePerGas?: bigint | undefined;
883
+ input: `0x${string}`;
884
+ signature?: {
885
+ r?: bigint | undefined;
886
+ s?: bigint | undefined;
887
+ v?: bigint | undefined;
888
+ YParity?: boolean | undefined;
889
+ } | undefined;
890
+ chainId?: bigint | undefined;
891
+ accessList: readonly {
892
+ address: `0x${string}`;
893
+ storageKeys: readonly `0x${string}`[];
894
+ }[];
895
+ transactionType: bigint;
896
+ maxFeePerBlobGas?: bigint | undefined;
897
+ blobVersionedHashes: readonly `0x${string}`[];
1553
898
  }[];
1554
899
  }>;
1555
900
 
1556
- export { B384, BeaconChainStream, Blob, BlobFilter, Block, BlockFromBytes, BlockHeader, ExecutionPayload, Filter, FilterFromBytes, HeaderFilter, Signature, Transaction, TransactionFilter, Validator, ValidatorFilter, ValidatorStatus, filterFromBytes, filterFromProto, filterToBytes, filterToProto, mergeFilter, index as proto };
901
+ export { AccessListItem, Address, B256, B384, BeaconChainStream, Blob, BlobFilter, Block, BlockFromBytes, BlockHeader, ExecutionPayload, Filter, FilterFromBytes, HeaderFilter, Signature, Transaction, TransactionFilter, U128, U256, Validator, ValidatorFilter, ValidatorStatus, mergeFilter, index as proto };