listSwaps method

Future<List<SwapInfo>> listSwaps({
  1. required ListSwapsRequest req,
  2. dynamic hint,
})
override

See BreezServices::list_swaps

Implementation

Future<List<SwapInfo>> listSwaps({required ListSwapsRequest req, dynamic hint}) {
  var arg0 = _platform.api2wire_box_autoadd_list_swaps_request(req);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_list_swaps(port_, arg0),
    parseSuccessData: _wire2api_list_swap_info,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kListSwapsConstMeta,
    argValues: [req],
    hint: hint,
  ));
}