UNPKG

@bluefin-exchange/bluefin7k-aggregator-sdk

Version:
15 lines (14 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cancelDcaOrder = cancelDcaOrder; const transactions_1 = require("@mysten/sui/transactions"); const constants_1 = require("./constants"); async function cancelDcaOrder({ orderId, payCoinType, targetCoinType, }) { const tx = new transactions_1.Transaction(); tx.moveCall({ target: `${constants_1.DCA_ORDER_MODULE_ID}::cancel_dca_order`, arguments: [tx.object(orderId), tx.object.clock()], typeArguments: [payCoinType, targetCoinType], }); return tx; }