alt-opensea-js
Version:
JavaScript SDK for the OpenSea marketplace. Let users buy or sell crypto collectibles and other cryptogoods, all on your own site!
23 lines (22 loc) • 726 B
TypeScript
import { WyvernProtocol } from "wyvern-js";
import type { Order } from "./types";
export declare const MAX_ERROR_LENGTH = 120;
/**
* Debug the `ordersCanMatch` part of Wyvern
* @param buy Buy order for debugging
* @param sell Sell order for debugging
*/
export declare function requireOrdersCanMatch(client: WyvernProtocol, { buy, sell, accountAddress, }: {
buy: Order;
sell: Order;
accountAddress: string;
}): Promise<void>;
/**
* Debug the `orderCalldataCanMatch` part of Wyvern
* @param buy Buy order for debugging
* @param sell Sell Order for debugging
*/
export declare function requireOrderCalldataCanMatch(client: WyvernProtocol, { buy, sell }: {
buy: Order;
sell: Order;
}): Promise<void>;