From 52439ef35b20219a0215e3d1d925125264886d89 Mon Sep 17 00:00:00 2001 From: lightclient Date: Thu, 10 Oct 2024 07:10:00 -0600 Subject: [PATCH] add unsigned 7702 tx --- src/schemas/transaction.yaml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/schemas/transaction.yaml b/src/schemas/transaction.yaml index e956330ea..25cabcb11 100644 --- a/src/schemas/transaction.yaml +++ b/src/schemas/transaction.yaml @@ -1,4 +1,4 @@ -Transaction7702Signed: +Transaction7702Unsigned: type: object title: EIP-7702 transaction required: @@ -12,7 +12,7 @@ Transaction7702Signed: - maxFeePerGas - accessList - chainId - - authList + - authorizationList properties: type: title: type @@ -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: @@ -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