UNPKG

@velora-dex/sdk

Version:
72 lines 5.23 kB
import type { ConstructProviderFetchInput } from '../../types'; import type { DeltaAuction } from './types'; import { GetDeltaContractFunctions } from './getDeltaContract'; import { GetPartnerFeeFunctions } from './getPartnerFee'; import { ApproveTokenForDeltaFunctions } from './approveForDelta'; import { PreSignDeltaOrderFunctions } from './preSignDeltaOrder'; import { PreSignExternalDeltaOrderFunctions } from './preSignExternalDeltaOrder'; import { PreSignTWAPDeltaOrderFunctions } from './preSignTWAPDeltaOrder'; import { DeltaTokenModuleFunctions } from './deltaTokenModule'; import { BuildDeltaOrderFunctions, BuildDeltaOrderParams, BuiltDeltaOrder } from './buildDeltaOrder'; import { BuildExternalDeltaOrderFunctions, BuildExternalDeltaOrderParams } from './buildExternalDeltaOrder'; import { BuildTWAPDeltaOrderFunctions, BuildTWAPDeltaOrderParams } from './buildTWAPDeltaOrder'; import { DeltaOrderToPost, PostDeltaOrderFunctions } from './postDeltaOrder'; import { PostExternalDeltaOrderFunctions } from './postExternalDeltaOrder'; import { PostTWAPDeltaOrderFunctions } from './postTWAPDeltaOrder'; import { GetDeltaPriceFunctions } from './getDeltaPrice'; import { GetDeltaOrdersFunctions } from './getDeltaOrders'; import { GetBridgeRoutesFunctions } from './getBridgeRoutes'; import { IsTokenSupportedInDeltaFunctions } from './isTokenSupportedInDelta'; import { CancelDeltaOrderFunctions } from './cancelDeltaOrder'; import { GetAgentsListFunctions } from './getAgentsList'; export * from './types'; export * from './buildDeltaOrder'; export * from './buildExternalDeltaOrder'; export * from './buildTWAPDeltaOrder'; export * from './postDeltaOrder'; export * from './postExternalDeltaOrder'; export * from './postTWAPDeltaOrder'; export * from './getDeltaPrice'; export * from './getDeltaOrders'; export * from './getBridgeRoutes'; export * from './isTokenSupportedInDelta'; export * from './cancelDeltaOrder'; export * from './getAgentsList'; export { OrderHelpers } from './helpers/orders'; type SignDeltaOrder = (builtOrder: BuiltDeltaOrder) => Promise<string>; export type SignDeltaOrderFunctions = { /** @description Sign a BuiltDeltaOrder (any order type) using EIP-712 typed data. */ signDeltaOrder: SignDeltaOrder; }; export declare const constructSignDeltaOrder: (options: Pick<ConstructProviderFetchInput<any, "signTypedDataCall">, "contractCaller">) => SignDeltaOrderFunctions; export type SubmitDeltaOrderParams = BuildDeltaOrderParams & { /** @description Referrer address */ referrerAddress?: string; degenMode?: boolean; } & Pick<DeltaOrderToPost, 'type' | 'includeAgents' | 'excludeAgents'>; type SubmitDeltaOrder = (orderParams: SubmitDeltaOrderParams) => Promise<DeltaAuction<'Order'>>; export type SubmitDeltaOrderFuncs = { submitDeltaOrder: SubmitDeltaOrder; }; export declare const constructSubmitDeltaOrder: (options: ConstructProviderFetchInput<any, "signTypedDataCall">) => SubmitDeltaOrderFuncs; export type SubmitExternalDeltaOrderParams = BuildExternalDeltaOrderParams & { referrerAddress?: string; } & Pick<DeltaOrderToPost, 'type' | 'includeAgents' | 'excludeAgents'>; type SubmitExternalDeltaOrder = (orderParams: SubmitExternalDeltaOrderParams) => Promise<DeltaAuction<'ExternalOrder'>>; export type SubmitExternalDeltaOrderFuncs = { submitExternalDeltaOrder: SubmitExternalDeltaOrder; }; export declare const constructSubmitExternalDeltaOrder: (options: ConstructProviderFetchInput<any, "signTypedDataCall">) => SubmitExternalDeltaOrderFuncs; export type SubmitTWAPDeltaOrderParams = BuildTWAPDeltaOrderParams & { referrerAddress?: string; degenMode?: boolean; } & Pick<DeltaOrderToPost, 'type' | 'includeAgents' | 'excludeAgents'>; type SubmitTWAPDeltaOrder = (orderParams: SubmitTWAPDeltaOrderParams) => Promise<DeltaAuction<'TWAPOrder'> | DeltaAuction<'TWAPBuyOrder'>>; export type SubmitTWAPDeltaOrderFuncs = { submitTWAPDeltaOrder: SubmitTWAPDeltaOrder; }; export declare const constructSubmitTWAPDeltaOrder: (options: ConstructProviderFetchInput<any, "signTypedDataCall">) => SubmitTWAPDeltaOrderFuncs; export type DeltaOrderHandlers<TxResponse> = SubmitDeltaOrderFuncs & SubmitExternalDeltaOrderFuncs & SubmitTWAPDeltaOrderFuncs & BuildDeltaOrderFunctions & BuildExternalDeltaOrderFunctions & BuildTWAPDeltaOrderFunctions & PostDeltaOrderFunctions & PostExternalDeltaOrderFunctions & PostTWAPDeltaOrderFunctions & SignDeltaOrderFunctions & PreSignDeltaOrderFunctions<TxResponse> & PreSignExternalDeltaOrderFunctions<TxResponse> & PreSignTWAPDeltaOrderFunctions<TxResponse> & GetDeltaPriceFunctions & GetDeltaOrdersFunctions & GetBridgeRoutesFunctions & IsTokenSupportedInDeltaFunctions & GetAgentsListFunctions & GetDeltaContractFunctions & GetPartnerFeeFunctions & ApproveTokenForDeltaFunctions<TxResponse> & DeltaTokenModuleFunctions<TxResponse> & CancelDeltaOrderFunctions; /** @description Construct an SDK bundle exposing every Delta v2 method (queries, build/sign/post, on-chain helpers). */ export declare const constructAllDeltaOrdersHandlers: <TxResponse>(options: ConstructProviderFetchInput<TxResponse, "signTypedDataCall" | "transactCall">) => DeltaOrderHandlers<TxResponse>; //# sourceMappingURL=index.d.ts.map