updateGlobalVarNew method

  1. @override
UpdateGlobalVar updateGlobalVarNew({
  1. required int fromChainId,
  2. required int subAccountId,
  3. required Parameter parameter,
  4. required double serialId,
  5. dynamic hint,
})
override

Implementation

@override
UpdateGlobalVar updateGlobalVarNew(
    {required int fromChainId,
    required int subAccountId,
    required Parameter parameter,
    required double serialId,
    dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      var arg0 = cst_encode_u_8(fromChainId);
      var arg1 = cst_encode_u_8(subAccountId);
      var arg2 =
          cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter(
              parameter);
      var arg3 = cst_encode_f_64(serialId);
      return wire.wire_UpdateGlobalVar_new(arg0, arg1, arg2, arg3);
    },
    codec: DcoCodec(
      decodeSuccessData:
          dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar,
      decodeErrorData: dco_decode_AnyhowException,
    ),
    constMeta: kUpdateGlobalVarNewConstMeta,
    argValues: [fromChainId, subAccountId, parameter, serialId],
    apiImpl: this,
    hint: hint,
  ));
}