@magiceden/magiceden-sdk
Version:
A TypeScript SDK for interacting with Magic Eden's API across multiple chains.
145 lines (144 loc) • 6.86 kB
TypeScript
import { z } from 'zod';
/**
* Parameters for canceling an offer
*/
export declare const BaseCancelItemOfferParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
export declare const EvmCancelItemOfferParamsSchema: z.ZodObject<z.objectUtil.extendShape<{}, {}>, "strip", z.ZodTypeAny, {}, {}>;
export declare const EvmCancelMultipleItemOfferParamsSchema: z.ZodObject<{
/**
* The EVM chain to cancel the item offer on
*/
chain: z.ZodEnum<[import("../../chains").Blockchain.ETHEREUM, import("../../chains").Blockchain.BASE, import("../../chains").Blockchain.POLYGON, import("../../chains").Blockchain.SEI, import("../../chains").Blockchain.ARBITRUM, import("../../chains").Blockchain.APECHAIN, import("../../chains").Blockchain.BERACHAIN, import("../../chains").Blockchain.MONAD_TESTNET, import("../../chains").Blockchain.BSC, import("../../chains").Blockchain.ABSTRACT]>;
/**
* The order IDs to cancel
*/
orderIds: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
chain: import("../../chains").Blockchain.ETHEREUM | import("../../chains").Blockchain.POLYGON | import("../../chains").Blockchain.BASE | import("../../chains").Blockchain.SEI | import("../../chains").Blockchain.ARBITRUM | import("../../chains").Blockchain.APECHAIN | import("../../chains").Blockchain.BERACHAIN | import("../../chains").Blockchain.MONAD_TESTNET | import("../../chains").Blockchain.BSC | import("../../chains").Blockchain.ABSTRACT;
orderIds: string[];
}, {
chain: import("../../chains").Blockchain.ETHEREUM | import("../../chains").Blockchain.POLYGON | import("../../chains").Blockchain.BASE | import("../../chains").Blockchain.SEI | import("../../chains").Blockchain.ARBITRUM | import("../../chains").Blockchain.APECHAIN | import("../../chains").Blockchain.BERACHAIN | import("../../chains").Blockchain.MONAD_TESTNET | import("../../chains").Blockchain.BSC | import("../../chains").Blockchain.ABSTRACT;
orderIds: string[];
}>;
export declare const SolanaCancelItemOfferParamsSchema: z.ZodObject<z.objectUtil.extendShape<{}, {
/**
* The NFT token address/mint
*/
token: z.ZodString;
/**
* The offer price to cancel
*/
price: z.ZodString;
/**
* The offer expiry timestamp
*/
expiry: z.ZodOptional<z.ZodNumber>;
/**
* The auction house address
*/
auctionHouseAddress: z.ZodOptional<z.ZodString>;
/**
* The buyer referral address
*/
buyerReferral: z.ZodOptional<z.ZodString>;
/**
* The priority fee in micro lamports
*/
prioFeeMicroLamports: z.ZodOptional<z.ZodNumber>;
/**
* The maximum priority fee in lamports
*/
maxPrioFeeLamports: z.ZodOptional<z.ZodNumber>;
/**
* The exact priority fee in lamports
*/
exactPrioFeeLamports: z.ZodOptional<z.ZodNumber>;
}>, "strip", z.ZodTypeAny, {
price: string;
token: string;
expiry?: number | undefined;
auctionHouseAddress?: string | undefined;
prioFeeMicroLamports?: number | undefined;
maxPrioFeeLamports?: number | undefined;
exactPrioFeeLamports?: number | undefined;
buyerReferral?: string | undefined;
}, {
price: string;
token: string;
expiry?: number | undefined;
auctionHouseAddress?: string | undefined;
prioFeeMicroLamports?: number | undefined;
maxPrioFeeLamports?: number | undefined;
exactPrioFeeLamports?: number | undefined;
buyerReferral?: string | undefined;
}>;
export type EvmCancelItemOfferParams = z.infer<typeof EvmCancelMultipleItemOfferParamsSchema>;
export type SolanaCancelItemOfferParams = z.infer<typeof SolanaCancelItemOfferParamsSchema>;
export declare const CancelItemOfferParams: z.ZodUnion<[z.ZodObject<{
/**
* The EVM chain to cancel the item offer on
*/
chain: z.ZodEnum<[import("../../chains").Blockchain.ETHEREUM, import("../../chains").Blockchain.BASE, import("../../chains").Blockchain.POLYGON, import("../../chains").Blockchain.SEI, import("../../chains").Blockchain.ARBITRUM, import("../../chains").Blockchain.APECHAIN, import("../../chains").Blockchain.BERACHAIN, import("../../chains").Blockchain.MONAD_TESTNET, import("../../chains").Blockchain.BSC, import("../../chains").Blockchain.ABSTRACT]>;
/**
* The order IDs to cancel
*/
orderIds: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
chain: import("../../chains").Blockchain.ETHEREUM | import("../../chains").Blockchain.POLYGON | import("../../chains").Blockchain.BASE | import("../../chains").Blockchain.SEI | import("../../chains").Blockchain.ARBITRUM | import("../../chains").Blockchain.APECHAIN | import("../../chains").Blockchain.BERACHAIN | import("../../chains").Blockchain.MONAD_TESTNET | import("../../chains").Blockchain.BSC | import("../../chains").Blockchain.ABSTRACT;
orderIds: string[];
}, {
chain: import("../../chains").Blockchain.ETHEREUM | import("../../chains").Blockchain.POLYGON | import("../../chains").Blockchain.BASE | import("../../chains").Blockchain.SEI | import("../../chains").Blockchain.ARBITRUM | import("../../chains").Blockchain.APECHAIN | import("../../chains").Blockchain.BERACHAIN | import("../../chains").Blockchain.MONAD_TESTNET | import("../../chains").Blockchain.BSC | import("../../chains").Blockchain.ABSTRACT;
orderIds: string[];
}>, z.ZodObject<z.objectUtil.extendShape<{}, {
/**
* The NFT token address/mint
*/
token: z.ZodString;
/**
* The offer price to cancel
*/
price: z.ZodString;
/**
* The offer expiry timestamp
*/
expiry: z.ZodOptional<z.ZodNumber>;
/**
* The auction house address
*/
auctionHouseAddress: z.ZodOptional<z.ZodString>;
/**
* The buyer referral address
*/
buyerReferral: z.ZodOptional<z.ZodString>;
/**
* The priority fee in micro lamports
*/
prioFeeMicroLamports: z.ZodOptional<z.ZodNumber>;
/**
* The maximum priority fee in lamports
*/
maxPrioFeeLamports: z.ZodOptional<z.ZodNumber>;
/**
* The exact priority fee in lamports
*/
exactPrioFeeLamports: z.ZodOptional<z.ZodNumber>;
}>, "strip", z.ZodTypeAny, {
price: string;
token: string;
expiry?: number | undefined;
auctionHouseAddress?: string | undefined;
prioFeeMicroLamports?: number | undefined;
maxPrioFeeLamports?: number | undefined;
exactPrioFeeLamports?: number | undefined;
buyerReferral?: string | undefined;
}, {
price: string;
token: string;
expiry?: number | undefined;
auctionHouseAddress?: string | undefined;
prioFeeMicroLamports?: number | undefined;
maxPrioFeeLamports?: number | undefined;
exactPrioFeeLamports?: number | undefined;
buyerReferral?: string | undefined;
}>]>;
export type CancelItemOfferParams = z.infer<typeof CancelItemOfferParams>;