UNPKG

@paraswap/sdk

Version:
24 lines 1.79 kB
import type { ConstructProviderFetchInput } from '../../types'; import type { ParaswapDeltaAuction } from './helpers/types'; import { BuildDeltaOrderDataParams, BuildDeltaOrderFunctions } from './buildDeltaOrder'; import { PostDeltaOrderFunctions } from './postDeltaOrder'; import { SignDeltaOrderFunctions } from './signDeltaOrder'; import { GetDeltaContractFunctions } from './getDeltaContract'; import { GetDeltaPriceFunctions } from './getDeltaPrice'; import { GetDeltaOrdersFunctions } from './getDeltaOrders'; import { GetPartnerFeeFunctions } from './getPartnerFee'; import { ApproveTokenForDeltaFunctions } from './approveForDelta'; export type SubmitDeltaOrderParams = BuildDeltaOrderDataParams & { /** @description designates the Order as being able to partilly filled, as opposed to fill-or-kill */ partiallyFillable?: boolean; }; type SubmitDeltaOrder = (orderParams: SubmitDeltaOrderParams) => Promise<ParaswapDeltaAuction>; export type SubmitDeltaOrderFuncs = { submitDeltaOrder: SubmitDeltaOrder; }; export declare const constructSubmitDeltaOrder: (options: ConstructProviderFetchInput<any, "signTypedDataCall">) => SubmitDeltaOrderFuncs; export type DeltaOrderHandlers<T> = SubmitDeltaOrderFuncs & ApproveTokenForDeltaFunctions<T> & BuildDeltaOrderFunctions & GetDeltaOrdersFunctions & GetDeltaPriceFunctions & GetDeltaContractFunctions & GetPartnerFeeFunctions & PostDeltaOrderFunctions & SignDeltaOrderFunctions; /** @description construct SDK with every Delta Order-related method, fetching from API and Order signing */ export declare const constructAllDeltaOrdersHandlers: <TxResponse>(options: ConstructProviderFetchInput<TxResponse, "signTypedDataCall" | "transactCall">) => DeltaOrderHandlers<TxResponse>; export {}; //# sourceMappingURL=index.d.ts.map