export type SubmitFailedReason = Data.TaggedEnum<{
AddressNotSet: {};
OrderAlreadyExists: {
orderId: string;
};
}>;
export const SubmitFailedReason = Data.taggedEnum<SubmitFailedReason>();
export const SubmitFailedReasonSchema = Schema.declare(
(input): input is SubmitFailedReason => {
// how to check if input is a SubmitFailedReason?
// or maybe I can use any other more elegant way to get the schema?
}
);
export type SubmitFailedReason = Data.TaggedEnum<{
AddressNotSet: {};
OrderAlreadyExists: {
orderId: string;
};
}>;
export const SubmitFailedReason = Data.taggedEnum<SubmitFailedReason>();
export const SubmitFailedReasonSchema = Schema.declare(
(input): input is SubmitFailedReason => {
// how to check if input is a SubmitFailedReason?
// or maybe I can use any other more elegant way to get the schema?
}
);