UNPKG

gemsdkbeta

Version:

JavaScript SDK for the GEM swap

23 lines (22 loc) 720 B
import { WyvernProtocol } from 'wyvern-js'; import { 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>;