cancelAllOrders method
Cancel all limit orders under a certain account capacity.
poolId Object id of pool, created after invoking createPool, eg: "0xcaee8e1c046b58e55196105f1436a2337dcaa0c340a7a8c8baf65e4afb8823a4"
Implementation
Future<TransactionBlock> cancelAllOrders(String poolId) async {
final txb = TransactionBlock();
txb.moveCall(
"$PACKAGE_ID::$MODULE_CLOB::cancel_all_orders",
typeArguments: await getPoolTypeArgs(poolId),
arguments: [txb.object(poolId), txb.object(_checkAccountCap())],
);
return txb;
}