Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eip 7702 schema and authlist in receipt schema #592

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
Transaction7702Signed:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no Transaction7702Unsigned, this should be added

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jochem-brouwer Do you mean it will be Unsigned or need to add another Transaction7702Unsigned ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the other transaction types, they have an unsigned and a signed variant :)

type: object
title: EIP-7702 transaction
required:
- type
- nonce
- to
- gas
- value
- input
- maxPriorityFeePerGas
- maxFeePerGas
- maxFeePerBlobGas
- accessList
- chainId
- authorizationlist
properties:
type:
title: type
type: string
pattern: ^0x4$
nonce:
title: nonce
$ref: '#/components/schemas/uint'
to:
title: to address
$ref: '#/components/schemas/address'
gas:
title: gas limit
$ref: '#/components/schemas/uint'
value:
title: value
$ref: '#/components/schemas/uint'
input:
title: input data
$ref: '#/components/schemas/bytes'
maxPriorityFeePerGas:
title: max priority fee per gas
description: Maximum fee per gas the sender is willing to pay to miners in wei
$ref: '#/components/schemas/uint'
maxFeePerGas:
title: max fee per gas
description: The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
$ref: '#/components/schemas/uint'
maxFeePerBlobGas:
title: max fee per blob gas
description: The maximum total fee per gas the sender is willing to pay for blob gas in wei
$ref: '#/components/schemas/uint'
accessList:
title: accessList
description: EIP-2930 access lists
$ref: '#/components/schemas/AccessList'
chainId:
title: chainId
description: Chain ID that this transaction is valid on
$ref: '#/components/schemas/uint'
authList:
title: authorizationList
$ref: '#/components/schemas/AuthorizationList'
AuthorizationList:
title: Authorization List
description: List of authorizations for the transaction
type: array
items:
type: object
properties:
chainId:
title: chainId
description: Chain ID on which this transaction is valid
$ref: '#/components/schemas/uint'
nonce:
title: nonce
$ref: '#/components/schemas/uint'
address:
$ref: '#/components/schemas/address'
yParity:
title: yParity
description: The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature
$ref: '#/components/schemas/uint'
r:
title: r
$ref: '#/components/schemas/uint'
s:
title: s
$ref: '#/components/schemas/uint'
required:
- chainId
- nonce
- address
- yParity
- r
- s
Transaction4844Unsigned:
type: object
title: EIP-4844 transaction.
Expand Down