Skip to content

Commit

Permalink
add unsigned 7702 tx
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Oct 10, 2024
1 parent aa06ed2 commit 52439ef
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Transaction7702Signed:
Transaction7702Unsigned:
type: object
title: EIP-7702 transaction
required:
Expand All @@ -12,7 +12,7 @@ Transaction7702Signed:
- maxFeePerGas
- accessList
- chainId
- authList
- authorizationList
properties:
type:
title: type
Expand Down Expand Up @@ -49,7 +49,7 @@ Transaction7702Signed:
title: chainId
description: Chain ID that this transaction is valid on
$ref: '#/components/schemas/uint'
authList:
authorizationList:
title: authorizationList
$ref: '#/components/schemas/AuthorizationList'
AuthorizationList:
Expand Down Expand Up @@ -312,10 +312,32 @@ TransactionLegacyUnsigned:
$ref: '#/components/schemas/uint'
TransactionUnsigned:
oneOf:
- $ref: '#/components/schemas/Transaction7702Unsigned'
- $ref: '#/components/schemas/Transaction4844Unsigned'
- $ref: '#/components/schemas/Transaction1559Unsigned'
- $ref: '#/components/schemas/Transaction2930Unsigned'
- $ref: '#/components/schemas/TransactionLegacyUnsigned'
Transaction7702Signed:
title: Signed 7702 Transaction
type: object
allOf:
- $ref: '#/components/schemas/Transaction7702Unsigned'
- title: EIP-7702 transaction signature properties.
required:
- yParity
- r
- s
properties:
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'
Transaction4844Signed:
title: Signed 4844 Transaction
type: object
Expand Down

0 comments on commit 52439ef

Please sign in to comment.