Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/middleware/open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FastifyInstance } from "fastify";

export const withOpenApi = async (server: FastifyInstance) => {
await server.register(swagger, {
mode: "dynamic",
// mode: ,
openapi: {
info: {
title: "thirdweb Engine",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function erc20GetActiveClaimConditions(fastify: FastifyInstance) {
Reply: Static<typeof responseSchema>;
Querystring: Static<typeof requestQueryString>;
}>({
method: "POST",
method: "GET",
url: "/contract/:chain/:contractAddress/erc20/claim-conditions/get-active",
schema: {
summary: "Retrieve the currently active claim phase, if any.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function erc20GetAllClaimConditions(fastify: FastifyInstance) {
Reply: Static<typeof responseSchema>;
Querystring: Static<typeof requestQueryString>;
}>({
method: "POST",
method: "GET",
url: "/contract/:chain/:contractAddress/erc20/claim-conditions/get-all",
schema: {
summary: "Get all the claim phases configured.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function erc20GetClaimIneligibilityReasons(
summary: "Get claim ineligibility reasons",
description:
"Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any.",
tags: ["ERC721"],
tags: ["ERC20"],
operationId: "claimConditionsGetClaimIneligibilityReasons",
params: requestSchema,
querystring: requestQueryString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function erc20SetClaimConditions(fastify: FastifyInstance) {
summary: "Overwrite the claim conditions for the drop.",
description:
"Overwrite the claim conditions for the drop. All properties of a phase are optional, with the default being a free, open, unlimited claim, in the native currency, starting immediately.",
tags: ["ERC721"],
tags: ["ERC20"],
operationId: "setClaimConditions",
params: requestSchema,
body: requestBodySchema,
Expand Down