Skip to content

Commit 73941bf

Browse files
committed
Update EIP-7928 related methods
1 parent 8d6b784 commit 73941bf

5 files changed

Lines changed: 37 additions & 6 deletions

File tree

src/debug/getters.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,30 @@
9191
value:
9292
- '0xf901a60182c70eb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000100000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000002000000000100000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000021849e99c31e3113a489d7eb0fd4d8c0edbe47afa00000000000000000000000000000000000000000000000000000000029b92700'
9393
- '0xf901a70183018e1cb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000008000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000069cda9d6cc6ce05982d0b4fdf9480f2991f39b5aa00000000000000000000000000000000000000000000000000000000029b92700'
94+
- name: debug_getRawBlockAccessList
95+
summary: Returns the RLP-encoded EIP-7928 block access list for a given block.
96+
params:
97+
- name: Block
98+
required: true
99+
schema:
100+
$ref: '#/components/schemas/BlockNumberOrTag'
101+
errors:
102+
- code: 4444
103+
message: Pruned history unavailable
104+
- code: -32001
105+
message: Resource not found
106+
result:
107+
name: Block access list RLP
108+
schema:
109+
$ref: '#/components/schemas/bytes'
110+
examples:
111+
- name: debug_getRawBlockAccessList example
112+
params:
113+
- name: Block
114+
value: 'latest'
115+
result:
116+
name: Block access list RLP
117+
value: '0xc0'
94118
- name: debug_getBadBlocks
95119
summary: Returns an array of recent bad blocks that the client has seen on the network.
96120
params: []

src/eth/block.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@
306306
errors:
307307
- code: 4444
308308
message: Pruned history unavailable
309-
- code: 4445
310-
message: Block access list not available for pre-Amsterdam blocks
309+
- code: -32001
310+
message: Resource not found
311311
examples:
312312
- name: eth_getBlockAccessList example
313313
params:

src/schemas/base-types.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ uint:
5656
title: hex encoded unsigned integer
5757
type: string
5858
pattern: ^0x(0|[1-9a-f][0-9a-f]*)$
59+
uint32:
60+
title: hex encoded 32 bit unsigned integer
61+
type: string
62+
pattern: ^0x(0|[1-9a-f][0-9a-f]{0,7})$
5963
uint64:
6064
title: hex encoded 64 bit unsigned integer
6165
type: string

src/schemas/block-access-list.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ StorageChange:
77
additionalProperties: false
88
properties:
99
index:
10-
$ref: '#/components/schemas/uint64'
10+
$ref: '#/components/schemas/uint32'
1111
value:
1212
$ref: '#/components/schemas/hash32'
1313
SlotChanges:
@@ -33,7 +33,7 @@ BalanceChange:
3333
additionalProperties: false
3434
properties:
3535
index:
36-
$ref: '#/components/schemas/uint64'
36+
$ref: '#/components/schemas/uint32'
3737
value:
3838
$ref: '#/components/schemas/uint256'
3939
NonceChange:
@@ -45,7 +45,7 @@ NonceChange:
4545
additionalProperties: false
4646
properties:
4747
index:
48-
$ref: '#/components/schemas/uint64'
48+
$ref: '#/components/schemas/uint32'
4949
value:
5050
$ref: '#/components/schemas/uint64'
5151
CodeChange:
@@ -57,7 +57,7 @@ CodeChange:
5757
additionalProperties: false
5858
properties:
5959
index:
60-
$ref: '#/components/schemas/uint64'
60+
$ref: '#/components/schemas/uint32'
6161
code:
6262
$ref: '#/components/schemas/bytes'
6363
AccountAccess:

src/schemas/block.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ Block:
110110
requestsHash:
111111
title: EIP-7685 requests hash
112112
$ref: '#/components/schemas/hash32'
113+
blockAccessListHash:
114+
title: EIP-7928 block access list hash
115+
$ref: '#/components/schemas/hash32'
113116
BlockTag:
114117
title: Block tag
115118
type: string

0 commit comments

Comments
 (0)