@lodestar/types 1.18.0-dev.59a49ff945 → 1.18.0-dev.65927c699c
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/lib/allForks/sszTypes.d.ts +8 -80
- package/lib/altair/sszTypes.d.ts +1 -10
- package/lib/bellatrix/sszTypes.d.ts +1 -10
- package/lib/capella/sszTypes.d.ts +1 -10
- package/lib/deneb/sszTypes.d.ts +1 -10
- package/lib/phase0/sszTypes.d.ts +4 -51
- package/lib/phase0/sszTypes.js +3 -13
- package/lib/phase0/sszTypes.js.map +1 -1
- package/lib/phase0/validator.d.ts +20 -0
- package/lib/phase0/validator.js +66 -0
- package/lib/phase0/validator.js.map +1 -0
- package/lib/sszTypes.d.ts +8 -80
- package/package.json +3 -3
|
@@ -349,16 +349,7 @@ export declare const allForks: {
|
|
|
349
349
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
350
350
|
}>>;
|
|
351
351
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
352
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
353
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
354
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
355
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
356
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
357
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
358
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
359
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
360
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
361
|
-
}>>;
|
|
352
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
362
353
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
363
354
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
364
355
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -775,16 +766,7 @@ export declare const allForks: {
|
|
|
775
766
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
776
767
|
}>>;
|
|
777
768
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
778
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
779
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
780
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
781
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
782
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
783
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
784
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
785
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
786
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
787
|
-
}>>;
|
|
769
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
788
770
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
789
771
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
790
772
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1225,16 +1207,7 @@ export declare const allForks: {
|
|
|
1225
1207
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1226
1208
|
}>>;
|
|
1227
1209
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1228
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
1229
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1230
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
1231
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
1232
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
1233
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1234
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1235
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1236
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1237
|
-
}>>;
|
|
1210
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
1238
1211
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1239
1212
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1240
1213
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1733,16 +1706,7 @@ export declare const allForks: {
|
|
|
1733
1706
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1734
1707
|
}>>;
|
|
1735
1708
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1736
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
1737
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1738
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
1739
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
1740
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
1741
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1742
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1743
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1744
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1745
|
-
}>>;
|
|
1709
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
1746
1710
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1747
1711
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1748
1712
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2257,16 +2221,7 @@ export declare const allForks: {
|
|
|
2257
2221
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
2258
2222
|
}>>;
|
|
2259
2223
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2260
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
2261
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
2262
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
2263
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
2264
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
2265
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2266
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2267
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2268
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2269
|
-
}>>;
|
|
2224
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
2270
2225
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
2271
2226
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
2272
2227
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2738,16 +2693,7 @@ export declare const allForksExecution: {
|
|
|
2738
2693
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
2739
2694
|
}>>;
|
|
2740
2695
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2741
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
2742
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
2743
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
2744
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
2745
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
2746
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2747
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2748
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2749
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2750
|
-
}>>;
|
|
2696
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
2751
2697
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
2752
2698
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
2753
2699
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -3328,16 +3274,7 @@ export declare const allForksExecution: {
|
|
|
3328
3274
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
3329
3275
|
}>>;
|
|
3330
3276
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
3331
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
3332
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
3333
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
3334
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
3335
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
3336
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3337
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3338
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3339
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3340
|
-
}>>;
|
|
3277
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
3341
3278
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
3342
3279
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
3343
3280
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -3949,16 +3886,7 @@ export declare const allForksExecution: {
|
|
|
3949
3886
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
3950
3887
|
}>>;
|
|
3951
3888
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
3952
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
3953
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
3954
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
3955
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
3956
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
3957
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3958
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3959
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3960
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3961
|
-
}>>;
|
|
3889
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
3962
3890
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
3963
3891
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
3964
3892
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/lib/altair/sszTypes.d.ts
CHANGED
|
@@ -415,16 +415,7 @@ export declare const BeaconState: ContainerType<{
|
|
|
415
415
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
416
416
|
}>>;
|
|
417
417
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
418
|
-
validators: ListCompositeType<import("
|
|
419
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
420
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
421
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
422
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
423
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
424
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
425
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
426
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
427
|
-
}>>;
|
|
418
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
428
419
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
429
420
|
randaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
430
421
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -468,16 +468,7 @@ export declare const BeaconState: ContainerType<{
|
|
|
468
468
|
blockHash: ByteVectorType;
|
|
469
469
|
}>>;
|
|
470
470
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
471
|
-
validators: ListCompositeType<import("
|
|
472
|
-
pubkey: ByteVectorType;
|
|
473
|
-
withdrawalCredentials: ByteVectorType;
|
|
474
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
475
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
476
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
477
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
478
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
479
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
480
|
-
}>>;
|
|
471
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
481
472
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
482
473
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<ByteVectorType>;
|
|
483
474
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -567,16 +567,7 @@ export declare const BeaconState: ContainerType<{
|
|
|
567
567
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
568
568
|
}>>;
|
|
569
569
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
570
|
-
validators: ListCompositeType<import("
|
|
571
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
572
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
573
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
574
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
575
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
576
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
577
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
578
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
579
|
-
}>>;
|
|
570
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
580
571
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
581
572
|
randaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
582
573
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/lib/deneb/sszTypes.d.ts
CHANGED
|
@@ -1055,16 +1055,7 @@ export declare const BeaconState: ContainerType<{
|
|
|
1055
1055
|
blockHash: ByteVectorType;
|
|
1056
1056
|
}>>;
|
|
1057
1057
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1058
|
-
validators: ListCompositeType<import("
|
|
1059
|
-
pubkey: ByteVectorType;
|
|
1060
|
-
withdrawalCredentials: ByteVectorType;
|
|
1061
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
1062
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
1063
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1064
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1065
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1066
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1067
|
-
}>>;
|
|
1058
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
1068
1059
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1069
1060
|
randaoMixes: VectorCompositeType<ByteVectorType>;
|
|
1070
1061
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/lib/phase0/sszTypes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BitListType, BitVectorType, ContainerType,
|
|
1
|
+
import { BitListType, BitVectorType, ContainerType, ListBasicType, ListCompositeType, VectorBasicType, ListUintNum64Type, VectorCompositeType } from "@chainsafe/ssz";
|
|
2
2
|
export declare const AttestationSubnets: BitVectorType;
|
|
3
3
|
/** BeaconBlockHeader where slot is bounded by the clock, and values above it are invalid */
|
|
4
4
|
export declare const BeaconBlockHeader: ContainerType<{
|
|
@@ -121,46 +121,8 @@ export declare const HistoricalBatchRoots: ContainerType<{
|
|
|
121
121
|
blockRoots: import("@chainsafe/ssz").ByteVectorType;
|
|
122
122
|
stateRoots: import("@chainsafe/ssz").ByteVectorType;
|
|
123
123
|
}>;
|
|
124
|
-
export declare const
|
|
125
|
-
|
|
126
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
127
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
128
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
129
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
130
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
131
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
132
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
133
|
-
}>;
|
|
134
|
-
export declare const ValidatorNodeStruct: ContainerNodeStructType<{
|
|
135
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
136
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
137
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
138
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
139
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
140
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
141
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
142
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
143
|
-
}>;
|
|
144
|
-
export declare const Validator: ContainerNodeStructType<{
|
|
145
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
146
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
147
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
148
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
149
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
150
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
151
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
152
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
153
|
-
}>;
|
|
154
|
-
export declare const Validators: ListCompositeType<ContainerNodeStructType<{
|
|
155
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
156
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
157
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
158
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
159
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
160
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
161
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
162
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
163
|
-
}>>;
|
|
124
|
+
export declare const Validator: import("./validator.js").ValidatorNodeStructType;
|
|
125
|
+
export declare const Validators: ListCompositeType<import("./validator.js").ValidatorNodeStructType>;
|
|
164
126
|
export declare const Balances: ListUintNum64Type;
|
|
165
127
|
export declare const RandaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
166
128
|
/**
|
|
@@ -714,16 +676,7 @@ export declare const BeaconState: ContainerType<{
|
|
|
714
676
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
715
677
|
}>>;
|
|
716
678
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
717
|
-
validators: ListCompositeType<
|
|
718
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
719
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
720
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
721
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
722
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
723
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
724
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
725
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
726
|
-
}>>;
|
|
679
|
+
validators: ListCompositeType<import("./validator.js").ValidatorNodeStructType>;
|
|
727
680
|
balances: ListUintNum64Type;
|
|
728
681
|
randaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
729
682
|
slashings: VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/lib/phase0/sszTypes.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BitListType, BitVectorType, ContainerType,
|
|
1
|
+
import { BitListType, BitVectorType, ContainerType, ListBasicType, ListCompositeType, VectorBasicType, ListUintNum64Type, VectorCompositeType, } from "@chainsafe/ssz";
|
|
2
2
|
import { ATTESTATION_SUBNET_COUNT, DEPOSIT_CONTRACT_TREE_DEPTH, EPOCHS_PER_ETH1_VOTING_PERIOD, EPOCHS_PER_HISTORICAL_VECTOR, EPOCHS_PER_SLASHINGS_VECTOR, HISTORICAL_ROOTS_LIMIT, JUSTIFICATION_BITS_LENGTH, MAX_ATTESTATIONS, MAX_ATTESTER_SLASHINGS, MAX_DEPOSITS, MAX_PROPOSER_SLASHINGS, MAX_REQUEST_BLOCKS, MAX_VALIDATORS_PER_COMMITTEE, MAX_VOLUNTARY_EXITS, SLOTS_PER_EPOCH, SLOTS_PER_HISTORICAL_ROOT, VALIDATOR_REGISTRY_LIMIT, } from "@lodestar/params";
|
|
3
3
|
import * as primitiveSsz from "../primitive/sszTypes.js";
|
|
4
|
-
|
|
4
|
+
import { ValidatorNodeStruct } from "./validator.js";
|
|
5
|
+
const { Bytes32, UintNum64, UintBn64, Slot, Epoch, CommitteeIndex, ValidatorIndex, Root, Version, ForkDigest, BLSPubkey, BLSSignature, Domain, } = primitiveSsz;
|
|
5
6
|
// Misc types
|
|
6
7
|
// ==========
|
|
7
8
|
export const AttestationSubnets = new BitVectorType(ATTESTATION_SUBNET_COUNT);
|
|
@@ -105,17 +106,6 @@ export const HistoricalBatchRoots = new ContainerType({
|
|
|
105
106
|
blockRoots: Root, // Hashed HistoricalBlockRoots
|
|
106
107
|
stateRoots: Root, // Hashed HistoricalStateRoots
|
|
107
108
|
}, { typeName: "HistoricalBatchRoots", jsonCase: "eth2" });
|
|
108
|
-
export const ValidatorContainer = new ContainerType({
|
|
109
|
-
pubkey: BLSPubkey,
|
|
110
|
-
withdrawalCredentials: Bytes32,
|
|
111
|
-
effectiveBalance: UintNum64,
|
|
112
|
-
slashed: Boolean,
|
|
113
|
-
activationEligibilityEpoch: EpochInf,
|
|
114
|
-
activationEpoch: EpochInf,
|
|
115
|
-
exitEpoch: EpochInf,
|
|
116
|
-
withdrawableEpoch: EpochInf,
|
|
117
|
-
}, { typeName: "Validator", jsonCase: "eth2" });
|
|
118
|
-
export const ValidatorNodeStruct = new ContainerNodeStructType(ValidatorContainer.fields, ValidatorContainer.opts);
|
|
119
109
|
// The main Validator type is the 'ContainerNodeStructType' version
|
|
120
110
|
export const Validator = ValidatorNodeStruct;
|
|
121
111
|
// Export as stand-alone for direct tree optimizations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sszTypes.js","sourceRoot":"","sources":["../../src/phase0/sszTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,4BAA4B,EAC5B,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,G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|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
5
|
+
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
6
|
+
slashed: import("@chainsafe/ssz").BooleanType;
|
|
7
|
+
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
8
|
+
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
9
|
+
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
10
|
+
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Improve serialization performance for state.validators.serialize();
|
|
14
|
+
*/
|
|
15
|
+
export declare class ValidatorNodeStructType extends ContainerNodeStructType<typeof ValidatorType> {
|
|
16
|
+
constructor();
|
|
17
|
+
value_serializeToBytes({ uint8Array: output, dataView }: ByteViews, offset: number, validator: ValueOfFields<typeof ValidatorType>): number;
|
|
18
|
+
}
|
|
19
|
+
export declare const ValidatorNodeStruct: ValidatorNodeStructType;
|
|
20
|
+
//# sourceMappingURL=validator.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ContainerNodeStructType } from "@chainsafe/ssz";
|
|
2
|
+
import * as primitiveSsz from "../primitive/sszTypes.js";
|
|
3
|
+
const { Boolean, Bytes32, UintNum64, BLSPubkey, EpochInf } = primitiveSsz;
|
|
4
|
+
// this is to work with uint32, see https://github.com/ChainSafe/ssz/blob/ssz-v0.15.1/packages/ssz/src/type/uint.ts
|
|
5
|
+
const NUMBER_2_POW_32 = 2 ** 32;
|
|
6
|
+
/*
|
|
7
|
+
* Below constants are respective to their ssz type in `ValidatorType`.
|
|
8
|
+
*/
|
|
9
|
+
const UINT32_SIZE = 4;
|
|
10
|
+
const PUBKEY_SIZE = 48;
|
|
11
|
+
const WITHDRAWAL_CREDENTIALS_SIZE = 32;
|
|
12
|
+
const SLASHED_SIZE = 1;
|
|
13
|
+
export const ValidatorType = {
|
|
14
|
+
pubkey: BLSPubkey,
|
|
15
|
+
withdrawalCredentials: Bytes32,
|
|
16
|
+
effectiveBalance: UintNum64,
|
|
17
|
+
slashed: Boolean,
|
|
18
|
+
activationEligibilityEpoch: EpochInf,
|
|
19
|
+
activationEpoch: EpochInf,
|
|
20
|
+
exitEpoch: EpochInf,
|
|
21
|
+
withdrawableEpoch: EpochInf,
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Improve serialization performance for state.validators.serialize();
|
|
25
|
+
*/
|
|
26
|
+
export class ValidatorNodeStructType extends ContainerNodeStructType {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(ValidatorType, { typeName: "Validator", jsonCase: "eth2" });
|
|
29
|
+
}
|
|
30
|
+
value_serializeToBytes({ uint8Array: output, dataView }, offset, validator) {
|
|
31
|
+
output.set(validator.pubkey, offset);
|
|
32
|
+
offset += PUBKEY_SIZE;
|
|
33
|
+
output.set(validator.withdrawalCredentials, offset);
|
|
34
|
+
offset += WITHDRAWAL_CREDENTIALS_SIZE;
|
|
35
|
+
const { effectiveBalance, activationEligibilityEpoch, activationEpoch, exitEpoch, withdrawableEpoch } = validator;
|
|
36
|
+
// effectiveBalance is UintNum64
|
|
37
|
+
dataView.setUint32(offset, effectiveBalance & 0xffffffff, true);
|
|
38
|
+
offset += UINT32_SIZE;
|
|
39
|
+
dataView.setUint32(offset, (effectiveBalance / NUMBER_2_POW_32) & 0xffffffff, true);
|
|
40
|
+
offset += UINT32_SIZE;
|
|
41
|
+
output[offset] = validator.slashed ? 1 : 0;
|
|
42
|
+
offset += SLASHED_SIZE;
|
|
43
|
+
offset = writeEpochInf(dataView, offset, activationEligibilityEpoch);
|
|
44
|
+
offset = writeEpochInf(dataView, offset, activationEpoch);
|
|
45
|
+
offset = writeEpochInf(dataView, offset, exitEpoch);
|
|
46
|
+
offset = writeEpochInf(dataView, offset, withdrawableEpoch);
|
|
47
|
+
return offset;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function writeEpochInf(dataView, offset, value) {
|
|
51
|
+
if (value === Infinity) {
|
|
52
|
+
dataView.setUint32(offset, 0xffffffff, true);
|
|
53
|
+
offset += UINT32_SIZE;
|
|
54
|
+
dataView.setUint32(offset, 0xffffffff, true);
|
|
55
|
+
offset += UINT32_SIZE;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
dataView.setUint32(offset, value & 0xffffffff, true);
|
|
59
|
+
offset += UINT32_SIZE;
|
|
60
|
+
dataView.setUint32(offset, (value / NUMBER_2_POW_32) & 0xffffffff, true);
|
|
61
|
+
offset += UINT32_SIZE;
|
|
62
|
+
}
|
|
63
|
+
return offset;
|
|
64
|
+
}
|
|
65
|
+
export const ValidatorNodeStruct = new ValidatorNodeStructType();
|
|
66
|
+
//# sourceMappingURL=validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../src/phase0/validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,uBAAuB,EAAgB,MAAM,gBAAgB,CAAC;AACjF,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AAEzD,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAC,GAAG,YAAY,CAAC;AAExE,mHAAmH;AACnH,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,SAAS;IACjB,qBAAqB,EAAE,OAAO;IAC9B,gBAAgB,EAAE,SAAS;IAC3B,OAAO,EAAE,OAAO;IAChB,0BAA0B,EAAE,QAAQ;IACpC,eAAe,EAAE,QAAQ;IACzB,SAAS,EAAE,QAAQ;IACnB,iB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C,CAAC;QACpD,MAAM,GAAG,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC;QAE5D,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED,SAAS,aAAa,CAAC,QAAkB,EAAE,MAAc,EAAE,KAAa;IACtE,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QAC7C,MAAM,IAAI,WAAW,CAAC;QACtB,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QAC7C,MAAM,IAAI,WAAW,CAAC;IACxB,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,GAAG,UAAU,EAAE,IAAI,CAAC,CAAC;QACrD,MAAM,IAAI,WAAW,CAAC;QACtB,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,GAAG,eAAe,CAAC,GAAG,UAAU,EAAE,IAAI,CAAC,CAAC;QACzE,MAAM,IAAI,WAAW,CAAC;IACxB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,uBAAuB,EAAE,CAAC"}
|
package/lib/sszTypes.d.ts
CHANGED
|
@@ -351,16 +351,7 @@ export declare const allForks: {
|
|
|
351
351
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
352
352
|
}>>;
|
|
353
353
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
354
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
355
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
356
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
357
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
358
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
359
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
360
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
361
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
362
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
363
|
-
}>>;
|
|
354
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
364
355
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
365
356
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
366
357
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -777,16 +768,7 @@ export declare const allForks: {
|
|
|
777
768
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
778
769
|
}>>;
|
|
779
770
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
780
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
781
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
782
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
783
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
784
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
785
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
786
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
787
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
788
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
789
|
-
}>>;
|
|
771
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
790
772
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
791
773
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
792
774
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1227,16 +1209,7 @@ export declare const allForks: {
|
|
|
1227
1209
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1228
1210
|
}>>;
|
|
1229
1211
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1230
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
1231
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1232
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
1233
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
1234
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
1235
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1236
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1237
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1238
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1239
|
-
}>>;
|
|
1212
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
1240
1213
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1241
1214
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1242
1215
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1735,16 +1708,7 @@ export declare const allForks: {
|
|
|
1735
1708
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1736
1709
|
}>>;
|
|
1737
1710
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1738
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
1739
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1740
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
1741
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
1742
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
1743
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1744
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1745
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1746
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
1747
|
-
}>>;
|
|
1711
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
1748
1712
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1749
1713
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1750
1714
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2259,16 +2223,7 @@ export declare const allForks: {
|
|
|
2259
2223
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
2260
2224
|
}>>;
|
|
2261
2225
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2262
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
2263
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
2264
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
2265
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
2266
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
2267
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2268
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2269
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2270
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
2271
|
-
}>>;
|
|
2226
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
2272
2227
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
2273
2228
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
2274
2229
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -3932,16 +3887,7 @@ export declare const allForksExecution: {
|
|
|
3932
3887
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
3933
3888
|
}>>;
|
|
3934
3889
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
3935
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
3936
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
3937
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
3938
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
3939
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
3940
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3941
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3942
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3943
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
3944
|
-
}>>;
|
|
3890
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
3945
3891
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
3946
3892
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
3947
3893
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -4522,16 +4468,7 @@ export declare const allForksExecution: {
|
|
|
4522
4468
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
4523
4469
|
}>>;
|
|
4524
4470
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
4525
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
4526
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
4527
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
4528
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
4529
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
4530
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
4531
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
4532
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
4533
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
4534
|
-
}>>;
|
|
4471
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
4535
4472
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
4536
4473
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
4537
4474
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -5143,16 +5080,7 @@ export declare const allForksExecution: {
|
|
|
5143
5080
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
5144
5081
|
}>>;
|
|
5145
5082
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
5146
|
-
validators: import("@chainsafe/ssz").ListCompositeType<import("
|
|
5147
|
-
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
5148
|
-
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
5149
|
-
effectiveBalance: import("@chainsafe/ssz").UintNumberType;
|
|
5150
|
-
slashed: import("@chainsafe/ssz").BooleanType;
|
|
5151
|
-
activationEligibilityEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
5152
|
-
activationEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
5153
|
-
exitEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
5154
|
-
withdrawableEpoch: import("@chainsafe/ssz").UintNumberType;
|
|
5155
|
-
}>>;
|
|
5083
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
5156
5084
|
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
5157
5085
|
randaoMixes: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
5158
5086
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.18.0-dev.
|
|
14
|
+
"version": "1.18.0-dev.65927c699c",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"types": "lib/index.d.ts",
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@chainsafe/ssz": "^0.15.1",
|
|
77
|
-
"@lodestar/params": "1.18.0-dev.
|
|
77
|
+
"@lodestar/params": "1.18.0-dev.65927c699c",
|
|
78
78
|
"ethereum-cryptography": "^2.0.0"
|
|
79
79
|
},
|
|
80
80
|
"keywords": [
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"beacon",
|
|
84
84
|
"blockchain"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "fabc2fd6ae5ec346d6dd61172a68aeb4f3c226ca"
|
|
87
87
|
}
|