Type Alias: FormSubmissionRequirement

@torque-labs/torque-utilsDocs


@torque-labs/torque-utils / FormSubmissionRequirement

Type Alias: FormSubmissionRequirement

type FormSubmissionRequirement: {
  requirement: FormSubmissionActionSchema;
  type: FORM_SUBMISSION;
};

Form Submission requirement type

Type declaration

Name
Type
Default value
Description

requirement

{ antiSybilFee: number; fields: { label: string; name: string; options: { label: string; value: string; }[]; required: null | boolean; type: FormFieldType; }[]; }

FormSubmissionActionSchema

-

requirement.antiSybilFee?

number

-

Require anti-sybil fee for the form submission. If true, the user must pay a transaction fee to complete the requirement. Otherwise, the form submission will be completed and validated with a signature.

requirement.fields

{ label: string; name: string; options: { label: string; value: string; }[]; required: null | boolean; type: FormFieldType; }[]

-

The fields to collect from the user

type

FORM_SUBMISSION

-

-

Defined in

types/eventConfig/config.ts:113

Last updated