UNPKG

@paraswap/sdk

Version:
22 lines 1.14 kB
import type { Address, ConstructFetchInput, RequestParameters } from '../../types'; import type { ParaswapDeltaAuction } from './helpers/types'; type OrderFromAPI = Omit<ParaswapDeltaAuction, 'signature'>; type GetDeltaOrderById = (orderId: string, requestParams?: RequestParameters) => Promise<OrderFromAPI>; type GetDeltaOrderByHash = (orderHash: string, requestParams?: RequestParameters) => Promise<OrderFromAPI>; 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, requestParams?: RequestParameters) => Promise<OrderFromAPI[]>; export type GetDeltaOrdersFunctions = { getDeltaOrderById: GetDeltaOrderById; getDeltaOrderByHash: GetDeltaOrderByHash; getDeltaOrders: GetDeltaOrders; }; export declare const constructGetDeltaOrders: ({ apiURL, fetcher, }: ConstructFetchInput) => GetDeltaOrdersFunctions; export {}; //# sourceMappingURL=getDeltaOrders.d.ts.map