Skip to content

Commit 4fd85a5

Browse files
lightclientfjl
authored andcommitted
add unsigned 7702 tx
1 parent 336e549 commit 4fd85a5

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:
@@ -316,10 +316,32 @@ TransactionLegacyUnsigned:
316316
$ref: '#/components/schemas/uint'
317317
TransactionUnsigned:
318318
oneOf:
319+
- $ref: '#/components/schemas/Transaction7702Unsigned'
319320
- $ref: '#/components/schemas/Transaction4844Unsigned'
320321
- $ref: '#/components/schemas/Transaction1559Unsigned'
321322
- $ref: '#/components/schemas/Transaction2930Unsigned'
322323
- $ref: '#/components/schemas/TransactionLegacyUnsigned'
324+
Transaction7702Signed:
325+
title: Signed 7702 Transaction
326+
type: object
327+
allOf:
328+
- $ref: '#/components/schemas/Transaction7702Unsigned'
329+
- title: EIP-7702 transaction signature properties.
330+
required:
331+
- yParity
332+
- r
333+
- s
334+
properties:
335+
yParity:
336+
title: yParity
337+
description: The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
338+
$ref: '#/components/schemas/uint'
339+
r:
340+
title: r
341+
$ref: '#/components/schemas/uint'
342+
s:
343+
title: s
344+
$ref: '#/components/schemas/uint'
323345
Transaction4844Signed:
324346
title: Signed 4844 Transaction
325347
type: object

0 commit comments

Comments
 (0)