forked from ubiquity/pay.ubq.fi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mint gift card with ubiquity dollars
- Loading branch information
Showing
30 changed files
with
874 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { z } from "zod"; | ||
|
||
export const getBestCardParamsSchema = z.object({ | ||
country: z.string(), | ||
amount: z.string(), | ||
}); | ||
|
||
export type GetBestCardParams = z.infer<typeof getBestCardParamsSchema>; | ||
|
||
export const getOrderParamsSchema = z.object({ | ||
orderId: z.string(), | ||
}); | ||
|
||
export type GetOrderParams = z.infer<typeof getOrderParamsSchema>; | ||
|
||
export const postOrderParamsSchema = z.object({ | ||
type: z.union([z.literal("permit"), z.literal("ubiquity-dollar")]), | ||
productId: z.coerce.number(), | ||
txHash: z.string(), | ||
chainId: z.coerce.number(), | ||
country: z.string(), | ||
}); | ||
|
||
export type PostOrderParams = z.infer<typeof postOrderParamsSchema>; | ||
|
||
export const getRedeemCodeParamsSchema = z.object({ | ||
transactionId: z.coerce.number(), | ||
signedMessage: z.string(), | ||
wallet: z.string(), | ||
permitSig: z.string(), | ||
}); | ||
|
||
export type GetRedeemCodeParams = z.infer<typeof getRedeemCodeParamsSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
static/scripts/rewards/render-transaction/claim-rewards-pagination.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.