squash with refactor clerer types

This commit is contained in:
Francisco Bezzecchi
2025-04-11 21:26:55 -03:00
parent 0d04acc2b6
commit f8055c4948

View File

@@ -42,6 +42,16 @@ const relayRequestSchema: JSONSchemaType<RelayRequestBody> = {
},
scope: { type: "string" },
chainId: { type: ["string", "number"] },
feeCommitment: {
type: "object",
properties: {
expiration: { type: "number" },
withdrawalData: { type: "string", pattern: "0x[0-9a-fA-F]+" },
signedRelayerCommitment: { type: "string", pattern: "0x[0-9a-fA-F]+" }
},
nullable: true,
required: ["expiration", "signedRelayerCommitment"]
}
},
required: ["withdrawal", "proof", "publicSignals", "scope", "chainId"],
} as const;