@lodestar/types 1.51.0-dev.99edacec52 → 1.51.0-dev.9cb14e3381

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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/ChainSafe/lodestar/issues"
13
13
  },
14
- "version": "1.51.0-dev.99edacec52",
14
+ "version": "1.51.0-dev.9cb14e3381",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -81,8 +81,8 @@
81
81
  },
82
82
  "types": "lib/index.d.ts",
83
83
  "dependencies": {
84
- "@chainsafe/ssz": "^1.8.1",
85
- "@lodestar/params": "^1.51.0-dev.99edacec52",
84
+ "@chainsafe/ssz": "^1.9.0",
85
+ "@lodestar/params": "^1.51.0-dev.9cb14e3381",
86
86
  "ethereum-cryptography": "^2.0.0"
87
87
  },
88
88
  "keywords": [
@@ -91,5 +91,5 @@
91
91
  "beacon",
92
92
  "blockchain"
93
93
  ],
94
- "gitHead": "dde97c921b9d6bb1b1af227ab04bb44d71604de3"
94
+ "gitHead": "5946f07e0e56c8d8e20e3ba0e75c86c353e23cb6"
95
95
  }
@@ -1,4 +1,4 @@
1
- import {ByteListType, ByteVectorType, ContainerType, ListCompositeType} from "@chainsafe/ssz";
1
+ import {ByteListType, ByteVectorType, ContainerType, ListCompositeType, SerializedListType} from "@chainsafe/ssz";
2
2
  import {
3
3
  BYTES_PER_LOGS_BLOOM,
4
4
  HISTORICAL_ROOTS_LIMIT,
@@ -35,7 +35,7 @@ export const Transaction = new ByteListType(MAX_BYTES_PER_TRANSACTION);
35
35
  *
36
36
  * Spec v1.0.1
37
37
  */
38
- export const Transactions = new ListCompositeType(Transaction, MAX_TRANSACTIONS_PER_PAYLOAD);
38
+ export const Transactions = new SerializedListType(Transaction, MAX_TRANSACTIONS_PER_PAYLOAD);
39
39
 
40
40
  export const CommonExecutionPayloadType = new ContainerType({
41
41
  parentHash: Root,
@@ -9,6 +9,7 @@ import {
9
9
  ProgressiveContainerType,
10
10
  ProgressiveListBasicType,
11
11
  ProgressiveListCompositeType,
12
+ ProgressiveSerializedListType,
12
13
  VectorBasicType,
13
14
  VectorCompositeType,
14
15
  } from "@chainsafe/ssz";
@@ -96,7 +97,7 @@ export const AttestingIndices = new ProgressiveListBasicType(ValidatorIndex, {
96
97
  limit: MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT,
97
98
  });
98
99
  export const Transaction = new ProgressiveByteListType({typeName: "Transaction", limit: MAX_BYTES_PER_TRANSACTION});
99
- export const Transactions = new ProgressiveListCompositeType(Transaction, {
100
+ export const Transactions = new ProgressiveSerializedListType(Transaction, {
100
101
  typeName: "Transactions",
101
102
  limit: MAX_TRANSACTIONS_PER_PAYLOAD,
102
103
  });