@paraswap/sdk
Version:
21 lines • 1.08 kB
TypeScript
import type { ConstructFetchInput } from '../../types';
import { DeltaAuctionOrder, ParaswapDeltaAuction } from './helpers/types';
export type DeltaOrderToPost = {
/** @description Partner string */
partner?: string;
order: DeltaAuctionOrder;
/** @description Signature of the order from order.owner address. EOA signatures must be submitted in ERC-2098 Compact Representation. */
signature: string;
chainId: number;
/** @description designates the Order as being able to partilly filled, as opposed to fill-or-kill */
partiallyFillable?: boolean;
};
export type PostDeltaOrderParams = Omit<DeltaOrderToPost, 'chainId'>;
type DeltaOrderApiResponse = ParaswapDeltaAuction;
type PostDeltaOrder = (postData: PostDeltaOrderParams, signal?: AbortSignal) => Promise<DeltaOrderApiResponse>;
export type PostDeltaOrderFunctions = {
postDeltaOrder: PostDeltaOrder;
};
export declare const constructPostDeltaOrder: ({ apiURL, chainId, fetcher, }: ConstructFetchInput) => PostDeltaOrderFunctions;
export {};
//# sourceMappingURL=postDeltaOrder.d.ts.map