UNPKG

@tristeroresearch/mach-sdk

Version:

A TypeScript SDK for integrating with Mach's API.

34 lines 1.3 kB
/** * A helper function to process a transaction receipt and interact with an API to complete the market-making process. * @param srcChain - The chain to make the order on * @param receipt - The receipt of the transaction * @returns The response from the order data api * @description This helper function processes a transaction receipt to extract order data and interacts with an API to complete the market-making process. * @todo Get srcChain from receipt */ export declare const marketMakeOrder: (srcChain: string, receipt: any) => Promise<{ message: import("../index.js").OrderResponseMessage; status: import("../enums/index.js").ResultCode; eta?: undefined; id?: undefined; errorobj?: undefined; } | { message: import("../index.js").OrderResponseMessage; status: import("../enums/index.js").ResultCode; eta: any; id: any; errorobj?: undefined; } | { message: import("../index.js").OrderResponseMessage; status: import("../enums/index.js").ResultCode; eta: any; id?: undefined; errorobj?: undefined; } | { message: import("../index.js").OrderResponseMessage; status: import("../enums/index.js").ResultCode; errorobj: any; eta?: undefined; id?: undefined; }>; //# sourceMappingURL=marketMakeOrder.helper.d.ts.map