Skip to content

Commit 8e34a59

Browse files
Redidacovefjl
authored andcommitted
added eip 7702 schema and authlist in receipt schema
1 parent f6a6f52 commit 8e34a59

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

src/schemas/receipt.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,26 @@ ReceiptInfo:
119119
title: blob gas price
120120
description: The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.
121121
$ref: '#/components/schemas/uint'
122+
AuthorizationList:
123+
type: object
124+
title: Authorizations List
125+
126+
chainId:
127+
title: chainId
128+
description: Chain ID that this transaction is valid on.
129+
$ref: '#/components/schemas/uint'
130+
nonce:
131+
title: nonce
132+
$ref: '#/components/schemas/uint64'
133+
address:
134+
$ref: '#/components/schemas/address'
135+
yParity:
136+
title: yParity
137+
description: The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
138+
$ref: '#/components/schemas/uint'
139+
r:
140+
title: r
141+
$ref: '#/components/schemas/uint'
142+
s:
143+
title: s
144+
$ref: '#/components/schemas/uint'

src/schemas/transaction.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,68 @@
1+
Transaction7702Unsigned:
2+
type: object
3+
title: EIP-7702 transaction.
4+
required:
5+
- type
6+
- nonce
7+
- gas
8+
- value
9+
- input
10+
- maxFeePerGas
11+
- maxPriorityFeePerGas
12+
- gasPrice
13+
- chainId
14+
- accessList
15+
- authorization list
16+
properties:
17+
type:
18+
title: type
19+
type: string
20+
pattern: ^0x2$
21+
nonce:
22+
title: nonce
23+
$ref: '#/components/schemas/uint'
24+
to:
25+
title: to address
26+
oneOf:
27+
- title: Contract Creation (null)
28+
type: 'null'
29+
- title: Address
30+
$ref: '#/components/schemas/address'
31+
gas:
32+
title: gas limit
33+
$ref: '#/components/schemas/uint'
34+
value:
35+
title: value
36+
$ref: '#/components/schemas/uint'
37+
input:
38+
title: input data
39+
$ref: '#/components/schemas/bytes'
40+
maxPriorityFeePerGas:
41+
title: max priority fee per gas
42+
description: Maximum fee per gas the sender is willing to pay to miners in wei
43+
$ref: '#/components/schemas/uint'
44+
maxFeePerGas:
45+
title: max fee per gas
46+
description: The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
47+
$ref: '#/components/schemas/uint'
48+
gasPrice:
49+
title: gas price
50+
description: The effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
51+
$ref: '#/components/schemas/uint'
52+
accessList:
53+
title: accessList
54+
description: EIP-2930 access lists
55+
$ref: '#/components/schemas/AccessList'
56+
chainId:
57+
title: chainId
58+
description: Chain ID that this transaction is valid on.
59+
$ref: '#/components/schemas/uint'
60+
authorization list:
61+
title: authorization list
62+
description: List of authorizations associated with the transaction.
63+
type: array
64+
items:
65+
$ref: '#/components/schemas/AuthorizationList'
166
Transaction4844Unsigned:
267
type: object
368
title: EIP-4844 transaction.

0 commit comments

Comments
 (0)