@lodestar/beacon-node 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/lib/api/impl/api.js +1 -1
- package/lib/api/impl/api.js.map +1 -1
- package/lib/api/impl/beacon/blocks/index.d.ts +2 -1
- package/lib/api/impl/beacon/blocks/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/blocks/index.js +12 -7
- package/lib/api/impl/beacon/blocks/index.js.map +1 -1
- package/lib/api/impl/beacon/index.d.ts +2 -1
- package/lib/api/impl/beacon/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/index.js +2 -2
- package/lib/api/impl/beacon/index.js.map +1 -1
- package/lib/api/impl/beacon/state/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/state/index.js +8 -2
- package/lib/api/impl/beacon/state/index.js.map +1 -1
- package/lib/api/impl/beacon/state/utils.d.ts +2 -1
- package/lib/api/impl/beacon/state/utils.d.ts.map +1 -1
- package/lib/api/impl/beacon/state/utils.js +17 -9
- package/lib/api/impl/beacon/state/utils.js.map +1 -1
- package/lib/api/impl/debug/index.d.ts.map +1 -1
- package/lib/api/impl/debug/index.js +3 -0
- package/lib/api/impl/debug/index.js.map +1 -1
- package/lib/api/impl/validator/index.d.ts.map +1 -1
- package/lib/api/impl/validator/index.js +100 -8
- package/lib/api/impl/validator/index.js.map +1 -1
- package/lib/api/options.d.ts +2 -0
- package/lib/api/options.d.ts.map +1 -1
- package/lib/api/options.js +1 -0
- package/lib/api/options.js.map +1 -1
- package/lib/chain/archiveStore/utils/archiveBlocks.d.ts.map +1 -1
- package/lib/chain/archiveStore/utils/archiveBlocks.js +54 -96
- package/lib/chain/archiveStore/utils/archiveBlocks.js.map +1 -1
- package/lib/chain/blocks/importBlock.d.ts.map +1 -1
- package/lib/chain/blocks/importBlock.js +3 -2
- package/lib/chain/blocks/importBlock.js.map +1 -1
- package/lib/chain/blocks/importExecutionPayload.d.ts.map +1 -1
- package/lib/chain/blocks/importExecutionPayload.js +50 -2
- package/lib/chain/blocks/importExecutionPayload.js.map +1 -1
- package/lib/chain/blocks/types.d.ts +4 -0
- package/lib/chain/blocks/types.d.ts.map +1 -1
- package/lib/chain/blocks/types.js +5 -0
- package/lib/chain/blocks/types.js.map +1 -1
- package/lib/chain/chain.d.ts +2 -1
- package/lib/chain/chain.d.ts.map +1 -1
- package/lib/chain/chain.js +4 -1
- package/lib/chain/chain.js.map +1 -1
- package/lib/chain/errors/executionPayloadBid.d.ts +11 -1
- package/lib/chain/errors/executionPayloadBid.d.ts.map +1 -1
- package/lib/chain/errors/executionPayloadBid.js +2 -0
- package/lib/chain/errors/executionPayloadBid.js.map +1 -1
- package/lib/chain/errors/inclusionList.d.ts +60 -0
- package/lib/chain/errors/inclusionList.d.ts.map +1 -0
- package/lib/chain/errors/inclusionList.js +19 -0
- package/lib/chain/errors/inclusionList.js.map +1 -0
- package/lib/chain/errors/index.d.ts +1 -0
- package/lib/chain/errors/index.d.ts.map +1 -1
- package/lib/chain/errors/index.js +1 -0
- package/lib/chain/errors/index.js.map +1 -1
- package/lib/chain/interface.d.ts +2 -1
- package/lib/chain/interface.d.ts.map +1 -1
- package/lib/chain/interface.js.map +1 -1
- package/lib/chain/opPools/inclusionListStore.d.ts +63 -0
- package/lib/chain/opPools/inclusionListStore.d.ts.map +1 -0
- package/lib/chain/opPools/inclusionListStore.js +171 -0
- package/lib/chain/opPools/inclusionListStore.js.map +1 -0
- package/lib/chain/opPools/index.d.ts +1 -0
- package/lib/chain/opPools/index.d.ts.map +1 -1
- package/lib/chain/opPools/index.js +1 -0
- package/lib/chain/opPools/index.js.map +1 -1
- package/lib/chain/produceBlock/produceBlockBody.d.ts +3 -1
- package/lib/chain/produceBlock/produceBlockBody.d.ts.map +1 -1
- package/lib/chain/produceBlock/produceBlockBody.js +30 -10
- package/lib/chain/produceBlock/produceBlockBody.js.map +1 -1
- package/lib/chain/regen/interface.d.ts +1 -1
- package/lib/chain/regen/interface.d.ts.map +1 -1
- package/lib/chain/regen/interface.js +1 -1
- package/lib/chain/regen/interface.js.map +1 -1
- package/lib/chain/validation/executionPayloadBid.d.ts +0 -15
- package/lib/chain/validation/executionPayloadBid.d.ts.map +1 -1
- package/lib/chain/validation/executionPayloadBid.js +24 -145
- package/lib/chain/validation/executionPayloadBid.js.map +1 -1
- package/lib/chain/validation/inclusionList.d.ts +14 -0
- package/lib/chain/validation/inclusionList.d.ts.map +1 -0
- package/lib/chain/validation/inclusionList.js +150 -0
- package/lib/chain/validation/inclusionList.js.map +1 -0
- package/lib/chain/validation/index.d.ts +1 -0
- package/lib/chain/validation/index.d.ts.map +1 -1
- package/lib/chain/validation/index.js +1 -0
- package/lib/chain/validation/index.js.map +1 -1
- package/lib/db/beacon.d.ts.map +1 -1
- package/lib/db/beacon.js +2 -0
- package/lib/db/beacon.js.map +1 -1
- package/lib/execution/builder/validateBid.d.ts.map +1 -1
- package/lib/execution/builder/validateBid.js +14 -1
- package/lib/execution/builder/validateBid.js.map +1 -1
- package/lib/execution/engine/blobVersionedHashes.d.ts +1 -1
- package/lib/execution/engine/blobVersionedHashes.d.ts.map +1 -1
- package/lib/execution/engine/blobVersionedHashes.js.map +1 -1
- package/lib/execution/engine/disabled.d.ts +1 -0
- package/lib/execution/engine/disabled.d.ts.map +1 -1
- package/lib/execution/engine/disabled.js +3 -0
- package/lib/execution/engine/disabled.js.map +1 -1
- package/lib/execution/engine/http.d.ts +8 -2
- package/lib/execution/engine/http.d.ts.map +1 -1
- package/lib/execution/engine/http.js +27 -4
- package/lib/execution/engine/http.js.map +1 -1
- package/lib/execution/engine/interface.d.ts +11 -2
- package/lib/execution/engine/interface.d.ts.map +1 -1
- package/lib/execution/engine/interface.js.map +1 -1
- package/lib/execution/engine/jsonRpcTransport.d.ts +3 -2
- package/lib/execution/engine/jsonRpcTransport.d.ts.map +1 -1
- package/lib/execution/engine/jsonRpcTransport.js +33 -9
- package/lib/execution/engine/jsonRpcTransport.js.map +1 -1
- package/lib/execution/engine/mock.d.ts +1 -0
- package/lib/execution/engine/mock.d.ts.map +1 -1
- package/lib/execution/engine/mock.js +31 -7
- package/lib/execution/engine/mock.js.map +1 -1
- package/lib/execution/engine/payloadIdCache.d.ts +5 -3
- package/lib/execution/engine/payloadIdCache.d.ts.map +1 -1
- package/lib/execution/engine/payloadIdCache.js +15 -4
- package/lib/execution/engine/payloadIdCache.js.map +1 -1
- package/lib/execution/engine/restTransport.d.ts +2 -1
- package/lib/execution/engine/restTransport.d.ts.map +1 -1
- package/lib/execution/engine/restTransport.js +3 -0
- package/lib/execution/engine/restTransport.js.map +1 -1
- package/lib/execution/engine/sszTypes.d.ts +38 -38
- package/lib/execution/engine/transport.d.ts +5 -2
- package/lib/execution/engine/transport.d.ts.map +1 -1
- package/lib/execution/engine/types.d.ts +25 -1
- package/lib/execution/engine/types.d.ts.map +1 -1
- package/lib/execution/engine/types.js +17 -4
- package/lib/execution/engine/types.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/metrics/metrics/beacon.d.ts +16 -0
- package/lib/metrics/metrics/beacon.d.ts.map +1 -1
- package/lib/metrics/metrics/beacon.js +35 -0
- package/lib/metrics/metrics/beacon.js.map +1 -1
- package/lib/metrics/metrics/lodestar.d.ts +12 -0
- package/lib/metrics/metrics/lodestar.d.ts.map +1 -1
- package/lib/metrics/metrics/lodestar.js +25 -0
- package/lib/metrics/metrics/lodestar.js.map +1 -1
- package/lib/network/gossip/interface.d.ts +8 -2
- package/lib/network/gossip/interface.d.ts.map +1 -1
- package/lib/network/gossip/interface.js +1 -0
- package/lib/network/gossip/interface.js.map +1 -1
- package/lib/network/gossip/topic.d.ts +13 -5
- package/lib/network/gossip/topic.d.ts.map +1 -1
- package/lib/network/gossip/topic.js +13 -1
- package/lib/network/gossip/topic.js.map +1 -1
- package/lib/network/interface.d.ts +2 -1
- package/lib/network/interface.d.ts.map +1 -1
- package/lib/network/network.d.ts +2 -1
- package/lib/network/network.d.ts.map +1 -1
- package/lib/network/network.js +5 -0
- package/lib/network/network.js.map +1 -1
- package/lib/network/processor/gossipHandlers.d.ts.map +1 -1
- package/lib/network/processor/gossipHandlers.js +67 -19
- package/lib/network/processor/gossipHandlers.js.map +1 -1
- package/lib/network/processor/gossipQueues/index.d.ts.map +1 -1
- package/lib/network/processor/gossipQueues/index.js +6 -0
- package/lib/network/processor/gossipQueues/index.js.map +1 -1
- package/lib/network/processor/gossipValidatorFn.d.ts.map +1 -1
- package/lib/network/processor/gossipValidatorFn.js +5 -1
- package/lib/network/processor/gossipValidatorFn.js.map +1 -1
- package/lib/network/processor/index.d.ts.map +1 -1
- package/lib/network/processor/index.js +27 -25
- package/lib/network/processor/index.js.map +1 -1
- package/lib/network/reqresp/ReqRespBeaconNode.d.ts.map +1 -1
- package/lib/network/reqresp/ReqRespBeaconNode.js +6 -0
- package/lib/network/reqresp/ReqRespBeaconNode.js.map +1 -1
- package/lib/network/reqresp/handlers/inclusionListsByIndices.d.ts +10 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.d.ts.map +1 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.js +30 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.js.map +1 -0
- package/lib/network/reqresp/handlers/index.d.ts.map +1 -1
- package/lib/network/reqresp/handlers/index.js +5 -0
- package/lib/network/reqresp/handlers/index.js.map +1 -1
- package/lib/network/reqresp/protocols.d.ts +1 -0
- package/lib/network/reqresp/protocols.d.ts.map +1 -1
- package/lib/network/reqresp/protocols.js +5 -0
- package/lib/network/reqresp/protocols.js.map +1 -1
- package/lib/network/reqresp/rateLimit.d.ts.map +1 -1
- package/lib/network/reqresp/rateLimit.js +4 -0
- package/lib/network/reqresp/rateLimit.js.map +1 -1
- package/lib/network/reqresp/types.d.ts +5 -2
- package/lib/network/reqresp/types.d.ts.map +1 -1
- package/lib/network/reqresp/types.js +3 -0
- package/lib/network/reqresp/types.js.map +1 -1
- package/lib/sync/unknownBlock.d.ts.map +1 -1
- package/lib/sync/unknownBlock.js +42 -18
- package/lib/sync/unknownBlock.js.map +1 -1
- package/package.json +30 -30
- package/src/api/impl/api.ts +1 -1
- package/src/api/impl/beacon/blocks/index.ts +22 -17
- package/src/api/impl/beacon/index.ts +3 -1
- package/src/api/impl/beacon/state/index.ts +10 -1
- package/src/api/impl/beacon/state/utils.ts +19 -9
- package/src/api/impl/debug/index.ts +4 -0
- package/src/api/impl/validator/index.ts +130 -8
- package/src/api/options.ts +3 -0
- package/src/chain/archiveStore/utils/archiveBlocks.ts +64 -126
- package/src/chain/blocks/importBlock.ts +3 -7
- package/src/chain/blocks/importExecutionPayload.ts +68 -2
- package/src/chain/blocks/types.ts +5 -0
- package/src/chain/chain.ts +4 -0
- package/src/chain/errors/executionPayloadBid.ts +12 -0
- package/src/chain/errors/inclusionList.ts +38 -0
- package/src/chain/errors/index.ts +1 -0
- package/src/chain/interface.ts +2 -0
- package/src/chain/opPools/inclusionListStore.ts +208 -0
- package/src/chain/opPools/index.ts +1 -0
- package/src/chain/produceBlock/produceBlockBody.ts +60 -19
- package/src/chain/regen/interface.ts +1 -1
- package/src/chain/validation/executionPayloadBid.ts +40 -170
- package/src/chain/validation/inclusionList.ts +192 -0
- package/src/chain/validation/index.ts +1 -0
- package/src/db/beacon.ts +5 -0
- package/src/execution/builder/validateBid.ts +23 -2
- package/src/execution/engine/blobVersionedHashes.ts +1 -1
- package/src/execution/engine/disabled.ts +4 -0
- package/src/execution/engine/http.ts +40 -5
- package/src/execution/engine/interface.ts +27 -3
- package/src/execution/engine/jsonRpcTransport.ts +46 -9
- package/src/execution/engine/mock.ts +32 -7
- package/src/execution/engine/payloadIdCache.ts +24 -6
- package/src/execution/engine/restTransport.ts +15 -1
- package/src/execution/engine/transport.ts +7 -2
- package/src/execution/engine/types.ts +41 -6
- package/src/index.ts +2 -0
- package/src/metrics/metrics/beacon.ts +37 -0
- package/src/metrics/metrics/lodestar.ts +26 -0
- package/src/network/gossip/interface.ts +5 -0
- package/src/network/gossip/topic.ts +14 -0
- package/src/network/interface.ts +2 -0
- package/src/network/network.ts +11 -0
- package/src/network/processor/gossipHandlers.ts +87 -21
- package/src/network/processor/gossipQueues/index.ts +6 -0
- package/src/network/processor/gossipValidatorFn.ts +5 -0
- package/src/network/processor/index.ts +23 -23
- package/src/network/processor/types.ts +1 -1
- package/src/network/reqresp/ReqRespBeaconNode.ts +7 -0
- package/src/network/reqresp/handlers/inclusionListsByIndices.ts +44 -0
- package/src/network/reqresp/handlers/index.ts +5 -0
- package/src/network/reqresp/protocols.ts +6 -0
- package/src/network/reqresp/rateLimit.ts +4 -0
- package/src/network/reqresp/types.ts +6 -0
- package/src/sync/unknownBlock.ts +47 -28
|
@@ -148,7 +148,7 @@ export declare const ExecutionPayloadEnvelopeBellatrix: ContainerType<{
|
|
|
148
148
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
149
149
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
150
150
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
151
|
-
transactions: import("@chainsafe/ssz").
|
|
151
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
152
152
|
}>;
|
|
153
153
|
}>;
|
|
154
154
|
export declare const ExecutionPayloadEnvelopeCapella: ContainerType<{
|
|
@@ -166,7 +166,7 @@ export declare const ExecutionPayloadEnvelopeCapella: ContainerType<{
|
|
|
166
166
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
167
167
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
168
168
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
169
|
-
transactions: import("@chainsafe/ssz").
|
|
169
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
170
170
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
171
171
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
172
172
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -190,7 +190,7 @@ export declare const ExecutionPayloadEnvelopeDeneb: ContainerType<{
|
|
|
190
190
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
191
191
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
192
192
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
193
|
-
transactions: import("@chainsafe/ssz").
|
|
193
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
194
194
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
195
195
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
196
196
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -217,7 +217,7 @@ export declare const ExecutionPayloadEnvelopeElectra: ContainerType<{
|
|
|
217
217
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
218
218
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
219
219
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
220
|
-
transactions: import("@chainsafe/ssz").
|
|
220
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
221
221
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
222
222
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
223
223
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -247,7 +247,7 @@ export declare const ExecutionPayloadEnvelopeGloas: ContainerType<{
|
|
|
247
247
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
248
248
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
249
249
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
250
|
-
transactions: import("@chainsafe/ssz").
|
|
250
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
251
251
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
252
252
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
253
253
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -275,7 +275,7 @@ export declare const BuiltPayloadBellatrix: ContainerType<{
|
|
|
275
275
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
276
276
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
277
277
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
278
|
-
transactions: import("@chainsafe/ssz").
|
|
278
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
279
279
|
}>;
|
|
280
280
|
blockValue: import("@chainsafe/ssz").UintBigintType;
|
|
281
281
|
}>;
|
|
@@ -294,7 +294,7 @@ export declare const BuiltPayloadCapella: ContainerType<{
|
|
|
294
294
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
295
295
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
296
296
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
297
|
-
transactions: import("@chainsafe/ssz").
|
|
297
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
298
298
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
299
299
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
300
300
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -319,7 +319,7 @@ export declare const BuiltPayloadDeneb: ContainerType<{
|
|
|
319
319
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
320
320
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
321
321
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
322
|
-
transactions: import("@chainsafe/ssz").
|
|
322
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
323
323
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
324
324
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
325
325
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -352,7 +352,7 @@ export declare const BuiltPayloadElectra: ContainerType<{
|
|
|
352
352
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
353
353
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
354
354
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
355
|
-
transactions: import("@chainsafe/ssz").
|
|
355
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
356
356
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
357
357
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
358
358
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -386,7 +386,7 @@ export declare const BuiltPayloadFulu: ContainerType<{
|
|
|
386
386
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
387
387
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
388
388
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
389
|
-
transactions: import("@chainsafe/ssz").
|
|
389
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
390
390
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
391
391
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
392
392
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -422,7 +422,7 @@ export declare const BuiltPayloadGloas: ContainerType<{
|
|
|
422
422
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
423
423
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
424
424
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
425
|
-
transactions: import("@chainsafe/ssz").
|
|
425
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
426
426
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
427
427
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
428
428
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -442,10 +442,10 @@ export declare const BuiltPayloadGloas: ContainerType<{
|
|
|
442
442
|
shouldOverrideBuilder: import("@chainsafe/ssz").BooleanType;
|
|
443
443
|
}>;
|
|
444
444
|
export declare const ExecutionPayloadBodyBellatrix: ContainerType<{
|
|
445
|
-
transactions:
|
|
445
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
446
446
|
}>;
|
|
447
447
|
export declare const ExecutionPayloadBodyCapella: ContainerType<{
|
|
448
|
-
transactions:
|
|
448
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
449
449
|
withdrawals: ListCompositeType<ContainerType<{
|
|
450
450
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
451
451
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -454,7 +454,7 @@ export declare const ExecutionPayloadBodyCapella: ContainerType<{
|
|
|
454
454
|
}>>;
|
|
455
455
|
}>;
|
|
456
456
|
export declare const ExecutionPayloadBodyGloas: ContainerType<{
|
|
457
|
-
transactions:
|
|
457
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
458
458
|
withdrawals: ListCompositeType<ContainerType<{
|
|
459
459
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
460
460
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -467,7 +467,7 @@ export declare const BodiesResponseBellatrix: ContainerType<{
|
|
|
467
467
|
entries: ListCompositeType<ContainerType<{
|
|
468
468
|
available: import("@chainsafe/ssz").BooleanType;
|
|
469
469
|
body: ContainerType<{
|
|
470
|
-
transactions:
|
|
470
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
471
471
|
}>;
|
|
472
472
|
}>>;
|
|
473
473
|
}>;
|
|
@@ -475,7 +475,7 @@ export declare const BodiesResponseCapella: ContainerType<{
|
|
|
475
475
|
entries: ListCompositeType<ContainerType<{
|
|
476
476
|
available: import("@chainsafe/ssz").BooleanType;
|
|
477
477
|
body: ContainerType<{
|
|
478
|
-
transactions:
|
|
478
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
479
479
|
withdrawals: ListCompositeType<ContainerType<{
|
|
480
480
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
481
481
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -489,7 +489,7 @@ export declare const BodiesResponseGloas: ContainerType<{
|
|
|
489
489
|
entries: ListCompositeType<ContainerType<{
|
|
490
490
|
available: import("@chainsafe/ssz").BooleanType;
|
|
491
491
|
body: ContainerType<{
|
|
492
|
-
transactions:
|
|
492
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
493
493
|
withdrawals: ListCompositeType<ContainerType<{
|
|
494
494
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
495
495
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -558,7 +558,7 @@ export declare const engineSszTypes: {
|
|
|
558
558
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
559
559
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
560
560
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
561
|
-
transactions: import("@chainsafe/ssz").
|
|
561
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
562
562
|
}>;
|
|
563
563
|
}>;
|
|
564
564
|
BuiltPayload: ContainerType<{
|
|
@@ -576,7 +576,7 @@ export declare const engineSszTypes: {
|
|
|
576
576
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
577
577
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
578
578
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
579
|
-
transactions: import("@chainsafe/ssz").
|
|
579
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
580
580
|
}>;
|
|
581
581
|
blockValue: import("@chainsafe/ssz").UintBigintType;
|
|
582
582
|
}>;
|
|
@@ -584,7 +584,7 @@ export declare const engineSszTypes: {
|
|
|
584
584
|
entries: ListCompositeType<ContainerType<{
|
|
585
585
|
available: import("@chainsafe/ssz").BooleanType;
|
|
586
586
|
body: ContainerType<{
|
|
587
|
-
transactions:
|
|
587
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
588
588
|
}>;
|
|
589
589
|
}>>;
|
|
590
590
|
}>;
|
|
@@ -634,7 +634,7 @@ export declare const engineSszTypes: {
|
|
|
634
634
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
635
635
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
636
636
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
637
|
-
transactions: import("@chainsafe/ssz").
|
|
637
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
638
638
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
639
639
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
640
640
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -658,7 +658,7 @@ export declare const engineSszTypes: {
|
|
|
658
658
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
659
659
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
660
660
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
661
|
-
transactions: import("@chainsafe/ssz").
|
|
661
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
662
662
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
663
663
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
664
664
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -672,7 +672,7 @@ export declare const engineSszTypes: {
|
|
|
672
672
|
entries: ListCompositeType<ContainerType<{
|
|
673
673
|
available: import("@chainsafe/ssz").BooleanType;
|
|
674
674
|
body: ContainerType<{
|
|
675
|
-
transactions:
|
|
675
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
676
676
|
withdrawals: ListCompositeType<ContainerType<{
|
|
677
677
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
678
678
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -730,7 +730,7 @@ export declare const engineSszTypes: {
|
|
|
730
730
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
731
731
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
732
732
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
733
|
-
transactions: import("@chainsafe/ssz").
|
|
733
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
734
734
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
735
735
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
736
736
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -757,7 +757,7 @@ export declare const engineSszTypes: {
|
|
|
757
757
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
758
758
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
759
759
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
760
|
-
transactions: import("@chainsafe/ssz").
|
|
760
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
761
761
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
762
762
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
763
763
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -779,7 +779,7 @@ export declare const engineSszTypes: {
|
|
|
779
779
|
entries: ListCompositeType<ContainerType<{
|
|
780
780
|
available: import("@chainsafe/ssz").BooleanType;
|
|
781
781
|
body: ContainerType<{
|
|
782
|
-
transactions:
|
|
782
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
783
783
|
withdrawals: ListCompositeType<ContainerType<{
|
|
784
784
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
785
785
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -826,7 +826,7 @@ export declare const engineSszTypes: {
|
|
|
826
826
|
entries: ListCompositeType<ContainerType<{
|
|
827
827
|
available: import("@chainsafe/ssz").BooleanType;
|
|
828
828
|
body: ContainerType<{
|
|
829
|
-
transactions:
|
|
829
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
830
830
|
withdrawals: ListCompositeType<ContainerType<{
|
|
831
831
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
832
832
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -851,7 +851,7 @@ export declare const engineSszTypes: {
|
|
|
851
851
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
852
852
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
853
853
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
854
|
-
transactions: import("@chainsafe/ssz").
|
|
854
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
855
855
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
856
856
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
857
857
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -879,7 +879,7 @@ export declare const engineSszTypes: {
|
|
|
879
879
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
880
880
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
881
881
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
882
|
-
transactions: import("@chainsafe/ssz").
|
|
882
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
883
883
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
884
884
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
885
885
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -935,7 +935,7 @@ export declare const engineSszTypes: {
|
|
|
935
935
|
entries: ListCompositeType<ContainerType<{
|
|
936
936
|
available: import("@chainsafe/ssz").BooleanType;
|
|
937
937
|
body: ContainerType<{
|
|
938
|
-
transactions:
|
|
938
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
939
939
|
withdrawals: ListCompositeType<ContainerType<{
|
|
940
940
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
941
941
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -960,7 +960,7 @@ export declare const engineSszTypes: {
|
|
|
960
960
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
961
961
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
962
962
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
963
|
-
transactions: import("@chainsafe/ssz").
|
|
963
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
964
964
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
965
965
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
966
966
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -988,7 +988,7 @@ export declare const engineSszTypes: {
|
|
|
988
988
|
extraData: import("@chainsafe/ssz").ByteListType;
|
|
989
989
|
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
990
990
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
991
|
-
transactions: import("@chainsafe/ssz").
|
|
991
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
992
992
|
withdrawals: import("@chainsafe/ssz").ListCompositeType<ContainerType<{
|
|
993
993
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
994
994
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1062,7 +1062,7 @@ export declare const engineSszTypes: {
|
|
|
1062
1062
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1063
1063
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
1064
1064
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
1065
|
-
transactions: import("@chainsafe/ssz").
|
|
1065
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
1066
1066
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
1067
1067
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1068
1068
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1092,7 +1092,7 @@ export declare const engineSszTypes: {
|
|
|
1092
1092
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1093
1093
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
1094
1094
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
1095
|
-
transactions: import("@chainsafe/ssz").
|
|
1095
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
1096
1096
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
1097
1097
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1098
1098
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1115,7 +1115,7 @@ export declare const engineSszTypes: {
|
|
|
1115
1115
|
entries: ListCompositeType<ContainerType<{
|
|
1116
1116
|
available: import("@chainsafe/ssz").BooleanType;
|
|
1117
1117
|
body: ContainerType<{
|
|
1118
|
-
transactions:
|
|
1118
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
1119
1119
|
withdrawals: ListCompositeType<ContainerType<{
|
|
1120
1120
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1121
1121
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1181,7 +1181,7 @@ export declare const engineSszTypes: {
|
|
|
1181
1181
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1182
1182
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
1183
1183
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
1184
|
-
transactions: import("@chainsafe/ssz").
|
|
1184
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
1185
1185
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
1186
1186
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1187
1187
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1211,7 +1211,7 @@ export declare const engineSszTypes: {
|
|
|
1211
1211
|
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1212
1212
|
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
1213
1213
|
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
1214
|
-
transactions: import("@chainsafe/ssz").
|
|
1214
|
+
transactions: import("@chainsafe/ssz").ProgressiveSerializedListType;
|
|
1215
1215
|
withdrawals: import("@chainsafe/ssz").ProgressiveListCompositeType<ContainerType<{
|
|
1216
1216
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1217
1217
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1234,7 +1234,7 @@ export declare const engineSszTypes: {
|
|
|
1234
1234
|
entries: ListCompositeType<ContainerType<{
|
|
1235
1235
|
available: import("@chainsafe/ssz").BooleanType;
|
|
1236
1236
|
body: ContainerType<{
|
|
1237
|
-
transactions:
|
|
1237
|
+
transactions: import("@chainsafe/ssz").SerializedListType;
|
|
1238
1238
|
withdrawals: ListCompositeType<ContainerType<{
|
|
1239
1239
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
1240
1240
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForkName } from "@lodestar/params";
|
|
2
|
-
import { BlobsBundle, ExecutionPayload, ExecutionRequests, Root, RootHex, Wei } from "@lodestar/types";
|
|
2
|
+
import { BlobsBundle, ExecutionPayload, ExecutionRequests, Root, RootHex, Wei, bellatrix } from "@lodestar/types";
|
|
3
3
|
import { BlobAndProof } from "@lodestar/types/deneb";
|
|
4
4
|
import { BlobAndProofV2 } from "@lodestar/types/fulu";
|
|
5
5
|
import { ClientVersion, ExecutionPayloadStatus, PayloadAttributes, PayloadId, VersionedHashes } from "./interface.js";
|
|
@@ -9,6 +9,8 @@ export type PayloadStatusResult = {
|
|
|
9
9
|
status: ExecutionPayloadStatus;
|
|
10
10
|
latestValidHash: RootHex | null;
|
|
11
11
|
validationError: string | null;
|
|
12
|
+
/** PayloadStatusV2: whether a VALID payload satisfied the inclusion list constraints, null otherwise */
|
|
13
|
+
inclusionListSatisfied?: boolean | null;
|
|
12
14
|
};
|
|
13
15
|
export type ForkchoiceUpdatedResult = {
|
|
14
16
|
payloadStatus: PayloadStatusResult;
|
|
@@ -28,12 +30,13 @@ export type GetPayloadResult = {
|
|
|
28
30
|
*/
|
|
29
31
|
export interface IEngineTransport {
|
|
30
32
|
readonly emitter: JsonRpcHttpClientEventEmitter;
|
|
31
|
-
newPayload(fork: ForkName, executionPayload: ExecutionPayload, versionedHashes?: VersionedHashes, parentBeaconBlockRoot?: Root, executionRequests?: ExecutionRequests): Promise<PayloadStatusResult>;
|
|
33
|
+
newPayload(fork: ForkName, executionPayload: ExecutionPayload, versionedHashes?: VersionedHashes, parentBeaconBlockRoot?: Root, executionRequests?: ExecutionRequests, inclusionListTransactions?: bellatrix.Transactions): Promise<PayloadStatusResult>;
|
|
32
34
|
forkchoiceUpdated(fork: ForkName, headBlockHash: RootHex, safeBlockHash: RootHex, finalizedBlockHash: RootHex, payloadAttributes?: PayloadAttributes): Promise<ForkchoiceUpdatedResult>;
|
|
33
35
|
getPayload(fork: ForkName, payloadId: PayloadId): Promise<GetPayloadResult>;
|
|
34
36
|
getPayloadBodiesByHashV2(blockHashes: RootHex[]): Promise<(ExecutionPayloadBodyV2 | null)[]>;
|
|
35
37
|
getBlobsV1(versionedHashes: VersionedHashes): Promise<(BlobAndProof | null)[]>;
|
|
36
38
|
getBlobsV2(versionedHashes: VersionedHashes, buffers?: Uint8Array[]): Promise<BlobAndProofV2[] | null>;
|
|
37
39
|
getClientVersion(clientVersion: ClientVersion): Promise<ClientVersion[]>;
|
|
40
|
+
getInclusionList(): Promise<bellatrix.Transactions>;
|
|
38
41
|
}
|
|
39
42
|
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/execution/engine/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/execution/engine/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACpH,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,wGAAwG;IACxG,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,mBAAmB,CAAC;IACnC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B,CAAC;AA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AAa,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAEzE,gBAAgB,IAAI,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;CACrD"}
|
|
@@ -14,6 +14,7 @@ export type EngineApiRpcParamTypes = {
|
|
|
14
14
|
engine_newPayloadV3: [ExecutionPayloadRpc, VersionedHashesRpc, DATA];
|
|
15
15
|
engine_newPayloadV4: [ExecutionPayloadRpc, VersionedHashesRpc, DATA, ExecutionRequestsRpc];
|
|
16
16
|
engine_newPayloadV5: [ExecutionPayloadRpc, VersionedHashesRpc, DATA, ExecutionRequestsRpc];
|
|
17
|
+
engine_newPayloadV6: [ExecutionPayloadRpc, VersionedHashesRpc, DATA, ExecutionRequestsRpc, InclusionListRpc];
|
|
17
18
|
/**
|
|
18
19
|
* 1. Object - Payload validity status with respect to the consensus rules:
|
|
19
20
|
* - blockHash: DATA, 32 Bytes - block hash value of the payload
|
|
@@ -51,6 +52,14 @@ export type EngineApiRpcParamTypes = {
|
|
|
51
52
|
},
|
|
52
53
|
payloadAttributes?: PayloadAttributesRpc
|
|
53
54
|
];
|
|
55
|
+
engine_forkchoiceUpdatedV5: [
|
|
56
|
+
forkChoiceData: {
|
|
57
|
+
headBlockHash: DATA;
|
|
58
|
+
safeBlockHash: DATA;
|
|
59
|
+
finalizedBlockHash: DATA;
|
|
60
|
+
},
|
|
61
|
+
payloadAttributes?: PayloadAttributesRpc
|
|
62
|
+
];
|
|
54
63
|
/**
|
|
55
64
|
* 1. payloadId: QUANTITY, 64 Bits - Identifier of the payload building process
|
|
56
65
|
*/
|
|
@@ -70,11 +79,14 @@ export type EngineApiRpcParamTypes = {
|
|
|
70
79
|
engine_getClientVersionV1: [ClientVersionRpc];
|
|
71
80
|
engine_getBlobsV1: [DATA[]];
|
|
72
81
|
engine_getBlobsV2: [DATA[]];
|
|
82
|
+
engine_getInclusionListV1: [];
|
|
73
83
|
};
|
|
74
84
|
export type PayloadStatus = {
|
|
75
85
|
status: ExecutionPayloadStatus;
|
|
76
86
|
latestValidHash: DATA | null;
|
|
77
87
|
validationError: string | null;
|
|
88
|
+
/** PayloadStatusV2: whether a VALID payload satisfied the inclusion list constraints, null otherwise */
|
|
89
|
+
inclusionListSatisfied?: boolean | null;
|
|
78
90
|
};
|
|
79
91
|
export type EngineApiRpcReturnTypes = {
|
|
80
92
|
/**
|
|
@@ -86,6 +98,7 @@ export type EngineApiRpcReturnTypes = {
|
|
|
86
98
|
engine_newPayloadV3: PayloadStatus;
|
|
87
99
|
engine_newPayloadV4: PayloadStatus;
|
|
88
100
|
engine_newPayloadV5: PayloadStatus;
|
|
101
|
+
engine_newPayloadV6: PayloadStatus;
|
|
89
102
|
engine_forkchoiceUpdatedV1: {
|
|
90
103
|
payloadStatus: PayloadStatus;
|
|
91
104
|
payloadId: QUANTITY | null;
|
|
@@ -102,6 +115,10 @@ export type EngineApiRpcReturnTypes = {
|
|
|
102
115
|
payloadStatus: PayloadStatus;
|
|
103
116
|
payloadId: QUANTITY | null;
|
|
104
117
|
};
|
|
118
|
+
engine_forkchoiceUpdatedV5: {
|
|
119
|
+
payloadStatus: PayloadStatus;
|
|
120
|
+
payloadId: QUANTITY | null;
|
|
121
|
+
};
|
|
105
122
|
/**
|
|
106
123
|
* payloadId | Error: QUANTITY, 64 Bits - Identifier of the payload building process
|
|
107
124
|
*/
|
|
@@ -115,6 +132,7 @@ export type EngineApiRpcReturnTypes = {
|
|
|
115
132
|
engine_getClientVersionV1: ClientVersionRpc[];
|
|
116
133
|
engine_getBlobsV1: (BlobAndProofRpc | null)[];
|
|
117
134
|
engine_getBlobsV2: BlobAndProofV2Rpc[] | null;
|
|
135
|
+
engine_getInclusionListV1: InclusionListRpc;
|
|
118
136
|
};
|
|
119
137
|
type ExecutionPayloadRpcWithValue = {
|
|
120
138
|
executionPayload: ExecutionPayloadRpc;
|
|
@@ -129,7 +147,7 @@ export type ExecutionPayloadBodyRpc = {
|
|
|
129
147
|
withdrawals: WithdrawalV1[] | null | undefined;
|
|
130
148
|
};
|
|
131
149
|
export type ExecutionPayloadBody = {
|
|
132
|
-
transactions: bellatrix.
|
|
150
|
+
transactions: bellatrix.Transactions;
|
|
133
151
|
withdrawals: capella.Withdrawals | null;
|
|
134
152
|
};
|
|
135
153
|
/** engine_getPayloadBodiesByHashV2 (Amsterdam): adds the RLP-encoded block access list, or null if the EL has pruned it */
|
|
@@ -205,7 +223,11 @@ export type PayloadAttributesRpc = {
|
|
|
205
223
|
slotNumber?: QUANTITY;
|
|
206
224
|
/** QUANTITY, 64 Bits - target value for the gasLimit field of the new payload (GLOAS, execution-apis#796) */
|
|
207
225
|
targetGasLimit?: QUANTITY;
|
|
226
|
+
/** Array of DATA - transactions that the built payload must include (PayloadAttributesV5, HEZE) */
|
|
227
|
+
inclusionListTransactions?: InclusionListRpc;
|
|
208
228
|
};
|
|
229
|
+
/** Array of DATA - array of transaction objects */
|
|
230
|
+
export type InclusionListRpc = DATA[];
|
|
209
231
|
export type ClientVersionRpc = {
|
|
210
232
|
/** ClientCode */
|
|
211
233
|
code: string;
|
|
@@ -233,6 +255,8 @@ export declare function parseExecutionPayload(fork: ForkName, response: Executio
|
|
|
233
255
|
};
|
|
234
256
|
export declare function serializePayloadAttributes(data: PayloadAttributes): PayloadAttributesRpc;
|
|
235
257
|
export declare function serializeBeaconBlockRoot(data: Root): DATA;
|
|
258
|
+
export declare function serializeInclusionList(data: bellatrix.Transactions): InclusionListRpc;
|
|
259
|
+
export declare function deserializeInclusionList(data: InclusionListRpc): bellatrix.Transactions;
|
|
236
260
|
export declare function deserializePayloadAttributes(data: PayloadAttributesRpc): PayloadAttributes;
|
|
237
261
|
export declare function parseBlobsBundle(data: BlobsBundleRpc): BlobsBundle;
|
|
238
262
|
export declare function serializeBlobsBundle(data: BlobsBundle): BlobsBundleRpc;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/execution/engine/types.ts"],"names":[],"mappings":"AACA,OAAO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G,IAAI,CAK/B;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,GAAG,yBAAyB,GAAG,IAAI,CAGrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI,GAAG,uBAAuB,GAAG,IAAI,CAO/G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,GAAG,YAAY,GAAG,IAAI,CAO1F;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc,CAKlF;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,UAAU,GAAG,cAAc,CA8B/G;AAED,wBAAgB,kBAAkB,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAKnF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SerializedList } from "@chainsafe/ssz";
|
|
1
2
|
import { BUILDER_DEPOSIT_REQUEST_TYPE, BUILDER_EXIT_REQUEST_TYPE, BYTES_PER_FIELD_ELEMENT, BYTES_PER_LOGS_BLOOM, CELLS_PER_EXT_BLOB, CONSOLIDATION_REQUEST_TYPE, DEPOSIT_REQUEST_TYPE, FIELD_ELEMENTS_PER_BLOB, ForkSeq, WITHDRAWAL_REQUEST_TYPE, } from "@lodestar/params";
|
|
2
3
|
import { ssz, } from "@lodestar/types";
|
|
3
4
|
import { isExecutionRequestType, } from "./interface.js";
|
|
@@ -20,7 +21,7 @@ export function serializeExecutionPayload(fork, data) {
|
|
|
20
21
|
extraData: bytesToData(data.extraData),
|
|
21
22
|
baseFeePerGas: numToQuantity(data.baseFeePerGas),
|
|
22
23
|
blockHash: bytesToData(data.blockHash),
|
|
23
|
-
transactions: data.transactions
|
|
24
|
+
transactions: Array.from(data.transactions, (tran) => bytesToData(tran)),
|
|
24
25
|
};
|
|
25
26
|
// Capella adds withdrawals to the ExecutionPayload
|
|
26
27
|
if (ForkSeq[fork] >= ForkSeq.capella) {
|
|
@@ -84,7 +85,7 @@ export function parseExecutionPayload(fork, response) {
|
|
|
84
85
|
extraData: dataToBytes(data.extraData, null),
|
|
85
86
|
baseFeePerGas: quantityToBigint(data.baseFeePerGas),
|
|
86
87
|
blockHash: dataToBytes(data.blockHash, 32),
|
|
87
|
-
transactions: data.transactions.map((tran) => dataToBytes(tran, null)),
|
|
88
|
+
transactions: SerializedList.fromArray(data.transactions.map((tran) => dataToBytes(tran, null))),
|
|
88
89
|
};
|
|
89
90
|
if (ForkSeq[fork] >= ForkSeq.capella) {
|
|
90
91
|
const { withdrawals } = data;
|
|
@@ -129,11 +130,20 @@ export function serializePayloadAttributes(data) {
|
|
|
129
130
|
parentBeaconBlockRoot: data.parentBeaconBlockRoot ? bytesToData(data.parentBeaconBlockRoot) : undefined,
|
|
130
131
|
slotNumber: data.slotNumber !== undefined ? numToQuantity(data.slotNumber) : undefined,
|
|
131
132
|
targetGasLimit: data.targetGasLimit !== undefined ? numToQuantity(data.targetGasLimit) : undefined,
|
|
133
|
+
inclusionListTransactions: data.inclusionListTransactions
|
|
134
|
+
? serializeInclusionList(data.inclusionListTransactions)
|
|
135
|
+
: undefined,
|
|
132
136
|
};
|
|
133
137
|
}
|
|
134
138
|
export function serializeBeaconBlockRoot(data) {
|
|
135
139
|
return bytesToData(data);
|
|
136
140
|
}
|
|
141
|
+
export function serializeInclusionList(data) {
|
|
142
|
+
return Array.from(data, (transaction) => bytesToData(transaction));
|
|
143
|
+
}
|
|
144
|
+
export function deserializeInclusionList(data) {
|
|
145
|
+
return SerializedList.fromArray(data.map((transaction) => dataToBytes(transaction, null)));
|
|
146
|
+
}
|
|
137
147
|
export function deserializePayloadAttributes(data) {
|
|
138
148
|
return {
|
|
139
149
|
timestamp: quantityToNum(data.timestamp),
|
|
@@ -145,6 +155,9 @@ export function deserializePayloadAttributes(data) {
|
|
|
145
155
|
parentBeaconBlockRoot: data.parentBeaconBlockRoot ? dataToBytes(data.parentBeaconBlockRoot, 32) : undefined,
|
|
146
156
|
slotNumber: data.slotNumber !== undefined ? quantityToNum(data.slotNumber) : undefined,
|
|
147
157
|
targetGasLimit: data.targetGasLimit !== undefined ? quantityToBigint(data.targetGasLimit) : undefined,
|
|
158
|
+
inclusionListTransactions: data.inclusionListTransactions
|
|
159
|
+
? deserializeInclusionList(data.inclusionListTransactions)
|
|
160
|
+
: undefined,
|
|
148
161
|
};
|
|
149
162
|
}
|
|
150
163
|
export function parseBlobsBundle(data) {
|
|
@@ -281,7 +294,7 @@ export function deserializeExecutionRequests(fork, serialized) {
|
|
|
281
294
|
export function deserializeExecutionPayloadBody(data) {
|
|
282
295
|
return data
|
|
283
296
|
? {
|
|
284
|
-
transactions: data.transactions.map((tran) => dataToBytes(tran, null)),
|
|
297
|
+
transactions: SerializedList.fromArray(data.transactions.map((tran) => dataToBytes(tran, null))),
|
|
285
298
|
withdrawals: data.withdrawals ? data.withdrawals.map(deserializeWithdrawal) : null,
|
|
286
299
|
}
|
|
287
300
|
: null;
|
|
@@ -299,7 +312,7 @@ export function serializeExecutionPayloadBodyV2(data) {
|
|
|
299
312
|
export function serializeExecutionPayloadBody(data) {
|
|
300
313
|
return data
|
|
301
314
|
? {
|
|
302
|
-
transactions: data.transactions
|
|
315
|
+
transactions: Array.from(data.transactions, (tran) => bytesToData(tran)),
|
|
303
316
|
withdrawals: data.withdrawals ? data.withdrawals.map(serializeWithdrawal) : null,
|
|
304
317
|
}
|
|
305
318
|
: null;
|