parameterContractInfo method

  1. @override
Parameter parameterContractInfo({
  1. required int pairId,
  2. required String symbol,
  3. required int initialMarginRate,
  4. required int maintenanceMarginRate,
  5. dynamic hint,
})
override

Implementation

@override
Parameter parameterContractInfo(
    {required int pairId,
    required String symbol,
    required int initialMarginRate,
    required int maintenanceMarginRate,
    dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      var arg0 = cst_encode_u_16(pairId);
      var arg1 = cst_encode_String(symbol);
      var arg2 = cst_encode_u_16(initialMarginRate);
      var arg3 = cst_encode_u_16(maintenanceMarginRate);
      return wire.wire_Parameter_contract_info(arg0, arg1, arg2, arg3);
    },
    codec: DcoCodec(
      decodeSuccessData:
          dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter,
      decodeErrorData: dco_decode_AnyhowException,
    ),
    constMeta: kParameterContractInfoConstMeta,
    argValues: [pairId, symbol, initialMarginRate, maintenanceMarginRate],
    apiImpl: this,
    hint: hint,
  ));
}