UNPKG

@bluefin-exchange/bluefin7k-aggregator-sdk

Version:
12 lines (11 loc) 455 B
import { Transaction } from "@mysten/sui/transactions"; import { LIMIT_ORDER_MODULE_ID } from "./constants"; export async function claimExpiredLimitOrder({ orderId, payCoinType, targetCoinType, }) { const tx = new Transaction(); tx.moveCall({ target: `${LIMIT_ORDER_MODULE_ID}::claim_expired_order`, typeArguments: [payCoinType, targetCoinType], arguments: [tx.object(orderId), tx.object.clock()], }); return tx; }