Skip to content

Commit c8ae58d

Browse files
ensi321g11tech
authored andcommitted
feat: add engine_getPayloadBodiesByHash and ByRange V2 (#6852)
* Add ByHash and ByRange V2 * Fix build issue * Fix CI error
1 parent 6b62347 commit c8ae58d

File tree

20 files changed

+59
-48
lines changed

20 files changed

+59
-48
lines changed

packages/beacon-node/src/chain/chain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ export class BeaconChain implements IBeaconChain {
11471147
// Will resolve this later
11481148
// if (cpEpoch >= (this.config.ELECTRA_FORK_EPOCH ?? Infinity)) {
11491149
// // finalizedState can be safely casted to Electra state since cp is already post-Electra
1150-
// if (finalizedState.eth1DepositIndex >= (finalizedState as CachedBeaconStateElectra).depositReceiptsStartIndex) {
1150+
// if (finalizedState.eth1DepositIndex >= (finalizedState as CachedBeaconStateElectra).depositRequestsStartIndex) {
11511151
// // Signal eth1 to stop polling eth1Data
11521152
// this.eth1.stopPollingEth1Data();
11531153
// }

packages/beacon-node/src/eth1/eth1DepositDataTracker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ export class Eth1DepositDataTracker {
129129
async getEth1DataAndDeposits(state: CachedBeaconStateAllForks): Promise<Eth1DataAndDeposits> {
130130
if (
131131
state.epochCtx.isAfterElectra() &&
132-
state.eth1DepositIndex >= (state as CachedBeaconStateElectra).depositReceiptsStartIndex
132+
state.eth1DepositIndex >= (state as CachedBeaconStateElectra).depositRequestsStartIndex
133133
) {
134-
// No need to poll eth1Data since Electra deprecates the mechanism after depositReceiptsStartIndex is reached
134+
// No need to poll eth1Data since Electra deprecates the mechanism after depositRequestsStartIndex is reached
135135
return {eth1Data: state.eth1Data, deposits: []};
136136
}
137137
const eth1Data = this.forcedEth1DataVote ?? (await this.getEth1Data(state));

packages/beacon-node/src/execution/engine/http.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ export class ExecutionEngineHttp implements IExecutionEngine {
418418
this.payloadIdCache.prune();
419419
}
420420

421-
async getPayloadBodiesByHash(blockHashes: RootHex[]): Promise<(ExecutionPayloadBody | null)[]> {
422-
const method = "engine_getPayloadBodiesByHashV1";
421+
async getPayloadBodiesByHash(fork: ForkName, blockHashes: RootHex[]): Promise<(ExecutionPayloadBody | null)[]> {
422+
const method =
423+
ForkSeq[fork] >= ForkSeq.electra ? "engine_getPayloadBodiesByHashV2" : "engine_getPayloadBodiesByHashV1";
423424
assertReqSizeLimit(blockHashes.length, 32);
424425
const response = await this.rpc.fetchWithRetries<
425426
EngineApiRpcReturnTypes[typeof method],
@@ -429,10 +430,12 @@ export class ExecutionEngineHttp implements IExecutionEngine {
429430
}
430431

431432
async getPayloadBodiesByRange(
433+
fork: ForkName,
432434
startBlockNumber: number,
433435
blockCount: number
434436
): Promise<(ExecutionPayloadBody | null)[]> {
435-
const method = "engine_getPayloadBodiesByRangeV1";
437+
const method =
438+
ForkSeq[fork] >= ForkSeq.electra ? "engine_getPayloadBodiesByRangeV2" : "engine_getPayloadBodiesByRangeV1";
436439
assertReqSizeLimit(blockCount, 32);
437440
const start = numToQuantity(startBlockNumber);
438441
const count = numToQuantity(blockCount);

packages/beacon-node/src/execution/engine/interface.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ export interface IExecutionEngine {
174174
shouldOverrideBuilder?: boolean;
175175
}>;
176176

177-
getPayloadBodiesByHash(blockHash: DATA[]): Promise<(ExecutionPayloadBody | null)[]>;
177+
getPayloadBodiesByHash(fork: ForkName, blockHash: DATA[]): Promise<(ExecutionPayloadBody | null)[]>;
178178

179-
getPayloadBodiesByRange(start: number, count: number): Promise<(ExecutionPayloadBody | null)[]>;
179+
getPayloadBodiesByRange(fork: ForkName, start: number, count: number): Promise<(ExecutionPayloadBody | null)[]>;
180+
181+
getState(): ExecutionEngineState;
180182
}

packages/beacon-node/src/execution/engine/mock.ts

+2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ export class ExecutionEngineMockBackend implements JsonRpcBackend {
9898
engine_getPayloadV3: this.getPayload.bind(this),
9999
engine_getPayloadV4: this.getPayload.bind(this),
100100
engine_getPayloadBodiesByHashV1: this.getPayloadBodiesByHash.bind(this),
101+
engine_getPayloadBodiesByHashV2: this.getPayloadBodiesByHash.bind(this),
101102
engine_getPayloadBodiesByRangeV1: this.getPayloadBodiesByRange.bind(this),
102103
engine_getClientVersionV1: this.getClientVersionV1.bind(this),
104+
engine_getPayloadBodiesByRangeV2: this.getPayloadBodiesByRange.bind(this),
103105
};
104106
}
105107

packages/beacon-node/src/execution/engine/types.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export type EngineApiRpcParamTypes = {
5858
* 1. Array of DATA - Array of block_hash field values of the ExecutionPayload structure
5959
* */
6060
engine_getPayloadBodiesByHashV1: DATA[][];
61+
engine_getPayloadBodiesByHashV2: DATA[][];
6162

6263
/**
6364
* 1. start: QUANTITY, 64 bits - Starting block number
@@ -69,6 +70,7 @@ export type EngineApiRpcParamTypes = {
6970
* Object - Instance of ClientVersion
7071
*/
7172
engine_getClientVersionV1: [ClientVersionRpc];
73+
engine_getPayloadBodiesByRangeV2: [start: QUANTITY, count: QUANTITY];
7274
};
7375

7476
export type PayloadStatus = {
@@ -107,10 +109,12 @@ export type EngineApiRpcReturnTypes = {
107109
engine_getPayloadV4: ExecutionPayloadResponse;
108110

109111
engine_getPayloadBodiesByHashV1: (ExecutionPayloadBodyRpc | null)[];
112+
engine_getPayloadBodiesByHashV2: (ExecutionPayloadBodyRpc | null)[];
110113

111114
engine_getPayloadBodiesByRangeV1: (ExecutionPayloadBodyRpc | null)[];
112115

113116
engine_getClientVersionV1: ClientVersionRpc[];
117+
engine_getPayloadBodiesByRangeV2: (ExecutionPayloadBodyRpc | null)[];
114118
};
115119

116120
type ExecutionPayloadRpcWithValue = {
@@ -235,8 +239,8 @@ export function serializeExecutionPayload(fork: ForkName, data: ExecutionPayload
235239

236240
// ELECTRA adds depositRequests/depositRequests to the ExecutionPayload
237241
if (ForkSeq[fork] >= ForkSeq.electra) {
238-
const {depositReceipts, withdrawalRequests} = data as electra.ExecutionPayload;
239-
payload.depositRequests = depositReceipts.map(serializeDepositRequest);
242+
const {depositRequests, withdrawalRequests} = data as electra.ExecutionPayload;
243+
payload.depositRequests = depositRequests.map(serializeDepositRequest);
240244
payload.withdrawalRequests = withdrawalRequests.map(serializeExecutionLayerWithdrawalRequest);
241245
}
242246

@@ -334,7 +338,7 @@ export function parseExecutionPayload(
334338
`depositRequests missing for ${fork} >= electra executionPayload number=${executionPayload.blockNumber} hash=${data.blockHash}`
335339
);
336340
}
337-
(executionPayload as electra.ExecutionPayload).depositReceipts = depositRequests.map(deserializeDepositRequest);
341+
(executionPayload as electra.ExecutionPayload).depositRequests = depositRequests.map(deserializeDepositRequest);
338342

339343
if (withdrawalRequests == null) {
340344
throw Error(

packages/beacon-node/test/sim/electra-interop.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ describe("executionEngine / ExecutionEngineHttp", function () {
219219
}
220220
}
221221

222-
if (payload.depositReceipts.length !== 1) {
223-
throw Error(`Number of depositRequests mismatched. Expected: 1, actual: ${payload.depositReceipts.length}`);
222+
if (payload.depositRequests.length !== 1) {
223+
throw Error(`Number of depositRequests mismatched. Expected: 1, actual: ${payload.depositRequests.length}`);
224224
}
225225

226-
const actualDepositRequest = payload.depositReceipts[0];
226+
const actualDepositRequest = payload.depositRequests[0];
227227
assert.deepStrictEqual(
228228
actualDepositRequest,
229229
depositRequestB,
@@ -431,8 +431,8 @@ describe("executionEngine / ExecutionEngineHttp", function () {
431431
throw Error("Historical validator length for epoch 1 or 2 is not dropped properly");
432432
}
433433

434-
if (headState.depositReceiptsStartIndex === UNSET_DEPOSIT_RECEIPTS_START_INDEX) {
435-
throw Error("state.depositReceiptsStartIndex is not set upon processing new deposit receipt");
434+
if (headState.depositRequestsStartIndex === UNSET_DEPOSIT_RECEIPTS_START_INDEX) {
435+
throw Error("state.depositRequestsStartIndex is not set upon processing new deposit receipt");
436436
}
437437

438438
// wait for 1 slot to print current epoch stats

packages/beacon-node/test/spec/presets/operations.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const operations: TestRunnerFn<OperationsTestCase, BeaconStateAllForks> = (fork,
143143
block: ssz[fork].BeaconBlock,
144144
body: ssz[fork].BeaconBlockBody,
145145
deposit: ssz.phase0.Deposit,
146-
deposit_receipt: ssz.electra.DepositReceipt,
146+
deposit_receipt: ssz.electra.DepositRequest,
147147
proposer_slashing: ssz.phase0.ProposerSlashing,
148148
voluntary_exit: ssz.phase0.SignedVoluntaryExit,
149149
// Altair

packages/beacon-node/test/unit/executionEngine/http.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe("ExecutionEngine / http", () => {
223223

224224
returnValue = response;
225225

226-
const res = await executionEngine.getPayloadBodiesByHash(reqBlockHashes);
226+
const res = await executionEngine.getPayloadBodiesByHash(ForkName.bellatrix, reqBlockHashes);
227227

228228
expect(reqJsonRpcPayload).toEqual(request);
229229
expect(res.map(serializeExecutionPayloadBody)).toEqual(response.result);
@@ -276,7 +276,7 @@ describe("ExecutionEngine / http", () => {
276276

277277
returnValue = response;
278278

279-
const res = await executionEngine.getPayloadBodiesByRange(startBlockNumber, blockCount);
279+
const res = await executionEngine.getPayloadBodiesByRange(ForkName.bellatrix, startBlockNumber, blockCount);
280280

281281
expect(reqJsonRpcPayload).toEqual(request);
282282
expect(res.map(serializeExecutionPayloadBody)).toEqual(response.result);

packages/beacon-node/test/utils/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function generateState(
9797

9898
if (forkSeq >= ForkSeq.electra) {
9999
const stateElectra = state as electra.BeaconState;
100-
stateElectra.depositReceiptsStartIndex = 2023n;
100+
stateElectra.depositRequestsStartIndex = 2023n;
101101
stateElectra.latestExecutionPayloadHeader = ssz.electra.ExecutionPayloadHeader.defaultValue();
102102
}
103103

packages/light-client/src/spec/utils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export function upgradeLightClientHeader(
115115

116116
// eslint-disable-next-line no-fallthrough
117117
case ForkName.electra:
118-
(upgradedHeader as LightClientHeader<ForkName.electra>).execution.depositReceiptsRoot =
119-
ssz.electra.LightClientHeader.fields.execution.fields.depositReceiptsRoot.defaultValue();
118+
(upgradedHeader as LightClientHeader<ForkName.electra>).execution.depositRequestsRoot =
119+
ssz.electra.LightClientHeader.fields.execution.fields.depositRequestsRoot.defaultValue();
120120
(upgradedHeader as LightClientHeader<ForkName.electra>).execution.withdrawalRequestsRoot =
121121
ssz.electra.LightClientHeader.fields.execution.fields.withdrawalRequestsRoot.defaultValue();
122122

@@ -157,7 +157,7 @@ export function isValidLightClientHeader(config: ChainForkConfig, header: LightC
157157

158158
if (epoch < config.ELECTRA_FORK_EPOCH) {
159159
if (
160-
(header as LightClientHeader<ForkName.electra>).execution.depositReceiptsRoot !== undefined ||
160+
(header as LightClientHeader<ForkName.electra>).execution.depositRequestsRoot !== undefined ||
161161
(header as LightClientHeader<ForkName.electra>).execution.withdrawalRequestsRoot !== undefined
162162
) {
163163
return false;

packages/state-transition/src/block/processDepositRequest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export function processDepositRequest(
99
state: CachedBeaconStateElectra,
1010
depositRequest: electra.DepositRequest
1111
): void {
12-
if (state.depositReceiptsStartIndex === UNSET_DEPOSIT_RECEIPTS_START_INDEX) {
13-
state.depositReceiptsStartIndex = BigInt(depositRequest.index);
12+
if (state.depositRequestsStartIndex === UNSET_DEPOSIT_RECEIPTS_START_INDEX) {
13+
state.depositRequestsStartIndex = BigInt(depositRequest.index);
1414
}
1515

1616
applyDeposit(fork, state, depositRequest);

packages/state-transition/src/block/processOperations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function processOperations(
7171
processExecutionLayerWithdrawalRequest(fork, state as CachedBeaconStateElectra, elWithdrawalRequest);
7272
}
7373

74-
for (const depositRequest of bodyElectra.executionPayload.depositReceipts) {
74+
for (const depositRequest of bodyElectra.executionPayload.depositRequests) {
7575
processDepositRequest(fork, stateElectra, depositRequest);
7676
}
7777

packages/state-transition/src/slot/upgradeStateToElectra.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ export function upgradeStateToElectra(stateDeneb: CachedBeaconStateDeneb): Cache
5050
stateElectraView.nextSyncCommittee = stateElectraCloned.nextSyncCommittee;
5151
stateElectraView.latestExecutionPayloadHeader = ssz.electra.BeaconState.fields.latestExecutionPayloadHeader.toViewDU({
5252
...stateElectraCloned.latestExecutionPayloadHeader.toValue(),
53-
depositReceiptsRoot: ssz.Root.defaultValue(),
53+
depositRequestsRoot: ssz.Root.defaultValue(),
5454
withdrawalRequestsRoot: ssz.Root.defaultValue(),
5555
});
5656
stateElectraView.nextWithdrawalIndex = stateDeneb.nextWithdrawalIndex;
5757
stateElectraView.nextWithdrawalValidatorIndex = stateDeneb.nextWithdrawalValidatorIndex;
5858
stateElectraView.historicalSummaries = stateElectraCloned.historicalSummaries;
5959

60-
// latestExecutionPayloadHeader's depositReceiptsRoot and withdrawalRequestsRoot set to zeros by default
61-
// default value of depositReceiptsStartIndex is UNSET_DEPOSIT_RECEIPTS_START_INDEX
62-
stateElectraView.depositReceiptsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
60+
// latestExecutionPayloadHeader's depositRequestsRoot and withdrawalRequestsRoot set to zeros by default
61+
// default value of depositRequestsStartIndex is UNSET_DEPOSIT_RECEIPTS_START_INDEX
62+
stateElectraView.depositRequestsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
6363
stateElectraView.depositBalanceToConsume = BigInt(0);
6464
stateElectraView.exitBalanceToConsume = BigInt(0);
6565

@@ -136,9 +136,9 @@ export function upgradeStateToElectraOriginal(stateDeneb: CachedBeaconStateDeneb
136136
epoch: stateDeneb.epochCtx.epoch,
137137
});
138138

139-
// latestExecutionPayloadHeader's depositReceiptsRoot and withdrawalRequestsRoot set to zeros by default
140-
// default value of depositReceiptsStartIndex is UNSET_DEPOSIT_RECEIPTS_START_INDEX
141-
stateElectra.depositReceiptsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
139+
// latestExecutionPayloadHeader's depositRequestsRoot and withdrawalRequestsRoot set to zeros by default
140+
// default value of depositRequestsStartIndex is UNSET_DEPOSIT_RECEIPTS_START_INDEX
141+
stateElectra.depositRequestsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
142142

143143
const validatorsArr = stateElectra.validators.getAllReadonly();
144144

packages/state-transition/src/util/deposit.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export function getEth1DepositCount(state: CachedBeaconStateAllForks, eth1Data?:
99
// eth1DataIndexLimit = min(UintNum64, UintBn64) can be safely casted as UintNum64
1010
// since the result lies within upper and lower bound of UintNum64
1111
const eth1DataIndexLimit: UintNum64 =
12-
eth1DataToUse.depositCount < electraState.depositReceiptsStartIndex
12+
eth1DataToUse.depositCount < electraState.depositRequestsStartIndex
1313
? eth1DataToUse.depositCount
14-
: Number(electraState.depositReceiptsStartIndex);
14+
: Number(electraState.depositRequestsStartIndex);
1515

1616
if (state.eth1DepositIndex < eth1DataIndexLimit) {
1717
return Math.min(MAX_DEPOSITS, eth1DataIndexLimit - state.eth1DepositIndex);

packages/state-transition/src/util/execution.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export function executionPayloadToPayloadHeader(fork: ForkSeq, payload: Executio
172172
}
173173

174174
if (fork >= ForkSeq.electra) {
175-
(bellatrixPayloadFields as electra.ExecutionPayloadHeader).depositReceiptsRoot =
176-
ssz.electra.DepositReceipts.hashTreeRoot((payload as electra.ExecutionPayload).depositReceipts);
175+
(bellatrixPayloadFields as electra.ExecutionPayloadHeader).depositRequestsRoot =
176+
ssz.electra.DepositRequests.hashTreeRoot((payload as electra.ExecutionPayload).depositRequests);
177177
(bellatrixPayloadFields as electra.ExecutionPayloadHeader).withdrawalRequestsRoot =
178178
ssz.electra.ExecutionLayerWithdrawalRequests.hashTreeRoot(
179179
(payload as electra.ExecutionPayload).withdrawalRequests

packages/state-transition/src/util/genesis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export function initializeBeaconStateFromEth1(
308308
stateElectra.latestExecutionPayloadHeader =
309309
(executionPayloadHeader as CompositeViewDU<typeof ssz.electra.ExecutionPayloadHeader>) ??
310310
ssz.electra.ExecutionPayloadHeader.defaultViewDU();
311-
stateElectra.depositReceiptsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
311+
stateElectra.depositRequestsStartIndex = UNSET_DEPOSIT_RECEIPTS_START_INDEX;
312312
}
313313

314314
state.commit();

packages/state-transition/test/unit/util/deposit.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("getEth1DepositCount", () => {
4343
throw Error("Not a post-Electra state");
4444
}
4545

46-
postElectraState.depositReceiptsStartIndex = 1000n;
46+
postElectraState.depositRequestsStartIndex = 1000n;
4747
postElectraState.eth1Data.depositCount = 995;
4848

4949
// 1. Should get less than MAX_DEPOSIT
@@ -77,7 +77,7 @@ describe("getEth1DepositCount", () => {
7777
throw Error("Not a post-Electra state");
7878
}
7979

80-
postElectraState.depositReceiptsStartIndex = 1000n;
80+
postElectraState.depositRequestsStartIndex = 1000n;
8181
postElectraState.eth1Data.depositCount = 1005;
8282

8383
// Before eth1DepositIndex reaching the start index

packages/types/src/electra/sszTypes.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ export const SignedAggregateAndProof = new ContainerType(
112112
{typeName: "SignedAggregateAndProof", jsonCase: "eth2"}
113113
);
114114

115-
export const DepositReceipt = new ContainerType(
115+
export const DepositRequest = new ContainerType(
116116
{
117117
pubkey: BLSPubkey,
118118
withdrawalCredentials: Bytes32,
119119
amount: UintNum64,
120120
signature: BLSSignature,
121121
index: DepositIndex,
122122
},
123-
{typeName: "DepositReceipt", jsonCase: "eth2"}
123+
{typeName: "DepositRequest", jsonCase: "eth2"}
124124
);
125125

126-
export const DepositReceipts = new ListCompositeType(DepositReceipt, MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD);
126+
export const DepositRequests = new ListCompositeType(DepositRequest, MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD);
127127

128128
export const ExecutionLayerWithdrawalRequest = new ContainerType(
129129
{
@@ -141,7 +141,7 @@ export const ExecutionLayerWithdrawalRequests = new ListCompositeType(
141141
export const ExecutionPayload = new ContainerType(
142142
{
143143
...denebSsz.ExecutionPayload.fields,
144-
depositReceipts: DepositReceipts, // New in ELECTRA
144+
depositRequests: DepositRequests, // New in ELECTRA
145145
withdrawalRequests: ExecutionLayerWithdrawalRequests, // New in ELECTRA
146146
},
147147
{typeName: "ExecutionPayload", jsonCase: "eth2"}
@@ -150,7 +150,7 @@ export const ExecutionPayload = new ContainerType(
150150
export const ExecutionPayloadHeader = new ContainerType(
151151
{
152152
...denebSsz.ExecutionPayloadHeader.fields,
153-
depositReceiptsRoot: Root, // New in ELECTRA
153+
depositRequestsRoot: Root, // New in ELECTRA
154154
withdrawalRequestsRoot: Root, // New in ELECTRA
155155
},
156156
{typeName: "ExecutionPayloadHeader", jsonCase: "eth2"}
@@ -340,7 +340,7 @@ export const BeaconState = new ContainerType(
340340
nextWithdrawalValidatorIndex: capellaSsz.BeaconState.fields.nextWithdrawalValidatorIndex,
341341
// Deep history valid from Capella onwards
342342
historicalSummaries: capellaSsz.BeaconState.fields.historicalSummaries,
343-
depositReceiptsStartIndex: UintBn64, // New in ELECTRA:EIP6110
343+
depositRequestsStartIndex: UintBn64, // New in ELECTRA:EIP6110
344344
depositBalanceToConsume: Gwei, // New in Electra:EIP7251
345345
exitBalanceToConsume: Gwei, // New in Electra:EIP7251
346346
earliestExitEpoch: Epoch, // New in Electra:EIP7251

packages/types/src/electra/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export type AttesterSlashing = ValueOf<typeof ssz.AttesterSlashing>;
99
export type AggregateAndProof = ValueOf<typeof ssz.AggregateAndProof>;
1010
export type SignedAggregateAndProof = ValueOf<typeof ssz.SignedAggregateAndProof>;
1111

12-
export type DepositRequest = ValueOf<typeof ssz.DepositReceipt>;
13-
export type DepositRequests = ValueOf<typeof ssz.DepositReceipts>;
12+
export type DepositRequest = ValueOf<typeof ssz.DepositRequest>;
13+
export type DepositRequests = ValueOf<typeof ssz.DepositRequests>;
1414

1515
export type ExecutionLayerWithdrawalRequest = ValueOf<typeof ssz.ExecutionLayerWithdrawalRequest>;
1616
export type ExecutionLayerWithdrawalRequests = ValueOf<typeof ssz.ExecutionLayerWithdrawalRequests>;

0 commit comments

Comments
 (0)