Skip to content

Commit

Permalink
Adding factory, factoryData. Removing initCode
Browse files Browse the repository at this point in the history
  • Loading branch information
shahafn committed Feb 8, 2024
1 parent 1951b48 commit 0f2042d
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,12 @@ UserOperation:
required:
- sender
- nonce
- initCode
- callData
- callGasLimit
- verificationGasLimit
- preVerificationGas
- maxFeePerGas
- maxPriorityFeePerGas
- paymaster
- paymasterVerificationGasLimit
- paymasterPostOpGasLimit
- paymasterData
- signature
properties:
sender:
Expand All @@ -336,8 +331,11 @@ UserOperation:
nonce:
title: nonce
$ref: '#/components/schemas/uint'
initCode:
title: initCode
factory:
title: factory
$ref: '#/components/schemas/address'
factoryData:
title: factoryData
$ref: '#/components/schemas/bytes'
callData:
title: callData
Expand Down Expand Up @@ -377,6 +375,22 @@ UserOperation:
signature:
title: signature
$ref: '#/components/schemas/bytes'
allOf:
- if:
anyOf:
- properties:
paymaster: { }
- properties:
paymasterData: { }
- properties:
paymasterPostOpGasLimit: { }
- properties:
paymasterVerificationGasLimit: { }
then:
required: ["paymaster", "paymasterData", "paymasterPostOpGasLimit", "paymasterVerificationGasLimit"]
dependencies:
factory: ["factoryData"]
factoryData: ["factory"]
GasInfo:
type: object
title: UserOperation Gas parameters
Expand Down

0 comments on commit 0f2042d

Please sign in to comment.