Skip to content

Commit b45ec2e

Browse files
committed
add unsigned 7702 tx
1 parent d0be264 commit b45ec2e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/schemas/transaction.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Transaction7702Signed:
1+
Transaction7702Unsigned:
22
type: object
33
title: EIP-7702 transaction
44
required:
@@ -49,7 +49,7 @@ Transaction7702Signed:
4949
title: chainId
5050
description: Chain ID that this transaction is valid on
5151
$ref: '#/components/schemas/uint'
52-
authList:
52+
authorizationList:
5353
title: authorizationList
5454
$ref: '#/components/schemas/AuthorizationList'
5555
AuthorizationList:
@@ -312,10 +312,32 @@ TransactionLegacyUnsigned:
312312
$ref: '#/components/schemas/uint'
313313
TransactionUnsigned:
314314
oneOf:
315+
- $ref: '#/components/schemas/Transaction7702Unsigned'
315316
- $ref: '#/components/schemas/Transaction4844Unsigned'
316317
- $ref: '#/components/schemas/Transaction1559Unsigned'
317318
- $ref: '#/components/schemas/Transaction2930Unsigned'
318319
- $ref: '#/components/schemas/TransactionLegacyUnsigned'
320+
Transaction7702Signed:
321+
title: Signed 7702 Transaction
322+
type: object
323+
allOf:
324+
- $ref: '#/components/schemas/Transaction7702Unsigned'
325+
- title: EIP-7702 transaction signature properties.
326+
required:
327+
- yParity
328+
- r
329+
- s
330+
properties:
331+
yParity:
332+
title: yParity
333+
description: The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
334+
$ref: '#/components/schemas/uint'
335+
r:
336+
title: r
337+
$ref: '#/components/schemas/uint'
338+
s:
339+
title: s
340+
$ref: '#/components/schemas/uint'
319341
Transaction4844Signed:
320342
title: Signed 4844 Transaction
321343
type: object

0 commit comments

Comments
 (0)