aftermath-ts-sdk
Version:
Aftermath TypeScript SDK
26 lines • 1 kB
TypeScript
import { AftermathApi } from "../../../general/providers";
import { AnyObjectType, CoinType, DcaAddresses, ObjectId } from "../../../types";
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
export declare class DcaApi {
private readonly Provider;
private static readonly constants;
readonly addresses: DcaAddresses;
readonly eventTypes: {
createdOrder: AnyObjectType;
createdOrderV2: AnyObjectType;
closedOrder: AnyObjectType;
executedTrade: AnyObjectType;
};
constructor(Provider: AftermathApi);
createCloseOrderTx: (inputs: {
tx: Transaction;
allocateCoinType: CoinType;
buyCoinType: CoinType;
orderId: ObjectId | TransactionArgument;
}) => import("@mysten/sui/transactions").TransactionResult;
private createdOrderEventType;
private createdOrderEventTypeV2;
private closedOrderEventType;
private executedOrderEventType;
}
//# sourceMappingURL=dcaApi.d.ts.map