@apibara/beaconchain 2.1.0-beta.9 → 2.1.1-beta.0
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.cjs +432 -410
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +497 -1145
- package/dist/index.d.mts +497 -1145
- package/dist/index.d.ts +497 -1145
- package/dist/index.mjs +428 -404
- package/dist/index.mjs.map +1 -0
- package/package.json +4 -4
- package/src/block.ts +114 -103
- package/src/common.ts +162 -88
- package/src/filter.ts +69 -72
- package/src/index.ts +1 -0
- package/src/proto/google/protobuf/timestamp.ts +7 -6
- package/src/common.test.ts +0 -21
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 {
|
|
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,11 @@ 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 {
|
|
114
|
+
export { Address$1 as Address, B256$1 as B256, B384$1 as B384, U128$1 as U128, U256$1 as U256, ValidatorStatus$1 as ValidatorStatus, protobufPackage$2 as protobufPackage, common_validatorStatusFromJSON as validatorStatusFromJSON, common_validatorStatusToJSON as validatorStatusToJSON };
|
|
115
|
+
export type { DeepPartial$2 as DeepPartial };
|
|
121
116
|
}
|
|
122
117
|
|
|
123
118
|
declare const protobufPackage$1 = "beaconchain.v2";
|
|
@@ -147,19 +142,19 @@ interface BlockHeader$1 {
|
|
|
147
142
|
/** Proposer index. */
|
|
148
143
|
readonly proposerIndex?: number | undefined;
|
|
149
144
|
/** Parent root. */
|
|
150
|
-
readonly parentRoot?: B256 | undefined;
|
|
145
|
+
readonly parentRoot?: B256$1 | undefined;
|
|
151
146
|
/** State root. */
|
|
152
|
-
readonly stateRoot?: B256 | undefined;
|
|
147
|
+
readonly stateRoot?: B256$1 | undefined;
|
|
153
148
|
/** Randao reveal. */
|
|
154
149
|
readonly randaoReveal?: Uint8Array | undefined;
|
|
155
150
|
/** Deposit count. */
|
|
156
151
|
readonly depositCount?: bigint | undefined;
|
|
157
152
|
/** Deposit state root. */
|
|
158
|
-
readonly depositRoot?: B256 | undefined;
|
|
153
|
+
readonly depositRoot?: B256$1 | undefined;
|
|
159
154
|
/** Block hash. */
|
|
160
|
-
readonly blockHash?: B256 | undefined;
|
|
155
|
+
readonly blockHash?: B256$1 | undefined;
|
|
161
156
|
/** Graffiti. */
|
|
162
|
-
readonly graffiti?: B256 | undefined;
|
|
157
|
+
readonly graffiti?: B256$1 | undefined;
|
|
163
158
|
/** Execution payload. */
|
|
164
159
|
readonly executionPayload?: ExecutionPayload$1 | undefined;
|
|
165
160
|
/** Blob kzg commitments. */
|
|
@@ -176,25 +171,25 @@ declare const BlockHeader$1: {
|
|
|
176
171
|
interface Transaction$1 {
|
|
177
172
|
readonly filterIds?: readonly number[] | undefined;
|
|
178
173
|
/** Transaction hash. */
|
|
179
|
-
readonly transactionHash?: B256 | undefined;
|
|
174
|
+
readonly transactionHash?: B256$1 | undefined;
|
|
180
175
|
/** Nonce. */
|
|
181
176
|
readonly nonce?: bigint | undefined;
|
|
182
177
|
/** Transaction index in the block. */
|
|
183
178
|
readonly transactionIndex?: number | undefined;
|
|
184
179
|
/** Sender. */
|
|
185
|
-
readonly from?: Address | undefined;
|
|
180
|
+
readonly from?: Address$1 | undefined;
|
|
186
181
|
/** Recipient. */
|
|
187
|
-
readonly to?: Address | undefined;
|
|
182
|
+
readonly to?: Address$1 | undefined;
|
|
188
183
|
/** Amount of wei transferred. */
|
|
189
|
-
readonly value?: U256 | undefined;
|
|
184
|
+
readonly value?: U256$1 | undefined;
|
|
190
185
|
/** Gas price. */
|
|
191
|
-
readonly gasPrice?: U128 | undefined;
|
|
186
|
+
readonly gasPrice?: U128$1 | undefined;
|
|
192
187
|
/** Gas amount. */
|
|
193
|
-
readonly gasLimit?: U128 | undefined;
|
|
188
|
+
readonly gasLimit?: U128$1 | undefined;
|
|
194
189
|
/** Max base fee per gas the sender is willing to pay. */
|
|
195
|
-
readonly maxFeePerGas?: U128 | undefined;
|
|
190
|
+
readonly maxFeePerGas?: U128$1 | undefined;
|
|
196
191
|
/** Miner's tip. */
|
|
197
|
-
readonly maxPriorityFeePerGas?: U128 | undefined;
|
|
192
|
+
readonly maxPriorityFeePerGas?: U128$1 | undefined;
|
|
198
193
|
/** Data. */
|
|
199
194
|
readonly input?: Uint8Array | undefined;
|
|
200
195
|
/** The signature's r,s,v,yParity values. */
|
|
@@ -202,13 +197,13 @@ interface Transaction$1 {
|
|
|
202
197
|
/** Chain ID. */
|
|
203
198
|
readonly chainId?: bigint | undefined;
|
|
204
199
|
/** EIP-2930 access list. */
|
|
205
|
-
readonly accessList?: readonly AccessListItem[] | undefined;
|
|
200
|
+
readonly accessList?: readonly AccessListItem$1[] | undefined;
|
|
206
201
|
/** EIP-2718 transaction type. */
|
|
207
202
|
readonly transactionType?: bigint | undefined;
|
|
208
203
|
/** EIP-4844 max gas fee per blob. */
|
|
209
|
-
readonly maxFeePerBlobGas?: U128 | undefined;
|
|
204
|
+
readonly maxFeePerBlobGas?: U128$1 | undefined;
|
|
210
205
|
/** EIP-4844 blob hashes. */
|
|
211
|
-
readonly blobVersionedHashes?: readonly B256[] | undefined;
|
|
206
|
+
readonly blobVersionedHashes?: readonly B256$1[] | undefined;
|
|
212
207
|
}
|
|
213
208
|
declare const Transaction$1: {
|
|
214
209
|
encode(message: Transaction$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -224,7 +219,7 @@ interface Validator$1 {
|
|
|
224
219
|
readonly balance?: bigint | undefined;
|
|
225
220
|
readonly status?: ValidatorStatus$1 | undefined;
|
|
226
221
|
readonly pubkey?: B384$1 | undefined;
|
|
227
|
-
readonly withdrawalCredentials?: B256 | undefined;
|
|
222
|
+
readonly withdrawalCredentials?: B256$1 | undefined;
|
|
228
223
|
readonly effectiveBalance?: bigint | undefined;
|
|
229
224
|
readonly slashed?: boolean | undefined;
|
|
230
225
|
readonly activationEligibilityEpoch?: bigint | undefined;
|
|
@@ -251,13 +246,13 @@ interface Blob$1 {
|
|
|
251
246
|
/** KZG proof. */
|
|
252
247
|
readonly kzgProof?: B384$1 | undefined;
|
|
253
248
|
/** KZG commitment inclusion proof. */
|
|
254
|
-
readonly kzgCommitmentInclusionProof?: readonly B256[] | undefined;
|
|
249
|
+
readonly kzgCommitmentInclusionProof?: readonly B256$1[] | undefined;
|
|
255
250
|
/** Blob hash. */
|
|
256
|
-
readonly blobHash?: B256 | undefined;
|
|
251
|
+
readonly blobHash?: B256$1 | undefined;
|
|
257
252
|
/** Index of the transaction that posted the blob. */
|
|
258
253
|
readonly transactionIndex?: number | undefined;
|
|
259
254
|
/** Hash of the transaction that posted the blob. */
|
|
260
|
-
readonly transactionHash?: B256 | undefined;
|
|
255
|
+
readonly transactionHash?: B256$1 | undefined;
|
|
261
256
|
}
|
|
262
257
|
declare const Blob$1: {
|
|
263
258
|
encode(message: Blob$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -269,17 +264,17 @@ declare const Blob$1: {
|
|
|
269
264
|
};
|
|
270
265
|
interface ExecutionPayload$1 {
|
|
271
266
|
/** Parent block hash. */
|
|
272
|
-
readonly parentHash?: B256 | undefined;
|
|
267
|
+
readonly parentHash?: B256$1 | undefined;
|
|
273
268
|
/** Address of the fee recipient. */
|
|
274
|
-
readonly feeRecipient?: Address | undefined;
|
|
269
|
+
readonly feeRecipient?: Address$1 | undefined;
|
|
275
270
|
/** State root. */
|
|
276
|
-
readonly stateRoot?: B256 | undefined;
|
|
271
|
+
readonly stateRoot?: B256$1 | undefined;
|
|
277
272
|
/** Receipts root. */
|
|
278
|
-
readonly receiptsRoot?: B256 | undefined;
|
|
273
|
+
readonly receiptsRoot?: B256$1 | undefined;
|
|
279
274
|
/** Logs bloom. */
|
|
280
275
|
readonly logsBloom?: Uint8Array | undefined;
|
|
281
276
|
/** Previous RANDAO. */
|
|
282
|
-
readonly prevRandao?: B256 | undefined;
|
|
277
|
+
readonly prevRandao?: B256$1 | undefined;
|
|
283
278
|
/** Block number. */
|
|
284
279
|
readonly blockNumber?: bigint | undefined;
|
|
285
280
|
/** Block timestamp. */
|
|
@@ -295,9 +290,9 @@ declare const ExecutionPayload$1: {
|
|
|
295
290
|
};
|
|
296
291
|
interface Signature$1 {
|
|
297
292
|
/** The signature's r value. */
|
|
298
|
-
readonly r?: U256 | undefined;
|
|
293
|
+
readonly r?: U256$1 | undefined;
|
|
299
294
|
/** The signature's s value. */
|
|
300
|
-
readonly s?: U256 | undefined;
|
|
295
|
+
readonly s?: U256$1 | undefined;
|
|
301
296
|
}
|
|
302
297
|
declare const Signature$1: {
|
|
303
298
|
encode(message: Signature$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -307,19 +302,19 @@ declare const Signature$1: {
|
|
|
307
302
|
create(base?: DeepPartial$1<Signature$1>): Signature$1;
|
|
308
303
|
fromPartial(object: DeepPartial$1<Signature$1>): Signature$1;
|
|
309
304
|
};
|
|
310
|
-
interface AccessListItem {
|
|
305
|
+
interface AccessListItem$1 {
|
|
311
306
|
/** Account address to be loaded at the start of the transaction. */
|
|
312
|
-
readonly address?: Address | undefined;
|
|
307
|
+
readonly address?: Address$1 | undefined;
|
|
313
308
|
/** Storage keys to be loaded at the start of the transaction. */
|
|
314
|
-
readonly storageKeys?: readonly B256[] | undefined;
|
|
309
|
+
readonly storageKeys?: readonly B256$1[] | undefined;
|
|
315
310
|
}
|
|
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;
|
|
311
|
+
declare const AccessListItem$1: {
|
|
312
|
+
encode(message: AccessListItem$1, writer?: _m0.Writer): _m0.Writer;
|
|
313
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccessListItem$1;
|
|
314
|
+
fromJSON(object: any): AccessListItem$1;
|
|
315
|
+
toJSON(message: AccessListItem$1): unknown;
|
|
316
|
+
create(base?: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
|
|
317
|
+
fromPartial(object: DeepPartial$1<AccessListItem$1>): AccessListItem$1;
|
|
323
318
|
};
|
|
324
319
|
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
325
320
|
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 +327,9 @@ type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<inf
|
|
|
332
327
|
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
333
328
|
} : Partial<T>;
|
|
334
329
|
|
|
335
|
-
declare const data_AccessListItem: typeof AccessListItem;
|
|
336
330
|
declare namespace data {
|
|
337
|
-
export {
|
|
331
|
+
export { AccessListItem$1 as AccessListItem, Blob$1 as Blob, Block$1 as Block, BlockHeader$1 as BlockHeader, ExecutionPayload$1 as ExecutionPayload, Signature$1 as Signature, Transaction$1 as Transaction, Validator$1 as Validator, protobufPackage$1 as protobufPackage };
|
|
332
|
+
export type { DeepPartial$1 as DeepPartial };
|
|
338
333
|
}
|
|
339
334
|
|
|
340
335
|
declare const protobufPackage = "beaconchain.v2";
|
|
@@ -369,9 +364,9 @@ declare const Filter$1: {
|
|
|
369
364
|
interface TransactionFilter$1 {
|
|
370
365
|
readonly id?: number | undefined;
|
|
371
366
|
/** Filter based on the transaction's sender address. */
|
|
372
|
-
readonly from?: Address | undefined;
|
|
367
|
+
readonly from?: Address$1 | undefined;
|
|
373
368
|
/** Filter based on the transaction's recipient address. */
|
|
374
|
-
readonly to?: Address | undefined;
|
|
369
|
+
readonly to?: Address$1 | undefined;
|
|
375
370
|
/** Only return `creat` transactions. Defaults to `false`. */
|
|
376
371
|
readonly create?: boolean | undefined;
|
|
377
372
|
/** Include the transaction's blob. Defaults to `false`. */
|
|
@@ -429,26 +424,37 @@ declare const filter_headerFilterFromJSON: typeof headerFilterFromJSON;
|
|
|
429
424
|
declare const filter_headerFilterToJSON: typeof headerFilterToJSON;
|
|
430
425
|
declare const filter_protobufPackage: typeof protobufPackage;
|
|
431
426
|
declare namespace filter {
|
|
432
|
-
export { BlobFilter$1 as BlobFilter,
|
|
427
|
+
export { BlobFilter$1 as BlobFilter, Filter$1 as Filter, HeaderFilter$1 as HeaderFilter, TransactionFilter$1 as TransactionFilter, ValidatorFilter$1 as ValidatorFilter, filter_headerFilterFromJSON as headerFilterFromJSON, filter_headerFilterToJSON as headerFilterToJSON, filter_protobufPackage as protobufPackage };
|
|
428
|
+
export type { filter_DeepPartial as DeepPartial };
|
|
433
429
|
}
|
|
434
430
|
|
|
435
431
|
declare const index_common: typeof common;
|
|
436
432
|
declare const index_data: typeof data;
|
|
437
433
|
declare const index_filter: typeof filter;
|
|
438
434
|
declare namespace index {
|
|
439
|
-
export {
|
|
435
|
+
export {
|
|
436
|
+
index_common as common,
|
|
437
|
+
index_data as data,
|
|
438
|
+
index_filter as filter,
|
|
439
|
+
};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
|
|
443
|
-
declare const
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
442
|
+
/** An Ethereum address. */
|
|
443
|
+
declare const Address: Codec<`0x${string}`, Address$1>;
|
|
444
|
+
type Address = CodecType<typeof Address>;
|
|
445
|
+
/** Data with length 256 bits. */
|
|
446
|
+
declare const B256: Codec<`0x${string}`, B256$1>;
|
|
447
|
+
type B256 = CodecType<typeof B256>;
|
|
448
|
+
/** Data with length 256 bits. */
|
|
449
|
+
declare const U256: Codec<bigint, U256$1>;
|
|
450
|
+
type U256 = CodecType<typeof U256>;
|
|
451
|
+
/** Data with length 128 bits. */
|
|
452
|
+
declare const U128: Codec<bigint, U128$1>;
|
|
453
|
+
type U128 = CodecType<typeof U128>;
|
|
454
|
+
declare const B384: Codec<`0x${string}`, B384$1>;
|
|
455
|
+
type B384 = CodecType<typeof B384>;
|
|
456
|
+
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>;
|
|
457
|
+
type ValidatorStatus = CodecType<typeof ValidatorStatus>;
|
|
452
458
|
|
|
453
459
|
/** Header options.
|
|
454
460
|
*
|
|
@@ -456,1101 +462,447 @@ type B384 = typeof B384.Type;
|
|
|
456
462
|
* - `on_data`: receive headers only if any other filter matches.
|
|
457
463
|
* - `on_data_or_on_new_block`: receive headers only if any other filter matches and for "live" blocks.
|
|
458
464
|
*/
|
|
459
|
-
declare const HeaderFilter:
|
|
460
|
-
type HeaderFilter = typeof HeaderFilter
|
|
465
|
+
declare const HeaderFilter: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown", HeaderFilter$1>;
|
|
466
|
+
type HeaderFilter = CodecType<typeof HeaderFilter>;
|
|
461
467
|
/** Filter transactions.
|
|
462
468
|
*
|
|
463
469
|
* @prop from Filter transactions by the sender address.
|
|
464
470
|
* @prop to Filter transactions by the target address.
|
|
465
471
|
* @prop includeBlob Include any blob posted by the transaction..
|
|
466
472
|
*/
|
|
467
|
-
declare const TransactionFilter:
|
|
468
|
-
id:
|
|
469
|
-
from:
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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>;
|
|
473
|
+
declare const TransactionFilter: MessageCodec<{
|
|
474
|
+
id: Codec<number | undefined, number | undefined>;
|
|
475
|
+
from: Codec<`0x${string}` | undefined, Address$1 | undefined>;
|
|
476
|
+
to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
|
|
477
|
+
create: Codec<boolean | undefined, boolean | undefined>;
|
|
478
|
+
includeBlob: Codec<boolean | undefined, boolean | undefined>;
|
|
481
479
|
}>;
|
|
482
|
-
type TransactionFilter = typeof TransactionFilter
|
|
480
|
+
type TransactionFilter = CodecType<typeof TransactionFilter>;
|
|
483
481
|
/** Filter validators.
|
|
484
482
|
*
|
|
485
483
|
* @prop validatorIndex Filter validators by their index.
|
|
486
484
|
* @prop status Filter validators by their status.
|
|
487
485
|
*/
|
|
488
|
-
declare const ValidatorFilter:
|
|
489
|
-
id:
|
|
490
|
-
validatorIndex:
|
|
491
|
-
status:
|
|
486
|
+
declare const ValidatorFilter: MessageCodec<{
|
|
487
|
+
id: Codec<number | undefined, number | undefined>;
|
|
488
|
+
validatorIndex: Codec<number | undefined, number | undefined>;
|
|
489
|
+
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
490
|
}>;
|
|
493
|
-
type ValidatorFilter = typeof ValidatorFilter
|
|
491
|
+
type ValidatorFilter = CodecType<typeof ValidatorFilter>;
|
|
494
492
|
/** Filter blobs.
|
|
495
493
|
*
|
|
496
494
|
* @prop includeTransaction Include the transaction that posted the blob.
|
|
497
495
|
*/
|
|
498
|
-
declare const BlobFilter:
|
|
499
|
-
id:
|
|
500
|
-
includeTransaction:
|
|
496
|
+
declare const BlobFilter: MessageCodec<{
|
|
497
|
+
id: Codec<number | undefined, number | undefined>;
|
|
498
|
+
includeTransaction: Codec<boolean | undefined, boolean | undefined>;
|
|
501
499
|
}>;
|
|
502
|
-
type BlobFilter = typeof BlobFilter
|
|
500
|
+
type BlobFilter = CodecType<typeof BlobFilter>;
|
|
503
501
|
/** Filter block data.
|
|
504
502
|
*
|
|
505
503
|
* @prop header Change how block headers are returned.
|
|
506
504
|
* @prop validators Filter validators.
|
|
507
505
|
*/
|
|
508
|
-
declare const Filter:
|
|
509
|
-
header:
|
|
510
|
-
transactions:
|
|
511
|
-
id
|
|
512
|
-
from
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
506
|
+
declare const Filter: MessageCodec<{
|
|
507
|
+
header: Codec<"always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined, HeaderFilter$1 | undefined>;
|
|
508
|
+
transactions: Codec<readonly {
|
|
509
|
+
id?: number | undefined;
|
|
510
|
+
from?: `0x${string}` | undefined;
|
|
511
|
+
to?: `0x${string}` | undefined;
|
|
512
|
+
create?: boolean | undefined;
|
|
513
|
+
includeBlob?: boolean | undefined;
|
|
514
|
+
}[] | undefined, readonly {
|
|
515
|
+
id?: number | undefined;
|
|
516
|
+
from?: Address$1 | undefined;
|
|
517
|
+
to?: Address$1 | undefined;
|
|
518
|
+
create?: boolean | undefined;
|
|
519
|
+
includeBlob?: boolean | undefined;
|
|
520
|
+
}[] | undefined>;
|
|
521
|
+
validators: Codec<readonly {
|
|
522
|
+
id?: number | undefined;
|
|
523
|
+
validatorIndex?: number | undefined;
|
|
524
|
+
status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
|
|
525
|
+
}[] | undefined, readonly {
|
|
526
|
+
id?: number | undefined;
|
|
527
|
+
validatorIndex?: number | undefined;
|
|
528
|
+
status?: ValidatorStatus$1 | undefined;
|
|
529
|
+
}[] | undefined>;
|
|
530
|
+
blobs: Codec<readonly {
|
|
531
|
+
id?: number | undefined;
|
|
532
|
+
includeTransaction?: boolean | undefined;
|
|
533
|
+
}[] | undefined, readonly {
|
|
534
|
+
id?: number | undefined;
|
|
535
|
+
includeTransaction?: boolean | undefined;
|
|
536
|
+
}[] | undefined>;
|
|
534
537
|
}>;
|
|
535
|
-
type Filter = typeof Filter
|
|
536
|
-
declare const
|
|
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
|
-
};
|
|
538
|
+
type Filter = CodecType<typeof Filter>;
|
|
539
|
+
declare const FilterFromBytes: Codec<Filter, Uint8Array>;
|
|
691
540
|
declare function mergeFilter(a: Filter, b: Filter): Filter;
|
|
692
541
|
|
|
693
|
-
declare const ExecutionPayload:
|
|
694
|
-
parentHash:
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
542
|
+
declare const ExecutionPayload: MessageCodec<{
|
|
543
|
+
parentHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
544
|
+
feeRecipient: Codec<`0x${string}`, Address$1 | undefined>;
|
|
545
|
+
stateRoot: Codec<`0x${string}`, B256$1 | undefined>;
|
|
546
|
+
receiptsRoot: Codec<`0x${string}`, B256$1 | undefined>;
|
|
547
|
+
logsBloom: Codec<`0x${string}`, Uint8Array<ArrayBufferLike> | undefined>;
|
|
548
|
+
prevRandao: Codec<`0x${string}`, B256$1 | undefined>;
|
|
549
|
+
blockNumber: Codec<bigint, bigint | undefined>;
|
|
550
|
+
timestamp: Codec<Date, Date | undefined>;
|
|
551
|
+
}>;
|
|
552
|
+
type ExecutionPayload = CodecType<typeof ExecutionPayload>;
|
|
553
|
+
declare const BlockHeader: MessageCodec<{
|
|
554
|
+
slot: Codec<bigint, bigint | undefined>;
|
|
555
|
+
proposerIndex: Codec<number, number | undefined>;
|
|
556
|
+
parentRoot: Codec<`0x${string}`, B256$1 | undefined>;
|
|
557
|
+
stateRoot: Codec<`0x${string}`, B256$1 | undefined>;
|
|
558
|
+
randaoReveal: Codec<`0x${string}`, Uint8Array<ArrayBufferLike> | undefined>;
|
|
559
|
+
depositCount: Codec<bigint, bigint | undefined>;
|
|
560
|
+
depositRoot: Codec<`0x${string}`, B256$1 | undefined>;
|
|
561
|
+
blockHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
|
|
562
|
+
graffiti: Codec<`0x${string}`, B256$1 | undefined>;
|
|
563
|
+
executionPayload: Codec<{
|
|
564
|
+
parentHash: `0x${string}`;
|
|
565
|
+
feeRecipient: `0x${string}`;
|
|
566
|
+
stateRoot: `0x${string}`;
|
|
567
|
+
receiptsRoot: `0x${string}`;
|
|
568
|
+
logsBloom: `0x${string}`;
|
|
569
|
+
prevRandao: `0x${string}`;
|
|
570
|
+
blockNumber: bigint;
|
|
571
|
+
timestamp: Date;
|
|
572
|
+
} | undefined, {
|
|
573
|
+
parentHash?: B256$1 | undefined;
|
|
574
|
+
feeRecipient?: Address$1 | undefined;
|
|
575
|
+
stateRoot?: B256$1 | undefined;
|
|
576
|
+
receiptsRoot?: B256$1 | undefined;
|
|
577
|
+
logsBloom?: Uint8Array<ArrayBufferLike> | undefined;
|
|
578
|
+
prevRandao?: B256$1 | undefined;
|
|
579
|
+
blockNumber?: bigint | undefined;
|
|
580
|
+
timestamp?: Date | undefined;
|
|
581
|
+
} | undefined>;
|
|
582
|
+
blobKzgCommitments: Codec<readonly `0x${string}`[], readonly B384$1[] | undefined>;
|
|
726
583
|
}>;
|
|
727
|
-
type
|
|
728
|
-
declare const
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
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>>>;
|
|
584
|
+
type BlockHeader = CodecType<typeof BlockHeader>;
|
|
585
|
+
declare const Validator: MessageCodec<{
|
|
586
|
+
filterIds: Codec<readonly number[], readonly number[] | undefined>;
|
|
587
|
+
validatorIndex: Codec<number, number | undefined>;
|
|
588
|
+
balance: Codec<bigint, bigint | undefined>;
|
|
589
|
+
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>;
|
|
590
|
+
pubkey: Codec<`0x${string}`, B384$1 | undefined>;
|
|
591
|
+
withdrawalCredentials: Codec<`0x${string}`, B256$1 | undefined>;
|
|
592
|
+
effectiveBalance: Codec<bigint, bigint | undefined>;
|
|
593
|
+
slashed: Codec<false, boolean | undefined> | Codec<true, boolean | undefined>;
|
|
594
|
+
activationEligibilityEpoch: Codec<bigint, bigint | undefined>;
|
|
595
|
+
activationEpoch: Codec<bigint, bigint | undefined>;
|
|
596
|
+
exitEpoch: Codec<bigint, bigint | undefined>;
|
|
597
|
+
withdrawableEpoch: Codec<bigint, bigint | undefined>;
|
|
805
598
|
}>;
|
|
806
|
-
type
|
|
807
|
-
declare const
|
|
808
|
-
filterIds:
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
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;
|
|
599
|
+
type Validator = CodecType<typeof Validator>;
|
|
600
|
+
declare const Blob: MessageCodec<{
|
|
601
|
+
filterIds: Codec<readonly number[], readonly number[] | undefined>;
|
|
602
|
+
blobIndex: Codec<number, number | undefined>;
|
|
603
|
+
blob: Codec<`0x${string}`, Uint8Array<ArrayBufferLike> | undefined>;
|
|
604
|
+
kzgCommitment: Codec<`0x${string}`, B384$1 | undefined>;
|
|
605
|
+
kzgProof: Codec<`0x${string}`, B384$1 | undefined>;
|
|
606
|
+
kzgCommitmentInclusionProof: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
|
|
607
|
+
blobHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
608
|
+
transactionIndex: Codec<number, number | undefined>;
|
|
609
|
+
transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
832
610
|
}>;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
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>>;
|
|
611
|
+
type Blob = CodecType<typeof Blob>;
|
|
612
|
+
declare const Signature: MessageCodec<{
|
|
613
|
+
r: Codec<bigint | undefined, U256$1 | undefined>;
|
|
614
|
+
s: Codec<bigint | undefined, U256$1 | undefined>;
|
|
615
|
+
v: Codec<bigint | undefined, U256$1 | undefined>;
|
|
616
|
+
YParity: Codec<boolean | undefined, boolean | undefined>;
|
|
872
617
|
}>;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
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>;
|
|
618
|
+
type Signature = CodecType<typeof Signature>;
|
|
619
|
+
declare const AccessListItem: MessageCodec<{
|
|
620
|
+
address: Codec<`0x${string}`, Address$1 | undefined>;
|
|
621
|
+
storageKeys: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
|
|
893
622
|
}>;
|
|
894
|
-
type
|
|
895
|
-
declare const Transaction:
|
|
896
|
-
filterIds:
|
|
897
|
-
transactionHash:
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
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>>>;
|
|
623
|
+
type AccessListItem = CodecType<typeof AccessListItem>;
|
|
624
|
+
declare const Transaction: MessageCodec<{
|
|
625
|
+
filterIds: Codec<readonly number[], readonly number[] | undefined>;
|
|
626
|
+
transactionHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
627
|
+
nonce: Codec<bigint, bigint | undefined>;
|
|
628
|
+
transactionIndex: Codec<number, number | undefined>;
|
|
629
|
+
from: Codec<`0x${string}`, Address$1 | undefined>;
|
|
630
|
+
to: Codec<`0x${string}` | undefined, Address$1 | undefined>;
|
|
631
|
+
value: Codec<bigint, U256$1 | undefined>;
|
|
632
|
+
gasPrice: Codec<bigint | undefined, U128$1 | undefined>;
|
|
633
|
+
gasLimit: Codec<bigint | undefined, U128$1 | undefined>;
|
|
634
|
+
maxFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
|
|
635
|
+
maxPriorityFeePerGas: Codec<bigint | undefined, U128$1 | undefined>;
|
|
636
|
+
input: Codec<`0x${string}`, Uint8Array<ArrayBufferLike> | undefined>;
|
|
637
|
+
signature: Codec<{
|
|
638
|
+
r?: bigint | undefined;
|
|
639
|
+
s?: bigint | undefined;
|
|
640
|
+
v?: bigint | undefined;
|
|
641
|
+
YParity?: boolean | undefined;
|
|
642
|
+
} | undefined, {
|
|
643
|
+
r?: U256$1 | undefined;
|
|
644
|
+
s?: U256$1 | undefined;
|
|
645
|
+
v?: U256$1 | undefined;
|
|
646
|
+
YParity?: boolean | undefined;
|
|
647
|
+
} | undefined>;
|
|
648
|
+
chainId: Codec<bigint | undefined, bigint | undefined>;
|
|
649
|
+
accessList: Codec<readonly {
|
|
650
|
+
address: `0x${string}`;
|
|
651
|
+
storageKeys: readonly `0x${string}`[];
|
|
652
|
+
}[], readonly {
|
|
653
|
+
address?: Address$1 | undefined;
|
|
654
|
+
storageKeys?: readonly B256$1[] | undefined;
|
|
655
|
+
}[] | undefined>;
|
|
656
|
+
transactionType: Codec<bigint, bigint | undefined>;
|
|
657
|
+
maxFeePerBlobGas: Codec<bigint | undefined, U128$1 | undefined>;
|
|
658
|
+
blobVersionedHashes: Codec<readonly `0x${string}`[], readonly B256$1[] | undefined>;
|
|
984
659
|
}>;
|
|
985
|
-
type Transaction = typeof Transaction
|
|
986
|
-
declare const Block:
|
|
987
|
-
header:
|
|
988
|
-
slot:
|
|
989
|
-
proposerIndex:
|
|
990
|
-
parentRoot:
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
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
|
-
}>>;
|
|
660
|
+
type Transaction = CodecType<typeof Transaction>;
|
|
661
|
+
declare const Block: MessageCodec<{
|
|
662
|
+
header: Codec<{
|
|
663
|
+
slot: bigint;
|
|
664
|
+
proposerIndex: number;
|
|
665
|
+
parentRoot: `0x${string}`;
|
|
666
|
+
stateRoot: `0x${string}`;
|
|
667
|
+
randaoReveal: `0x${string}`;
|
|
668
|
+
depositCount: bigint;
|
|
669
|
+
depositRoot: `0x${string}`;
|
|
670
|
+
blockHash?: `0x${string}` | undefined;
|
|
671
|
+
graffiti: `0x${string}`;
|
|
672
|
+
executionPayload?: {
|
|
673
|
+
parentHash: `0x${string}`;
|
|
674
|
+
feeRecipient: `0x${string}`;
|
|
675
|
+
stateRoot: `0x${string}`;
|
|
676
|
+
receiptsRoot: `0x${string}`;
|
|
677
|
+
logsBloom: `0x${string}`;
|
|
678
|
+
prevRandao: `0x${string}`;
|
|
679
|
+
blockNumber: bigint;
|
|
680
|
+
timestamp: Date;
|
|
681
|
+
} | undefined;
|
|
682
|
+
blobKzgCommitments: readonly `0x${string}`[];
|
|
683
|
+
}, {
|
|
684
|
+
slot?: bigint | undefined;
|
|
685
|
+
proposerIndex?: number | undefined;
|
|
686
|
+
parentRoot?: B256$1 | undefined;
|
|
687
|
+
stateRoot?: B256$1 | undefined;
|
|
688
|
+
randaoReveal?: Uint8Array<ArrayBufferLike> | undefined;
|
|
689
|
+
depositCount?: bigint | undefined;
|
|
690
|
+
depositRoot?: B256$1 | undefined;
|
|
691
|
+
blockHash?: B256$1 | undefined;
|
|
692
|
+
graffiti?: B256$1 | undefined;
|
|
693
|
+
executionPayload?: {
|
|
694
|
+
parentHash?: B256$1 | undefined;
|
|
695
|
+
feeRecipient?: Address$1 | undefined;
|
|
696
|
+
stateRoot?: B256$1 | undefined;
|
|
697
|
+
receiptsRoot?: B256$1 | undefined;
|
|
698
|
+
logsBloom?: Uint8Array<ArrayBufferLike> | undefined;
|
|
699
|
+
prevRandao?: B256$1 | undefined;
|
|
700
|
+
blockNumber?: bigint | undefined;
|
|
701
|
+
timestamp?: Date | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
blobKzgCommitments?: readonly B384$1[] | undefined;
|
|
704
|
+
} | undefined>;
|
|
705
|
+
validators: Codec<readonly {
|
|
706
|
+
filterIds: readonly number[];
|
|
707
|
+
validatorIndex: number;
|
|
708
|
+
balance: bigint;
|
|
709
|
+
status: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
|
|
710
|
+
pubkey: `0x${string}`;
|
|
711
|
+
withdrawalCredentials: `0x${string}`;
|
|
712
|
+
effectiveBalance: bigint;
|
|
713
|
+
slashed: boolean;
|
|
714
|
+
activationEligibilityEpoch: bigint;
|
|
715
|
+
activationEpoch: bigint;
|
|
716
|
+
exitEpoch: bigint;
|
|
717
|
+
withdrawableEpoch: bigint;
|
|
718
|
+
}[], readonly {
|
|
719
|
+
filterIds?: readonly number[] | undefined;
|
|
720
|
+
validatorIndex?: number | undefined;
|
|
721
|
+
balance?: bigint | undefined;
|
|
722
|
+
status?: ValidatorStatus$1 | undefined;
|
|
723
|
+
pubkey?: B384$1 | undefined;
|
|
724
|
+
withdrawalCredentials?: B256$1 | undefined;
|
|
725
|
+
effectiveBalance?: bigint | undefined;
|
|
726
|
+
slashed?: boolean | undefined;
|
|
727
|
+
activationEligibilityEpoch?: bigint | undefined;
|
|
728
|
+
activationEpoch?: bigint | undefined;
|
|
729
|
+
exitEpoch?: bigint | undefined;
|
|
730
|
+
withdrawableEpoch?: bigint | undefined;
|
|
731
|
+
}[] | undefined>;
|
|
732
|
+
blobs: Codec<readonly {
|
|
733
|
+
filterIds: readonly number[];
|
|
734
|
+
blobIndex: number;
|
|
735
|
+
blob: `0x${string}`;
|
|
736
|
+
kzgCommitment: `0x${string}`;
|
|
737
|
+
kzgProof: `0x${string}`;
|
|
738
|
+
kzgCommitmentInclusionProof: readonly `0x${string}`[];
|
|
739
|
+
blobHash: `0x${string}`;
|
|
740
|
+
transactionIndex: number;
|
|
741
|
+
transactionHash: `0x${string}`;
|
|
742
|
+
}[], readonly {
|
|
743
|
+
filterIds?: readonly number[] | undefined;
|
|
744
|
+
blobIndex?: number | undefined;
|
|
745
|
+
blob?: Uint8Array<ArrayBufferLike> | undefined;
|
|
746
|
+
kzgCommitment?: B384$1 | undefined;
|
|
747
|
+
kzgProof?: B384$1 | undefined;
|
|
748
|
+
kzgCommitmentInclusionProof?: readonly B256$1[] | undefined;
|
|
749
|
+
blobHash?: B256$1 | undefined;
|
|
750
|
+
transactionIndex?: number | undefined;
|
|
751
|
+
transactionHash?: B256$1 | undefined;
|
|
752
|
+
}[] | undefined>;
|
|
753
|
+
transactions: Codec<readonly {
|
|
754
|
+
filterIds: readonly number[];
|
|
755
|
+
transactionHash: `0x${string}`;
|
|
756
|
+
nonce: bigint;
|
|
757
|
+
transactionIndex: number;
|
|
758
|
+
from: `0x${string}`;
|
|
759
|
+
to?: `0x${string}` | undefined;
|
|
760
|
+
value: bigint;
|
|
761
|
+
gasPrice?: bigint | undefined;
|
|
762
|
+
gasLimit?: bigint | undefined;
|
|
763
|
+
maxFeePerGas?: bigint | undefined;
|
|
764
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
765
|
+
input: `0x${string}`;
|
|
766
|
+
signature?: {
|
|
767
|
+
r?: bigint | undefined;
|
|
768
|
+
s?: bigint | undefined;
|
|
769
|
+
v?: bigint | undefined;
|
|
770
|
+
YParity?: boolean | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
chainId?: bigint | undefined;
|
|
773
|
+
accessList: readonly {
|
|
774
|
+
address: `0x${string}`;
|
|
775
|
+
storageKeys: readonly `0x${string}`[];
|
|
776
|
+
}[];
|
|
777
|
+
transactionType: bigint;
|
|
778
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
779
|
+
blobVersionedHashes: readonly `0x${string}`[];
|
|
780
|
+
}[], readonly {
|
|
781
|
+
filterIds?: readonly number[] | undefined;
|
|
782
|
+
transactionHash?: B256$1 | undefined;
|
|
783
|
+
nonce?: bigint | undefined;
|
|
784
|
+
transactionIndex?: number | undefined;
|
|
785
|
+
from?: Address$1 | undefined;
|
|
786
|
+
to?: Address$1 | undefined;
|
|
787
|
+
value?: U256$1 | undefined;
|
|
788
|
+
gasPrice?: U128$1 | undefined;
|
|
789
|
+
gasLimit?: U128$1 | undefined;
|
|
790
|
+
maxFeePerGas?: U128$1 | undefined;
|
|
791
|
+
maxPriorityFeePerGas?: U128$1 | undefined;
|
|
792
|
+
input?: Uint8Array<ArrayBufferLike> | undefined;
|
|
793
|
+
signature?: {
|
|
794
|
+
r?: U256$1 | undefined;
|
|
795
|
+
s?: U256$1 | undefined;
|
|
796
|
+
v?: U256$1 | undefined;
|
|
797
|
+
YParity?: boolean | undefined;
|
|
798
|
+
} | undefined;
|
|
799
|
+
chainId?: bigint | undefined;
|
|
800
|
+
accessList?: readonly {
|
|
801
|
+
address?: Address$1 | undefined;
|
|
802
|
+
storageKeys?: readonly B256$1[] | undefined;
|
|
803
|
+
}[] | undefined;
|
|
804
|
+
transactionType?: bigint | undefined;
|
|
805
|
+
maxFeePerBlobGas?: U128$1 | undefined;
|
|
806
|
+
blobVersionedHashes?: readonly B256$1[] | undefined;
|
|
807
|
+
}[] | undefined>;
|
|
1221
808
|
}>;
|
|
1222
|
-
type Block = typeof Block
|
|
1223
|
-
declare const BlockFromBytes:
|
|
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
|
-
}>>>;
|
|
809
|
+
type Block = CodecType<typeof Block>;
|
|
810
|
+
declare const BlockFromBytes: Codec<Block, Uint8Array>;
|
|
1459
811
|
|
|
1460
812
|
declare const BeaconChainStream: StreamConfig<{
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
813
|
+
header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
|
|
814
|
+
transactions?: readonly {
|
|
815
|
+
id?: number | undefined;
|
|
816
|
+
from?: `0x${string}` | undefined;
|
|
817
|
+
to?: `0x${string}` | undefined;
|
|
818
|
+
create?: boolean | undefined;
|
|
819
|
+
includeBlob?: boolean | undefined;
|
|
1468
820
|
}[] | undefined;
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
821
|
+
validators?: readonly {
|
|
822
|
+
id?: number | undefined;
|
|
823
|
+
validatorIndex?: number | undefined;
|
|
824
|
+
status?: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done" | undefined;
|
|
1473
825
|
}[] | undefined;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
826
|
+
blobs?: readonly {
|
|
827
|
+
id?: number | undefined;
|
|
828
|
+
includeTransaction?: boolean | undefined;
|
|
1477
829
|
}[] | undefined;
|
|
1478
830
|
}, {
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
831
|
+
header: {
|
|
832
|
+
slot: bigint;
|
|
833
|
+
proposerIndex: number;
|
|
834
|
+
parentRoot: `0x${string}`;
|
|
835
|
+
stateRoot: `0x${string}`;
|
|
836
|
+
randaoReveal: `0x${string}`;
|
|
837
|
+
depositCount: bigint;
|
|
838
|
+
depositRoot: `0x${string}`;
|
|
839
|
+
blockHash?: `0x${string}` | undefined;
|
|
840
|
+
graffiti: `0x${string}`;
|
|
841
|
+
executionPayload?: {
|
|
842
|
+
parentHash: `0x${string}`;
|
|
843
|
+
feeRecipient: `0x${string}`;
|
|
844
|
+
stateRoot: `0x${string}`;
|
|
845
|
+
receiptsRoot: `0x${string}`;
|
|
846
|
+
logsBloom: `0x${string}`;
|
|
847
|
+
prevRandao: `0x${string}`;
|
|
848
|
+
blockNumber: bigint;
|
|
849
|
+
timestamp: Date;
|
|
1498
850
|
} | undefined;
|
|
1499
|
-
|
|
851
|
+
blobKzgCommitments: readonly `0x${string}`[];
|
|
1500
852
|
};
|
|
1501
|
-
|
|
1502
|
-
readonly
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
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}`[];
|
|
853
|
+
validators: readonly {
|
|
854
|
+
filterIds: readonly number[];
|
|
855
|
+
validatorIndex: number;
|
|
856
|
+
balance: bigint;
|
|
857
|
+
status: "unknown" | "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
|
|
858
|
+
pubkey: `0x${string}`;
|
|
859
|
+
withdrawalCredentials: `0x${string}`;
|
|
860
|
+
effectiveBalance: bigint;
|
|
861
|
+
slashed: boolean;
|
|
862
|
+
activationEligibilityEpoch: bigint;
|
|
863
|
+
activationEpoch: bigint;
|
|
864
|
+
exitEpoch: bigint;
|
|
865
|
+
withdrawableEpoch: bigint;
|
|
1528
866
|
}[];
|
|
1529
|
-
|
|
1530
|
-
readonly
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
readonly
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
readonly activationEpoch: bigint;
|
|
1540
|
-
readonly exitEpoch: bigint;
|
|
1541
|
-
readonly withdrawableEpoch: bigint;
|
|
867
|
+
blobs: readonly {
|
|
868
|
+
filterIds: readonly number[];
|
|
869
|
+
blobIndex: number;
|
|
870
|
+
blob: `0x${string}`;
|
|
871
|
+
kzgCommitment: `0x${string}`;
|
|
872
|
+
kzgProof: `0x${string}`;
|
|
873
|
+
kzgCommitmentInclusionProof: readonly `0x${string}`[];
|
|
874
|
+
blobHash: `0x${string}`;
|
|
875
|
+
transactionIndex: number;
|
|
876
|
+
transactionHash: `0x${string}`;
|
|
1542
877
|
}[];
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
878
|
+
transactions: readonly {
|
|
879
|
+
filterIds: readonly number[];
|
|
880
|
+
transactionHash: `0x${string}`;
|
|
881
|
+
nonce: bigint;
|
|
882
|
+
transactionIndex: number;
|
|
883
|
+
from: `0x${string}`;
|
|
884
|
+
to?: `0x${string}` | undefined;
|
|
885
|
+
value: bigint;
|
|
886
|
+
gasPrice?: bigint | undefined;
|
|
887
|
+
gasLimit?: bigint | undefined;
|
|
888
|
+
maxFeePerGas?: bigint | undefined;
|
|
889
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
890
|
+
input: `0x${string}`;
|
|
891
|
+
signature?: {
|
|
892
|
+
r?: bigint | undefined;
|
|
893
|
+
s?: bigint | undefined;
|
|
894
|
+
v?: bigint | undefined;
|
|
895
|
+
YParity?: boolean | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
chainId?: bigint | undefined;
|
|
898
|
+
accessList: readonly {
|
|
899
|
+
address: `0x${string}`;
|
|
900
|
+
storageKeys: readonly `0x${string}`[];
|
|
901
|
+
}[];
|
|
902
|
+
transactionType: bigint;
|
|
903
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
904
|
+
blobVersionedHashes: readonly `0x${string}`[];
|
|
1553
905
|
}[];
|
|
1554
906
|
}>;
|
|
1555
907
|
|
|
1556
|
-
export { B384, BeaconChainStream, Blob, BlobFilter, Block, BlockFromBytes, BlockHeader, ExecutionPayload, Filter, FilterFromBytes, HeaderFilter, Signature, Transaction, TransactionFilter,
|
|
908
|
+
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 };
|