rotate method

Future<String> rotate({
  1. required Identifier identifier,
  2. required List<PublicKey> currentKeys,
  3. required List<PublicKey> newNextKeys,
  4. required List<String> witnessToAdd,
  5. required List<String> witnessToRemove,
  6. required int witnessThreshold,
  7. dynamic hint,
})
override

Implementation

Future<String> rotate(
    {required Identifier identifier,
    required List<PublicKey> currentKeys,
    required List<PublicKey> newNextKeys,
    required List<String> witnessToAdd,
    required List<String> witnessToRemove,
    required int witnessThreshold,
    dynamic hint}) {
  var arg0 = _platform.api2wire_box_autoadd_identifier(identifier);
  var arg1 = _platform.api2wire_list_public_key(currentKeys);
  var arg2 = _platform.api2wire_list_public_key(newNextKeys);
  var arg3 = _platform.api2wire_StringList(witnessToAdd);
  var arg4 = _platform.api2wire_StringList(witnessToRemove);
  var arg5 = _platform.api2wire_u64(witnessThreshold);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner
        .wire_rotate(port_, arg0, arg1, arg2, arg3, arg4, arg5),
    parseSuccessData: _wire2api_String,
    constMeta: kRotateConstMeta,
    argValues: [
      identifier,
      currentKeys,
      newNextKeys,
      witnessToAdd,
      witnessToRemove,
      witnessThreshold
    ],
    hint: hint,
  ));
}