1- import { type Static , Type } from "@sinclair/typebox" ;
1+ import { Static , Type } from "@sinclair/typebox" ;
22import type { FastifyInstance } from "fastify" ;
33import { StatusCodes } from "http-status-codes" ;
44import type { Address } from "thirdweb" ;
@@ -33,6 +33,11 @@ const requestBodySchema = Type.Object({
3333 quantity : Type . String ( {
3434 description : "Quantity of NFTs to mint" ,
3535 } ) ,
36+ singlePhaseDrop : Type . Optional (
37+ Type . Boolean ( {
38+ description : "Whether the drop is a single phase drop" ,
39+ } ) ,
40+ ) ,
3641 ...txOverridesWithValueSchema . properties ,
3742} ) ;
3843
@@ -70,7 +75,8 @@ export async function erc1155claimTo(fastify: FastifyInstance) {
7075 handler : async ( request , reply ) => {
7176 const { chain, contractAddress } = request . params ;
7277 const { simulateTx } = request . query ;
73- const { receiver, tokenId, quantity, txOverrides } = request . body ;
78+ const { receiver, tokenId, quantity, singlePhaseDrop, txOverrides } =
79+ request . body ;
7480 const {
7581 "x-backend-wallet-address" : fromAddress ,
7682 "x-account-address" : accountAddress ,
@@ -91,6 +97,7 @@ export async function erc1155claimTo(fastify: FastifyInstance) {
9197 to : receiver ,
9298 quantity : BigInt ( quantity ) ,
9399 tokenId : BigInt ( tokenId ) ,
100+ singlePhaseDrop,
94101 } ) ;
95102
96103 const queueId = await queueTransaction ( {
0 commit comments