client-aftermath-ts-sdk
Version:
Client Aftermath TypeScript SDK
27 lines • 1.03 kB
TypeScript
import { AftermathApi } from "../../../general/providers";
import { AnyObjectType, CoinType, DcaAddresses, ObjectId } from "../../../types";
import { TransactionArgument, TransactionBlock } from "@mysten/sui.js/transactions";
import { Transaction } 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 | TransactionBlock;
allocateCoinType: CoinType;
buyCoinType: CoinType;
orderId: ObjectId | TransactionArgument;
}) => any;
private createdOrderEventType;
private createdOrderEventTypeV2;
private closedOrderEventType;
private executedOrderEventType;
}
//# sourceMappingURL=dcaApi.d.ts.map