cleanUpExpiredOrders method
poolId Object id of pool, created after invoking createPool.
orderIds array of expired order ids to clean, eg: "0", "1", "2"
orderOwners array of Order owners, should be the owner addresses from the account capacities which placed the orders
Implementation
Future<TransactionBlock> cleanUpExpiredOrders({
required String poolId,
required List<String> orderIds,
required List<String> orderOwners
}) async {
final txb = TransactionBlock();
final typeArgs = await getPoolTypeArgs(poolId);
txb.moveCall(
"$PACKAGE_ID::$MODULE_CLOB::clean_up_expired_orders",
typeArguments: typeArgs,
arguments: [
txb.object(poolId),
txb.object(SUI_CLOCK_OBJECT_ID),
deepbookBCS.ser('vector<u64>', orderIds),
deepbookBCS.ser('vector<address>', orderOwners)
],
);
return txb;
}