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 d0be264 commit b45ec2e
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 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 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 b45ec2e

Please sign in to comment.