@paraswap/sdk
Version:
20 lines • 947 B
TypeScript
import type { Address, ConstructFetchInput } from '../../types';
import type { ParaswapDeltaAuction } from './helpers/types';
type OrderFromAPI = Omit<ParaswapDeltaAuction, 'signature'>;
type GetDeltaOrderById = (orderId: string, signal?: AbortSignal) => Promise<OrderFromAPI | null>;
type OrdersFilter = {
/** @description Order.owner to fetch Delta Order for */
userAddress: Address;
/** @description Pagination option, page. Default 1 */
page?: number;
/** @description Pagination option, limit. Default 100 */
limit?: number;
};
type GetDeltaOrders = (options: OrdersFilter, signal?: AbortSignal) => Promise<OrderFromAPI[]>;
export type GetDeltaOrdersFunctions = {
getDeltaOrderById: GetDeltaOrderById;
getDeltaOrders: GetDeltaOrders;
};
export declare const constructGetDeltaOrders: ({ apiURL, fetcher, }: ConstructFetchInput) => GetDeltaOrdersFunctions;
export {};
//# sourceMappingURL=getDeltaOrders.d.ts.map