Skip to content

Commit

Permalink
added eip 7702 schema and authlist in receipt schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Redidacove committed Sep 1, 2024
1 parent b31c99b commit cc8c97c
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/schemas/receipt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,26 @@ ReceiptInfo:
title: blob gas price
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.
$ref: '#/components/schemas/uint'
AuthorizationList:
type: object
title: Authorizations List

chainId:
title: chainId
description: Chain ID that this transaction is valid on.
$ref: '#/components/schemas/uint'
nonce:
title: nonce
$ref: '#/components/schemas/uint64'
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'
65 changes: 65 additions & 0 deletions src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
Transaction7702Unsigned:
type: object
title: EIP-7702 transaction.
required:
- type
- nonce
- gas
- value
- input
- maxFeePerGas
- maxPriorityFeePerGas
- gasPrice
- chainId
- accessList
- authorization list
properties:
type:
title: type
type: string
pattern: ^0x2$
nonce:
title: nonce
$ref: '#/components/schemas/uint'
to:
title: to address
oneOf:
- title: Contract Creation (null)
type: 'null'
- title: 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'
gasPrice:
title: gas price
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.
$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'
authorization list:
title: authorization list
description: List of authorizations associated with the transaction.
type: array
items:
$ref: '#/components/schemas/AuthorizationList'
Transaction4844Unsigned:
type: object
title: EIP-4844 transaction.
Expand Down

0 comments on commit cc8c97c

Please sign in to comment.