UNPKG

@velora-dex/sdk

Version:
17 lines 1.01 kB
import type { Prettify } from 'ts-essentials'; import type { ConstructFetchInput, RequestParameters } from '../../types'; import type { TWAPOnChainOrderType } from './helpers/types'; import type { DeltaOrderToPost } from './postDeltaOrder'; import type { DeltaAuction } from './types'; export type PostTWAPDeltaOrderParams = Prettify<Omit<DeltaOrderToPost<'TWAPOrder'> | DeltaOrderToPost<'TWAPBuyOrder'>, 'chainId'> & { /** @description Must be "TWAPOrder" or "TWAPBuyOrder" */ onChainOrderType: TWAPOnChainOrderType; degenMode?: boolean; }>; type PostTWAPDeltaOrder = (postData: PostTWAPDeltaOrderParams, requestParams?: RequestParameters) => Promise<DeltaAuction<'TWAPOrder'> | DeltaAuction<'TWAPBuyOrder'>>; export type PostTWAPDeltaOrderFunctions = { postTWAPDeltaOrder: PostTWAPDeltaOrder; }; export declare const constructPostTWAPDeltaOrder: ({ apiURL, chainId, fetcher, }: ConstructFetchInput) => PostTWAPDeltaOrderFunctions; export {}; //# sourceMappingURL=postTWAPDeltaOrder.d.ts.map