@bluefin-exchange/bluefin7k-aggregator-sdk
Version:
15 lines (14 loc) • 604 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.claimExpiredLimitOrder = claimExpiredLimitOrder;
const transactions_1 = require("@mysten/sui/transactions");
const constants_1 = require("./constants");
async function claimExpiredLimitOrder({ orderId, payCoinType, targetCoinType, }) {
const tx = new transactions_1.Transaction();
tx.moveCall({
target: `${constants_1.LIMIT_ORDER_MODULE_ID}::claim_expired_order`,
typeArguments: [payCoinType, targetCoinType],
arguments: [tx.object(orderId), tx.object.clock()],
});
return tx;
}
;