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

Add transaction schema for 7702 Set Code Transaction type #561

Open
mattsse opened this issue Jul 10, 2024 · 1 comment
Open

Add transaction schema for 7702 Set Code Transaction type #561

mattsse opened this issue Jul 10, 2024 · 1 comment

Comments

@mattsse
Copy link

mattsse commented Jul 10, 2024

EIP: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7702.md

We introduce a new EIP-2718 transaction, "set code transaction", where the TransactionType is SET_CODE_TX_TYPE and the TransactionPayload is the RLP serialization of the following:

rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, value, data, access_list, authorization_list, signature_y_parity, signature_r, signature_s])

authorization_list = [[chain_id, address, nonce, y_parity, r, s], ...]

The fields chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, value, data, and access_list of the outer transaction follow the same semantics as EIP-1559.

This type is similar to EIP-1559 but has an additional list.

I think the schema for 7702 should be EIP-1559 + a list of authorization lists:

Transaction4844Unsigned:
type: object
title: EIP-4844 transaction.
required:
- type
- nonce
- to
- gas
- value
- input
- maxPriorityFeePerGas
- maxFeePerGas
- maxFeePerBlobGas
- accessList
- blobVersionedHashes
- chainId

I think the todos here are:

  • Add 7702 tx schema
  • Add authlist to receipt schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants