UNPKG

@paraswap/sdk

Version:
27 lines 2.09 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'; import { GetBridgeInfoFunctions } from './getBridgeInfo'; import { GetMulticallHandlersFunctions } from './getMulticallHandlers'; import { IsTokenSupportedInDeltaFunctions } from './isTokenSupportedInDelta'; export type SubmitDeltaOrderParams = BuildDeltaOrderDataParams & { /** @description designates the Order as being able to be 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 & GetMulticallHandlersFunctions & GetBridgeInfoFunctions & IsTokenSupportedInDeltaFunctions & 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