Variable userOperationV6SchemaConst
userOperationV6Schema: ZodEffects<
ZodObject<
{
callData: ZodString;
callGasLimit: ZodBigInt;
initCode: ZodString;
maxFeePerGas: ZodBigInt;
maxPriorityFeePerGas: ZodBigInt;
nonce: ZodBigInt;
paymasterAndData: ZodString;
preVerificationGas: ZodBigInt;
sender: ZodString;
signature: ZodString;
verificationGasLimit: ZodBigInt;
},
"strip",
{
callData: string;
callGasLimit: bigint;
initCode: string;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: bigint;
paymasterAndData: string;
preVerificationGas: bigint;
sender: string;
signature: string;
verificationGasLimit: bigint;
},
{
callData: string;
callGasLimit: bigint;
initCode: string;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: bigint;
paymasterAndData: string;
preVerificationGas: bigint;
sender: string;
signature: string;
verificationGasLimit: bigint;
},
>,
{
callData: `0x${string}`;
callGasLimit: bigint;
initCode: `0x${string}`;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: bigint;
paymasterAndData: `0x${string}`;
preVerificationGas: bigint;
sender: `0x${string}`;
signature: `0x${string}`;
verificationGasLimit: bigint;
},
{
callData: string;
callGasLimit: bigint;
initCode: string;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: bigint;
paymasterAndData: string;
preVerificationGas: bigint;
sender: string;
signature: string;
verificationGasLimit: bigint;
},
> = ...
Zod schema for validating and transforming UserOperation objects for EntryPoint v0.6.0. Enforces correct types and transforms string values to their appropriate types.