Skip to content

Commit fa015e1

Browse files
authored
engine: align WithdrawalRequestV1 with EIP-7002 and consensus spec (#549)
1 parent 03911ff commit fa015e1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/engine/openrpc/methods/payload.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@
265265
index: '0xf1'
266266
withdrawalRequests:
267267
- sourceAddress: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
268-
validatorPublicKey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
268+
validatorPubkey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
269269
amount: '0x0'
270270
- sourceAddress: '0x00000000000000000000000000000000000010f6'
271-
validatorPublicKey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
271+
validatorPubkey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
272272
amount: '0x1'
273273
- name: Expected blob versioned hashes
274274
value:
@@ -555,10 +555,10 @@
555555
index: '0xf1'
556556
withdrawalRequests:
557557
- sourceAddress: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
558-
validatorPublicKey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
558+
validatorPubkey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
559559
amount: '0x0'
560560
- sourceAddress: '0x00000000000000000000000000000000000010f6'
561-
validatorPublicKey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
561+
validatorPubkey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
562562
amount: '0x1'
563563
blockValue: '0x10a741a46278014d'
564564
blobsBundle:
@@ -675,7 +675,7 @@
675675
index: '0xf0'
676676
withdrawalRequests:
677677
- sourceAddress: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
678-
validatorPublicKey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
678+
validatorPubkey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
679679
amount: '0x0'
680680
- transactions:
681681
- '0xf865108506fc23ac00830124f8940101010101010101010101010101010101010101018031a0d9712a3c40ae85aea4ad1bd95a0b7cc7bd805189a9e2517403b11a00a1530f81a053b53b0267a6dcfe9f9a1652307b396b3e8a65e65707a450e60c92baefdbcfbe'
@@ -697,7 +697,7 @@
697697
index: '0xf1'
698698
withdrawalRequests:
699699
- sourceAddress: '0x00000000000000000000000000000000000010f6'
700-
validatorPublicKey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
700+
validatorPubkey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
701701
amount: '0x1'
702702
- name: engine_getPayloadBodiesByRangeV1
703703
summary: Given a range of block numbers returns bodies of the corresponding execution payloads
@@ -809,7 +809,7 @@
809809
index: '0xf0'
810810
withdrawalRequests:
811811
- sourceAddress: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
812-
validatorPublicKey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
812+
validatorPubkey: '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
813813
amount: '0x0'
814814
- transactions:
815815
- '0xf865108506fc23ac00830124f8940101010101010101010101010101010101010101018031a0d9712a3c40ae85aea4ad1bd95a0b7cc7bd805189a9e2517403b11a00a1530f81a053b53b0267a6dcfe9f9a1652307b396b3e8a65e65707a450e60c92baefdbcfbe'
@@ -831,5 +831,5 @@
831831
index: '0xf1'
832832
withdrawalRequests:
833833
- sourceAddress: '0x00000000000000000000000000000000000010f6'
834-
validatorPublicKey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
834+
validatorPubkey: '0x98daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a7553'
835835
amount: '0x1'

src/engine/openrpc/schemas/payload.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,13 @@ WithdrawalRequestV1:
411411
type: object
412412
required:
413413
- sourceAddress
414-
- validatorPublicKey
414+
- validatorPubkey
415415
- amount
416416
properties:
417417
sourceAddress:
418418
title: Source address
419419
$ref: '#/components/schemas/address'
420-
validatorPublicKey:
420+
validatorPubkey:
421421
title: Validator public key
422422
$ref: '#/components/schemas/bytes48'
423423
amount:

src/engine/prague.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This structure maps onto the withdrawal request from [EIP-7002](https://eips.eth
5454
The fields are encoded as follows:
5555

5656
- `sourceAddress`: `DATA`, 20 Bytes
57-
- `validatorPublicKey`: `DATA`, 48 Bytes
57+
- `validatorPubkey`: `DATA`, 48 Bytes
5858
- `amount`: `QUANTITY`, 64 Bits
5959

6060
*Note:* The `amount` value is represented in Gwei.

0 commit comments

Comments
 (0)