@lodestar/types 1.18.0-dev.822446fd15 → 1.18.0-dev.841e3cd872
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 +24 -96
- package/lib/altair/sszTypes.d.ts +2 -11
- package/lib/bellatrix/sszTypes.d.ts +2 -11
- package/lib/capella/sszTypes.d.ts +10 -19
- package/lib/capella/sszTypes.js +1 -5
- package/lib/capella/sszTypes.js.map +1 -1
- package/lib/deneb/sszTypes.d.ts +2 -11
- package/lib/deneb/sszTypes.js +2 -2
- package/lib/deneb/sszTypes.js.map +1 -1
- package/lib/phase0/sszTypes.d.ts +6 -53
- package/lib/phase0/sszTypes.js +5 -14
- 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 +24 -96
- package/package.json +4 -4
|
@@ -349,17 +349,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
362
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
352
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
365
356
|
previousEpochAttestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
@@ -775,17 +766,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
788
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
769
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
791
773
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1225,17 +1207,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
1238
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1210
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
1241
1214
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1733,17 +1706,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
1746
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1709
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
1749
1713
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2257,17 +2221,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
2270
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
2224
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
2273
2228
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2738,17 +2693,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
2751
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
2696
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
2754
2700
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -3328,17 +3274,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
3341
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
3277
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
3344
3281
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -3949,17 +3886,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
3962
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
3889
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
3965
3893
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -4640,10 +4568,6 @@ export declare const allForksBlinded: {
|
|
|
4640
4568
|
}>>;
|
|
4641
4569
|
}>;
|
|
4642
4570
|
BeaconBlock: import("@chainsafe/ssz").ContainerType<{
|
|
4643
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
4644
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
4645
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4646
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4647
4571
|
body: import("@chainsafe/ssz").ContainerType<{
|
|
4648
4572
|
executionPayloadHeader: import("@chainsafe/ssz").ContainerType<{
|
|
4649
4573
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -4773,13 +4697,13 @@ export declare const allForksBlinded: {
|
|
|
4773
4697
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
4774
4698
|
}>>;
|
|
4775
4699
|
}>;
|
|
4700
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
4701
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
4702
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4703
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4776
4704
|
}>;
|
|
4777
4705
|
SignedBeaconBlock: import("@chainsafe/ssz").ContainerType<{
|
|
4778
4706
|
message: import("@chainsafe/ssz").ContainerType<{
|
|
4779
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
4780
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
4781
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4782
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4783
4707
|
body: import("@chainsafe/ssz").ContainerType<{
|
|
4784
4708
|
executionPayloadHeader: import("@chainsafe/ssz").ContainerType<{
|
|
4785
4709
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -4909,6 +4833,10 @@ export declare const allForksBlinded: {
|
|
|
4909
4833
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
4910
4834
|
}>>;
|
|
4911
4835
|
}>;
|
|
4836
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
4837
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
4838
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4839
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
4912
4840
|
}>;
|
|
4913
4841
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
4914
4842
|
}>;
|
package/lib/altair/sszTypes.d.ts
CHANGED
|
@@ -415,17 +415,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
428
|
-
balances: ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
418
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
431
422
|
previousEpochParticipation: ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -468,17 +468,8 @@ export declare const BeaconState: ContainerType<{
|
|
|
468
468
|
blockHash: ByteVectorType;
|
|
469
469
|
}>>;
|
|
470
470
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
471
|
-
validators: ListCompositeType<import("
|
|
472
|
-
|
|
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
|
-
}>>;
|
|
481
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
471
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
484
475
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -567,17 +567,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
580
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
570
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
583
574
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -758,10 +749,6 @@ export declare const BlindedBeaconBlockBody: ContainerType<{
|
|
|
758
749
|
}>>;
|
|
759
750
|
}>;
|
|
760
751
|
export declare const BlindedBeaconBlock: ContainerType<{
|
|
761
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
762
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
763
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
764
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
765
752
|
body: ContainerType<{
|
|
766
753
|
executionPayloadHeader: ContainerType<{
|
|
767
754
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -891,13 +878,13 @@ export declare const BlindedBeaconBlock: ContainerType<{
|
|
|
891
878
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
892
879
|
}>>;
|
|
893
880
|
}>;
|
|
881
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
882
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
883
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
884
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
894
885
|
}>;
|
|
895
886
|
export declare const SignedBlindedBeaconBlock: ContainerType<{
|
|
896
887
|
message: ContainerType<{
|
|
897
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
898
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
899
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
900
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
901
888
|
body: ContainerType<{
|
|
902
889
|
executionPayloadHeader: ContainerType<{
|
|
903
890
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -1027,6 +1014,10 @@ export declare const SignedBlindedBeaconBlock: ContainerType<{
|
|
|
1027
1014
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1028
1015
|
}>>;
|
|
1029
1016
|
}>;
|
|
1017
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
1018
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1019
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1020
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1030
1021
|
}>;
|
|
1031
1022
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1032
1023
|
}>;
|
package/lib/capella/sszTypes.js
CHANGED
|
@@ -110,11 +110,7 @@ export const BlindedBeaconBlockBody = new ContainerType({
|
|
|
110
110
|
blsToExecutionChanges: BLSToExecutionChanges, // New in capella
|
|
111
111
|
}, { typeName: "BlindedBeaconBlockBody", jsonCase: "eth2", cachePermanentRootStruct: true });
|
|
112
112
|
export const BlindedBeaconBlock = new ContainerType({
|
|
113
|
-
|
|
114
|
-
proposerIndex: ValidatorIndex,
|
|
115
|
-
// Reclare expandedType() with altair block and altair state
|
|
116
|
-
parentRoot: Root,
|
|
117
|
-
stateRoot: Root,
|
|
113
|
+
...bellatrixSsz.BlindedBeaconBlock.fields,
|
|
118
114
|
body: BlindedBeaconBlockBody, // Modified in capella
|
|
119
115
|
}, { typeName: "BlindedBeaconBlock", jsonCase: "eth2", cachePermanentRootStruct: true });
|
|
120
116
|
export const SignedBlindedBeaconBlock = new ContainerType({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sszTypes.js","sourceRoot":"","sources":["../../src/capella/sszTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACrF,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,kCAAkC,IAAI,uBAAuB,EAC7D,gCAAgC,EAChC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,GAAG,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,GAAG,IAAI,SAAS,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,GAAG,IAAI,SAAS,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,GAAG,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,EACJ,SAAS,EACT,IAAI,EACJ,cAAc,EACd,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,OAAO,GACR,GAAG,YAAY,CAAC;AAEjB,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,aAAa,CACzC;IACE,KAAK,EAAE,eAAe;IACtB,cAAc,EAAE,cAAc;IAC9B,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,IAAI;CACb,EACD,EAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAC,CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,aAAa,CACnD;IACE,cAAc,EAAE,cAAc;IAC9B,aAAa,EAAE,SAAS;IACxB,kBAAkB,EAAE,gBAAgB;CACrC,EACD,EAAC,QAAQ,EAAE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C5D,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAC/C;IACE,QAAQ,EAAE,oBAAoB;IAC9B,YAAY,EAAE,IAAI,iBAAiB,CAAC,iBAAiB,EAAE,gCAAgC,GAAG,eAAe,CAAC;CAC3G,EACD,EAAC,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAC,CACjD,CAAC;AAEF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,aAAa,CAChD;IACE,GAAG,YAAY,CAAC,iBAAiB,CAAC,MAAM;IACxC,WAAW,EAAE,WAAW;CACzB,EACD,EAAC,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAC,CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,aAAa,CACnD;IACE,GAAG,YAAY,CAAC,0BAA0B,CAAC,MAAM;IACjD,iBAAiB,EAAE,iBAAiB;CACrC,EACD,EAAC,QAAQ,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,EAAC,CACrD,CAAC"}
|
package/lib/deneb/sszTypes.d.ts
CHANGED
|
@@ -1055,17 +1055,8 @@ export declare const BeaconState: ContainerType<{
|
|
|
1055
1055
|
blockHash: ByteVectorType;
|
|
1056
1056
|
}>>;
|
|
1057
1057
|
eth1DepositIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1058
|
-
validators: ListCompositeType<import("
|
|
1059
|
-
|
|
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
|
-
}>>;
|
|
1068
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1058
|
+
validators: ListCompositeType<import("../phase0/validator.js").ValidatorNodeStructType>;
|
|
1059
|
+
balances: import("@chainsafe/ssz").ListUintNum64Type;
|
|
1069
1060
|
randaoMixes: VectorCompositeType<ByteVectorType>;
|
|
1070
1061
|
slashings: import("@chainsafe/ssz").VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1071
1062
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
package/lib/deneb/sszTypes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerType, ListCompositeType, ByteVectorType, VectorCompositeType } from "@chainsafe/ssz";
|
|
2
|
-
import { HISTORICAL_ROOTS_LIMIT, MAX_BLOB_COMMITMENTS_PER_BLOCK, FIELD_ELEMENTS_PER_BLOB, MAX_REQUEST_BLOB_SIDECARS, BYTES_PER_FIELD_ELEMENT,
|
|
2
|
+
import { HISTORICAL_ROOTS_LIMIT, MAX_BLOB_COMMITMENTS_PER_BLOCK, FIELD_ELEMENTS_PER_BLOB, MAX_REQUEST_BLOB_SIDECARS, BYTES_PER_FIELD_ELEMENT, EPOCHS_PER_SYNC_COMMITTEE_PERIOD, SLOTS_PER_EPOCH, KZG_COMMITMENT_INCLUSION_PROOF_DEPTH, } from "@lodestar/params";
|
|
3
3
|
import { ssz as primitiveSsz } from "../primitive/index.js";
|
|
4
4
|
import { ssz as phase0Ssz } from "../phase0/index.js";
|
|
5
5
|
import { ssz as altairSsz } from "../altair/index.js";
|
|
@@ -153,7 +153,7 @@ export const BeaconState = new ContainerType({
|
|
|
153
153
|
export const LightClientHeader = new ContainerType({
|
|
154
154
|
beacon: phase0Ssz.BeaconBlockHeader,
|
|
155
155
|
execution: ExecutionPayloadHeader,
|
|
156
|
-
executionBranch:
|
|
156
|
+
executionBranch: capellaSsz.LightClientHeader.fields.executionBranch,
|
|
157
157
|
}, { typeName: "LightClientHeader", jsonCase: "eth2" });
|
|
158
158
|
export const LightClientBootstrap = new ContainerType({
|
|
159
159
|
header: LightClientHeader,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sszTypes.js","sourceRoot":"","sources":["../../src/deneb/sszTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACrG,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"sszTypes.js","sourceRoot":"","sources":["../../src/deneb/sszTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACrG,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,gCAAgC,EAChC,eAAe,EACf,oCAAoC,GACrC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,GAAG,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,GAAG,IAAI,SAAS,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,GAAG,IAAI,SAAS,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,GAAG,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,GAAG,IAAI,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,GAC/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
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,47 +121,9 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
164
|
-
export declare const Balances: ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
124
|
+
export declare const Validator: import("./validator.js").ValidatorNodeStructType;
|
|
125
|
+
export declare const Validators: ListCompositeType<import("./validator.js").ValidatorNodeStructType>;
|
|
126
|
+
export declare const Balances: ListUintNum64Type;
|
|
165
127
|
export declare const RandaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
166
128
|
/**
|
|
167
129
|
* This is initially a Gwei (BigInt) vector, however since Nov 2023 it's converted to UintNum64 (number) vector in the state transition because:
|
|
@@ -714,17 +676,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
727
|
-
balances: ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
679
|
+
validators: ListCompositeType<import("./validator.js").ValidatorNodeStructType>;
|
|
680
|
+
balances: ListUintNum64Type;
|
|
728
681
|
randaoMixes: VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
729
682
|
slashings: VectorBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
730
683
|
previousEpochAttestations: ListCompositeType<ContainerType<{
|
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,22 +106,12 @@ 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
|
|
122
112
|
export const Validators = new ListCompositeType(ValidatorNodeStruct, VALIDATOR_REGISTRY_LIMIT);
|
|
123
|
-
|
|
113
|
+
// this ListUintNum64Type is used to cache Leaf Nodes of BeaconState.balances after epoch transition
|
|
114
|
+
export const Balances = new ListUintNum64Type(VALIDATOR_REGISTRY_LIMIT);
|
|
124
115
|
export const RandaoMixes = new VectorCompositeType(Bytes32, EPOCHS_PER_HISTORICAL_VECTOR);
|
|
125
116
|
/**
|
|
126
117
|
* This is initially a Gwei (BigInt) vector, however since Nov 2023 it's converted to UintNum64 (number) vector in the state transition because:
|
|
@@ -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,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,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AAEzD,MAAM,EACJ,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,cAAc,EACd,cAAc,EACd,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,YAAY,EACZ,MAAM,GACP,GAAG,YAAY,CAAC;AAEjB,aAAa;AACb,aAAa;AAEb,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAE9E,4FAA4F;AAC5F,MAAM,CAAC,MAAM,iBAAiB,GAAG,I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AkB;CAC5B,EACD,EAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAC,CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,aAAa,CACzD;IACE,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAChB,EACD,EAAC,QAAQ,EAAE,4BAA4B,EAAE,QAAQ,EAAE,MAAM,EAAC,CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAEzF,YAAY;AACZ,YAAY;AAEZ,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,aAAa,CACtC;IACE,qBAAqB,EAAE,IAAI;IAC3B,WAAW,EAAE,SAAS;IACtB,kBAAkB,EAAE,OAAO;CAC5B,EACD,EAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAC,CACxC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ByteViews, ContainerNodeStructType, ValueOfFields } from "@chainsafe/ssz";
|
|
2
|
+
export declare const ValidatorType: {
|
|
3
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
4
|
+
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,iBAAiB,EAAE,QAAQ;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,uBAA6C;IACxF;QACE,KAAK,CAAC,aAAa,EAAE,EAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAC;IAClE,CAAC;IAED,sBAAsB,CACpB,EAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAY,EACzC,MAAc,EACd,SAA8C;QAE9C,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,MAAM,IAAI,WAAW,CAAC;QACtB,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,qBA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,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,17 +351,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
364
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
354
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
367
358
|
previousEpochAttestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
@@ -777,17 +768,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
790
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
771
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
793
775
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1227,17 +1209,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
1240
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1212
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
1243
1216
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -1735,17 +1708,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
1748
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1711
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
1751
1715
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2259,17 +2223,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
2272
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
2226
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
2275
2230
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -2838,10 +2793,6 @@ export declare const allForksBlinded: {
|
|
|
2838
2793
|
}>>;
|
|
2839
2794
|
}>;
|
|
2840
2795
|
BeaconBlock: import("@chainsafe/ssz").ContainerType<{
|
|
2841
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
2842
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2843
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2844
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2845
2796
|
body: import("@chainsafe/ssz").ContainerType<{
|
|
2846
2797
|
executionPayloadHeader: import("@chainsafe/ssz").ContainerType<{
|
|
2847
2798
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -2971,13 +2922,13 @@ export declare const allForksBlinded: {
|
|
|
2971
2922
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
2972
2923
|
}>>;
|
|
2973
2924
|
}>;
|
|
2925
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
2926
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2927
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2928
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2974
2929
|
}>;
|
|
2975
2930
|
SignedBeaconBlock: import("@chainsafe/ssz").ContainerType<{
|
|
2976
2931
|
message: import("@chainsafe/ssz").ContainerType<{
|
|
2977
|
-
slot: import("@chainsafe/ssz").UintNumberType;
|
|
2978
|
-
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
2979
|
-
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2980
|
-
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
2981
2932
|
body: import("@chainsafe/ssz").ContainerType<{
|
|
2982
2933
|
executionPayloadHeader: import("@chainsafe/ssz").ContainerType<{
|
|
2983
2934
|
withdrawalsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -3107,6 +3058,10 @@ export declare const allForksBlinded: {
|
|
|
3107
3058
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
3108
3059
|
}>>;
|
|
3109
3060
|
}>;
|
|
3061
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
3062
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
3063
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
3064
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
3110
3065
|
}>;
|
|
3111
3066
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
3112
3067
|
}>;
|
|
@@ -3932,17 +3887,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
3945
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
3890
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
3948
3894
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -4522,17 +4468,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
4535
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
4471
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
4538
4475
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
@@ -5143,17 +5080,8 @@ 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
|
-
|
|
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
|
-
}>>;
|
|
5156
|
-
balances: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
5083
|
+
validators: import("@chainsafe/ssz").ListCompositeType<import("./phase0/validator.js").ValidatorNodeStructType>;
|
|
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>;
|
|
5159
5087
|
previousEpochParticipation: import("@chainsafe/ssz").ListBasicType<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.841e3cd872",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"types": "lib/index.d.ts",
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@chainsafe/ssz": "^0.
|
|
77
|
-
"@lodestar/params": "1.18.0-dev.
|
|
76
|
+
"@chainsafe/ssz": "^0.15.1",
|
|
77
|
+
"@lodestar/params": "1.18.0-dev.841e3cd872",
|
|
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": "a0acae362e08401b5935f36017b817d5d40f412d"
|
|
87
87
|
}
|