diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01647bc..ef6c33a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,7 +153,7 @@ jobs: - name: build run: | cd bindings/dart - cargo install 'flutter_rust_bridge_codegen@2.0.0-dev.32' + cargo install 'flutter_rust_bridge_codegen@2.0.0' flutter pub get flutter_rust_bridge_codegen generate cd rust diff --git a/Cargo.lock b/Cargo.lock index 8cf9138..b0e7018 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -60,9 +60,9 @@ dependencies = [ [[package]] name = "allo-isolate" -version = "0.1.24" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f5a5fd28223e6f3cafb7d9cd685f51eafdd71d33ca1229f8316925d5957240" +checksum = "97b6d794345b06592d0ebeed8e477e41b71e5a0a49df4fc0e4184d5938b99509" dependencies = [ "anyhow", "atomic", @@ -2042,9 +2042,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.32" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34014207992d96657886c50c90ab503bb4581cc9c2b1ea7ffad2ec12400032da" +checksum = "033e831e28f1077ceae3490fb6d093dfdefefd09c5c6e8544c6579effe7e814f" dependencies = [ "allo-isolate", "android_logger", @@ -2069,11 +2069,13 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.32" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd250246955bb9548a99733859946a5721289ec152de5fcc6eb03da7d3143dd1" +checksum = "0217fc4b7131b52578be60bbe38c76b3edfc2f9fecab46d9f930510f40ef9023" dependencies = [ "hex", + "md-5", + "proc-macro2", "quote", "syn 2.0.48", ] @@ -3158,10 +3160,11 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] name = "md-5" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ + "cfg-if", "digest 0.10.7", ] diff --git a/Makefile b/Makefile index a2a2198..d58bd56 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ GO_FILES = 1_change_pubkey 2_withdraw 3_transfer 4_forced_exit 5_order_matching RUN_GO_EXAMPLES = $(patsubst %, run_example_go_%, $(GO_FILES)) run_example_go: ${RUN_GO_EXAMPLES} -PY_FILES = 1_change_pubkey 2_withdraw 5_order_matching +PY_FILES = 1_change_pubkey 2_withdraw 3_transfer 5_order_matching RUN_PYTHON_EXAMPLES = $(patsubst %, run_example_python_%, $(PY_FILES)) run_example_python: ${RUN_PYTHON_EXAMPLES} @@ -179,6 +179,6 @@ JS_FILES = 1_change_pubkey 2_auto_deleveraging 3_update_global_var 4_contract_ma RUN_JS_EXAMPLES = $(patsubst %, run_example_js_%, $(JS_FILES)) run_example_js: ${RUN_JS_EXAMPLES} -CPP_FILES = 1_change_pubkey 2_withdraw 5_order_matching +CPP_FILES = 1_change_pubkey 2_withdraw 3_transfer 5_order_matching RUN_CPP_EXAMPLES = $(patsubst %, run_example_cpp_%, $(CPP_FILES)) run_example_cpp: ${RUN_CPP_EXAMPLES} diff --git a/bindings/dart/flutter_rust_bridge.yaml b/bindings/dart/flutter_rust_bridge.yaml index 3241904..dbd79ab 100644 --- a/bindings/dart/flutter_rust_bridge.yaml +++ b/bindings/dart/flutter_rust_bridge.yaml @@ -1,4 +1,5 @@ -rust_input: rust/src/api.rs +rust_input: crate::api dart_output: lib full_dep: true web: false +enable_lifetime: true diff --git a/bindings/dart/lib/api.dart b/bindings/dart/lib/api.dart index e41c79c..c3f78ba 100644 --- a/bindings/dart/lib/api.dart +++ b/bindings/dart/lib/api.dart @@ -1,41 +1,25 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import 'frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -bool isTokenAmountPackable({required String amount, dynamic hint}) => - RustLib.instance.api.isTokenAmountPackable(amount: amount, hint: hint); +bool isTokenAmountPackable({required String amount}) => + RustLib.instance.api.crateApiIsTokenAmountPackable(amount: amount); -bool isFeeAmountPackable({required String fee, dynamic hint}) => - RustLib.instance.api.isFeeAmountPackable(fee: fee, hint: hint); +bool isFeeAmountPackable({required String fee}) => + RustLib.instance.api.crateApiIsFeeAmountPackable(fee: fee); -String closestPackableTokenAmount({required String amount, dynamic hint}) => - RustLib.instance.api.closestPackableTokenAmount(amount: amount, hint: hint); +String closestPackableTokenAmount({required String amount}) => + RustLib.instance.api.crateApiClosestPackableTokenAmount(amount: amount); -String closestPackableFeeAmount({required String fee, dynamic hint}) => - RustLib.instance.api.closestPackableFeeAmount(fee: fee, hint: hint); - -// Rust type: RustOpaqueNom> -@sealed -class AutoDeleveraging extends RustOpaque { - AutoDeleveraging.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - AutoDeleveraging.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_AutoDeleveraging, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_AutoDeleveraging, - rustArcDecrementStrongCountPtr: RustLib - .instance.api.rust_arc_decrement_strong_count_AutoDeleveragingPtr, - ); +String closestPackableFeeAmount({required String fee}) => + RustLib.instance.api.crateApiClosestPackableFeeAmount(fee: fee); +// Rust type: RustOpaqueNom> +abstract class AutoDeleveraging implements RustOpaqueInterface { factory AutoDeleveraging( {required int accountId, required int subAccountId, @@ -47,9 +31,8 @@ class AutoDeleveraging extends RustOpaque { required String adlSize, required String adlPrice, required String fee, - required int feeToken, - dynamic hint}) => - RustLib.instance.api.autoDeleveragingNew( + required int feeToken}) => + RustLib.instance.api.crateApiAutoDeleveragingNew( accountId: accountId, subAccountId: subAccountId, subAccountNonce: subAccountNonce, @@ -60,39 +43,16 @@ class AutoDeleveraging extends RustOpaque { adlSize: adlSize, adlPrice: adlPrice, fee: fee, - feeToken: feeToken, - hint: hint); + feeToken: feeToken); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => RustLib - .instance.api - .autoDeleveragingSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.autoDeleveragingToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class ChangePubKey extends RustOpaque { - ChangePubKey.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ChangePubKey.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ChangePubKey, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ChangePubKey, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ChangePubKeyPtr, - ); - - String getEthSignMsg( - {required int nonce, required int accountId, dynamic hint}) => - RustLib.instance.api.changePubKeyGetEthSignMsg( - that: this, nonce: nonce, accountId: accountId, hint: hint); +// Rust type: RustOpaqueNom> +abstract class ChangePubKey implements RustOpaqueInterface { + String getEthSignMsg({required int nonce, required int accountId}); factory ChangePubKey( {required int chainId, @@ -103,9 +63,8 @@ class ChangePubKey extends RustOpaque { required String fee, required int nonce, String? ethSignature, - int? ts, - dynamic hint}) => - RustLib.instance.api.changePubKeyNew( + int? ts}) => + RustLib.instance.api.crateApiChangePubKeyNew( chainId: chainId, accountId: accountId, subAccountId: subAccountId, @@ -114,43 +73,20 @@ class ChangePubKey extends RustOpaque { fee: fee, nonce: nonce, ethSignature: ethSignature, - ts: ts, - hint: hint); + ts: ts); - void setEthAuthData({required String sig, dynamic hint}) => - RustLib.instance.api - .changePubKeySetEthAuthData(that: this, sig: sig, hint: hint); + void setEthAuthData({required String sig}); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .changePubKeySign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); String toEip712RequestPayload( - {required int chainId, required String address, dynamic hint}) => - RustLib.instance.api.changePubKeyToEip712RequestPayload( - that: this, chainId: chainId, address: address, hint: hint); + {required int chainId, required String address}); - String toJson({dynamic hint}) => - RustLib.instance.api.changePubKeyToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class Contract extends RustOpaque { - Contract.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Contract.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Contract, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Contract, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ContractPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Contract implements RustOpaqueInterface { factory Contract( {required int accountId, required int subAccountId, @@ -162,9 +98,8 @@ class Contract extends RustOpaque { required bool direction, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}) => - RustLib.instance.api.contractNew( + required bool hasSubsidy}) => + RustLib.instance.api.crateApiContractNew( accountId: accountId, subAccountId: subAccountId, slotId: slotId, @@ -175,35 +110,15 @@ class Contract extends RustOpaque { direction: direction, makerFeeRate: makerFeeRate, takerFeeRate: takerFeeRate, - hasSubsidy: hasSubsidy, - hint: hint); + hasSubsidy: hasSubsidy); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .contractSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.contractToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class ContractMatching extends RustOpaque { - ContractMatching.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ContractMatching.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ContractMatching, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ContractMatching, - rustArcDecrementStrongCountPtr: RustLib - .instance.api.rust_arc_decrement_strong_count_ContractMatchingPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class ContractMatching implements RustOpaqueInterface { factory ContractMatching( {required int accountId, required int subAccountId, @@ -212,9 +127,8 @@ class ContractMatching extends RustOpaque { required String fee, required int feeToken, required List contractPrices, - required List marginPrices, - dynamic hint}) => - RustLib.instance.api.contractMatchingNew( + required List marginPrices}) => + RustLib.instance.api.crateApiContractMatchingNew( accountId: accountId, subAccountId: subAccountId, taker: taker, @@ -222,95 +136,40 @@ class ContractMatching extends RustOpaque { fee: fee, feeToken: feeToken, contractPrices: contractPrices, - marginPrices: marginPrices, - hint: hint); + marginPrices: marginPrices); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => RustLib - .instance.api - .contractMatchingSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.contractMatchingToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class ContractPrice extends RustOpaque { - ContractPrice.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ContractPrice.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ContractPrice, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ContractPrice, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ContractPricePtr, - ); - - factory ContractPrice( - {required int pairId, required String marketPrice, dynamic hint}) => - RustLib.instance.api.contractPriceNew( - pairId: pairId, marketPrice: marketPrice, hint: hint); +// Rust type: RustOpaqueNom> +abstract class ContractPrice implements RustOpaqueInterface { + factory ContractPrice({required int pairId, required String marketPrice}) => + RustLib.instance.api + .crateApiContractPriceNew(pairId: pairId, marketPrice: marketPrice); } -// Rust type: RustOpaqueNom> -@sealed -class EthTxOption extends RustOpaque { - EthTxOption.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - EthTxOption.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_EthTxOption, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_EthTxOption, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_EthTxOptionPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class EthTxOption implements RustOpaqueInterface { factory EthTxOption( {required bool isSupportEip1559, required String to, double? nonce, String? value, double? gas, - String? gasPrice, - dynamic hint}) => - RustLib.instance.api.ethTxOptionNew( + String? gasPrice}) => + RustLib.instance.api.crateApiEthTxOptionNew( isSupportEip1559: isSupportEip1559, to: to, nonce: nonce, value: value, gas: gas, - gasPrice: gasPrice, - hint: hint); + gasPrice: gasPrice); } -// Rust type: RustOpaqueNom> -@sealed -class ForcedExit extends RustOpaque { - ForcedExit.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ForcedExit.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ForcedExit, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ForcedExit, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ForcedExitPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class ForcedExit implements RustOpaqueInterface { factory ForcedExit( {required int toChainId, required int initiatorAccountId, @@ -322,9 +181,8 @@ class ForcedExit extends RustOpaque { required String exitAmount, required int initiatorNonce, required bool withdrawToL1, - int? ts, - dynamic hint}) => - RustLib.instance.api.forcedExitNew( + int? ts}) => + RustLib.instance.api.crateApiForcedExitNew( toChainId: toChainId, initiatorAccountId: initiatorAccountId, initiatorSubAccountId: initiatorSubAccountId, @@ -335,104 +193,47 @@ class ForcedExit extends RustOpaque { exitAmount: exitAmount, initiatorNonce: initiatorNonce, withdrawToL1: withdrawToL1, - ts: ts, - hint: hint); + ts: ts); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .forcedExitSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.forcedExitToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class Funding extends RustOpaque { - Funding.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Funding.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Funding, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Funding, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_FundingPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Funding implements RustOpaqueInterface { factory Funding( {required int accountId, required int subAccountId, required int subAccountNonce, required List fundingAccountIds, required String fee, - required int feeToken, - dynamic hint}) => - RustLib.instance.api.fundingNew( + required int feeToken}) => + RustLib.instance.api.crateApiFundingNew( accountId: accountId, subAccountId: subAccountId, subAccountNonce: subAccountNonce, fundingAccountIds: fundingAccountIds, fee: fee, - feeToken: feeToken, - hint: hint); + feeToken: feeToken); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .fundingSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.fundingToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class FundingInfo extends RustOpaque { - FundingInfo.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - FundingInfo.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_FundingInfo, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_FundingInfo, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_FundingInfoPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class FundingInfo implements RustOpaqueInterface { factory FundingInfo( {required int pairId, required String price, - required int fundingRate, - dynamic hint}) => - RustLib.instance.api.fundingInfoNew( - pairId: pairId, price: price, fundingRate: fundingRate, hint: hint); + required int fundingRate}) => + RustLib.instance.api.crateApiFundingInfoNew( + pairId: pairId, price: price, fundingRate: fundingRate); } -// Rust type: RustOpaqueNom> -@sealed -class Liquidation extends RustOpaque { - Liquidation.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - Liquidation.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Liquidation, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Liquidation, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_LiquidationPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Liquidation implements RustOpaqueInterface { factory Liquidation( {required int accountId, required int subAccountId, @@ -441,9 +242,8 @@ class Liquidation extends RustOpaque { required List marginPrices, required int liquidationAccountId, required String fee, - required int feeToken, - dynamic hint}) => - RustLib.instance.api.liquidationNew( + required int feeToken}) => + RustLib.instance.api.crateApiLiquidationNew( accountId: accountId, subAccountId: subAccountId, subAccountNonce: subAccountNonce, @@ -451,34 +251,15 @@ class Liquidation extends RustOpaque { marginPrices: marginPrices, liquidationAccountId: liquidationAccountId, fee: fee, - feeToken: feeToken, - hint: hint); + feeToken: feeToken); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .liquidationSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.liquidationToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class Order extends RustOpaque { - Order.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Order.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Order, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Order, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_OrderPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Order implements RustOpaqueInterface { factory Order( {required int accountId, required int subAccountId, @@ -491,9 +272,8 @@ class Order extends RustOpaque { required bool isSell, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}) => - RustLib.instance.api.orderNew( + required bool hasSubsidy}) => + RustLib.instance.api.crateApiOrderNew( accountId: accountId, subAccountId: subAccountId, slotId: slotId, @@ -505,35 +285,15 @@ class Order extends RustOpaque { isSell: isSell, makerFeeRate: makerFeeRate, takerFeeRate: takerFeeRate, - hasSubsidy: hasSubsidy, - hint: hint); + hasSubsidy: hasSubsidy); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .orderSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.orderToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class OrderMatching extends RustOpaque { - OrderMatching.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - OrderMatching.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_OrderMatching, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_OrderMatching, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_OrderMatchingPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class OrderMatching implements RustOpaqueInterface { factory OrderMatching( {required int accountId, required int subAccountId, @@ -544,9 +304,8 @@ class OrderMatching extends RustOpaque { required List contractPrices, required List marginPrices, required String expectBaseAmount, - required String expectQuoteAmount, - dynamic hint}) => - RustLib.instance.api.orderMatchingNew( + required String expectQuoteAmount}) => + RustLib.instance.api.crateApiOrderMatchingNew( accountId: accountId, subAccountId: subAccountId, taker: taker, @@ -556,233 +315,109 @@ class OrderMatching extends RustOpaque { contractPrices: contractPrices, marginPrices: marginPrices, expectBaseAmount: expectBaseAmount, - expectQuoteAmount: expectQuoteAmount, - hint: hint); + expectQuoteAmount: expectQuoteAmount); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => RustLib - .instance.api - .orderMatchingSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.orderMatchingToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class Parameter extends RustOpaque { - Parameter.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Parameter.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Parameter, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Parameter, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ParameterPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Parameter implements RustOpaqueInterface { static Parameter contractInfo( {required int pairId, required String symbol, required int initialMarginRate, - required int maintenanceMarginRate, - dynamic hint}) => - RustLib.instance.api.parameterContractInfo( + required int maintenanceMarginRate}) => + RustLib.instance.api.crateApiParameterContractInfo( pairId: pairId, symbol: symbol, initialMarginRate: initialMarginRate, - maintenanceMarginRate: maintenanceMarginRate, - hint: hint); + maintenanceMarginRate: maintenanceMarginRate); - static Parameter feeAccount({required int accountId, dynamic hint}) => - RustLib.instance.api - .parameterFeeAccount(accountId: accountId, hint: hint); + static Parameter feeAccount({required int accountId}) => + RustLib.instance.api.crateApiParameterFeeAccount(accountId: accountId); - static Parameter fundingInfos( - {required List infos, dynamic hint}) => - RustLib.instance.api.parameterFundingInfos(infos: infos, hint: hint); + static Parameter fundingInfos({required List infos}) => + RustLib.instance.api.crateApiParameterFundingInfos(infos: infos); - static Parameter insuranceFundAccount( - {required int accountId, dynamic hint}) => + static Parameter insuranceFundAccount({required int accountId}) => RustLib.instance.api - .parameterInsuranceFundAccount(accountId: accountId, hint: hint); + .crateApiParameterInsuranceFundAccount(accountId: accountId); static Parameter marginInfo( {required int marginId, String? symbol, required int tokenId, - required int ratio, - dynamic hint}) => - RustLib.instance.api.parameterMarginInfo( - marginId: marginId, - symbol: symbol, - tokenId: tokenId, - ratio: ratio, - hint: hint); + required int ratio}) => + RustLib.instance.api.crateApiParameterMarginInfo( + marginId: marginId, symbol: symbol, tokenId: tokenId, ratio: ratio); } -// Rust type: RustOpaqueNom> -@sealed -class Signer extends RustOpaque { - Signer.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Signer.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); +// Rust type: RustOpaqueNom> +abstract class Signer implements RustOpaqueInterface { + Contract createSignedContract({required Contract contract}); - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Signer, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Signer, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_SignerPtr, - ); + Order createSignedOrder({required Order order}); - Contract createSignedContract({required Contract contract, dynamic hint}) => - RustLib.instance.api.signerCreateSignedContract( - that: this, contract: contract, hint: hint); - - Order createSignedOrder({required Order order, dynamic hint}) => + static Signer ethSigner({required String ethPrivateKey}) => RustLib.instance.api - .signerCreateSignedOrder(that: this, order: order, hint: hint); + .crateApiSignerEthSigner(ethPrivateKey: ethPrivateKey); - static Signer ethSigner({required String ethPrivateKey, dynamic hint}) => - RustLib.instance.api - .signerEthSigner(ethPrivateKey: ethPrivateKey, hint: hint); - - String signAutoDeleveraging({required AutoDeleveraging tx, dynamic hint}) => - RustLib.instance.api - .signerSignAutoDeleveraging(that: this, tx: tx, hint: hint); + String signAutoDeleveraging({required AutoDeleveraging tx}); String signChangePubkeyWithCreate2DataAuth( - {required ChangePubKey tx, - required String creatorAddress, - required String saltArg, - required String codeHash, - dynamic hint}) => - RustLib.instance.api.signerSignChangePubkeyWithCreate2DataAuth( - that: this, - tx: tx, - creatorAddress: creatorAddress, - saltArg: saltArg, - codeHash: codeHash, - hint: hint); - - String signChangePubkeyWithEthEcdsaAuth( - {required ChangePubKey tx, dynamic hint}) => - RustLib.instance.api.signerSignChangePubkeyWithEthEcdsaAuth( - that: this, tx: tx, hint: hint); - - String signChangePubkeyWithOnchain( - {required ChangePubKey tx, dynamic hint}) => - RustLib.instance.api - .signerSignChangePubkeyWithOnchain(that: this, tx: tx, hint: hint); + {required ChangePubKey tx, + required String creatorAddress, + required String saltArg, + required String codeHash}); - String signContractMatching({required ContractMatching tx, dynamic hint}) => - RustLib.instance.api - .signerSignContractMatching(that: this, tx: tx, hint: hint); + String signChangePubkeyWithEthEcdsaAuth({required ChangePubKey tx}); - String signForcedExit({required ForcedExit tx, dynamic hint}) => - RustLib.instance.api.signerSignForcedExit(that: this, tx: tx, hint: hint); + String signChangePubkeyWithOnchain({required ChangePubKey tx}); - String signFunding({required Funding tx, dynamic hint}) => - RustLib.instance.api.signerSignFunding(that: this, tx: tx, hint: hint); + String signContractMatching({required ContractMatching tx}); - String signLiquidation({required Liquidation tx, dynamic hint}) => - RustLib.instance.api - .signerSignLiquidation(that: this, tx: tx, hint: hint); + String signForcedExit({required ForcedExit tx}); - String signOrderMatching({required OrderMatching tx, dynamic hint}) => - RustLib.instance.api - .signerSignOrderMatching(that: this, tx: tx, hint: hint); + String signFunding({required Funding tx}); + + String signLiquidation({required Liquidation tx}); + + String signOrderMatching({required OrderMatching tx}); String signTransfer( - {required Transfer tx, - required String tokenSymbol, - String? chainId, - String? addr, - dynamic hint}) => - RustLib.instance.api.signerSignTransfer( - that: this, - tx: tx, - tokenSymbol: tokenSymbol, - chainId: chainId, - addr: addr, - hint: hint); + {required Transfer tx, + required String tokenSymbol, + String? chainId, + String? addr}); String signWithdraw( - {required Withdraw tx, - required String tokenSymbol, - String? chainId, - String? addr, - dynamic hint}) => - RustLib.instance.api.signerSignWithdraw( - that: this, - tx: tx, - tokenSymbol: tokenSymbol, - chainId: chainId, - addr: addr, - hint: hint); + {required Withdraw tx, + required String tokenSymbol, + String? chainId, + String? addr}); static Signer starknetSigner( {required String ethPrivateKey, required String starknetChainId, - required String starknetAddr, - dynamic hint}) => - RustLib.instance.api.signerStarknetSigner( + required String starknetAddr}) => + RustLib.instance.api.crateApiSignerStarknetSigner( ethPrivateKey: ethPrivateKey, starknetChainId: starknetChainId, - starknetAddr: starknetAddr, - hint: hint); + starknetAddr: starknetAddr); } -// Rust type: RustOpaqueNom> -@sealed -class SpotPriceInfo extends RustOpaque { - SpotPriceInfo.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - SpotPriceInfo.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_SpotPriceInfo, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_SpotPriceInfo, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_SpotPriceInfoPtr, - ); - - factory SpotPriceInfo( - {required int tokenId, required String price, dynamic hint}) => +// Rust type: RustOpaqueNom> +abstract class SpotPriceInfo implements RustOpaqueInterface { + factory SpotPriceInfo({required int tokenId, required String price}) => RustLib.instance.api - .spotPriceInfoNew(tokenId: tokenId, price: price, hint: hint); + .crateApiSpotPriceInfoNew(tokenId: tokenId, price: price); } -// Rust type: RustOpaqueNom> -@sealed -class Transfer extends RustOpaque { - Transfer.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Transfer.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Transfer, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Transfer, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_TransferPtr, - ); - - String getEthSignMsg({required String tokenSymbol, dynamic hint}) => RustLib - .instance.api - .transferGetEthSignMsg(that: this, tokenSymbol: tokenSymbol, hint: hint); +// Rust type: RustOpaqueNom> +abstract class Transfer implements RustOpaqueInterface { + String getEthSignMsg({required String tokenSymbol}); factory Transfer( {required int accountId, @@ -793,9 +428,8 @@ class Transfer extends RustOpaque { required String fee, required String amount, required int nonce, - int? ts, - dynamic hint}) => - RustLib.instance.api.transferNew( + int? ts}) => + RustLib.instance.api.crateApiTransferNew( accountId: accountId, toAddress: toAddress, fromSubAccountId: fromSubAccountId, @@ -804,186 +438,78 @@ class Transfer extends RustOpaque { fee: fee, amount: amount, nonce: nonce, - ts: ts, - hint: hint); + ts: ts); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .transferSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); + void sign({required ZkLinkSigner zkLinkSigner}); - String toJson({dynamic hint}) => - RustLib.instance.api.transferToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class UpdateGlobalVar extends RustOpaque { - UpdateGlobalVar.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - UpdateGlobalVar.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_UpdateGlobalVar, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_UpdateGlobalVar, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_UpdateGlobalVarPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class UpdateGlobalVar implements RustOpaqueInterface { factory UpdateGlobalVar( {required int fromChainId, required int subAccountId, required Parameter parameter, - required double serialId, - dynamic hint}) => - RustLib.instance.api.updateGlobalVarNew( + required double serialId}) => + RustLib.instance.api.crateApiUpdateGlobalVarNew( fromChainId: fromChainId, subAccountId: subAccountId, parameter: parameter, - serialId: serialId, - hint: hint); + serialId: serialId); - String toJson({dynamic hint}) => - RustLib.instance.api.updateGlobalVarToJson(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class Wallet extends RustOpaque { - Wallet.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Wallet.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Wallet, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Wallet, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_WalletPtr, - ); - +// Rust type: RustOpaqueNom> +abstract class Wallet implements RustOpaqueInterface { Future approveErc20( - {required String contract, - required String amount, - required EthTxOption ethParams, - dynamic hint}) => - RustLib.instance.api.walletApproveErc20( - that: this, - contract: contract, - amount: amount, - ethParams: ethParams, - hint: hint); + {required String contract, + required String amount, + required EthTxOption ethParams}); Future depositErc20( - {required int subAccountId, - required String depositTo, - required String tokenAddr, - required String amount, - required bool mapping, - required EthTxOption ethParams, - required bool isGateway, - dynamic hint}) => - RustLib.instance.api.walletDepositErc20( - that: this, - subAccountId: subAccountId, - depositTo: depositTo, - tokenAddr: tokenAddr, - amount: amount, - mapping: mapping, - ethParams: ethParams, - isGateway: isGateway, - hint: hint); + {required int subAccountId, + required String depositTo, + required String tokenAddr, + required String amount, + required bool mapping, + required EthTxOption ethParams, + required bool isGateway}); Future depositEth( - {required int subAccountId, - required String depositTo, - required EthTxOption ethParams, - required bool isGateway, - dynamic hint}) => - RustLib.instance.api.walletDepositEth( - that: this, - subAccountId: subAccountId, - depositTo: depositTo, - ethParams: ethParams, - isGateway: isGateway, - hint: hint); + {required int subAccountId, + required String depositTo, + required EthTxOption ethParams, + required bool isGateway}); Future fullExit( - {required int accountId, - required int subAccountId, - required int tokenId, - required bool mapping, - required EthTxOption ethParams, - dynamic hint}) => - RustLib.instance.api.walletFullExit( - that: this, - accountId: accountId, - subAccountId: subAccountId, - tokenId: tokenId, - mapping: mapping, - ethParams: ethParams, - hint: hint); + {required int accountId, + required int subAccountId, + required int tokenId, + required bool mapping, + required EthTxOption ethParams}); - Future getBalance({dynamic hint}) => - RustLib.instance.api.walletGetBalance(that: this, hint: hint); + Future getBalance(); - Future getDepositFee( - {required EthTxOption ethParams, dynamic hint}) => - RustLib.instance.api - .walletGetDepositFee(that: this, ethParams: ethParams, hint: hint); + Future getDepositFee({required EthTxOption ethParams}); - Future getNonce({required String blockNumber, dynamic hint}) => - RustLib.instance.api - .walletGetNonce(that: this, blockNumber: blockNumber, hint: hint); + Future getNonce({required String blockNumber}); - factory Wallet( - {required String url, required String privateKey, dynamic hint}) => - RustLib.instance.api - .walletNew(url: url, privateKey: privateKey, hint: hint); + factory Wallet({required String url, required String privateKey}) => + RustLib.instance.api.crateApiWalletNew(url: url, privateKey: privateKey); Future setAuthPubkeyHash( - {required double nonce, - required String newPubkeyHash, - required EthTxOption ethParams, - dynamic hint}) => - RustLib.instance.api.walletSetAuthPubkeyHash( - that: this, - nonce: nonce, - newPubkeyHash: newPubkeyHash, - ethParams: ethParams, - hint: hint); + {required double nonce, + required String newPubkeyHash, + required EthTxOption ethParams}); - Future waitForTransaction( - {required String txHash, int? timeout, dynamic hint}) => - RustLib.instance.api.walletWaitForTransaction( - that: this, txHash: txHash, timeout: timeout, hint: hint); + Future waitForTransaction({required String txHash, int? timeout}); } -// Rust type: RustOpaqueNom> -@sealed -class Withdraw extends RustOpaque { - Withdraw.dcoDecode(List wire) : super.dcoDecode(wire, _kStaticData); - - Withdraw.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_Withdraw, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_Withdraw, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_WithdrawPtr, - ); - - String getEthSignMsg({required String tokenSymbol, dynamic hint}) => RustLib - .instance.api - .withdrawGetEthSignMsg(that: this, tokenSymbol: tokenSymbol, hint: hint); +// Rust type: RustOpaqueNom> +abstract class Withdraw implements RustOpaqueInterface { + String getEthSignMsg({required String tokenSymbol}); factory Withdraw( {required int accountId, @@ -998,9 +524,8 @@ class Withdraw extends RustOpaque { required int nonce, required bool withdrawToL1, required int withdrawFeeRatio, - int? ts, - dynamic hint}) => - RustLib.instance.api.withdrawNew( + int? ts}) => + RustLib.instance.api.crateApiWithdrawNew( accountId: accountId, subAccountId: subAccountId, toChainId: toChainId, @@ -1013,73 +538,31 @@ class Withdraw extends RustOpaque { nonce: nonce, withdrawToL1: withdrawToL1, withdrawFeeRatio: withdrawFeeRatio, - ts: ts, - hint: hint); + ts: ts); - void sign({required ZkLinkSigner zkLinkSigner, dynamic hint}) => - RustLib.instance.api - .withdrawSign(that: this, zkLinkSigner: zkLinkSigner, hint: hint); - - String toJson({dynamic hint}) => - RustLib.instance.api.withdrawToJson(that: this, hint: hint); -} + void sign({required ZkLinkSigner zkLinkSigner}); -// Rust type: RustOpaqueNom> -@sealed -class ZkLinkSignature extends RustOpaque { - ZkLinkSignature.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ZkLinkSignature.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ZkLinkSignature, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignature, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignaturePtr, - ); - - String getPubkey({dynamic hint}) => - RustLib.instance.api.zkLinkSignatureGetPubkey(that: this, hint: hint); - - String getSignature({dynamic hint}) => - RustLib.instance.api.zkLinkSignatureGetSignature(that: this, hint: hint); + String toJson(); } -// Rust type: RustOpaqueNom> -@sealed -class ZkLinkSigner extends RustOpaque { - ZkLinkSigner.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); +// Rust type: RustOpaqueNom> +abstract class ZkLinkSignature implements RustOpaqueInterface { + String getPubkey(); - ZkLinkSigner.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_ZkLinkSigner, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSigner, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignerPtr, - ); + String getSignature(); +} - static ZkLinkSigner ethSig({required String sig, dynamic hint}) => - RustLib.instance.api.zkLinkSignerEthSig(sig: sig, hint: hint); +// Rust type: RustOpaqueNom> +abstract class ZkLinkSigner implements RustOpaqueInterface { + static ZkLinkSigner ethSig({required String sig}) => + RustLib.instance.api.crateApiZkLinkSignerEthSig(sig: sig); - String getPubkey({dynamic hint}) => - RustLib.instance.api.zkLinkSignerGetPubkey(that: this, hint: hint); + String getPubkey(); - String getPubkeyHash({dynamic hint}) => - RustLib.instance.api.zkLinkSignerGetPubkeyHash(that: this, hint: hint); + String getPubkeyHash(); - ZkLinkSignature signMusig({required List msg, dynamic hint}) => - RustLib.instance.api - .zkLinkSignerSignMusig(that: this, msg: msg, hint: hint); + ZkLinkSignature signMusig({required List msg}); - static ZkLinkSigner starknetSig({required String sig, dynamic hint}) => - RustLib.instance.api.zkLinkSignerStarknetSig(sig: sig, hint: hint); + static ZkLinkSigner starknetSig({required String sig}) => + RustLib.instance.api.crateApiZkLinkSignerStarknetSig(sig: sig); } diff --git a/bindings/dart/lib/frb_generated.dart b/bindings/dart/lib/frb_generated.dart index b385d9b..0db7940 100644 --- a/bindings/dart/lib/frb_generated.dart +++ b/bindings/dart/lib/frb_generated.dart @@ -1,12 +1,14 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field import 'api.dart'; import 'dart:async'; import 'dart:convert'; -import 'frb_generated.io.dart' if (dart.library.html) 'frb_generated.web.dart'; +import 'frb_generated.dart'; +import 'frb_generated.io.dart' + if (dart.library.js_interop) 'frb_generated.web.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; /// Main entrypoint of the Rust API @@ -45,7 +47,7 @@ class RustLib extends BaseEntrypoint { @override Future executeRustInitializers() async { - await api.initApp(); + await api.crateApiInitApp(); } @override @@ -53,7 +55,7 @@ class RustLib extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0-dev.32'; + String get codegenVersion => '2.0.0'; @override int get rustContentHash => -634235047; @@ -67,7 +69,7 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { - AutoDeleveraging autoDeleveragingNew( + AutoDeleveraging crateApiAutoDeleveragingNew( {required int accountId, required int subAccountId, required int subAccountNonce, @@ -78,23 +80,17 @@ abstract class RustLibApi extends BaseApi { required String adlSize, required String adlPrice, required String fee, - required int feeToken, - dynamic hint}); + required int feeToken}); - void autoDeleveragingSign( - {required AutoDeleveraging that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiAutoDeleveragingSign( + {required AutoDeleveraging that, required ZkLinkSigner zkLinkSigner}); - String autoDeleveragingToJson({required AutoDeleveraging that, dynamic hint}); + String crateApiAutoDeleveragingToJson({required AutoDeleveraging that}); - String changePubKeyGetEthSignMsg( - {required ChangePubKey that, - required int nonce, - required int accountId, - dynamic hint}); + String crateApiChangePubKeyGetEthSignMsg( + {required ChangePubKey that, required int nonce, required int accountId}); - ChangePubKey changePubKeyNew( + ChangePubKey crateApiChangePubKeyNew( {required int chainId, required int accountId, required int subAccountId, @@ -103,26 +99,22 @@ abstract class RustLibApi extends BaseApi { required String fee, required int nonce, String? ethSignature, - int? ts, - dynamic hint}); + int? ts}); - void changePubKeySetEthAuthData( - {required ChangePubKey that, required String sig, dynamic hint}); + void crateApiChangePubKeySetEthAuthData( + {required ChangePubKey that, required String sig}); - void changePubKeySign( - {required ChangePubKey that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiChangePubKeySign( + {required ChangePubKey that, required ZkLinkSigner zkLinkSigner}); - String changePubKeyToEip712RequestPayload( + String crateApiChangePubKeyToEip712RequestPayload( {required ChangePubKey that, required int chainId, - required String address, - dynamic hint}); + required String address}); - String changePubKeyToJson({required ChangePubKey that, dynamic hint}); + String crateApiChangePubKeyToJson({required ChangePubKey that}); - ContractMatching contractMatchingNew( + ContractMatching crateApiContractMatchingNew( {required int accountId, required int subAccountId, required Contract taker, @@ -130,20 +122,17 @@ abstract class RustLibApi extends BaseApi { required String fee, required int feeToken, required List contractPrices, - required List marginPrices, - dynamic hint}); + required List marginPrices}); - void contractMatchingSign( - {required ContractMatching that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiContractMatchingSign( + {required ContractMatching that, required ZkLinkSigner zkLinkSigner}); - String contractMatchingToJson({required ContractMatching that, dynamic hint}); + String crateApiContractMatchingToJson({required ContractMatching that}); - ContractPrice contractPriceNew( - {required int pairId, required String marketPrice, dynamic hint}); + ContractPrice crateApiContractPriceNew( + {required int pairId, required String marketPrice}); - Contract contractNew( + Contract crateApiContractNew( {required int accountId, required int subAccountId, required int slotId, @@ -154,26 +143,22 @@ abstract class RustLibApi extends BaseApi { required bool direction, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}); + required bool hasSubsidy}); - void contractSign( - {required Contract that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiContractSign( + {required Contract that, required ZkLinkSigner zkLinkSigner}); - String contractToJson({required Contract that, dynamic hint}); + String crateApiContractToJson({required Contract that}); - EthTxOption ethTxOptionNew( + EthTxOption crateApiEthTxOptionNew( {required bool isSupportEip1559, required String to, double? nonce, String? value, double? gas, - String? gasPrice, - dynamic hint}); + String? gasPrice}); - ForcedExit forcedExitNew( + ForcedExit crateApiForcedExitNew( {required int toChainId, required int initiatorAccountId, required int initiatorSubAccountId, @@ -184,39 +169,30 @@ abstract class RustLibApi extends BaseApi { required String exitAmount, required int initiatorNonce, required bool withdrawToL1, - int? ts, - dynamic hint}); + int? ts}); - void forcedExitSign( - {required ForcedExit that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiForcedExitSign( + {required ForcedExit that, required ZkLinkSigner zkLinkSigner}); - String forcedExitToJson({required ForcedExit that, dynamic hint}); + String crateApiForcedExitToJson({required ForcedExit that}); - FundingInfo fundingInfoNew( - {required int pairId, - required String price, - required int fundingRate, - dynamic hint}); + FundingInfo crateApiFundingInfoNew( + {required int pairId, required String price, required int fundingRate}); - Funding fundingNew( + Funding crateApiFundingNew( {required int accountId, required int subAccountId, required int subAccountNonce, required List fundingAccountIds, required String fee, - required int feeToken, - dynamic hint}); + required int feeToken}); - void fundingSign( - {required Funding that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiFundingSign( + {required Funding that, required ZkLinkSigner zkLinkSigner}); - String fundingToJson({required Funding that, dynamic hint}); + String crateApiFundingToJson({required Funding that}); - Liquidation liquidationNew( + Liquidation crateApiLiquidationNew( {required int accountId, required int subAccountId, required int subAccountNonce, @@ -224,17 +200,14 @@ abstract class RustLibApi extends BaseApi { required List marginPrices, required int liquidationAccountId, required String fee, - required int feeToken, - dynamic hint}); + required int feeToken}); - void liquidationSign( - {required Liquidation that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiLiquidationSign( + {required Liquidation that, required ZkLinkSigner zkLinkSigner}); - String liquidationToJson({required Liquidation that, dynamic hint}); + String crateApiLiquidationToJson({required Liquidation that}); - OrderMatching orderMatchingNew( + OrderMatching crateApiOrderMatchingNew( {required int accountId, required int subAccountId, required Order taker, @@ -244,17 +217,14 @@ abstract class RustLibApi extends BaseApi { required List contractPrices, required List marginPrices, required String expectBaseAmount, - required String expectQuoteAmount, - dynamic hint}); + required String expectQuoteAmount}); - void orderMatchingSign( - {required OrderMatching that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiOrderMatchingSign( + {required OrderMatching that, required ZkLinkSigner zkLinkSigner}); - String orderMatchingToJson({required OrderMatching that, dynamic hint}); + String crateApiOrderMatchingToJson({required OrderMatching that}); - Order orderNew( + Order crateApiOrderNew( {required int accountId, required int subAccountId, required int slotId, @@ -266,105 +236,95 @@ abstract class RustLibApi extends BaseApi { required bool isSell, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}); + required bool hasSubsidy}); - void orderSign( - {required Order that, required ZkLinkSigner zkLinkSigner, dynamic hint}); + void crateApiOrderSign( + {required Order that, required ZkLinkSigner zkLinkSigner}); - String orderToJson({required Order that, dynamic hint}); + String crateApiOrderToJson({required Order that}); - Parameter parameterContractInfo( + Parameter crateApiParameterContractInfo( {required int pairId, required String symbol, required int initialMarginRate, - required int maintenanceMarginRate, - dynamic hint}); + required int maintenanceMarginRate}); - Parameter parameterFeeAccount({required int accountId, dynamic hint}); + Parameter crateApiParameterFeeAccount({required int accountId}); - Parameter parameterFundingInfos( - {required List infos, dynamic hint}); + Parameter crateApiParameterFundingInfos({required List infos}); - Parameter parameterInsuranceFundAccount( - {required int accountId, dynamic hint}); + Parameter crateApiParameterInsuranceFundAccount({required int accountId}); - Parameter parameterMarginInfo( + Parameter crateApiParameterMarginInfo( {required int marginId, String? symbol, required int tokenId, - required int ratio, - dynamic hint}); + required int ratio}); - Contract signerCreateSignedContract( - {required Signer that, required Contract contract, dynamic hint}); + Contract crateApiSignerCreateSignedContract( + {required Signer that, required Contract contract}); - Order signerCreateSignedOrder( - {required Signer that, required Order order, dynamic hint}); + Order crateApiSignerCreateSignedOrder( + {required Signer that, required Order order}); - Signer signerEthSigner({required String ethPrivateKey, dynamic hint}); + Signer crateApiSignerEthSigner({required String ethPrivateKey}); - String signerSignAutoDeleveraging( - {required Signer that, required AutoDeleveraging tx, dynamic hint}); + String crateApiSignerSignAutoDeleveraging( + {required Signer that, required AutoDeleveraging tx}); - String signerSignChangePubkeyWithCreate2DataAuth( + String crateApiSignerSignChangePubkeyWithCreate2DataAuth( {required Signer that, required ChangePubKey tx, required String creatorAddress, required String saltArg, - required String codeHash, - dynamic hint}); + required String codeHash}); - String signerSignChangePubkeyWithEthEcdsaAuth( - {required Signer that, required ChangePubKey tx, dynamic hint}); + String crateApiSignerSignChangePubkeyWithEthEcdsaAuth( + {required Signer that, required ChangePubKey tx}); - String signerSignChangePubkeyWithOnchain( - {required Signer that, required ChangePubKey tx, dynamic hint}); + String crateApiSignerSignChangePubkeyWithOnchain( + {required Signer that, required ChangePubKey tx}); - String signerSignContractMatching( - {required Signer that, required ContractMatching tx, dynamic hint}); + String crateApiSignerSignContractMatching( + {required Signer that, required ContractMatching tx}); - String signerSignForcedExit( - {required Signer that, required ForcedExit tx, dynamic hint}); + String crateApiSignerSignForcedExit( + {required Signer that, required ForcedExit tx}); - String signerSignFunding( - {required Signer that, required Funding tx, dynamic hint}); + String crateApiSignerSignFunding({required Signer that, required Funding tx}); - String signerSignLiquidation( - {required Signer that, required Liquidation tx, dynamic hint}); + String crateApiSignerSignLiquidation( + {required Signer that, required Liquidation tx}); - String signerSignOrderMatching( - {required Signer that, required OrderMatching tx, dynamic hint}); + String crateApiSignerSignOrderMatching( + {required Signer that, required OrderMatching tx}); - String signerSignTransfer( + String crateApiSignerSignTransfer( {required Signer that, required Transfer tx, required String tokenSymbol, String? chainId, - String? addr, - dynamic hint}); + String? addr}); - String signerSignWithdraw( + String crateApiSignerSignWithdraw( {required Signer that, required Withdraw tx, required String tokenSymbol, String? chainId, - String? addr, - dynamic hint}); + String? addr}); - Signer signerStarknetSigner( + Signer crateApiSignerStarknetSigner( {required String ethPrivateKey, required String starknetChainId, - required String starknetAddr, - dynamic hint}); + required String starknetAddr}); - SpotPriceInfo spotPriceInfoNew( - {required int tokenId, required String price, dynamic hint}); + SpotPriceInfo crateApiSpotPriceInfoNew( + {required int tokenId, required String price}); - String transferGetEthSignMsg( - {required Transfer that, required String tokenSymbol, dynamic hint}); + String crateApiTransferGetEthSignMsg( + {required Transfer that, required String tokenSymbol}); - Transfer transferNew( + Transfer crateApiTransferNew( {required int accountId, required String toAddress, required int fromSubAccountId, @@ -373,33 +333,28 @@ abstract class RustLibApi extends BaseApi { required String fee, required String amount, required int nonce, - int? ts, - dynamic hint}); + int? ts}); - void transferSign( - {required Transfer that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiTransferSign( + {required Transfer that, required ZkLinkSigner zkLinkSigner}); - String transferToJson({required Transfer that, dynamic hint}); + String crateApiTransferToJson({required Transfer that}); - UpdateGlobalVar updateGlobalVarNew( + UpdateGlobalVar crateApiUpdateGlobalVarNew( {required int fromChainId, required int subAccountId, required Parameter parameter, - required double serialId, - dynamic hint}); + required double serialId}); - String updateGlobalVarToJson({required UpdateGlobalVar that, dynamic hint}); + String crateApiUpdateGlobalVarToJson({required UpdateGlobalVar that}); - Future walletApproveErc20( + Future crateApiWalletApproveErc20( {required Wallet that, required String contract, required String amount, - required EthTxOption ethParams, - dynamic hint}); + required EthTxOption ethParams}); - Future walletDepositErc20( + Future crateApiWalletDepositErc20( {required Wallet that, required int subAccountId, required String depositTo, @@ -407,54 +362,46 @@ abstract class RustLibApi extends BaseApi { required String amount, required bool mapping, required EthTxOption ethParams, - required bool isGateway, - dynamic hint}); + required bool isGateway}); - Future walletDepositEth( + Future crateApiWalletDepositEth( {required Wallet that, required int subAccountId, required String depositTo, required EthTxOption ethParams, - required bool isGateway, - dynamic hint}); + required bool isGateway}); - Future walletFullExit( + Future crateApiWalletFullExit( {required Wallet that, required int accountId, required int subAccountId, required int tokenId, required bool mapping, - required EthTxOption ethParams, - dynamic hint}); + required EthTxOption ethParams}); - Future walletGetBalance({required Wallet that, dynamic hint}); + Future crateApiWalletGetBalance({required Wallet that}); - Future walletGetDepositFee( - {required Wallet that, required EthTxOption ethParams, dynamic hint}); + Future crateApiWalletGetDepositFee( + {required Wallet that, required EthTxOption ethParams}); - Future walletGetNonce( - {required Wallet that, required String blockNumber, dynamic hint}); + Future crateApiWalletGetNonce( + {required Wallet that, required String blockNumber}); - Wallet walletNew( - {required String url, required String privateKey, dynamic hint}); + Wallet crateApiWalletNew({required String url, required String privateKey}); - Future walletSetAuthPubkeyHash( + Future crateApiWalletSetAuthPubkeyHash( {required Wallet that, required double nonce, required String newPubkeyHash, - required EthTxOption ethParams, - dynamic hint}); + required EthTxOption ethParams}); - Future walletWaitForTransaction( - {required Wallet that, - required String txHash, - int? timeout, - dynamic hint}); + Future crateApiWalletWaitForTransaction( + {required Wallet that, required String txHash, int? timeout}); - String withdrawGetEthSignMsg( - {required Withdraw that, required String tokenSymbol, dynamic hint}); + String crateApiWithdrawGetEthSignMsg( + {required Withdraw that, required String tokenSymbol}); - Withdraw withdrawNew( + Withdraw crateApiWithdrawNew( {required int accountId, required int subAccountId, required int toChainId, @@ -467,42 +414,37 @@ abstract class RustLibApi extends BaseApi { required int nonce, required bool withdrawToL1, required int withdrawFeeRatio, - int? ts, - dynamic hint}); + int? ts}); - void withdrawSign( - {required Withdraw that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}); + void crateApiWithdrawSign( + {required Withdraw that, required ZkLinkSigner zkLinkSigner}); - String withdrawToJson({required Withdraw that, dynamic hint}); + String crateApiWithdrawToJson({required Withdraw that}); - String zkLinkSignatureGetPubkey( - {required ZkLinkSignature that, dynamic hint}); + String crateApiZkLinkSignatureGetPubkey({required ZkLinkSignature that}); - String zkLinkSignatureGetSignature( - {required ZkLinkSignature that, dynamic hint}); + String crateApiZkLinkSignatureGetSignature({required ZkLinkSignature that}); - ZkLinkSigner zkLinkSignerEthSig({required String sig, dynamic hint}); + ZkLinkSigner crateApiZkLinkSignerEthSig({required String sig}); - String zkLinkSignerGetPubkey({required ZkLinkSigner that, dynamic hint}); + String crateApiZkLinkSignerGetPubkey({required ZkLinkSigner that}); - String zkLinkSignerGetPubkeyHash({required ZkLinkSigner that, dynamic hint}); + String crateApiZkLinkSignerGetPubkeyHash({required ZkLinkSigner that}); - ZkLinkSignature zkLinkSignerSignMusig( - {required ZkLinkSigner that, required List msg, dynamic hint}); + ZkLinkSignature crateApiZkLinkSignerSignMusig( + {required ZkLinkSigner that, required List msg}); - ZkLinkSigner zkLinkSignerStarknetSig({required String sig, dynamic hint}); + ZkLinkSigner crateApiZkLinkSignerStarknetSig({required String sig}); - String closestPackableFeeAmount({required String fee, dynamic hint}); + String crateApiClosestPackableFeeAmount({required String fee}); - String closestPackableTokenAmount({required String amount, dynamic hint}); + String crateApiClosestPackableTokenAmount({required String amount}); - Future initApp({dynamic hint}); + Future crateApiInitApp(); - bool isFeeAmountPackable({required String fee, dynamic hint}); + bool crateApiIsFeeAmountPackable({required String fee}); - bool isTokenAmountPackable({required String amount, dynamic hint}); + bool crateApiIsTokenAmountPackable({required String amount}); RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_AutoDeleveraging; @@ -681,7 +623,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { }); @override - AutoDeleveraging autoDeleveragingNew( + AutoDeleveraging crateApiAutoDeleveragingNew( {required int accountId, required int subAccountId, required int subAccountNonce, @@ -692,18 +634,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String adlSize, required String adlPrice, required String fee, - required int feeToken, - dynamic hint}) { + required int feeToken}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); var arg1 = cst_encode_u_8(subAccountId); var arg2 = cst_encode_u_32(subAccountNonce); var arg3 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( contractPrices); var arg4 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( marginPrices); var arg5 = cst_encode_u_32(adlAccountId); var arg6 = cst_encode_u_16(pairId); @@ -711,15 +652,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg8 = cst_encode_String(adlPrice); var arg9 = cst_encode_String(fee); var arg10 = cst_encode_u_16(feeToken); - return wire.wire_AutoDeleveraging_new( + return wire.wire__crate__api__AutoDeleveraging_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kAutoDeleveragingNewConstMeta, + constMeta: kCrateApiAutoDeleveragingNewConstMeta, argValues: [ accountId, subAccountId, @@ -734,11 +675,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { feeToken ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kAutoDeleveragingNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiAutoDeleveragingNewConstMeta => + const TaskConstMeta( debugName: "AutoDeleveraging_new", argNames: [ "accountId", @@ -756,95 +697,92 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void autoDeleveragingSign( - {required AutoDeleveraging that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiAutoDeleveragingSign( + {required AutoDeleveraging that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_AutoDeleveraging_sign(arg0, arg1); + return wire.wire__crate__api__AutoDeleveraging_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kAutoDeleveragingSignConstMeta, + constMeta: kCrateApiAutoDeleveragingSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kAutoDeleveragingSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiAutoDeleveragingSignConstMeta => + const TaskConstMeta( debugName: "AutoDeleveraging_sign", argNames: ["that", "zkLinkSigner"], ); @override - String autoDeleveragingToJson( - {required AutoDeleveraging that, dynamic hint}) { + String crateApiAutoDeleveragingToJson({required AutoDeleveraging that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( that); - return wire.wire_AutoDeleveraging_to_json(arg0); + return wire.wire__crate__api__AutoDeleveraging_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kAutoDeleveragingToJsonConstMeta, + constMeta: kCrateApiAutoDeleveragingToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kAutoDeleveragingToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiAutoDeleveragingToJsonConstMeta => + const TaskConstMeta( debugName: "AutoDeleveraging_to_json", argNames: ["that"], ); @override - String changePubKeyGetEthSignMsg( + String crateApiChangePubKeyGetEthSignMsg( {required ChangePubKey that, required int nonce, - required int accountId, - dynamic hint}) { + required int accountId}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( that); var arg1 = cst_encode_u_32(nonce); var arg2 = cst_encode_u_32(accountId); - return wire.wire_ChangePubKey_get_eth_sign_msg(arg0, arg1, arg2); + return wire.wire__crate__api__ChangePubKey_get_eth_sign_msg( + arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kChangePubKeyGetEthSignMsgConstMeta, + constMeta: kCrateApiChangePubKeyGetEthSignMsgConstMeta, argValues: [that, nonce, accountId], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeyGetEthSignMsgConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiChangePubKeyGetEthSignMsgConstMeta => + const TaskConstMeta( debugName: "ChangePubKey_get_eth_sign_msg", argNames: ["that", "nonce", "accountId"], ); @override - ChangePubKey changePubKeyNew( + ChangePubKey crateApiChangePubKeyNew( {required int chainId, required int accountId, required int subAccountId, @@ -853,8 +791,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String fee, required int nonce, String? ethSignature, - int? ts, - dynamic hint}) { + int? ts}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_8(chainId); @@ -866,15 +803,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg6 = cst_encode_u_32(nonce); var arg7 = cst_encode_opt_String(ethSignature); var arg8 = cst_encode_opt_box_autoadd_u_32(ts); - return wire.wire_ChangePubKey_new( + return wire.wire__crate__api__ChangePubKey_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kChangePubKeyNewConstMeta, + constMeta: kCrateApiChangePubKeyNewConstMeta, argValues: [ chainId, accountId, @@ -887,11 +824,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ts ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeyNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiChangePubKeyNewConstMeta => const TaskConstMeta( debugName: "ChangePubKey_new", argNames: [ "chainId", @@ -907,123 +843,118 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void changePubKeySetEthAuthData( - {required ChangePubKey that, required String sig, dynamic hint}) { + void crateApiChangePubKeySetEthAuthData( + {required ChangePubKey that, required String sig}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( that); var arg1 = cst_encode_String(sig); - return wire.wire_ChangePubKey_set_eth_auth_data(arg0, arg1); + return wire.wire__crate__api__ChangePubKey_set_eth_auth_data( + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kChangePubKeySetEthAuthDataConstMeta, + constMeta: kCrateApiChangePubKeySetEthAuthDataConstMeta, argValues: [that, sig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeySetEthAuthDataConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiChangePubKeySetEthAuthDataConstMeta => + const TaskConstMeta( debugName: "ChangePubKey_set_eth_auth_data", argNames: ["that", "sig"], ); @override - void changePubKeySign( - {required ChangePubKey that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiChangePubKeySign( + {required ChangePubKey that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_ChangePubKey_sign(arg0, arg1); + return wire.wire__crate__api__ChangePubKey_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kChangePubKeySignConstMeta, + constMeta: kCrateApiChangePubKeySignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeySignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiChangePubKeySignConstMeta => const TaskConstMeta( debugName: "ChangePubKey_sign", argNames: ["that", "zkLinkSigner"], ); @override - String changePubKeyToEip712RequestPayload( + String crateApiChangePubKeyToEip712RequestPayload( {required ChangePubKey that, required int chainId, - required String address, - dynamic hint}) { + required String address}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( that); var arg1 = cst_encode_u_32(chainId); var arg2 = cst_encode_String(address); - return wire.wire_ChangePubKey_to_eip712_request_payload( + return wire.wire__crate__api__ChangePubKey_to_eip712_request_payload( arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kChangePubKeyToEip712RequestPayloadConstMeta, + constMeta: kCrateApiChangePubKeyToEip712RequestPayloadConstMeta, argValues: [that, chainId, address], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeyToEip712RequestPayloadConstMeta => + TaskConstMeta get kCrateApiChangePubKeyToEip712RequestPayloadConstMeta => const TaskConstMeta( debugName: "ChangePubKey_to_eip712_request_payload", argNames: ["that", "chainId", "address"], ); @override - String changePubKeyToJson({required ChangePubKey that, dynamic hint}) { + String crateApiChangePubKeyToJson({required ChangePubKey that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( that); - return wire.wire_ChangePubKey_to_json(arg0); + return wire.wire__crate__api__ChangePubKey_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kChangePubKeyToJsonConstMeta, + constMeta: kCrateApiChangePubKeyToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kChangePubKeyToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiChangePubKeyToJsonConstMeta => const TaskConstMeta( debugName: "ChangePubKey_to_json", argNames: ["that"], ); @override - ContractMatching contractMatchingNew( + ContractMatching crateApiContractMatchingNew( {required int accountId, required int subAccountId, required Contract taker, @@ -1031,35 +962,34 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String fee, required int feeToken, required List contractPrices, - required List marginPrices, - dynamic hint}) { + required List marginPrices}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); var arg1 = cst_encode_u_8(subAccountId); var arg2 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( taker); var arg3 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( maker); var arg4 = cst_encode_String(fee); var arg5 = cst_encode_u_16(feeToken); var arg6 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( contractPrices); var arg7 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( marginPrices); - return wire.wire_ContractMatching_new( + return wire.wire__crate__api__ContractMatching_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractMatchingNewConstMeta, + constMeta: kCrateApiContractMatchingNewConstMeta, argValues: [ accountId, subAccountId, @@ -1071,11 +1001,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { marginPrices ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractMatchingNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractMatchingNewConstMeta => + const TaskConstMeta( debugName: "ContractMatching_new", argNames: [ "accountId", @@ -1090,90 +1020,86 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void contractMatchingSign( - {required ContractMatching that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiContractMatchingSign( + {required ContractMatching that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_ContractMatching_sign(arg0, arg1); + return wire.wire__crate__api__ContractMatching_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractMatchingSignConstMeta, + constMeta: kCrateApiContractMatchingSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractMatchingSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractMatchingSignConstMeta => + const TaskConstMeta( debugName: "ContractMatching_sign", argNames: ["that", "zkLinkSigner"], ); @override - String contractMatchingToJson( - {required ContractMatching that, dynamic hint}) { + String crateApiContractMatchingToJson({required ContractMatching that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( that); - return wire.wire_ContractMatching_to_json(arg0); + return wire.wire__crate__api__ContractMatching_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractMatchingToJsonConstMeta, + constMeta: kCrateApiContractMatchingToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractMatchingToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractMatchingToJsonConstMeta => + const TaskConstMeta( debugName: "ContractMatching_to_json", argNames: ["that"], ); @override - ContractPrice contractPriceNew( - {required int pairId, required String marketPrice, dynamic hint}) { + ContractPrice crateApiContractPriceNew( + {required int pairId, required String marketPrice}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_16(pairId); var arg1 = cst_encode_String(marketPrice); - return wire.wire_ContractPrice_new(arg0, arg1); + return wire.wire__crate__api__ContractPrice_new(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractPriceNewConstMeta, + constMeta: kCrateApiContractPriceNewConstMeta, argValues: [pairId, marketPrice], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractPriceNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractPriceNewConstMeta => const TaskConstMeta( debugName: "ContractPrice_new", argNames: ["pairId", "marketPrice"], ); @override - Contract contractNew( + Contract crateApiContractNew( {required int accountId, required int subAccountId, required int slotId, @@ -1184,8 +1110,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required bool direction, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}) { + required bool hasSubsidy}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); @@ -1199,15 +1124,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg8 = cst_encode_u_8(makerFeeRate); var arg9 = cst_encode_u_8(takerFeeRate); var arg10 = cst_encode_bool(hasSubsidy); - return wire.wire_Contract_new( + return wire.wire__crate__api__Contract_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractNewConstMeta, + constMeta: kCrateApiContractNewConstMeta, argValues: [ accountId, subAccountId, @@ -1222,11 +1147,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { hasSubsidy ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractNewConstMeta => const TaskConstMeta( debugName: "Contract_new", argNames: [ "accountId", @@ -1244,70 +1168,65 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void contractSign( - {required Contract that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiContractSign( + {required Contract that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Contract_sign(arg0, arg1); + return wire.wire__crate__api__Contract_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractSignConstMeta, + constMeta: kCrateApiContractSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractSignConstMeta => const TaskConstMeta( debugName: "Contract_sign", argNames: ["that", "zkLinkSigner"], ); @override - String contractToJson({required Contract that, dynamic hint}) { + String crateApiContractToJson({required Contract that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( that); - return wire.wire_Contract_to_json(arg0); + return wire.wire__crate__api__Contract_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kContractToJsonConstMeta, + constMeta: kCrateApiContractToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContractToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiContractToJsonConstMeta => const TaskConstMeta( debugName: "Contract_to_json", argNames: ["that"], ); @override - EthTxOption ethTxOptionNew( + EthTxOption crateApiEthTxOptionNew( {required bool isSupportEip1559, required String to, double? nonce, String? value, double? gas, - String? gasPrice, - dynamic hint}) { + String? gasPrice}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_bool(isSupportEip1559); @@ -1316,21 +1235,21 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg3 = cst_encode_opt_String(value); var arg4 = cst_encode_opt_box_autoadd_f_64(gas); var arg5 = cst_encode_opt_String(gasPrice); - return wire.wire_EthTxOption_new(arg0, arg1, arg2, arg3, arg4, arg5); + return wire.wire__crate__api__EthTxOption_new( + arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kEthTxOptionNewConstMeta, + constMeta: kCrateApiEthTxOptionNewConstMeta, argValues: [isSupportEip1559, to, nonce, value, gas, gasPrice], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEthTxOptionNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiEthTxOptionNewConstMeta => const TaskConstMeta( debugName: "EthTxOption_new", argNames: [ "isSupportEip1559", @@ -1343,7 +1262,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - ForcedExit forcedExitNew( + ForcedExit crateApiForcedExitNew( {required int toChainId, required int initiatorAccountId, required int initiatorSubAccountId, @@ -1354,8 +1273,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String exitAmount, required int initiatorNonce, required bool withdrawToL1, - int? ts, - dynamic hint}) { + int? ts}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_8(toChainId); @@ -1369,15 +1287,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg8 = cst_encode_u_32(initiatorNonce); var arg9 = cst_encode_bool(withdrawToL1); var arg10 = cst_encode_opt_box_autoadd_u_32(ts); - return wire.wire_ForcedExit_new( + return wire.wire__crate__api__ForcedExit_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kForcedExitNewConstMeta, + constMeta: kCrateApiForcedExitNewConstMeta, argValues: [ toChainId, initiatorAccountId, @@ -1392,11 +1310,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ts ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kForcedExitNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiForcedExitNewConstMeta => const TaskConstMeta( debugName: "ForcedExit_new", argNames: [ "toChainId", @@ -1414,100 +1331,91 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void forcedExitSign( - {required ForcedExit that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiForcedExitSign( + {required ForcedExit that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_ForcedExit_sign(arg0, arg1); + return wire.wire__crate__api__ForcedExit_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kForcedExitSignConstMeta, + constMeta: kCrateApiForcedExitSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kForcedExitSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiForcedExitSignConstMeta => const TaskConstMeta( debugName: "ForcedExit_sign", argNames: ["that", "zkLinkSigner"], ); @override - String forcedExitToJson({required ForcedExit that, dynamic hint}) { + String crateApiForcedExitToJson({required ForcedExit that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( that); - return wire.wire_ForcedExit_to_json(arg0); + return wire.wire__crate__api__ForcedExit_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kForcedExitToJsonConstMeta, + constMeta: kCrateApiForcedExitToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kForcedExitToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiForcedExitToJsonConstMeta => const TaskConstMeta( debugName: "ForcedExit_to_json", argNames: ["that"], ); @override - FundingInfo fundingInfoNew( - {required int pairId, - required String price, - required int fundingRate, - dynamic hint}) { + FundingInfo crateApiFundingInfoNew( + {required int pairId, required String price, required int fundingRate}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_16(pairId); var arg1 = cst_encode_String(price); var arg2 = cst_encode_i_16(fundingRate); - return wire.wire_FundingInfo_new(arg0, arg1, arg2); + return wire.wire__crate__api__FundingInfo_new(arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFundingInfoNewConstMeta, + constMeta: kCrateApiFundingInfoNewConstMeta, argValues: [pairId, price, fundingRate], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFundingInfoNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiFundingInfoNewConstMeta => const TaskConstMeta( debugName: "FundingInfo_new", argNames: ["pairId", "price", "fundingRate"], ); @override - Funding fundingNew( + Funding crateApiFundingNew( {required int accountId, required int subAccountId, required int subAccountNonce, required List fundingAccountIds, required String fee, - required int feeToken, - dynamic hint}) { + required int feeToken}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); @@ -1516,14 +1424,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg3 = cst_encode_list_prim_u_32_loose(fundingAccountIds); var arg4 = cst_encode_String(fee); var arg5 = cst_encode_u_16(feeToken); - return wire.wire_Funding_new(arg0, arg1, arg2, arg3, arg4, arg5); + return wire.wire__crate__api__Funding_new( + arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFundingNewConstMeta, + constMeta: kCrateApiFundingNewConstMeta, argValues: [ accountId, subAccountId, @@ -1533,11 +1442,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { feeToken ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFundingNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiFundingNewConstMeta => const TaskConstMeta( debugName: "Funding_new", argNames: [ "accountId", @@ -1550,63 +1458,59 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void fundingSign( - {required Funding that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiFundingSign( + {required Funding that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Funding_sign(arg0, arg1); + return wire.wire__crate__api__Funding_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFundingSignConstMeta, + constMeta: kCrateApiFundingSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFundingSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiFundingSignConstMeta => const TaskConstMeta( debugName: "Funding_sign", argNames: ["that", "zkLinkSigner"], ); @override - String fundingToJson({required Funding that, dynamic hint}) { + String crateApiFundingToJson({required Funding that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( that); - return wire.wire_Funding_to_json(arg0); + return wire.wire__crate__api__Funding_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFundingToJsonConstMeta, + constMeta: kCrateApiFundingToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFundingToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiFundingToJsonConstMeta => const TaskConstMeta( debugName: "Funding_to_json", argNames: ["that"], ); @override - Liquidation liquidationNew( + Liquidation crateApiLiquidationNew( {required int accountId, required int subAccountId, required int subAccountNonce, @@ -1614,31 +1518,30 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required List marginPrices, required int liquidationAccountId, required String fee, - required int feeToken, - dynamic hint}) { + required int feeToken}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); var arg1 = cst_encode_u_8(subAccountId); var arg2 = cst_encode_u_32(subAccountNonce); var arg3 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( contractPrices); var arg4 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( marginPrices); var arg5 = cst_encode_u_32(liquidationAccountId); var arg6 = cst_encode_String(fee); var arg7 = cst_encode_u_16(feeToken); - return wire.wire_Liquidation_new( + return wire.wire__crate__api__Liquidation_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLiquidationNewConstMeta, + constMeta: kCrateApiLiquidationNewConstMeta, argValues: [ accountId, subAccountId, @@ -1650,11 +1553,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { feeToken ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kLiquidationNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiLiquidationNewConstMeta => const TaskConstMeta( debugName: "Liquidation_new", argNames: [ "accountId", @@ -1669,63 +1571,59 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void liquidationSign( - {required Liquidation that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiLiquidationSign( + {required Liquidation that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Liquidation_sign(arg0, arg1); + return wire.wire__crate__api__Liquidation_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLiquidationSignConstMeta, + constMeta: kCrateApiLiquidationSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kLiquidationSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiLiquidationSignConstMeta => const TaskConstMeta( debugName: "Liquidation_sign", argNames: ["that", "zkLinkSigner"], ); @override - String liquidationToJson({required Liquidation that, dynamic hint}) { + String crateApiLiquidationToJson({required Liquidation that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( that); - return wire.wire_Liquidation_to_json(arg0); + return wire.wire__crate__api__Liquidation_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLiquidationToJsonConstMeta, + constMeta: kCrateApiLiquidationToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kLiquidationToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiLiquidationToJsonConstMeta => const TaskConstMeta( debugName: "Liquidation_to_json", argNames: ["that"], ); @override - OrderMatching orderMatchingNew( + OrderMatching crateApiOrderMatchingNew( {required int accountId, required int subAccountId, required Order taker, @@ -1735,37 +1633,36 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required List contractPrices, required List marginPrices, required String expectBaseAmount, - required String expectQuoteAmount, - dynamic hint}) { + required String expectQuoteAmount}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); var arg1 = cst_encode_u_8(subAccountId); var arg2 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( taker); var arg3 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( maker); var arg4 = cst_encode_String(fee); var arg5 = cst_encode_u_32(feeToken); var arg6 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( contractPrices); var arg7 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( marginPrices); var arg8 = cst_encode_String(expectBaseAmount); var arg9 = cst_encode_String(expectQuoteAmount); - return wire.wire_OrderMatching_new( + return wire.wire__crate__api__OrderMatching_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderMatchingNewConstMeta, + constMeta: kCrateApiOrderMatchingNewConstMeta, argValues: [ accountId, subAccountId, @@ -1779,11 +1676,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { expectQuoteAmount ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderMatchingNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderMatchingNewConstMeta => const TaskConstMeta( debugName: "OrderMatching_new", argNames: [ "accountId", @@ -1800,63 +1696,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void orderMatchingSign( - {required OrderMatching that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiOrderMatchingSign( + {required OrderMatching that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_OrderMatching_sign(arg0, arg1); + return wire.wire__crate__api__OrderMatching_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderMatchingSignConstMeta, + constMeta: kCrateApiOrderMatchingSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderMatchingSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderMatchingSignConstMeta => const TaskConstMeta( debugName: "OrderMatching_sign", argNames: ["that", "zkLinkSigner"], ); @override - String orderMatchingToJson({required OrderMatching that, dynamic hint}) { + String crateApiOrderMatchingToJson({required OrderMatching that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( that); - return wire.wire_OrderMatching_to_json(arg0); + return wire.wire__crate__api__OrderMatching_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderMatchingToJsonConstMeta, + constMeta: kCrateApiOrderMatchingToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderMatchingToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderMatchingToJsonConstMeta => + const TaskConstMeta( debugName: "OrderMatching_to_json", argNames: ["that"], ); @override - Order orderNew( + Order crateApiOrderNew( {required int accountId, required int subAccountId, required int slotId, @@ -1868,8 +1761,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required bool isSell, required int makerFeeRate, required int takerFeeRate, - required bool hasSubsidy, - dynamic hint}) { + required bool hasSubsidy}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); @@ -1884,15 +1776,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg9 = cst_encode_u_8(makerFeeRate); var arg10 = cst_encode_u_8(takerFeeRate); var arg11 = cst_encode_bool(hasSubsidy); - return wire.wire_Order_new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, - arg7, arg8, arg9, arg10, arg11); + return wire.wire__crate__api__Order_new(arg0, arg1, arg2, arg3, arg4, + arg5, arg6, arg7, arg8, arg9, arg10, arg11); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderNewConstMeta, + constMeta: kCrateApiOrderNewConstMeta, argValues: [ accountId, subAccountId, @@ -1908,11 +1800,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { hasSubsidy ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderNewConstMeta => const TaskConstMeta( debugName: "Order_new", argNames: [ "accountId", @@ -1931,87 +1822,85 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void orderSign( - {required Order that, required ZkLinkSigner zkLinkSigner, dynamic hint}) { + void crateApiOrderSign( + {required Order that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Order_sign(arg0, arg1); + return wire.wire__crate__api__Order_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderSignConstMeta, + constMeta: kCrateApiOrderSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderSignConstMeta => const TaskConstMeta( debugName: "Order_sign", argNames: ["that", "zkLinkSigner"], ); @override - String orderToJson({required Order that, dynamic hint}) { + String crateApiOrderToJson({required Order that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( that); - return wire.wire_Order_to_json(arg0); + return wire.wire__crate__api__Order_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOrderToJsonConstMeta, + constMeta: kCrateApiOrderToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOrderToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiOrderToJsonConstMeta => const TaskConstMeta( debugName: "Order_to_json", argNames: ["that"], ); @override - Parameter parameterContractInfo( + Parameter crateApiParameterContractInfo( {required int pairId, required String symbol, required int initialMarginRate, - required int maintenanceMarginRate, - dynamic hint}) { + required int maintenanceMarginRate}) { 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); + return wire.wire__crate__api__Parameter_contract_info( + arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParameterContractInfoConstMeta, + constMeta: kCrateApiParameterContractInfoConstMeta, argValues: [pairId, symbol, initialMarginRate, maintenanceMarginRate], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kParameterContractInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiParameterContractInfoConstMeta => + const TaskConstMeta( debugName: "Parameter_contract_info", argNames: [ "pairId", @@ -2022,631 +1911,622 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - Parameter parameterFeeAccount({required int accountId, dynamic hint}) { + Parameter crateApiParameterFeeAccount({required int accountId}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); - return wire.wire_Parameter_fee_account(arg0); + return wire.wire__crate__api__Parameter_fee_account(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParameterFeeAccountConstMeta, + constMeta: kCrateApiParameterFeeAccountConstMeta, argValues: [accountId], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kParameterFeeAccountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiParameterFeeAccountConstMeta => + const TaskConstMeta( debugName: "Parameter_fee_account", argNames: ["accountId"], ); @override - Parameter parameterFundingInfos( - {required List infos, dynamic hint}) { + Parameter crateApiParameterFundingInfos({required List infos}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( infos); - return wire.wire_Parameter_funding_infos(arg0); + return wire.wire__crate__api__Parameter_funding_infos(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParameterFundingInfosConstMeta, + constMeta: kCrateApiParameterFundingInfosConstMeta, argValues: [infos], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kParameterFundingInfosConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiParameterFundingInfosConstMeta => + const TaskConstMeta( debugName: "Parameter_funding_infos", argNames: ["infos"], ); @override - Parameter parameterInsuranceFundAccount( - {required int accountId, dynamic hint}) { + Parameter crateApiParameterInsuranceFundAccount({required int accountId}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); - return wire.wire_Parameter_insurance_fund_account(arg0); + return wire.wire__crate__api__Parameter_insurance_fund_account(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParameterInsuranceFundAccountConstMeta, + constMeta: kCrateApiParameterInsuranceFundAccountConstMeta, argValues: [accountId], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kParameterInsuranceFundAccountConstMeta => + TaskConstMeta get kCrateApiParameterInsuranceFundAccountConstMeta => const TaskConstMeta( debugName: "Parameter_insurance_fund_account", argNames: ["accountId"], ); @override - Parameter parameterMarginInfo( + Parameter crateApiParameterMarginInfo( {required int marginId, String? symbol, required int tokenId, - required int ratio, - dynamic hint}) { + required int ratio}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_8(marginId); var arg1 = cst_encode_opt_String(symbol); var arg2 = cst_encode_u_32(tokenId); var arg3 = cst_encode_u_8(ratio); - return wire.wire_Parameter_margin_info(arg0, arg1, arg2, arg3); + return wire.wire__crate__api__Parameter_margin_info( + arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParameterMarginInfoConstMeta, + constMeta: kCrateApiParameterMarginInfoConstMeta, argValues: [marginId, symbol, tokenId, ratio], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kParameterMarginInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiParameterMarginInfoConstMeta => + const TaskConstMeta( debugName: "Parameter_margin_info", argNames: ["marginId", "symbol", "tokenId", "ratio"], ); @override - Contract signerCreateSignedContract( - {required Signer that, required Contract contract, dynamic hint}) { + Contract crateApiSignerCreateSignedContract( + {required Signer that, required Contract contract}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( contract); - return wire.wire_Signer_create_signed_contract(arg0, arg1); + return wire.wire__crate__api__Signer_create_signed_contract(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerCreateSignedContractConstMeta, + constMeta: kCrateApiSignerCreateSignedContractConstMeta, argValues: [that, contract], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerCreateSignedContractConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerCreateSignedContractConstMeta => + const TaskConstMeta( debugName: "Signer_create_signed_contract", argNames: ["that", "contract"], ); @override - Order signerCreateSignedOrder( - {required Signer that, required Order order, dynamic hint}) { + Order crateApiSignerCreateSignedOrder( + {required Signer that, required Order order}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( order); - return wire.wire_Signer_create_signed_order(arg0, arg1); + return wire.wire__crate__api__Signer_create_signed_order(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerCreateSignedOrderConstMeta, + constMeta: kCrateApiSignerCreateSignedOrderConstMeta, argValues: [that, order], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerCreateSignedOrderConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerCreateSignedOrderConstMeta => + const TaskConstMeta( debugName: "Signer_create_signed_order", argNames: ["that", "order"], ); @override - Signer signerEthSigner({required String ethPrivateKey, dynamic hint}) { + Signer crateApiSignerEthSigner({required String ethPrivateKey}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(ethPrivateKey); - return wire.wire_Signer_eth_signer(arg0); + return wire.wire__crate__api__Signer_eth_signer(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerEthSignerConstMeta, + constMeta: kCrateApiSignerEthSignerConstMeta, argValues: [ethPrivateKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerEthSignerConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerEthSignerConstMeta => const TaskConstMeta( debugName: "Signer_eth_signer", argNames: ["ethPrivateKey"], ); @override - String signerSignAutoDeleveraging( - {required Signer that, required AutoDeleveraging tx, dynamic hint}) { + String crateApiSignerSignAutoDeleveraging( + {required Signer that, required AutoDeleveraging tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( tx); - return wire.wire_Signer_sign_auto_deleveraging(arg0, arg1); + return wire.wire__crate__api__Signer_sign_auto_deleveraging(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignAutoDeleveragingConstMeta, + constMeta: kCrateApiSignerSignAutoDeleveragingConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignAutoDeleveragingConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignAutoDeleveragingConstMeta => + const TaskConstMeta( debugName: "Signer_sign_auto_deleveraging", argNames: ["that", "tx"], ); @override - String signerSignChangePubkeyWithCreate2DataAuth( + String crateApiSignerSignChangePubkeyWithCreate2DataAuth( {required Signer that, required ChangePubKey tx, required String creatorAddress, required String saltArg, - required String codeHash, - dynamic hint}) { + required String codeHash}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( tx); var arg2 = cst_encode_String(creatorAddress); var arg3 = cst_encode_String(saltArg); var arg4 = cst_encode_String(codeHash); - return wire.wire_Signer_sign_change_pubkey_with_create2data_auth( - arg0, arg1, arg2, arg3, arg4); + return wire + .wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth( + arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignChangePubkeyWithCreate2DataAuthConstMeta, + constMeta: kCrateApiSignerSignChangePubkeyWithCreate2DataAuthConstMeta, argValues: [that, tx, creatorAddress, saltArg, codeHash], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignChangePubkeyWithCreate2DataAuthConstMeta => - const TaskConstMeta( - debugName: "Signer_sign_change_pubkey_with_create2data_auth", - argNames: ["that", "tx", "creatorAddress", "saltArg", "codeHash"], - ); + TaskConstMeta + get kCrateApiSignerSignChangePubkeyWithCreate2DataAuthConstMeta => + const TaskConstMeta( + debugName: "Signer_sign_change_pubkey_with_create2data_auth", + argNames: ["that", "tx", "creatorAddress", "saltArg", "codeHash"], + ); @override - String signerSignChangePubkeyWithEthEcdsaAuth( - {required Signer that, required ChangePubKey tx, dynamic hint}) { + String crateApiSignerSignChangePubkeyWithEthEcdsaAuth( + {required Signer that, required ChangePubKey tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( tx); - return wire.wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth( - arg0, arg1); + return wire + .wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth( + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignChangePubkeyWithEthEcdsaAuthConstMeta, + constMeta: kCrateApiSignerSignChangePubkeyWithEthEcdsaAuthConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignChangePubkeyWithEthEcdsaAuthConstMeta => + TaskConstMeta get kCrateApiSignerSignChangePubkeyWithEthEcdsaAuthConstMeta => const TaskConstMeta( debugName: "Signer_sign_change_pubkey_with_eth_ecdsa_auth", argNames: ["that", "tx"], ); @override - String signerSignChangePubkeyWithOnchain( - {required Signer that, required ChangePubKey tx, dynamic hint}) { + String crateApiSignerSignChangePubkeyWithOnchain( + {required Signer that, required ChangePubKey tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( tx); - return wire.wire_Signer_sign_change_pubkey_with_onchain(arg0, arg1); + return wire.wire__crate__api__Signer_sign_change_pubkey_with_onchain( + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignChangePubkeyWithOnchainConstMeta, + constMeta: kCrateApiSignerSignChangePubkeyWithOnchainConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignChangePubkeyWithOnchainConstMeta => + TaskConstMeta get kCrateApiSignerSignChangePubkeyWithOnchainConstMeta => const TaskConstMeta( debugName: "Signer_sign_change_pubkey_with_onchain", argNames: ["that", "tx"], ); @override - String signerSignContractMatching( - {required Signer that, required ContractMatching tx, dynamic hint}) { + String crateApiSignerSignContractMatching( + {required Signer that, required ContractMatching tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( tx); - return wire.wire_Signer_sign_contract_matching(arg0, arg1); + return wire.wire__crate__api__Signer_sign_contract_matching(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignContractMatchingConstMeta, + constMeta: kCrateApiSignerSignContractMatchingConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignContractMatchingConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignContractMatchingConstMeta => + const TaskConstMeta( debugName: "Signer_sign_contract_matching", argNames: ["that", "tx"], ); @override - String signerSignForcedExit( - {required Signer that, required ForcedExit tx, dynamic hint}) { + String crateApiSignerSignForcedExit( + {required Signer that, required ForcedExit tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( tx); - return wire.wire_Signer_sign_forced_exit(arg0, arg1); + return wire.wire__crate__api__Signer_sign_forced_exit(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignForcedExitConstMeta, + constMeta: kCrateApiSignerSignForcedExitConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignForcedExitConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignForcedExitConstMeta => + const TaskConstMeta( debugName: "Signer_sign_forced_exit", argNames: ["that", "tx"], ); @override - String signerSignFunding( - {required Signer that, required Funding tx, dynamic hint}) { + String crateApiSignerSignFunding( + {required Signer that, required Funding tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( tx); - return wire.wire_Signer_sign_funding(arg0, arg1); + return wire.wire__crate__api__Signer_sign_funding(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignFundingConstMeta, + constMeta: kCrateApiSignerSignFundingConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignFundingConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignFundingConstMeta => const TaskConstMeta( debugName: "Signer_sign_funding", argNames: ["that", "tx"], ); @override - String signerSignLiquidation( - {required Signer that, required Liquidation tx, dynamic hint}) { + String crateApiSignerSignLiquidation( + {required Signer that, required Liquidation tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( tx); - return wire.wire_Signer_sign_liquidation(arg0, arg1); + return wire.wire__crate__api__Signer_sign_liquidation(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignLiquidationConstMeta, + constMeta: kCrateApiSignerSignLiquidationConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignLiquidationConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignLiquidationConstMeta => + const TaskConstMeta( debugName: "Signer_sign_liquidation", argNames: ["that", "tx"], ); @override - String signerSignOrderMatching( - {required Signer that, required OrderMatching tx, dynamic hint}) { + String crateApiSignerSignOrderMatching( + {required Signer that, required OrderMatching tx}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( tx); - return wire.wire_Signer_sign_order_matching(arg0, arg1); + return wire.wire__crate__api__Signer_sign_order_matching(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignOrderMatchingConstMeta, + constMeta: kCrateApiSignerSignOrderMatchingConstMeta, argValues: [that, tx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignOrderMatchingConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignOrderMatchingConstMeta => + const TaskConstMeta( debugName: "Signer_sign_order_matching", argNames: ["that", "tx"], ); @override - String signerSignTransfer( + String crateApiSignerSignTransfer( {required Signer that, required Transfer tx, required String tokenSymbol, String? chainId, - String? addr, - dynamic hint}) { + String? addr}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( tx); var arg2 = cst_encode_String(tokenSymbol); var arg3 = cst_encode_opt_String(chainId); var arg4 = cst_encode_opt_String(addr); - return wire.wire_Signer_sign_transfer(arg0, arg1, arg2, arg3, arg4); + return wire.wire__crate__api__Signer_sign_transfer( + arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignTransferConstMeta, + constMeta: kCrateApiSignerSignTransferConstMeta, argValues: [that, tx, tokenSymbol, chainId, addr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignTransferConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignTransferConstMeta => const TaskConstMeta( debugName: "Signer_sign_transfer", argNames: ["that", "tx", "tokenSymbol", "chainId", "addr"], ); @override - String signerSignWithdraw( + String crateApiSignerSignWithdraw( {required Signer that, required Withdraw tx, required String tokenSymbol, String? chainId, - String? addr, - dynamic hint}) { + String? addr}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( tx); var arg2 = cst_encode_String(tokenSymbol); var arg3 = cst_encode_opt_String(chainId); var arg4 = cst_encode_opt_String(addr); - return wire.wire_Signer_sign_withdraw(arg0, arg1, arg2, arg3, arg4); + return wire.wire__crate__api__Signer_sign_withdraw( + arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerSignWithdrawConstMeta, + constMeta: kCrateApiSignerSignWithdrawConstMeta, argValues: [that, tx, tokenSymbol, chainId, addr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerSignWithdrawConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerSignWithdrawConstMeta => const TaskConstMeta( debugName: "Signer_sign_withdraw", argNames: ["that", "tx", "tokenSymbol", "chainId", "addr"], ); @override - Signer signerStarknetSigner( + Signer crateApiSignerStarknetSigner( {required String ethPrivateKey, required String starknetChainId, - required String starknetAddr, - dynamic hint}) { + required String starknetAddr}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(ethPrivateKey); var arg1 = cst_encode_String(starknetChainId); var arg2 = cst_encode_String(starknetAddr); - return wire.wire_Signer_starknet_signer(arg0, arg1, arg2); + return wire.wire__crate__api__Signer_starknet_signer(arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignerStarknetSignerConstMeta, + constMeta: kCrateApiSignerStarknetSignerConstMeta, argValues: [ethPrivateKey, starknetChainId, starknetAddr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSignerStarknetSignerConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSignerStarknetSignerConstMeta => + const TaskConstMeta( debugName: "Signer_starknet_signer", argNames: ["ethPrivateKey", "starknetChainId", "starknetAddr"], ); @override - SpotPriceInfo spotPriceInfoNew( - {required int tokenId, required String price, dynamic hint}) { + SpotPriceInfo crateApiSpotPriceInfoNew( + {required int tokenId, required String price}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(tokenId); var arg1 = cst_encode_String(price); - return wire.wire_SpotPriceInfo_new(arg0, arg1); + return wire.wire__crate__api__SpotPriceInfo_new(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSpotPriceInfoNewConstMeta, + constMeta: kCrateApiSpotPriceInfoNewConstMeta, argValues: [tokenId, price], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kSpotPriceInfoNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiSpotPriceInfoNewConstMeta => const TaskConstMeta( debugName: "SpotPriceInfo_new", argNames: ["tokenId", "price"], ); @override - String transferGetEthSignMsg( - {required Transfer that, required String tokenSymbol, dynamic hint}) { + String crateApiTransferGetEthSignMsg( + {required Transfer that, required String tokenSymbol}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( that); var arg1 = cst_encode_String(tokenSymbol); - return wire.wire_Transfer_get_eth_sign_msg(arg0, arg1); + return wire.wire__crate__api__Transfer_get_eth_sign_msg(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kTransferGetEthSignMsgConstMeta, + constMeta: kCrateApiTransferGetEthSignMsgConstMeta, argValues: [that, tokenSymbol], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTransferGetEthSignMsgConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTransferGetEthSignMsgConstMeta => + const TaskConstMeta( debugName: "Transfer_get_eth_sign_msg", argNames: ["that", "tokenSymbol"], ); @override - Transfer transferNew( + Transfer crateApiTransferNew( {required int accountId, required String toAddress, required int fromSubAccountId, @@ -2655,8 +2535,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String fee, required String amount, required int nonce, - int? ts, - dynamic hint}) { + int? ts}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); @@ -2668,15 +2547,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg6 = cst_encode_String(amount); var arg7 = cst_encode_u_32(nonce); var arg8 = cst_encode_opt_box_autoadd_u_32(ts); - return wire.wire_Transfer_new( + return wire.wire__crate__api__Transfer_new( arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kTransferNewConstMeta, + constMeta: kCrateApiTransferNewConstMeta, argValues: [ accountId, toAddress, @@ -2689,11 +2568,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ts ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTransferNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTransferNewConstMeta => const TaskConstMeta( debugName: "Transfer_new", argNames: [ "accountId", @@ -2709,157 +2587,151 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void transferSign( - {required Transfer that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiTransferSign( + {required Transfer that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Transfer_sign(arg0, arg1); + return wire.wire__crate__api__Transfer_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kTransferSignConstMeta, + constMeta: kCrateApiTransferSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTransferSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTransferSignConstMeta => const TaskConstMeta( debugName: "Transfer_sign", argNames: ["that", "zkLinkSigner"], ); @override - String transferToJson({required Transfer that, dynamic hint}) { + String crateApiTransferToJson({required Transfer that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( that); - return wire.wire_Transfer_to_json(arg0); + return wire.wire__crate__api__Transfer_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kTransferToJsonConstMeta, + constMeta: kCrateApiTransferToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTransferToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTransferToJsonConstMeta => const TaskConstMeta( debugName: "Transfer_to_json", argNames: ["that"], ); @override - UpdateGlobalVar updateGlobalVarNew( + UpdateGlobalVar crateApiUpdateGlobalVarNew( {required int fromChainId, required int subAccountId, required Parameter parameter, - required double serialId, - dynamic hint}) { + required double serialId}) { 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( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( parameter); var arg3 = cst_encode_f_64(serialId); - return wire.wire_UpdateGlobalVar_new(arg0, arg1, arg2, arg3); + return wire.wire__crate__api__UpdateGlobalVar_new( + arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kUpdateGlobalVarNewConstMeta, + constMeta: kCrateApiUpdateGlobalVarNewConstMeta, argValues: [fromChainId, subAccountId, parameter, serialId], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUpdateGlobalVarNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiUpdateGlobalVarNewConstMeta => const TaskConstMeta( debugName: "UpdateGlobalVar_new", argNames: ["fromChainId", "subAccountId", "parameter", "serialId"], ); @override - String updateGlobalVarToJson({required UpdateGlobalVar that, dynamic hint}) { + String crateApiUpdateGlobalVarToJson({required UpdateGlobalVar that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( that); - return wire.wire_UpdateGlobalVar_to_json(arg0); + return wire.wire__crate__api__UpdateGlobalVar_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kUpdateGlobalVarToJsonConstMeta, + constMeta: kCrateApiUpdateGlobalVarToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUpdateGlobalVarToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiUpdateGlobalVarToJsonConstMeta => + const TaskConstMeta( debugName: "UpdateGlobalVar_to_json", argNames: ["that"], ); @override - Future walletApproveErc20( + Future crateApiWalletApproveErc20( {required Wallet that, required String contract, required String amount, - required EthTxOption ethParams, - dynamic hint}) { + required EthTxOption ethParams}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_String(contract); var arg2 = cst_encode_String(amount); var arg3 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); - return wire.wire_Wallet_approve_erc20(port_, arg0, arg1, arg2, arg3); + return wire.wire__crate__api__Wallet_approve_erc20( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletApproveErc20ConstMeta, + constMeta: kCrateApiWalletApproveErc20ConstMeta, argValues: [that, contract, amount, ethParams], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletApproveErc20ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletApproveErc20ConstMeta => const TaskConstMeta( debugName: "Wallet_approve_erc20", argNames: ["that", "contract", "amount", "ethParams"], ); @override - Future walletDepositErc20( + Future crateApiWalletDepositErc20( {required Wallet that, required int subAccountId, required String depositTo, @@ -2867,12 +2739,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required String amount, required bool mapping, required EthTxOption ethParams, - required bool isGateway, - dynamic hint}) { + required bool isGateway}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_u_8(subAccountId); var arg2 = cst_encode_String(depositTo); @@ -2880,17 +2751,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg4 = cst_encode_String(amount); var arg5 = cst_encode_bool(mapping); var arg6 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); var arg7 = cst_encode_bool(isGateway); - return wire.wire_Wallet_deposit_erc20( + return wire.wire__crate__api__Wallet_deposit_erc20( port_, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletDepositErc20ConstMeta, + constMeta: kCrateApiWalletDepositErc20ConstMeta, argValues: [ that, subAccountId, @@ -2902,11 +2773,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { isGateway ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletDepositErc20ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletDepositErc20ConstMeta => const TaskConstMeta( debugName: "Wallet_deposit_erc20", argNames: [ "that", @@ -2921,39 +2791,37 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - Future walletDepositEth( + Future crateApiWalletDepositEth( {required Wallet that, required int subAccountId, required String depositTo, required EthTxOption ethParams, - required bool isGateway, - dynamic hint}) { + required bool isGateway}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_u_8(subAccountId); var arg2 = cst_encode_String(depositTo); var arg3 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); var arg4 = cst_encode_bool(isGateway); - return wire.wire_Wallet_deposit_eth( + return wire.wire__crate__api__Wallet_deposit_eth( port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletDepositEthConstMeta, + constMeta: kCrateApiWalletDepositEthConstMeta, argValues: [that, subAccountId, depositTo, ethParams, isGateway], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletDepositEthConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletDepositEthConstMeta => const TaskConstMeta( debugName: "Wallet_deposit_eth", argNames: [ "that", @@ -2965,41 +2833,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - Future walletFullExit( + Future crateApiWalletFullExit( {required Wallet that, required int accountId, required int subAccountId, required int tokenId, required bool mapping, - required EthTxOption ethParams, - dynamic hint}) { + required EthTxOption ethParams}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_u_32(accountId); var arg2 = cst_encode_u_8(subAccountId); var arg3 = cst_encode_u_16(tokenId); var arg4 = cst_encode_bool(mapping); var arg5 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); - return wire.wire_Wallet_full_exit( + return wire.wire__crate__api__Wallet_full_exit( port_, arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletFullExitConstMeta, + constMeta: kCrateApiWalletFullExitConstMeta, argValues: [that, accountId, subAccountId, tokenId, mapping, ethParams], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletFullExitConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletFullExitConstMeta => const TaskConstMeta( debugName: "Wallet_full_exit", argNames: [ "that", @@ -3012,208 +2878,201 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - Future walletGetBalance({required Wallet that, dynamic hint}) { + Future crateApiWalletGetBalance({required Wallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); - return wire.wire_Wallet_get_balance(port_, arg0); + return wire.wire__crate__api__Wallet_get_balance(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletGetBalanceConstMeta, + constMeta: kCrateApiWalletGetBalanceConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletGetBalanceConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletGetBalanceConstMeta => const TaskConstMeta( debugName: "Wallet_get_balance", argNames: ["that"], ); @override - Future walletGetDepositFee( - {required Wallet that, required EthTxOption ethParams, dynamic hint}) { + Future crateApiWalletGetDepositFee( + {required Wallet that, required EthTxOption ethParams}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); - return wire.wire_Wallet_get_deposit_fee(port_, arg0, arg1); + return wire.wire__crate__api__Wallet_get_deposit_fee(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletGetDepositFeeConstMeta, + constMeta: kCrateApiWalletGetDepositFeeConstMeta, argValues: [that, ethParams], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletGetDepositFeeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletGetDepositFeeConstMeta => + const TaskConstMeta( debugName: "Wallet_get_deposit_fee", argNames: ["that", "ethParams"], ); @override - Future walletGetNonce( - {required Wallet that, required String blockNumber, dynamic hint}) { + Future crateApiWalletGetNonce( + {required Wallet that, required String blockNumber}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_String(blockNumber); - return wire.wire_Wallet_get_nonce(port_, arg0, arg1); + return wire.wire__crate__api__Wallet_get_nonce(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_f_64, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletGetNonceConstMeta, + constMeta: kCrateApiWalletGetNonceConstMeta, argValues: [that, blockNumber], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletGetNonceConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletGetNonceConstMeta => const TaskConstMeta( debugName: "Wallet_get_nonce", argNames: ["that", "blockNumber"], ); @override - Wallet walletNew( - {required String url, required String privateKey, dynamic hint}) { + Wallet crateApiWalletNew({required String url, required String privateKey}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(url); var arg1 = cst_encode_String(privateKey); - return wire.wire_Wallet_new(arg0, arg1); + return wire.wire__crate__api__Wallet_new(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletNewConstMeta, + constMeta: kCrateApiWalletNewConstMeta, argValues: [url, privateKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletNewConstMeta => const TaskConstMeta( debugName: "Wallet_new", argNames: ["url", "privateKey"], ); @override - Future walletSetAuthPubkeyHash( + Future crateApiWalletSetAuthPubkeyHash( {required Wallet that, required double nonce, required String newPubkeyHash, - required EthTxOption ethParams, - dynamic hint}) { + required EthTxOption ethParams}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_f_64(nonce); var arg2 = cst_encode_String(newPubkeyHash); var arg3 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ethParams); - return wire.wire_Wallet_set_auth_pubkey_hash( + return wire.wire__crate__api__Wallet_set_auth_pubkey_hash( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletSetAuthPubkeyHashConstMeta, + constMeta: kCrateApiWalletSetAuthPubkeyHashConstMeta, argValues: [that, nonce, newPubkeyHash, ethParams], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletSetAuthPubkeyHashConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletSetAuthPubkeyHashConstMeta => + const TaskConstMeta( debugName: "Wallet_set_auth_pubkey_hash", argNames: ["that", "nonce", "newPubkeyHash", "ethParams"], ); @override - Future walletWaitForTransaction( - {required Wallet that, - required String txHash, - int? timeout, - dynamic hint}) { + Future crateApiWalletWaitForTransaction( + {required Wallet that, required String txHash, int? timeout}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( that); var arg1 = cst_encode_String(txHash); var arg2 = cst_encode_opt_box_autoadd_u_32(timeout); - return wire.wire_Wallet_wait_for_transaction(port_, arg0, arg1, arg2); + return wire.wire__crate__api__Wallet_wait_for_transaction( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_8, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWalletWaitForTransactionConstMeta, + constMeta: kCrateApiWalletWaitForTransactionConstMeta, argValues: [that, txHash, timeout], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWalletWaitForTransactionConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletWaitForTransactionConstMeta => + const TaskConstMeta( debugName: "Wallet_wait_for_transaction", argNames: ["that", "txHash", "timeout"], ); @override - String withdrawGetEthSignMsg( - {required Withdraw that, required String tokenSymbol, dynamic hint}) { + String crateApiWithdrawGetEthSignMsg( + {required Withdraw that, required String tokenSymbol}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( that); var arg1 = cst_encode_String(tokenSymbol); - return wire.wire_Withdraw_get_eth_sign_msg(arg0, arg1); + return wire.wire__crate__api__Withdraw_get_eth_sign_msg(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kWithdrawGetEthSignMsgConstMeta, + constMeta: kCrateApiWithdrawGetEthSignMsgConstMeta, argValues: [that, tokenSymbol], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWithdrawGetEthSignMsgConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWithdrawGetEthSignMsgConstMeta => + const TaskConstMeta( debugName: "Withdraw_get_eth_sign_msg", argNames: ["that", "tokenSymbol"], ); @override - Withdraw withdrawNew( + Withdraw crateApiWithdrawNew( {required int accountId, required int subAccountId, required int toChainId, @@ -3226,8 +3085,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required int nonce, required bool withdrawToL1, required int withdrawFeeRatio, - int? ts, - dynamic hint}) { + int? ts}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_u_32(accountId); @@ -3243,15 +3101,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var arg10 = cst_encode_bool(withdrawToL1); var arg11 = cst_encode_u_16(withdrawFeeRatio); var arg12 = cst_encode_opt_box_autoadd_u_32(ts); - return wire.wire_Withdraw_new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, - arg7, arg8, arg9, arg10, arg11, arg12); + return wire.wire__crate__api__Withdraw_new(arg0, arg1, arg2, arg3, arg4, + arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWithdrawNewConstMeta, + constMeta: kCrateApiWithdrawNewConstMeta, argValues: [ accountId, subAccountId, @@ -3268,11 +3126,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ts ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWithdrawNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWithdrawNewConstMeta => const TaskConstMeta( debugName: "Withdraw_new", argNames: [ "accountId", @@ -3292,519 +3149,510 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - void withdrawSign( - {required Withdraw that, - required ZkLinkSigner zkLinkSigner, - dynamic hint}) { + void crateApiWithdrawSign( + {required Withdraw that, required ZkLinkSigner zkLinkSigner}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( that); var arg1 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( zkLinkSigner); - return wire.wire_Withdraw_sign(arg0, arg1); + return wire.wire__crate__api__Withdraw_sign(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWithdrawSignConstMeta, + constMeta: kCrateApiWithdrawSignConstMeta, argValues: [that, zkLinkSigner], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWithdrawSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWithdrawSignConstMeta => const TaskConstMeta( debugName: "Withdraw_sign", argNames: ["that", "zkLinkSigner"], ); @override - String withdrawToJson({required Withdraw that, dynamic hint}) { + String crateApiWithdrawToJson({required Withdraw that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( that); - return wire.wire_Withdraw_to_json(arg0); + return wire.wire__crate__api__Withdraw_to_json(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kWithdrawToJsonConstMeta, + constMeta: kCrateApiWithdrawToJsonConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kWithdrawToJsonConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWithdrawToJsonConstMeta => const TaskConstMeta( debugName: "Withdraw_to_json", argNames: ["that"], ); @override - String zkLinkSignatureGetPubkey( - {required ZkLinkSignature that, dynamic hint}) { + String crateApiZkLinkSignatureGetPubkey({required ZkLinkSignature that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( that); - return wire.wire_ZkLinkSignature_get_pubkey(arg0); + return wire.wire__crate__api__ZkLinkSignature_get_pubkey(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kZkLinkSignatureGetPubkeyConstMeta, + constMeta: kCrateApiZkLinkSignatureGetPubkeyConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignatureGetPubkeyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignatureGetPubkeyConstMeta => + const TaskConstMeta( debugName: "ZkLinkSignature_get_pubkey", argNames: ["that"], ); @override - String zkLinkSignatureGetSignature( - {required ZkLinkSignature that, dynamic hint}) { + String crateApiZkLinkSignatureGetSignature({required ZkLinkSignature that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( that); - return wire.wire_ZkLinkSignature_get_signature(arg0); + return wire.wire__crate__api__ZkLinkSignature_get_signature(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kZkLinkSignatureGetSignatureConstMeta, + constMeta: kCrateApiZkLinkSignatureGetSignatureConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignatureGetSignatureConstMeta => + TaskConstMeta get kCrateApiZkLinkSignatureGetSignatureConstMeta => const TaskConstMeta( debugName: "ZkLinkSignature_get_signature", argNames: ["that"], ); @override - ZkLinkSigner zkLinkSignerEthSig({required String sig, dynamic hint}) { + ZkLinkSigner crateApiZkLinkSignerEthSig({required String sig}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(sig); - return wire.wire_ZkLinkSigner_eth_sig(arg0); + return wire.wire__crate__api__ZkLinkSigner_eth_sig(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kZkLinkSignerEthSigConstMeta, + constMeta: kCrateApiZkLinkSignerEthSigConstMeta, argValues: [sig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignerEthSigConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignerEthSigConstMeta => const TaskConstMeta( debugName: "ZkLinkSigner_eth_sig", argNames: ["sig"], ); @override - String zkLinkSignerGetPubkey({required ZkLinkSigner that, dynamic hint}) { + String crateApiZkLinkSignerGetPubkey({required ZkLinkSigner that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( that); - return wire.wire_ZkLinkSigner_get_pubkey(arg0); + return wire.wire__crate__api__ZkLinkSigner_get_pubkey(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kZkLinkSignerGetPubkeyConstMeta, + constMeta: kCrateApiZkLinkSignerGetPubkeyConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignerGetPubkeyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignerGetPubkeyConstMeta => + const TaskConstMeta( debugName: "ZkLinkSigner_get_pubkey", argNames: ["that"], ); @override - String zkLinkSignerGetPubkeyHash({required ZkLinkSigner that, dynamic hint}) { + String crateApiZkLinkSignerGetPubkeyHash({required ZkLinkSigner that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( that); - return wire.wire_ZkLinkSigner_get_pubkey_hash(arg0); + return wire.wire__crate__api__ZkLinkSigner_get_pubkey_hash(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kZkLinkSignerGetPubkeyHashConstMeta, + constMeta: kCrateApiZkLinkSignerGetPubkeyHashConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignerGetPubkeyHashConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignerGetPubkeyHashConstMeta => + const TaskConstMeta( debugName: "ZkLinkSigner_get_pubkey_hash", argNames: ["that"], ); @override - ZkLinkSignature zkLinkSignerSignMusig( - {required ZkLinkSigner that, required List msg, dynamic hint}) { + ZkLinkSignature crateApiZkLinkSignerSignMusig( + {required ZkLinkSigner that, required List msg}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( that); var arg1 = cst_encode_list_prim_u_8_loose(msg); - return wire.wire_ZkLinkSigner_sign_musig(arg0, arg1); + return wire.wire__crate__api__ZkLinkSigner_sign_musig(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kZkLinkSignerSignMusigConstMeta, + constMeta: kCrateApiZkLinkSignerSignMusigConstMeta, argValues: [that, msg], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignerSignMusigConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignerSignMusigConstMeta => + const TaskConstMeta( debugName: "ZkLinkSigner_sign_musig", argNames: ["that", "msg"], ); @override - ZkLinkSigner zkLinkSignerStarknetSig({required String sig, dynamic hint}) { + ZkLinkSigner crateApiZkLinkSignerStarknetSig({required String sig}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(sig); - return wire.wire_ZkLinkSigner_starknet_sig(arg0); + return wire.wire__crate__api__ZkLinkSigner_starknet_sig(arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kZkLinkSignerStarknetSigConstMeta, + constMeta: kCrateApiZkLinkSignerStarknetSigConstMeta, argValues: [sig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kZkLinkSignerStarknetSigConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiZkLinkSignerStarknetSigConstMeta => + const TaskConstMeta( debugName: "ZkLinkSigner_starknet_sig", argNames: ["sig"], ); @override - String closestPackableFeeAmount({required String fee, dynamic hint}) { + String crateApiClosestPackableFeeAmount({required String fee}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(fee); - return wire.wire_closest_packable_fee_amount(arg0); + return wire.wire__crate__api__closest_packable_fee_amount(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kClosestPackableFeeAmountConstMeta, + constMeta: kCrateApiClosestPackableFeeAmountConstMeta, argValues: [fee], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kClosestPackableFeeAmountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiClosestPackableFeeAmountConstMeta => + const TaskConstMeta( debugName: "closest_packable_fee_amount", argNames: ["fee"], ); @override - String closestPackableTokenAmount({required String amount, dynamic hint}) { + String crateApiClosestPackableTokenAmount({required String amount}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(amount); - return wire.wire_closest_packable_token_amount(arg0); + return wire.wire__crate__api__closest_packable_token_amount(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kClosestPackableTokenAmountConstMeta, + constMeta: kCrateApiClosestPackableTokenAmountConstMeta, argValues: [amount], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kClosestPackableTokenAmountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiClosestPackableTokenAmountConstMeta => + const TaskConstMeta( debugName: "closest_packable_token_amount", argNames: ["amount"], ); @override - Future initApp({dynamic hint}) { + Future crateApiInitApp() { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_init_app(port_); + return wire.wire__crate__api__init_app(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: null, ), - constMeta: kInitAppConstMeta, + constMeta: kCrateApiInitAppConstMeta, argValues: [], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kInitAppConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiInitAppConstMeta => const TaskConstMeta( debugName: "init_app", argNames: [], ); @override - bool isFeeAmountPackable({required String fee, dynamic hint}) { + bool crateApiIsFeeAmountPackable({required String fee}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(fee); - return wire.wire_is_fee_amount_packable(arg0); + return wire.wire__crate__api__is_fee_amount_packable(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kIsFeeAmountPackableConstMeta, + constMeta: kCrateApiIsFeeAmountPackableConstMeta, argValues: [fee], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kIsFeeAmountPackableConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiIsFeeAmountPackableConstMeta => + const TaskConstMeta( debugName: "is_fee_amount_packable", argNames: ["fee"], ); @override - bool isTokenAmountPackable({required String amount, dynamic hint}) { + bool crateApiIsTokenAmountPackable({required String amount}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = cst_encode_String(amount); - return wire.wire_is_token_amount_packable(arg0); + return wire.wire__crate__api__is_token_amount_packable(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kIsTokenAmountPackableConstMeta, + constMeta: kCrateApiIsTokenAmountPackableConstMeta, argValues: [amount], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kIsTokenAmountPackableConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiIsTokenAmountPackableConstMeta => + const TaskConstMeta( debugName: "is_token_amount_packable", argNames: ["amount"], ); RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_AutoDeleveraging => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_AutoDeleveraging => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ChangePubKey => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ChangePubKey => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Contract => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Contract => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ContractMatching => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ContractMatching => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ContractPrice => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ContractPrice => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_EthTxOption => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_EthTxOption => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ForcedExit => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ForcedExit => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Funding => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Funding => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_FundingInfo => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_FundingInfo => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Liquidation => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Liquidation => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Order => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder; + wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Order => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder; + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_OrderMatching => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_OrderMatching => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Parameter => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Parameter => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Signer => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Signer => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SpotPriceInfo => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_SpotPriceInfo => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Transfer => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Transfer => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_UpdateGlobalVar => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_UpdateGlobalVar => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Wallet => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Wallet => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Withdraw => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Withdraw => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ZkLinkSignature => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ZkLinkSignature => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ZkLinkSigner => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner; + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner; RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_ZkLinkSigner => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner; + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner; @protected AnyhowException dco_decode_AnyhowException(dynamic raw) { @@ -3814,554 +3662,554 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected AutoDeleveraging - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AutoDeleveraging.dcoDecode(raw as List); + return AutoDeleveragingImpl.frbInternalDcoDecode(raw as List); } @protected ChangePubKey - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ChangePubKey.dcoDecode(raw as List); + return ChangePubKeyImpl.frbInternalDcoDecode(raw as List); } @protected Contract - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Contract.dcoDecode(raw as List); + return ContractImpl.frbInternalDcoDecode(raw as List); } @protected ContractMatching - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractMatching.dcoDecode(raw as List); + return ContractMatchingImpl.frbInternalDcoDecode(raw as List); } @protected ContractPrice - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractPrice.dcoDecode(raw as List); + return ContractPriceImpl.frbInternalDcoDecode(raw as List); } @protected EthTxOption - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return EthTxOption.dcoDecode(raw as List); + return EthTxOptionImpl.frbInternalDcoDecode(raw as List); } @protected ForcedExit - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ForcedExit.dcoDecode(raw as List); + return ForcedExitImpl.frbInternalDcoDecode(raw as List); } @protected Funding - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Funding.dcoDecode(raw as List); + return FundingImpl.frbInternalDcoDecode(raw as List); } @protected FundingInfo - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return FundingInfo.dcoDecode(raw as List); + return FundingInfoImpl.frbInternalDcoDecode(raw as List); } @protected Liquidation - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Liquidation.dcoDecode(raw as List); + return LiquidationImpl.frbInternalDcoDecode(raw as List); } @protected Order - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Order.dcoDecode(raw as List); + return OrderImpl.frbInternalDcoDecode(raw as List); } @protected OrderMatching - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return OrderMatching.dcoDecode(raw as List); + return OrderMatchingImpl.frbInternalDcoDecode(raw as List); } @protected Parameter - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Parameter.dcoDecode(raw as List); + return ParameterImpl.frbInternalDcoDecode(raw as List); } @protected Signer - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Signer.dcoDecode(raw as List); + return SignerImpl.frbInternalDcoDecode(raw as List); } @protected SpotPriceInfo - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return SpotPriceInfo.dcoDecode(raw as List); + return SpotPriceInfoImpl.frbInternalDcoDecode(raw as List); } @protected Transfer - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Transfer.dcoDecode(raw as List); + return TransferImpl.frbInternalDcoDecode(raw as List); } @protected UpdateGlobalVar - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return UpdateGlobalVar.dcoDecode(raw as List); + return UpdateGlobalVarImpl.frbInternalDcoDecode(raw as List); } @protected Wallet - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Wallet.dcoDecode(raw as List); + return WalletImpl.frbInternalDcoDecode(raw as List); } @protected Withdraw - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Withdraw.dcoDecode(raw as List); + return WithdrawImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSignature - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSignature.dcoDecode(raw as List); + return ZkLinkSignatureImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSigner - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSigner.dcoDecode(raw as List); + return ZkLinkSignerImpl.frbInternalDcoDecode(raw as List); } @protected AutoDeleveraging - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AutoDeleveraging.dcoDecode(raw as List); + return AutoDeleveragingImpl.frbInternalDcoDecode(raw as List); } @protected ChangePubKey - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ChangePubKey.dcoDecode(raw as List); + return ChangePubKeyImpl.frbInternalDcoDecode(raw as List); } @protected Contract - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Contract.dcoDecode(raw as List); + return ContractImpl.frbInternalDcoDecode(raw as List); } @protected ContractMatching - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractMatching.dcoDecode(raw as List); + return ContractMatchingImpl.frbInternalDcoDecode(raw as List); } @protected ForcedExit - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ForcedExit.dcoDecode(raw as List); + return ForcedExitImpl.frbInternalDcoDecode(raw as List); } @protected Funding - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Funding.dcoDecode(raw as List); + return FundingImpl.frbInternalDcoDecode(raw as List); } @protected Liquidation - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Liquidation.dcoDecode(raw as List); + return LiquidationImpl.frbInternalDcoDecode(raw as List); } @protected Order - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Order.dcoDecode(raw as List); + return OrderImpl.frbInternalDcoDecode(raw as List); } @protected OrderMatching - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return OrderMatching.dcoDecode(raw as List); + return OrderMatchingImpl.frbInternalDcoDecode(raw as List); } @protected Transfer - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Transfer.dcoDecode(raw as List); + return TransferImpl.frbInternalDcoDecode(raw as List); } @protected Withdraw - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Withdraw.dcoDecode(raw as List); + return WithdrawImpl.frbInternalDcoDecode(raw as List); } @protected AutoDeleveraging - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AutoDeleveraging.dcoDecode(raw as List); + return AutoDeleveragingImpl.frbInternalDcoDecode(raw as List); } @protected ChangePubKey - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ChangePubKey.dcoDecode(raw as List); + return ChangePubKeyImpl.frbInternalDcoDecode(raw as List); } @protected Contract - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Contract.dcoDecode(raw as List); + return ContractImpl.frbInternalDcoDecode(raw as List); } @protected ContractMatching - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractMatching.dcoDecode(raw as List); + return ContractMatchingImpl.frbInternalDcoDecode(raw as List); } @protected ForcedExit - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ForcedExit.dcoDecode(raw as List); + return ForcedExitImpl.frbInternalDcoDecode(raw as List); } @protected Funding - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Funding.dcoDecode(raw as List); + return FundingImpl.frbInternalDcoDecode(raw as List); } @protected Liquidation - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Liquidation.dcoDecode(raw as List); + return LiquidationImpl.frbInternalDcoDecode(raw as List); } @protected Order - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Order.dcoDecode(raw as List); + return OrderImpl.frbInternalDcoDecode(raw as List); } @protected OrderMatching - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return OrderMatching.dcoDecode(raw as List); + return OrderMatchingImpl.frbInternalDcoDecode(raw as List); } @protected Signer - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Signer.dcoDecode(raw as List); + return SignerImpl.frbInternalDcoDecode(raw as List); } @protected Transfer - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Transfer.dcoDecode(raw as List); + return TransferImpl.frbInternalDcoDecode(raw as List); } @protected UpdateGlobalVar - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return UpdateGlobalVar.dcoDecode(raw as List); + return UpdateGlobalVarImpl.frbInternalDcoDecode(raw as List); } @protected Wallet - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Wallet.dcoDecode(raw as List); + return WalletImpl.frbInternalDcoDecode(raw as List); } @protected Withdraw - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Withdraw.dcoDecode(raw as List); + return WithdrawImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSignature - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSignature.dcoDecode(raw as List); + return ZkLinkSignatureImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSigner - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSigner.dcoDecode(raw as List); + return ZkLinkSignerImpl.frbInternalDcoDecode(raw as List); } @protected AutoDeleveraging - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AutoDeleveraging.dcoDecode(raw as List); + return AutoDeleveragingImpl.frbInternalDcoDecode(raw as List); } @protected ChangePubKey - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ChangePubKey.dcoDecode(raw as List); + return ChangePubKeyImpl.frbInternalDcoDecode(raw as List); } @protected Contract - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Contract.dcoDecode(raw as List); + return ContractImpl.frbInternalDcoDecode(raw as List); } @protected ContractMatching - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractMatching.dcoDecode(raw as List); + return ContractMatchingImpl.frbInternalDcoDecode(raw as List); } @protected ContractPrice - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ContractPrice.dcoDecode(raw as List); + return ContractPriceImpl.frbInternalDcoDecode(raw as List); } @protected EthTxOption - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return EthTxOption.dcoDecode(raw as List); + return EthTxOptionImpl.frbInternalDcoDecode(raw as List); } @protected ForcedExit - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ForcedExit.dcoDecode(raw as List); + return ForcedExitImpl.frbInternalDcoDecode(raw as List); } @protected Funding - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Funding.dcoDecode(raw as List); + return FundingImpl.frbInternalDcoDecode(raw as List); } @protected FundingInfo - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return FundingInfo.dcoDecode(raw as List); + return FundingInfoImpl.frbInternalDcoDecode(raw as List); } @protected Liquidation - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Liquidation.dcoDecode(raw as List); + return LiquidationImpl.frbInternalDcoDecode(raw as List); } @protected Order - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Order.dcoDecode(raw as List); + return OrderImpl.frbInternalDcoDecode(raw as List); } @protected OrderMatching - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return OrderMatching.dcoDecode(raw as List); + return OrderMatchingImpl.frbInternalDcoDecode(raw as List); } @protected Parameter - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Parameter.dcoDecode(raw as List); + return ParameterImpl.frbInternalDcoDecode(raw as List); } @protected Signer - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Signer.dcoDecode(raw as List); + return SignerImpl.frbInternalDcoDecode(raw as List); } @protected SpotPriceInfo - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return SpotPriceInfo.dcoDecode(raw as List); + return SpotPriceInfoImpl.frbInternalDcoDecode(raw as List); } @protected Transfer - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Transfer.dcoDecode(raw as List); + return TransferImpl.frbInternalDcoDecode(raw as List); } @protected UpdateGlobalVar - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return UpdateGlobalVar.dcoDecode(raw as List); + return UpdateGlobalVarImpl.frbInternalDcoDecode(raw as List); } @protected Wallet - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Wallet.dcoDecode(raw as List); + return WalletImpl.frbInternalDcoDecode(raw as List); } @protected Withdraw - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Withdraw.dcoDecode(raw as List); + return WithdrawImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSignature - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSignature.dcoDecode(raw as List); + return ZkLinkSignatureImpl.frbInternalDcoDecode(raw as List); } @protected ZkLinkSigner - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ZkLinkSigner.dcoDecode(raw as List); + return ZkLinkSignerImpl.frbInternalDcoDecode(raw as List); } @protected @@ -4402,45 +4250,45 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return (raw as List) .map( - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract) + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract) .toList(); } @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return (raw as List) .map( - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice) + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice) .toList(); } @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return (raw as List) .map( - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo) + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo) .toList(); } @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return (raw as List) .map( - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo) + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo) .toList(); } @@ -4511,9 +4359,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - int dco_decode_usize(dynamic raw) { + BigInt dco_decode_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeU64(raw); } @protected @@ -4525,622 +4373,622 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected AutoDeleveraging - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AutoDeleveraging.sseDecode( + return AutoDeleveragingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ChangePubKey - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ChangePubKey.sseDecode( + return ChangePubKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Contract - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Contract.sseDecode( + return ContractImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractMatching - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractMatching.sseDecode( + return ContractMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractPrice - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractPrice.sseDecode( + return ContractPriceImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected EthTxOption - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return EthTxOption.sseDecode( + return EthTxOptionImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ForcedExit - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ForcedExit.sseDecode( + return ForcedExitImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Funding - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Funding.sseDecode( + return FundingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected FundingInfo - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return FundingInfo.sseDecode( + return FundingInfoImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Liquidation - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Liquidation.sseDecode( + return LiquidationImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Order - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Order.sseDecode( + return OrderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected OrderMatching - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return OrderMatching.sseDecode( + return OrderMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Parameter - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Parameter.sseDecode( + return ParameterImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Signer - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Signer.sseDecode( + return SignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected SpotPriceInfo - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return SpotPriceInfo.sseDecode( + return SpotPriceInfoImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Transfer - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Transfer.sseDecode( + return TransferImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected UpdateGlobalVar - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return UpdateGlobalVar.sseDecode( + return UpdateGlobalVarImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Wallet - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Wallet.sseDecode( + return WalletImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Withdraw - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Withdraw.sseDecode( + return WithdrawImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSignature - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSignature.sseDecode( + return ZkLinkSignatureImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSigner - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSigner.sseDecode( + return ZkLinkSignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected AutoDeleveraging - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AutoDeleveraging.sseDecode( + return AutoDeleveragingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ChangePubKey - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ChangePubKey.sseDecode( + return ChangePubKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Contract - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Contract.sseDecode( + return ContractImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractMatching - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractMatching.sseDecode( + return ContractMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ForcedExit - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ForcedExit.sseDecode( + return ForcedExitImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Funding - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Funding.sseDecode( + return FundingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Liquidation - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Liquidation.sseDecode( + return LiquidationImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Order - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Order.sseDecode( + return OrderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected OrderMatching - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return OrderMatching.sseDecode( + return OrderMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Transfer - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Transfer.sseDecode( + return TransferImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Withdraw - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Withdraw.sseDecode( + return WithdrawImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected AutoDeleveraging - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AutoDeleveraging.sseDecode( + return AutoDeleveragingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ChangePubKey - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ChangePubKey.sseDecode( + return ChangePubKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Contract - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Contract.sseDecode( + return ContractImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractMatching - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractMatching.sseDecode( + return ContractMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ForcedExit - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ForcedExit.sseDecode( + return ForcedExitImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Funding - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Funding.sseDecode( + return FundingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Liquidation - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Liquidation.sseDecode( + return LiquidationImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Order - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Order.sseDecode( + return OrderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected OrderMatching - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return OrderMatching.sseDecode( + return OrderMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Signer - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Signer.sseDecode( + return SignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Transfer - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Transfer.sseDecode( + return TransferImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected UpdateGlobalVar - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return UpdateGlobalVar.sseDecode( + return UpdateGlobalVarImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Wallet - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Wallet.sseDecode( + return WalletImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Withdraw - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Withdraw.sseDecode( + return WithdrawImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSignature - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSignature.sseDecode( + return ZkLinkSignatureImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSigner - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSigner.sseDecode( + return ZkLinkSignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected AutoDeleveraging - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AutoDeleveraging.sseDecode( + return AutoDeleveragingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ChangePubKey - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ChangePubKey.sseDecode( + return ChangePubKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Contract - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Contract.sseDecode( + return ContractImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractMatching - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractMatching.sseDecode( + return ContractMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ContractPrice - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ContractPrice.sseDecode( + return ContractPriceImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected EthTxOption - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return EthTxOption.sseDecode( + return EthTxOptionImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ForcedExit - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ForcedExit.sseDecode( + return ForcedExitImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Funding - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Funding.sseDecode( + return FundingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected FundingInfo - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return FundingInfo.sseDecode( + return FundingInfoImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Liquidation - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Liquidation.sseDecode( + return LiquidationImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Order - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Order.sseDecode( + return OrderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected OrderMatching - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return OrderMatching.sseDecode( + return OrderMatchingImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Parameter - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Parameter.sseDecode( + return ParameterImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Signer - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Signer.sseDecode( + return SignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected SpotPriceInfo - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return SpotPriceInfo.sseDecode( + return SpotPriceInfoImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Transfer - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Transfer.sseDecode( + return TransferImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected UpdateGlobalVar - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return UpdateGlobalVar.sseDecode( + return UpdateGlobalVarImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Wallet - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Wallet.sseDecode( + return WalletImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected Withdraw - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return Withdraw.sseDecode( + return WithdrawImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSignature - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSignature.sseDecode( + return ZkLinkSignatureImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected ZkLinkSigner - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ZkLinkSigner.sseDecode( + return ZkLinkSignerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -5183,7 +5031,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5191,7 +5039,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var ans_ = []; for (var idx_ = 0; idx_ < len_; ++idx_) { ans_.add( - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( deserializer)); } return ans_; @@ -5199,7 +5047,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5207,7 +5055,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var ans_ = []; for (var idx_ = 0; idx_ < len_; ++idx_) { ans_.add( - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( deserializer)); } return ans_; @@ -5215,7 +5063,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5223,7 +5071,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var ans_ = []; for (var idx_ = 0; idx_ < len_; ++idx_) { ans_.add( - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( deserializer)); } return ans_; @@ -5231,7 +5079,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5239,7 +5087,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var ans_ = []; for (var idx_ = 0; idx_ < len_; ++idx_) { ans_.add( - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( deserializer)); } return ans_; @@ -5330,9 +5178,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - int sse_decode_usize(SseDeserializer deserializer) { + BigInt sse_decode_usize(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5342,555 +5190,555 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as AutoDeleveragingImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ChangePubKeyImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ContractImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ContractMatchingImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ContractPriceImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as EthTxOptionImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ForcedExitImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as FundingImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as FundingInfoImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as LiquidationImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as OrderImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as OrderMatchingImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ParameterImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as SignerImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as SpotPriceInfoImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as TransferImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as UpdateGlobalVarImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as WalletImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as WithdrawImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ZkLinkSignatureImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: true); + return (raw as ZkLinkSignerImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as AutoDeleveragingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ChangePubKeyImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ContractImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ContractMatchingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ForcedExitImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as FundingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as LiquidationImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as OrderImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as OrderMatchingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as TransferImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as WithdrawImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as AutoDeleveragingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ChangePubKeyImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ContractImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ContractMatchingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ForcedExitImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as FundingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as LiquidationImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as OrderImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as OrderMatchingImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as SignerImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as TransferImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as UpdateGlobalVarImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as WalletImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as WithdrawImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ZkLinkSignatureImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(move: false); + return (raw as ZkLinkSignerImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as AutoDeleveragingImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ChangePubKeyImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ContractImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ContractMatchingImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ContractPriceImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as EthTxOptionImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ForcedExitImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as FundingImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as FundingInfoImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as LiquidationImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as OrderImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as OrderMatchingImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ParameterImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as SignerImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as SpotPriceInfoImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as TransferImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as UpdateGlobalVarImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as WalletImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as WithdrawImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ZkLinkSignatureImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ZkLinkSignerImpl).frbInternalCstEncode(); } @protected @@ -5935,569 +5783,663 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return raw; } - @protected - int cst_encode_usize(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - @protected void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - throw UnimplementedError('Unreachable ()'); + sse_encode_String(self.message, serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as AutoDeleveragingImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ChangePubKeyImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ContractImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ContractMatchingImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ContractPriceImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as EthTxOptionImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ForcedExitImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as FundingImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as FundingInfoImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as LiquidationImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as OrderImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as OrderMatchingImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ParameterImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as SignerImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as SpotPriceInfoImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as TransferImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as UpdateGlobalVarImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as WalletImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as WithdrawImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ZkLinkSignatureImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: true), serializer); + sse_encode_usize( + (self as ZkLinkSignerImpl).frbInternalSseEncode(move: true), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as AutoDeleveragingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ChangePubKeyImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ContractImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ContractMatchingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ForcedExitImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as FundingImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as LiquidationImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as OrderImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as OrderMatchingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as TransferImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as WithdrawImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as AutoDeleveragingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ChangePubKeyImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ContractImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ContractMatchingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ForcedExitImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as FundingImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as LiquidationImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as OrderImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as OrderMatchingImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as SignerImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as TransferImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as UpdateGlobalVarImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as WalletImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as WithdrawImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ZkLinkSignatureImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: false), serializer); + sse_encode_usize( + (self as ZkLinkSignerImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as AutoDeleveragingImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ChangePubKeyImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ContractImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ContractMatchingImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ContractPriceImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as EthTxOptionImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ForcedExitImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as FundingImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as FundingInfoImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as LiquidationImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as OrderImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as OrderMatchingImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ParameterImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as SignerImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as SpotPriceInfoImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as TransferImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as UpdateGlobalVarImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as WalletImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as WithdrawImpl).frbInternalSseEncode(move: null), serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ZkLinkSignatureImpl).frbInternalSseEncode(move: null), + serializer); } @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ZkLinkSignerImpl).frbInternalSseEncode(move: null), + serializer); } @protected @@ -6538,48 +6480,48 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); for (final item in self) { - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( item, serializer); } } @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); for (final item in self) { - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( item, serializer); } } @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); for (final item in self) { - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( item, serializer); } } @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); for (final item in self) { - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( item, serializer); } } @@ -6672,9 +6614,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_usize(int self, SseSerializer serializer) { + void sse_encode_usize(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); + serializer.buffer.putBigUint64(self); } @protected @@ -6683,3 +6625,692 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer.buffer.putInt32(self); } } + +@sealed +class AutoDeleveragingImpl extends RustOpaque implements AutoDeleveraging { + // Not to be used by end users + AutoDeleveragingImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + AutoDeleveragingImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_AutoDeleveraging, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_AutoDeleveraging, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_AutoDeleveragingPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiAutoDeleveragingSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiAutoDeleveragingToJson( + that: this, + ); +} + +@sealed +class ChangePubKeyImpl extends RustOpaque implements ChangePubKey { + // Not to be used by end users + ChangePubKeyImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ChangePubKeyImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ChangePubKey, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ChangePubKey, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ChangePubKeyPtr, + ); + + String getEthSignMsg({required int nonce, required int accountId}) => + RustLib.instance.api.crateApiChangePubKeyGetEthSignMsg( + that: this, nonce: nonce, accountId: accountId); + + void setEthAuthData({required String sig}) => RustLib.instance.api + .crateApiChangePubKeySetEthAuthData(that: this, sig: sig); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiChangePubKeySign(that: this, zkLinkSigner: zkLinkSigner); + + String toEip712RequestPayload( + {required int chainId, required String address}) => + RustLib.instance.api.crateApiChangePubKeyToEip712RequestPayload( + that: this, chainId: chainId, address: address); + + String toJson() => RustLib.instance.api.crateApiChangePubKeyToJson( + that: this, + ); +} + +@sealed +class ContractImpl extends RustOpaque implements Contract { + // Not to be used by end users + ContractImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ContractImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Contract, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Contract, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ContractPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiContractSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiContractToJson( + that: this, + ); +} + +@sealed +class ContractMatchingImpl extends RustOpaque implements ContractMatching { + // Not to be used by end users + ContractMatchingImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ContractMatchingImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ContractMatching, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ContractMatching, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_ContractMatchingPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiContractMatchingSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiContractMatchingToJson( + that: this, + ); +} + +@sealed +class ContractPriceImpl extends RustOpaque implements ContractPrice { + // Not to be used by end users + ContractPriceImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ContractPriceImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ContractPrice, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ContractPrice, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ContractPricePtr, + ); +} + +@sealed +class EthTxOptionImpl extends RustOpaque implements EthTxOption { + // Not to be used by end users + EthTxOptionImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + EthTxOptionImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_EthTxOption, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_EthTxOption, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_EthTxOptionPtr, + ); +} + +@sealed +class ForcedExitImpl extends RustOpaque implements ForcedExit { + // Not to be used by end users + ForcedExitImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ForcedExitImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ForcedExit, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ForcedExit, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ForcedExitPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiForcedExitSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiForcedExitToJson( + that: this, + ); +} + +@sealed +class FundingImpl extends RustOpaque implements Funding { + // Not to be used by end users + FundingImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + FundingImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Funding, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Funding, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_FundingPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiFundingSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiFundingToJson( + that: this, + ); +} + +@sealed +class FundingInfoImpl extends RustOpaque implements FundingInfo { + // Not to be used by end users + FundingInfoImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + FundingInfoImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_FundingInfo, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_FundingInfo, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_FundingInfoPtr, + ); +} + +@sealed +class LiquidationImpl extends RustOpaque implements Liquidation { + // Not to be used by end users + LiquidationImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LiquidationImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Liquidation, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Liquidation, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_LiquidationPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiLiquidationSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiLiquidationToJson( + that: this, + ); +} + +@sealed +class OrderImpl extends RustOpaque implements Order { + // Not to be used by end users + OrderImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + OrderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Order, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Order, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_OrderPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiOrderSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiOrderToJson( + that: this, + ); +} + +@sealed +class OrderMatchingImpl extends RustOpaque implements OrderMatching { + // Not to be used by end users + OrderMatchingImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + OrderMatchingImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_OrderMatching, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_OrderMatching, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_OrderMatchingPtr, + ); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiOrderMatchingSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiOrderMatchingToJson( + that: this, + ); +} + +@sealed +class ParameterImpl extends RustOpaque implements Parameter { + // Not to be used by end users + ParameterImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ParameterImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Parameter, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Parameter, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ParameterPtr, + ); +} + +@sealed +class SignerImpl extends RustOpaque implements Signer { + // Not to be used by end users + SignerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SignerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Signer, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Signer, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_SignerPtr, + ); + + Contract createSignedContract({required Contract contract}) => + RustLib.instance.api + .crateApiSignerCreateSignedContract(that: this, contract: contract); + + Order createSignedOrder({required Order order}) => RustLib.instance.api + .crateApiSignerCreateSignedOrder(that: this, order: order); + + String signAutoDeleveraging({required AutoDeleveraging tx}) => + RustLib.instance.api + .crateApiSignerSignAutoDeleveraging(that: this, tx: tx); + + String signChangePubkeyWithCreate2DataAuth( + {required ChangePubKey tx, + required String creatorAddress, + required String saltArg, + required String codeHash}) => + RustLib.instance.api.crateApiSignerSignChangePubkeyWithCreate2DataAuth( + that: this, + tx: tx, + creatorAddress: creatorAddress, + saltArg: saltArg, + codeHash: codeHash); + + String signChangePubkeyWithEthEcdsaAuth({required ChangePubKey tx}) => + RustLib.instance.api + .crateApiSignerSignChangePubkeyWithEthEcdsaAuth(that: this, tx: tx); + + String signChangePubkeyWithOnchain({required ChangePubKey tx}) => + RustLib.instance.api + .crateApiSignerSignChangePubkeyWithOnchain(that: this, tx: tx); + + String signContractMatching({required ContractMatching tx}) => + RustLib.instance.api + .crateApiSignerSignContractMatching(that: this, tx: tx); + + String signForcedExit({required ForcedExit tx}) => + RustLib.instance.api.crateApiSignerSignForcedExit(that: this, tx: tx); + + String signFunding({required Funding tx}) => + RustLib.instance.api.crateApiSignerSignFunding(that: this, tx: tx); + + String signLiquidation({required Liquidation tx}) => + RustLib.instance.api.crateApiSignerSignLiquidation(that: this, tx: tx); + + String signOrderMatching({required OrderMatching tx}) => + RustLib.instance.api.crateApiSignerSignOrderMatching(that: this, tx: tx); + + String signTransfer( + {required Transfer tx, + required String tokenSymbol, + String? chainId, + String? addr}) => + RustLib.instance.api.crateApiSignerSignTransfer( + that: this, + tx: tx, + tokenSymbol: tokenSymbol, + chainId: chainId, + addr: addr); + + String signWithdraw( + {required Withdraw tx, + required String tokenSymbol, + String? chainId, + String? addr}) => + RustLib.instance.api.crateApiSignerSignWithdraw( + that: this, + tx: tx, + tokenSymbol: tokenSymbol, + chainId: chainId, + addr: addr); +} + +@sealed +class SpotPriceInfoImpl extends RustOpaque implements SpotPriceInfo { + // Not to be used by end users + SpotPriceInfoImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SpotPriceInfoImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_SpotPriceInfo, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_SpotPriceInfo, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_SpotPriceInfoPtr, + ); +} + +@sealed +class TransferImpl extends RustOpaque implements Transfer { + // Not to be used by end users + TransferImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + TransferImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Transfer, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Transfer, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_TransferPtr, + ); + + String getEthSignMsg({required String tokenSymbol}) => RustLib.instance.api + .crateApiTransferGetEthSignMsg(that: this, tokenSymbol: tokenSymbol); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiTransferSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiTransferToJson( + that: this, + ); +} + +@sealed +class UpdateGlobalVarImpl extends RustOpaque implements UpdateGlobalVar { + // Not to be used by end users + UpdateGlobalVarImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + UpdateGlobalVarImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_UpdateGlobalVar, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_UpdateGlobalVar, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_UpdateGlobalVarPtr, + ); + + String toJson() => RustLib.instance.api.crateApiUpdateGlobalVarToJson( + that: this, + ); +} + +@sealed +class WalletImpl extends RustOpaque implements Wallet { + // Not to be used by end users + WalletImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + WalletImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Wallet, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Wallet, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_WalletPtr, + ); + + Future approveErc20( + {required String contract, + required String amount, + required EthTxOption ethParams}) => + RustLib.instance.api.crateApiWalletApproveErc20( + that: this, contract: contract, amount: amount, ethParams: ethParams); + + Future depositErc20( + {required int subAccountId, + required String depositTo, + required String tokenAddr, + required String amount, + required bool mapping, + required EthTxOption ethParams, + required bool isGateway}) => + RustLib.instance.api.crateApiWalletDepositErc20( + that: this, + subAccountId: subAccountId, + depositTo: depositTo, + tokenAddr: tokenAddr, + amount: amount, + mapping: mapping, + ethParams: ethParams, + isGateway: isGateway); + + Future depositEth( + {required int subAccountId, + required String depositTo, + required EthTxOption ethParams, + required bool isGateway}) => + RustLib.instance.api.crateApiWalletDepositEth( + that: this, + subAccountId: subAccountId, + depositTo: depositTo, + ethParams: ethParams, + isGateway: isGateway); + + Future fullExit( + {required int accountId, + required int subAccountId, + required int tokenId, + required bool mapping, + required EthTxOption ethParams}) => + RustLib.instance.api.crateApiWalletFullExit( + that: this, + accountId: accountId, + subAccountId: subAccountId, + tokenId: tokenId, + mapping: mapping, + ethParams: ethParams); + + Future getBalance() => RustLib.instance.api.crateApiWalletGetBalance( + that: this, + ); + + Future getDepositFee({required EthTxOption ethParams}) => + RustLib.instance.api + .crateApiWalletGetDepositFee(that: this, ethParams: ethParams); + + Future getNonce({required String blockNumber}) => RustLib.instance.api + .crateApiWalletGetNonce(that: this, blockNumber: blockNumber); + + Future setAuthPubkeyHash( + {required double nonce, + required String newPubkeyHash, + required EthTxOption ethParams}) => + RustLib.instance.api.crateApiWalletSetAuthPubkeyHash( + that: this, + nonce: nonce, + newPubkeyHash: newPubkeyHash, + ethParams: ethParams); + + Future waitForTransaction({required String txHash, int? timeout}) => + RustLib.instance.api.crateApiWalletWaitForTransaction( + that: this, txHash: txHash, timeout: timeout); +} + +@sealed +class WithdrawImpl extends RustOpaque implements Withdraw { + // Not to be used by end users + WithdrawImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + WithdrawImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Withdraw, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Withdraw, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_WithdrawPtr, + ); + + String getEthSignMsg({required String tokenSymbol}) => RustLib.instance.api + .crateApiWithdrawGetEthSignMsg(that: this, tokenSymbol: tokenSymbol); + + void sign({required ZkLinkSigner zkLinkSigner}) => RustLib.instance.api + .crateApiWithdrawSign(that: this, zkLinkSigner: zkLinkSigner); + + String toJson() => RustLib.instance.api.crateApiWithdrawToJson( + that: this, + ); +} + +@sealed +class ZkLinkSignatureImpl extends RustOpaque implements ZkLinkSignature { + // Not to be used by end users + ZkLinkSignatureImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ZkLinkSignatureImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ZkLinkSignature, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignature, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignaturePtr, + ); + + String getPubkey() => RustLib.instance.api.crateApiZkLinkSignatureGetPubkey( + that: this, + ); + + String getSignature() => + RustLib.instance.api.crateApiZkLinkSignatureGetSignature( + that: this, + ); +} + +@sealed +class ZkLinkSignerImpl extends RustOpaque implements ZkLinkSigner { + // Not to be used by end users + ZkLinkSignerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ZkLinkSignerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_ZkLinkSigner, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSigner, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_ZkLinkSignerPtr, + ); + + String getPubkey() => RustLib.instance.api.crateApiZkLinkSignerGetPubkey( + that: this, + ); + + String getPubkeyHash() => + RustLib.instance.api.crateApiZkLinkSignerGetPubkeyHash( + that: this, + ); + + ZkLinkSignature signMusig({required List msg}) => + RustLib.instance.api.crateApiZkLinkSignerSignMusig(that: this, msg: msg); +} diff --git a/bindings/dart/lib/frb_generated.io.dart b/bindings/dart/lib/frb_generated.io.dart index 5cc3dcb..2cc6160 100644 --- a/bindings/dart/lib/frb_generated.io.dart +++ b/bindings/dart/lib/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -20,425 +20,425 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_AutoDeleveragingPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveragingPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveragingPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ChangePubKeyPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKeyPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKeyPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ContractPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ContractMatchingPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatchingPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatchingPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ContractPricePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_EthTxOptionPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOptionPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOptionPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ForcedExitPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExitPtr; + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExitPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FundingPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FundingInfoPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LiquidationPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidationPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidationPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OrderPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OrderMatchingPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatchingPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatchingPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ParameterPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameterPtr; + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameterPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SignerPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSignerPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSignerPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SpotPriceInfoPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_TransferPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransferPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransferPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_UpdateGlobalVarPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVarPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVarPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_WalletPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWalletPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWalletPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_WithdrawPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdrawPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdrawPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ZkLinkSignaturePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignaturePtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignaturePtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ZkLinkSignerPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignerPtr; + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignerPtr; @protected AnyhowException dco_decode_AnyhowException(dynamic raw); @protected AutoDeleveraging - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw); @protected ChangePubKey - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw); @protected Contract - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw); @protected ContractMatching - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw); @protected ContractPrice - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw); @protected EthTxOption - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( dynamic raw); @protected ForcedExit - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw); @protected Funding - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw); @protected FundingInfo - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw); @protected Liquidation - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw); @protected Order - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw); @protected OrderMatching - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw); @protected Parameter - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( dynamic raw); @protected Signer - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw); @protected SpotPriceInfo - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw); @protected Transfer - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw); @protected UpdateGlobalVar - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw); @protected Wallet - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw); @protected Withdraw - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw); @protected ZkLinkSignature - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw); @protected ZkLinkSigner - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw); @protected AutoDeleveraging - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw); @protected ChangePubKey - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw); @protected Contract - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw); @protected ContractMatching - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw); @protected ForcedExit - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw); @protected Funding - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw); @protected Liquidation - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw); @protected Order - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw); @protected OrderMatching - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw); @protected Transfer - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw); @protected Withdraw - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw); @protected AutoDeleveraging - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw); @protected ChangePubKey - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw); @protected Contract - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw); @protected ContractMatching - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw); @protected ForcedExit - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw); @protected Funding - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw); @protected Liquidation - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw); @protected Order - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw); @protected OrderMatching - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw); @protected Signer - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw); @protected Transfer - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw); @protected UpdateGlobalVar - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw); @protected Wallet - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw); @protected Withdraw - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw); @protected ZkLinkSignature - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw); @protected ZkLinkSigner - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw); @protected AutoDeleveraging - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( dynamic raw); @protected ChangePubKey - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( dynamic raw); @protected Contract - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw); @protected ContractMatching - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( dynamic raw); @protected ContractPrice - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw); @protected EthTxOption - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( dynamic raw); @protected ForcedExit - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( dynamic raw); @protected Funding - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( dynamic raw); @protected FundingInfo - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw); @protected Liquidation - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( dynamic raw); @protected Order - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( dynamic raw); @protected OrderMatching - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( dynamic raw); @protected Parameter - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( dynamic raw); @protected Signer - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( dynamic raw); @protected SpotPriceInfo - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw); @protected Transfer - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( dynamic raw); @protected UpdateGlobalVar - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( dynamic raw); @protected Wallet - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( dynamic raw); @protected Withdraw - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( dynamic raw); @protected ZkLinkSignature - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( dynamic raw); @protected ZkLinkSigner - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( dynamic raw); @protected @@ -461,22 +461,22 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( dynamic raw); @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( dynamic raw); @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( dynamic raw); @protected List - dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + dco_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( dynamic raw); @protected @@ -513,354 +513,354 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void dco_decode_unit(dynamic raw); @protected - int dco_decode_usize(dynamic raw); + BigInt dco_decode_usize(dynamic raw); @protected AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); @protected AutoDeleveraging - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer); @protected ChangePubKey - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer); @protected Contract - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer); @protected ContractMatching - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer); @protected ContractPrice - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer); @protected EthTxOption - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( SseDeserializer deserializer); @protected ForcedExit - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer); @protected Funding - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer); @protected FundingInfo - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer); @protected Liquidation - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer); @protected Order - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer); @protected OrderMatching - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer); @protected Parameter - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( SseDeserializer deserializer); @protected Signer - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer); @protected SpotPriceInfo - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer); @protected Transfer - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer); @protected UpdateGlobalVar - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer); @protected Wallet - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer); @protected Withdraw - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer); @protected ZkLinkSignature - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer); @protected ZkLinkSigner - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer); @protected AutoDeleveraging - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer); @protected ChangePubKey - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer); @protected Contract - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer); @protected ContractMatching - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer); @protected ForcedExit - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer); @protected Funding - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer); @protected Liquidation - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer); @protected Order - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer); @protected OrderMatching - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer); @protected Transfer - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer); @protected Withdraw - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer); @protected AutoDeleveraging - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer); @protected ChangePubKey - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer); @protected Contract - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer); @protected ContractMatching - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer); @protected ForcedExit - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer); @protected Funding - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer); @protected Liquidation - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer); @protected Order - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer); @protected OrderMatching - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer); @protected Signer - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer); @protected Transfer - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer); @protected UpdateGlobalVar - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer); @protected Wallet - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer); @protected Withdraw - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer); @protected ZkLinkSignature - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer); @protected ZkLinkSigner - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer); @protected AutoDeleveraging - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( SseDeserializer deserializer); @protected ChangePubKey - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( SseDeserializer deserializer); @protected Contract - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer); @protected ContractMatching - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( SseDeserializer deserializer); @protected ContractPrice - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer); @protected EthTxOption - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( SseDeserializer deserializer); @protected ForcedExit - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( SseDeserializer deserializer); @protected Funding - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( SseDeserializer deserializer); @protected FundingInfo - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer); @protected Liquidation - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( SseDeserializer deserializer); @protected Order - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( SseDeserializer deserializer); @protected OrderMatching - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( SseDeserializer deserializer); @protected Parameter - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( SseDeserializer deserializer); @protected Signer - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( SseDeserializer deserializer); @protected SpotPriceInfo - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer); @protected Transfer - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( SseDeserializer deserializer); @protected UpdateGlobalVar - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( SseDeserializer deserializer); @protected Wallet - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( SseDeserializer deserializer); @protected Withdraw - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( SseDeserializer deserializer); @protected ZkLinkSignature - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( SseDeserializer deserializer); @protected ZkLinkSigner - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( SseDeserializer deserializer); @protected @@ -883,22 +883,22 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( SseDeserializer deserializer); @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( SseDeserializer deserializer); @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( SseDeserializer deserializer); @protected List - sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_decode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SseDeserializer deserializer); @protected @@ -935,7 +935,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_decode_unit(SseDeserializer deserializer); @protected - int sse_decode_usize(SseDeserializer deserializer); + BigInt sse_decode_usize(SseDeserializer deserializer); @protected int sse_decode_i_32(SseDeserializer deserializer); @@ -967,16 +967,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract> - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract> + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( List raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ans = wire - .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( raw.length); for (var i = 0; i < raw.length; ++i) { ans.ref.ptr[i] = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( raw[i]); } return ans; @@ -984,16 +984,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( List raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ans = wire - .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( raw.length); for (var i = 0; i < raw.length; ++i) { ans.ref.ptr[i] = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( raw[i]); } return ans; @@ -1001,16 +1001,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo> - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo> + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( List raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ans = wire - .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( raw.length); for (var i = 0; i < raw.length; ++i) { ans.ref.ptr[i] = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( raw[i]); } return ans; @@ -1018,16 +1018,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> - cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> + cst_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( List raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ans = wire - .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + .cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( raw.length); for (var i = 0; i < raw.length; ++i) { ans.ref.ptr[i] = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( raw[i]); } return ans; @@ -1089,279 +1089,285 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_usize(BigInt raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.toSigned(64).toInt(); + } + + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw); @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature raw); @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner raw); @protected @@ -1385,356 +1391,353 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void cst_encode_unit(void raw); - @protected - int cst_encode_usize(int raw); - @protected void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( AutoDeleveraging self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ChangePubKey self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( Contract self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ContractMatching self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ContractPrice self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( EthTxOption self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ForcedExit self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( Funding self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( FundingInfo self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( Liquidation self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( Order self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( OrderMatching self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( Parameter self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( Signer self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( SpotPriceInfo self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( Transfer self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( UpdateGlobalVar self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( Wallet self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( Withdraw self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ZkLinkSignature self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ZkLinkSigner self, SseSerializer serializer); @protected @@ -1757,22 +1760,22 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( List self, SseSerializer serializer); @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( List self, SseSerializer serializer); @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( List self, SseSerializer serializer); @protected void - sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( List self, SseSerializer serializer); @protected @@ -1812,7 +1815,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_unit(void self, SseSerializer serializer); @protected - void sse_encode_usize(int self, SseSerializer serializer); + void sse_encode_usize(BigInt self, SseSerializer serializer); @protected void sse_encode_i_32(int self, SseSerializer serializer); @@ -1859,15 +1862,15 @@ class RustLibWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - WireSyncRust2DartDco wire_AutoDeleveraging_new( + WireSyncRust2DartDco wire__crate__api__AutoDeleveraging_new( int account_id, int sub_account_id, int sub_account_nonce, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> contract_prices, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> margin_prices, int adl_account_id, int pair_id, @@ -1876,7 +1879,7 @@ class RustLibWire implements BaseWire { ffi.Pointer fee, int fee_token, ) { - return _wire_AutoDeleveraging_new( + return _wire__crate__api__AutoDeleveraging_new( account_id, sub_account_id, sub_account_nonce, @@ -1891,90 +1894,94 @@ class RustLibWire implements BaseWire { ); } - late final _wire_AutoDeleveraging_newPtr = _lookup< + late final _wire__crate__api__AutoDeleveraging_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, ffi.Uint8, ffi.Uint32, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, ffi.Uint32, ffi.Uint16, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Uint16)>>('frbgen_zklink_wire_AutoDeleveraging_new'); - late final _wire_AutoDeleveraging_new = _wire_AutoDeleveraging_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - WireSyncRust2DartDco wire_AutoDeleveraging_sign( + ffi.Uint16)>>('frbgen_zklink_wire__crate__api__AutoDeleveraging_new'); + late final _wire__crate__api__AutoDeleveraging_new = + _wire__crate__api__AutoDeleveraging_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + WireSyncRust2DartDco wire__crate__api__AutoDeleveraging_sign( int that, int zk_link_signer, ) { - return _wire_AutoDeleveraging_sign( + return _wire__crate__api__AutoDeleveraging_sign( that, zk_link_signer, ); } - late final _wire_AutoDeleveraging_signPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_AutoDeleveraging_sign'); - late final _wire_AutoDeleveraging_sign = _wire_AutoDeleveraging_signPtr - .asFunction(); + late final _wire__crate__api__AutoDeleveraging_signPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__AutoDeleveraging_sign'); + late final _wire__crate__api__AutoDeleveraging_sign = + _wire__crate__api__AutoDeleveraging_signPtr + .asFunction(); - WireSyncRust2DartDco wire_AutoDeleveraging_to_json( + WireSyncRust2DartDco wire__crate__api__AutoDeleveraging_to_json( int that, ) { - return _wire_AutoDeleveraging_to_json( + return _wire__crate__api__AutoDeleveraging_to_json( that, ); } - late final _wire_AutoDeleveraging_to_jsonPtr = + late final _wire__crate__api__AutoDeleveraging_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_AutoDeleveraging_to_json'); - late final _wire_AutoDeleveraging_to_json = _wire_AutoDeleveraging_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__AutoDeleveraging_to_json'); + late final _wire__crate__api__AutoDeleveraging_to_json = + _wire__crate__api__AutoDeleveraging_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_ChangePubKey_get_eth_sign_msg( + WireSyncRust2DartDco wire__crate__api__ChangePubKey_get_eth_sign_msg( int that, int nonce, int account_id, ) { - return _wire_ChangePubKey_get_eth_sign_msg( + return _wire__crate__api__ChangePubKey_get_eth_sign_msg( that, nonce, account_id, ); } - late final _wire_ChangePubKey_get_eth_sign_msgPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, ffi.Uint32, - ffi.Uint32)>>('frbgen_zklink_wire_ChangePubKey_get_eth_sign_msg'); - late final _wire_ChangePubKey_get_eth_sign_msg = - _wire_ChangePubKey_get_eth_sign_msgPtr + late final _wire__crate__api__ChangePubKey_get_eth_sign_msgPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.UintPtr, ffi.Uint32, ffi.Uint32)>>( + 'frbgen_zklink_wire__crate__api__ChangePubKey_get_eth_sign_msg'); + late final _wire__crate__api__ChangePubKey_get_eth_sign_msg = + _wire__crate__api__ChangePubKey_get_eth_sign_msgPtr .asFunction(); - WireSyncRust2DartDco wire_ChangePubKey_new( + WireSyncRust2DartDco wire__crate__api__ChangePubKey_new( int chain_id, int account_id, int sub_account_id, @@ -1985,7 +1992,7 @@ class RustLibWire implements BaseWire { ffi.Pointer eth_signature, ffi.Pointer ts, ) { - return _wire_ChangePubKey_new( + return _wire__crate__api__ChangePubKey_new( chain_id, account_id, sub_account_id, @@ -1998,120 +2005,124 @@ class RustLibWire implements BaseWire { ); } - late final _wire_ChangePubKey_newPtr = _lookup< - ffi.NativeFunction< + late final _wire__crate__api__ChangePubKey_newPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint8, + ffi.Uint32, + ffi.Uint8, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_zklink_wire__crate__api__ChangePubKey_new'); + late final _wire__crate__api__ChangePubKey_new = + _wire__crate__api__ChangePubKey_newPtr.asFunction< WireSyncRust2DartDco Function( - ffi.Uint8, - ffi.Uint32, - ffi.Uint8, + int, + int, + int, ffi.Pointer, - ffi.Uint32, + int, ffi.Pointer, - ffi.Uint32, + int, ffi.Pointer, - ffi.Pointer)>>('frbgen_zklink_wire_ChangePubKey_new'); - late final _wire_ChangePubKey_new = _wire_ChangePubKey_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_ChangePubKey_set_eth_auth_data( + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__ChangePubKey_set_eth_auth_data( int that, ffi.Pointer sig, ) { - return _wire_ChangePubKey_set_eth_auth_data( + return _wire__crate__api__ChangePubKey_set_eth_auth_data( that, sig, ); } - late final _wire_ChangePubKey_set_eth_auth_dataPtr = _lookup< + late final _wire__crate__api__ChangePubKey_set_eth_auth_dataPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, ffi.Pointer)>>( - 'frbgen_zklink_wire_ChangePubKey_set_eth_auth_data'); - late final _wire_ChangePubKey_set_eth_auth_data = - _wire_ChangePubKey_set_eth_auth_dataPtr.asFunction< + 'frbgen_zklink_wire__crate__api__ChangePubKey_set_eth_auth_data'); + late final _wire__crate__api__ChangePubKey_set_eth_auth_data = + _wire__crate__api__ChangePubKey_set_eth_auth_dataPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_ChangePubKey_sign( + WireSyncRust2DartDco wire__crate__api__ChangePubKey_sign( int that, int zk_link_signer, ) { - return _wire_ChangePubKey_sign( + return _wire__crate__api__ChangePubKey_sign( that, zk_link_signer, ); } - late final _wire_ChangePubKey_signPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_ChangePubKey_sign'); - late final _wire_ChangePubKey_sign = _wire_ChangePubKey_signPtr - .asFunction(); + late final _wire__crate__api__ChangePubKey_signPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__ChangePubKey_sign'); + late final _wire__crate__api__ChangePubKey_sign = + _wire__crate__api__ChangePubKey_signPtr + .asFunction(); - WireSyncRust2DartDco wire_ChangePubKey_to_eip712_request_payload( + WireSyncRust2DartDco wire__crate__api__ChangePubKey_to_eip712_request_payload( int that, int chain_id, ffi.Pointer address, ) { - return _wire_ChangePubKey_to_eip712_request_payload( + return _wire__crate__api__ChangePubKey_to_eip712_request_payload( that, chain_id, address, ); } - late final _wire_ChangePubKey_to_eip712_request_payloadPtr = _lookup< + late final _wire__crate__api__ChangePubKey_to_eip712_request_payloadPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.Uint32, ffi.Pointer)>>( - 'frbgen_zklink_wire_ChangePubKey_to_eip712_request_payload'); - late final _wire_ChangePubKey_to_eip712_request_payload = - _wire_ChangePubKey_to_eip712_request_payloadPtr.asFunction< + 'frbgen_zklink_wire__crate__api__ChangePubKey_to_eip712_request_payload'); + late final _wire__crate__api__ChangePubKey_to_eip712_request_payload = + _wire__crate__api__ChangePubKey_to_eip712_request_payloadPtr.asFunction< WireSyncRust2DartDco Function( int, int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_ChangePubKey_to_json( + WireSyncRust2DartDco wire__crate__api__ChangePubKey_to_json( int that, ) { - return _wire_ChangePubKey_to_json( + return _wire__crate__api__ChangePubKey_to_json( that, ); } - late final _wire_ChangePubKey_to_jsonPtr = + late final _wire__crate__api__ChangePubKey_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_ChangePubKey_to_json'); - late final _wire_ChangePubKey_to_json = _wire_ChangePubKey_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__ChangePubKey_to_json'); + late final _wire__crate__api__ChangePubKey_to_json = + _wire__crate__api__ChangePubKey_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_ContractMatching_new( + WireSyncRust2DartDco wire__crate__api__ContractMatching_new( int account_id, int sub_account_id, int taker, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract> maker, ffi.Pointer fee, int fee_token, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> contract_prices, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> margin_prices, ) { - return _wire_ContractMatching_new( + return _wire__crate__api__ContractMatching_new( account_id, sub_account_id, taker, @@ -2123,86 +2134,90 @@ class RustLibWire implements BaseWire { ); } - late final _wire_ContractMatching_newPtr = _lookup< + late final _wire__crate__api__ContractMatching_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, ffi.Uint8, ffi.UintPtr, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract>, ffi.Pointer, ffi.Uint16, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>)>>( - 'frbgen_zklink_wire_ContractMatching_new'); - late final _wire_ContractMatching_new = _wire_ContractMatching_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract>, - ffi.Pointer, - int, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>)>(); - - WireSyncRust2DartDco wire_ContractMatching_sign( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>)>>( + 'frbgen_zklink_wire__crate__api__ContractMatching_new'); + late final _wire__crate__api__ContractMatching_new = + _wire__crate__api__ContractMatching_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract>, + ffi.Pointer, + int, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>)>(); + + WireSyncRust2DartDco wire__crate__api__ContractMatching_sign( int that, int zk_link_signer, ) { - return _wire_ContractMatching_sign( + return _wire__crate__api__ContractMatching_sign( that, zk_link_signer, ); } - late final _wire_ContractMatching_signPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_ContractMatching_sign'); - late final _wire_ContractMatching_sign = _wire_ContractMatching_signPtr - .asFunction(); + late final _wire__crate__api__ContractMatching_signPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__ContractMatching_sign'); + late final _wire__crate__api__ContractMatching_sign = + _wire__crate__api__ContractMatching_signPtr + .asFunction(); - WireSyncRust2DartDco wire_ContractMatching_to_json( + WireSyncRust2DartDco wire__crate__api__ContractMatching_to_json( int that, ) { - return _wire_ContractMatching_to_json( + return _wire__crate__api__ContractMatching_to_json( that, ); } - late final _wire_ContractMatching_to_jsonPtr = + late final _wire__crate__api__ContractMatching_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_ContractMatching_to_json'); - late final _wire_ContractMatching_to_json = _wire_ContractMatching_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__ContractMatching_to_json'); + late final _wire__crate__api__ContractMatching_to_json = + _wire__crate__api__ContractMatching_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_ContractPrice_new( + WireSyncRust2DartDco wire__crate__api__ContractPrice_new( int pair_id, ffi.Pointer market_price, ) { - return _wire_ContractPrice_new( + return _wire__crate__api__ContractPrice_new( pair_id, market_price, ); } - late final _wire_ContractPrice_newPtr = _lookup< + late final _wire__crate__api__ContractPrice_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint16, ffi.Pointer)>>( - 'frbgen_zklink_wire_ContractPrice_new'); - late final _wire_ContractPrice_new = _wire_ContractPrice_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, ffi.Pointer)>(); + 'frbgen_zklink_wire__crate__api__ContractPrice_new'); + late final _wire__crate__api__ContractPrice_new = + _wire__crate__api__ContractPrice_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Contract_new( + WireSyncRust2DartDco wire__crate__api__Contract_new( int account_id, int sub_account_id, int slot_id, @@ -2215,7 +2230,7 @@ class RustLibWire implements BaseWire { int taker_fee_rate, bool has_subsidy, ) { - return _wire_Contract_new( + return _wire__crate__api__Contract_new( account_id, sub_account_id, slot_id, @@ -2230,7 +2245,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Contract_newPtr = _lookup< + late final _wire__crate__api__Contract_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, @@ -2243,53 +2258,56 @@ class RustLibWire implements BaseWire { ffi.Bool, ffi.Uint8, ffi.Uint8, - ffi.Bool)>>('frbgen_zklink_wire_Contract_new'); - late final _wire_Contract_new = _wire_Contract_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - int, - int, - ffi.Pointer, - ffi.Pointer, - bool, - int, - int, - bool)>(); - - WireSyncRust2DartDco wire_Contract_sign( + ffi.Bool)>>('frbgen_zklink_wire__crate__api__Contract_new'); + late final _wire__crate__api__Contract_new = + _wire__crate__api__Contract_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + int, + int, + ffi.Pointer, + ffi.Pointer, + bool, + int, + int, + bool)>(); + + WireSyncRust2DartDco wire__crate__api__Contract_sign( int that, int zk_link_signer, ) { - return _wire_Contract_sign( + return _wire__crate__api__Contract_sign( that, zk_link_signer, ); } - late final _wire_Contract_signPtr = _lookup< + late final _wire__crate__api__Contract_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_Contract_sign'); - late final _wire_Contract_sign = _wire_Contract_signPtr - .asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__Contract_sign'); + late final _wire__crate__api__Contract_sign = + _wire__crate__api__Contract_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Contract_to_json( + WireSyncRust2DartDco wire__crate__api__Contract_to_json( int that, ) { - return _wire_Contract_to_json( + return _wire__crate__api__Contract_to_json( that, ); } - late final _wire_Contract_to_jsonPtr = + late final _wire__crate__api__Contract_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Contract_to_json'); - late final _wire_Contract_to_json = _wire_Contract_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__Contract_to_json'); + late final _wire__crate__api__Contract_to_json = + _wire__crate__api__Contract_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_EthTxOption_new( + WireSyncRust2DartDco wire__crate__api__EthTxOption_new( bool is_support_eip1559, ffi.Pointer to, ffi.Pointer nonce, @@ -2297,7 +2315,7 @@ class RustLibWire implements BaseWire { ffi.Pointer gas, ffi.Pointer gas_price, ) { - return _wire_EthTxOption_new( + return _wire__crate__api__EthTxOption_new( is_support_eip1559, to, nonce, @@ -2307,7 +2325,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_EthTxOption_newPtr = _lookup< + late final _wire__crate__api__EthTxOption_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Bool, @@ -2316,17 +2334,18 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_EthTxOption_new'); - late final _wire_EthTxOption_new = _wire_EthTxOption_newPtr.asFunction< - WireSyncRust2DartDco Function( - bool, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_ForcedExit_new( + 'frbgen_zklink_wire__crate__api__EthTxOption_new'); + late final _wire__crate__api__EthTxOption_new = + _wire__crate__api__EthTxOption_newPtr.asFunction< + WireSyncRust2DartDco Function( + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__ForcedExit_new( int to_chain_id, int initiator_account_id, int initiator_sub_account_id, @@ -2339,7 +2358,7 @@ class RustLibWire implements BaseWire { bool withdraw_to_l1, ffi.Pointer ts, ) { - return _wire_ForcedExit_new( + return _wire__crate__api__ForcedExit_new( to_chain_id, initiator_account_id, initiator_sub_account_id, @@ -2354,88 +2373,93 @@ class RustLibWire implements BaseWire { ); } - late final _wire_ForcedExit_newPtr = _lookup< - ffi.NativeFunction< + late final _wire__crate__api__ForcedExit_newPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint8, + ffi.Uint32, + ffi.Uint8, + ffi.Uint8, + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Bool, + ffi.Pointer)>>( + 'frbgen_zklink_wire__crate__api__ForcedExit_new'); + late final _wire__crate__api__ForcedExit_new = + _wire__crate__api__ForcedExit_newPtr.asFunction< WireSyncRust2DartDco Function( - ffi.Uint8, - ffi.Uint32, - ffi.Uint8, - ffi.Uint8, + int, + int, + int, + int, ffi.Pointer, - ffi.Uint32, - ffi.Uint32, + int, + int, ffi.Pointer, - ffi.Uint32, - ffi.Bool, - ffi.Pointer)>>('frbgen_zklink_wire_ForcedExit_new'); - late final _wire_ForcedExit_new = _wire_ForcedExit_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, - int, - bool, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_ForcedExit_sign( + int, + bool, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__ForcedExit_sign( int that, int zk_link_signer, ) { - return _wire_ForcedExit_sign( + return _wire__crate__api__ForcedExit_sign( that, zk_link_signer, ); } - late final _wire_ForcedExit_signPtr = _lookup< + late final _wire__crate__api__ForcedExit_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_ForcedExit_sign'); - late final _wire_ForcedExit_sign = _wire_ForcedExit_signPtr - .asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__ForcedExit_sign'); + late final _wire__crate__api__ForcedExit_sign = + _wire__crate__api__ForcedExit_signPtr + .asFunction(); - WireSyncRust2DartDco wire_ForcedExit_to_json( + WireSyncRust2DartDco wire__crate__api__ForcedExit_to_json( int that, ) { - return _wire_ForcedExit_to_json( + return _wire__crate__api__ForcedExit_to_json( that, ); } - late final _wire_ForcedExit_to_jsonPtr = + late final _wire__crate__api__ForcedExit_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_ForcedExit_to_json'); - late final _wire_ForcedExit_to_json = _wire_ForcedExit_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__ForcedExit_to_json'); + late final _wire__crate__api__ForcedExit_to_json = + _wire__crate__api__ForcedExit_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_FundingInfo_new( + WireSyncRust2DartDco wire__crate__api__FundingInfo_new( int pair_id, ffi.Pointer price, int funding_rate, ) { - return _wire_FundingInfo_new( + return _wire__crate__api__FundingInfo_new( pair_id, price, funding_rate, ); } - late final _wire_FundingInfo_newPtr = _lookup< + late final _wire__crate__api__FundingInfo_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint16, ffi.Pointer, - ffi.Int16)>>('frbgen_zklink_wire_FundingInfo_new'); - late final _wire_FundingInfo_new = _wire_FundingInfo_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, ffi.Pointer, int)>(); + ffi.Int16)>>('frbgen_zklink_wire__crate__api__FundingInfo_new'); + late final _wire__crate__api__FundingInfo_new = + _wire__crate__api__FundingInfo_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, ffi.Pointer, int)>(); - WireSyncRust2DartDco wire_Funding_new( + WireSyncRust2DartDco wire__crate__api__Funding_new( int account_id, int sub_account_id, int sub_account_nonce, @@ -2443,7 +2467,7 @@ class RustLibWire implements BaseWire { ffi.Pointer fee, int fee_token, ) { - return _wire_Funding_new( + return _wire__crate__api__Funding_new( account_id, sub_account_id, sub_account_nonce, @@ -2453,7 +2477,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Funding_newPtr = _lookup< + late final _wire__crate__api__Funding_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, @@ -2461,62 +2485,65 @@ class RustLibWire implements BaseWire { ffi.Uint32, ffi.Pointer, ffi.Pointer, - ffi.Uint16)>>('frbgen_zklink_wire_Funding_new'); - late final _wire_Funding_new = _wire_Funding_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); - - WireSyncRust2DartDco wire_Funding_sign( + ffi.Uint16)>>('frbgen_zklink_wire__crate__api__Funding_new'); + late final _wire__crate__api__Funding_new = + _wire__crate__api__Funding_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + ffi.Pointer, + ffi.Pointer, + int)>(); + + WireSyncRust2DartDco wire__crate__api__Funding_sign( int that, int zk_link_signer, ) { - return _wire_Funding_sign( + return _wire__crate__api__Funding_sign( that, zk_link_signer, ); } - late final _wire_Funding_signPtr = _lookup< + late final _wire__crate__api__Funding_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_Funding_sign'); - late final _wire_Funding_sign = _wire_Funding_signPtr - .asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__Funding_sign'); + late final _wire__crate__api__Funding_sign = + _wire__crate__api__Funding_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Funding_to_json( + WireSyncRust2DartDco wire__crate__api__Funding_to_json( int that, ) { - return _wire_Funding_to_json( + return _wire__crate__api__Funding_to_json( that, ); } - late final _wire_Funding_to_jsonPtr = + late final _wire__crate__api__Funding_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Funding_to_json'); - late final _wire_Funding_to_json = - _wire_Funding_to_jsonPtr.asFunction(); + 'frbgen_zklink_wire__crate__api__Funding_to_json'); + late final _wire__crate__api__Funding_to_json = + _wire__crate__api__Funding_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_Liquidation_new( + WireSyncRust2DartDco wire__crate__api__Liquidation_new( int account_id, int sub_account_id, int sub_account_nonce, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> contract_prices, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> margin_prices, int liquidation_account_id, ffi.Pointer fee, int fee_token, ) { - return _wire_Liquidation_new( + return _wire__crate__api__Liquidation_new( account_id, sub_account_id, sub_account_nonce, @@ -2528,64 +2555,67 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Liquidation_newPtr = _lookup< + late final _wire__crate__api__Liquidation_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, ffi.Uint8, ffi.Uint32, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, ffi.Uint32, ffi.Pointer, - ffi.Uint16)>>('frbgen_zklink_wire_Liquidation_new'); - late final _wire_Liquidation_new = _wire_Liquidation_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, - int, - ffi.Pointer, - int)>(); - - WireSyncRust2DartDco wire_Liquidation_sign( + ffi.Uint16)>>('frbgen_zklink_wire__crate__api__Liquidation_new'); + late final _wire__crate__api__Liquidation_new = + _wire__crate__api__Liquidation_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, + int, + ffi.Pointer, + int)>(); + + WireSyncRust2DartDco wire__crate__api__Liquidation_sign( int that, int zk_link_signer, ) { - return _wire_Liquidation_sign( + return _wire__crate__api__Liquidation_sign( that, zk_link_signer, ); } - late final _wire_Liquidation_signPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Liquidation_sign'); - late final _wire_Liquidation_sign = _wire_Liquidation_signPtr - .asFunction(); + late final _wire__crate__api__Liquidation_signPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Liquidation_sign'); + late final _wire__crate__api__Liquidation_sign = + _wire__crate__api__Liquidation_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Liquidation_to_json( + WireSyncRust2DartDco wire__crate__api__Liquidation_to_json( int that, ) { - return _wire_Liquidation_to_json( + return _wire__crate__api__Liquidation_to_json( that, ); } - late final _wire_Liquidation_to_jsonPtr = + late final _wire__crate__api__Liquidation_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Liquidation_to_json'); - late final _wire_Liquidation_to_json = _wire_Liquidation_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__Liquidation_to_json'); + late final _wire__crate__api__Liquidation_to_json = + _wire__crate__api__Liquidation_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_OrderMatching_new( + WireSyncRust2DartDco wire__crate__api__OrderMatching_new( int account_id, int sub_account_id, int taker, @@ -2593,15 +2623,15 @@ class RustLibWire implements BaseWire { ffi.Pointer fee, int fee_token, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> contract_prices, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> margin_prices, ffi.Pointer expect_base_amount, ffi.Pointer expect_quote_amount, ) { - return _wire_OrderMatching_new( + return _wire__crate__api__OrderMatching_new( account_id, sub_account_id, taker, @@ -2615,7 +2645,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_OrderMatching_newPtr = _lookup< + late final _wire__crate__api__OrderMatching_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, @@ -2625,59 +2655,62 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Uint32, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_OrderMatching_new'); - late final _wire_OrderMatching_new = _wire_OrderMatching_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - int, - ffi.Pointer, - int, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice>, - ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo>, - ffi.Pointer, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_OrderMatching_sign( + 'frbgen_zklink_wire__crate__api__OrderMatching_new'); + late final _wire__crate__api__OrderMatching_new = + _wire__crate__api__OrderMatching_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + int, + ffi.Pointer, + int, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice>, + ffi.Pointer< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo>, + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__OrderMatching_sign( int that, int zk_link_signer, ) { - return _wire_OrderMatching_sign( + return _wire__crate__api__OrderMatching_sign( that, zk_link_signer, ); } - late final _wire_OrderMatching_signPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_OrderMatching_sign'); - late final _wire_OrderMatching_sign = _wire_OrderMatching_signPtr - .asFunction(); + late final _wire__crate__api__OrderMatching_signPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__OrderMatching_sign'); + late final _wire__crate__api__OrderMatching_sign = + _wire__crate__api__OrderMatching_signPtr + .asFunction(); - WireSyncRust2DartDco wire_OrderMatching_to_json( + WireSyncRust2DartDco wire__crate__api__OrderMatching_to_json( int that, ) { - return _wire_OrderMatching_to_json( + return _wire__crate__api__OrderMatching_to_json( that, ); } - late final _wire_OrderMatching_to_jsonPtr = + late final _wire__crate__api__OrderMatching_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_OrderMatching_to_json'); - late final _wire_OrderMatching_to_json = _wire_OrderMatching_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__OrderMatching_to_json'); + late final _wire__crate__api__OrderMatching_to_json = + _wire__crate__api__OrderMatching_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_Order_new( + WireSyncRust2DartDco wire__crate__api__Order_new( int account_id, int sub_account_id, int slot_id, @@ -2691,7 +2724,7 @@ class RustLibWire implements BaseWire { int taker_fee_rate, bool has_subsidy, ) { - return _wire_Order_new( + return _wire__crate__api__Order_new( account_id, sub_account_id, slot_id, @@ -2707,7 +2740,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Order_newPtr = _lookup< + late final _wire__crate__api__Order_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, @@ -2721,60 +2754,62 @@ class RustLibWire implements BaseWire { ffi.Bool, ffi.Uint8, ffi.Uint8, - ffi.Bool)>>('frbgen_zklink_wire_Order_new'); - late final _wire_Order_new = _wire_Order_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - int, - int, - int, - ffi.Pointer, - ffi.Pointer, - bool, - int, - int, - bool)>(); - - WireSyncRust2DartDco wire_Order_sign( + ffi.Bool)>>('frbgen_zklink_wire__crate__api__Order_new'); + late final _wire__crate__api__Order_new = + _wire__crate__api__Order_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, + int, + int, + int, + int, + int, + ffi.Pointer, + ffi.Pointer, + bool, + int, + int, + bool)>(); + + WireSyncRust2DartDco wire__crate__api__Order_sign( int that, int zk_link_signer, ) { - return _wire_Order_sign( + return _wire__crate__api__Order_sign( that, zk_link_signer, ); } - late final _wire_Order_signPtr = _lookup< + late final _wire__crate__api__Order_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_Order_sign'); - late final _wire_Order_sign = - _wire_Order_signPtr.asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__Order_sign'); + late final _wire__crate__api__Order_sign = _wire__crate__api__Order_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Order_to_json( + WireSyncRust2DartDco wire__crate__api__Order_to_json( int that, ) { - return _wire_Order_to_json( + return _wire__crate__api__Order_to_json( that, ); } - late final _wire_Order_to_jsonPtr = + late final _wire__crate__api__Order_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Order_to_json'); - late final _wire_Order_to_json = - _wire_Order_to_jsonPtr.asFunction(); + 'frbgen_zklink_wire__crate__api__Order_to_json'); + late final _wire__crate__api__Order_to_json = + _wire__crate__api__Order_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_Parameter_contract_info( + WireSyncRust2DartDco wire__crate__api__Parameter_contract_info( int pair_id, ffi.Pointer symbol, int initial_margin_rate, int maintenance_margin_rate, ) { - return _wire_Parameter_contract_info( + return _wire__crate__api__Parameter_contract_info( pair_id, symbol, initial_margin_rate, @@ -2782,76 +2817,78 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Parameter_contract_infoPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.Uint16, - ffi.Pointer, - ffi.Uint16, - ffi.Uint16)>>('frbgen_zklink_wire_Parameter_contract_info'); - late final _wire_Parameter_contract_info = - _wire_Parameter_contract_infoPtr.asFunction< + late final _wire__crate__api__Parameter_contract_infoPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint16, + ffi.Pointer, + ffi.Uint16, + ffi.Uint16)>>( + 'frbgen_zklink_wire__crate__api__Parameter_contract_info'); + late final _wire__crate__api__Parameter_contract_info = + _wire__crate__api__Parameter_contract_infoPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer, int, int)>(); - WireSyncRust2DartDco wire_Parameter_fee_account( + WireSyncRust2DartDco wire__crate__api__Parameter_fee_account( int account_id, ) { - return _wire_Parameter_fee_account( + return _wire__crate__api__Parameter_fee_account( account_id, ); } - late final _wire_Parameter_fee_accountPtr = + late final _wire__crate__api__Parameter_fee_accountPtr = _lookup>( - 'frbgen_zklink_wire_Parameter_fee_account'); - late final _wire_Parameter_fee_account = _wire_Parameter_fee_accountPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__Parameter_fee_account'); + late final _wire__crate__api__Parameter_fee_account = + _wire__crate__api__Parameter_fee_accountPtr + .asFunction(); - WireSyncRust2DartDco wire_Parameter_funding_infos( + WireSyncRust2DartDco wire__crate__api__Parameter_funding_infos( ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo> infos, ) { - return _wire_Parameter_funding_infos( + return _wire__crate__api__Parameter_funding_infos( infos, ); } - late final _wire_Parameter_funding_infosPtr = _lookup< + late final _wire__crate__api__Parameter_funding_infosPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo>)>>( - 'frbgen_zklink_wire_Parameter_funding_infos'); - late final _wire_Parameter_funding_infos = - _wire_Parameter_funding_infosPtr.asFunction< + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo>)>>( + 'frbgen_zklink_wire__crate__api__Parameter_funding_infos'); + late final _wire__crate__api__Parameter_funding_infos = + _wire__crate__api__Parameter_funding_infosPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo>)>(); + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo>)>(); - WireSyncRust2DartDco wire_Parameter_insurance_fund_account( + WireSyncRust2DartDco wire__crate__api__Parameter_insurance_fund_account( int account_id, ) { - return _wire_Parameter_insurance_fund_account( + return _wire__crate__api__Parameter_insurance_fund_account( account_id, ); } - late final _wire_Parameter_insurance_fund_accountPtr = + late final _wire__crate__api__Parameter_insurance_fund_accountPtr = _lookup>( - 'frbgen_zklink_wire_Parameter_insurance_fund_account'); - late final _wire_Parameter_insurance_fund_account = - _wire_Parameter_insurance_fund_accountPtr + 'frbgen_zklink_wire__crate__api__Parameter_insurance_fund_account'); + late final _wire__crate__api__Parameter_insurance_fund_account = + _wire__crate__api__Parameter_insurance_fund_accountPtr .asFunction(); - WireSyncRust2DartDco wire_Parameter_margin_info( + WireSyncRust2DartDco wire__crate__api__Parameter_margin_info( int margin_id, ffi.Pointer symbol, int token_id, int ratio, ) { - return _wire_Parameter_margin_info( + return _wire__crate__api__Parameter_margin_info( margin_id, symbol, token_id, @@ -2859,97 +2896,100 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Parameter_margin_infoPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.Uint8, - ffi.Pointer, - ffi.Uint32, - ffi.Uint8)>>('frbgen_zklink_wire_Parameter_margin_info'); - late final _wire_Parameter_margin_info = - _wire_Parameter_margin_infoPtr.asFunction< + late final _wire__crate__api__Parameter_margin_infoPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint8, + ffi.Pointer, + ffi.Uint32, + ffi.Uint8)>>( + 'frbgen_zklink_wire__crate__api__Parameter_margin_info'); + late final _wire__crate__api__Parameter_margin_info = + _wire__crate__api__Parameter_margin_infoPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer, int, int)>(); - WireSyncRust2DartDco wire_Signer_create_signed_contract( + WireSyncRust2DartDco wire__crate__api__Signer_create_signed_contract( int that, int contract, ) { - return _wire_Signer_create_signed_contract( + return _wire__crate__api__Signer_create_signed_contract( that, contract, ); } - late final _wire_Signer_create_signed_contractPtr = _lookup< + late final _wire__crate__api__Signer_create_signed_contractPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_zklink_wire_Signer_create_signed_contract'); - late final _wire_Signer_create_signed_contract = - _wire_Signer_create_signed_contractPtr + 'frbgen_zklink_wire__crate__api__Signer_create_signed_contract'); + late final _wire__crate__api__Signer_create_signed_contract = + _wire__crate__api__Signer_create_signed_contractPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_create_signed_order( + WireSyncRust2DartDco wire__crate__api__Signer_create_signed_order( int that, int order, ) { - return _wire_Signer_create_signed_order( + return _wire__crate__api__Signer_create_signed_order( that, order, ); } - late final _wire_Signer_create_signed_orderPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Signer_create_signed_order'); - late final _wire_Signer_create_signed_order = - _wire_Signer_create_signed_orderPtr + late final _wire__crate__api__Signer_create_signed_orderPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_create_signed_order'); + late final _wire__crate__api__Signer_create_signed_order = + _wire__crate__api__Signer_create_signed_orderPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_eth_signer( + WireSyncRust2DartDco wire__crate__api__Signer_eth_signer( ffi.Pointer eth_private_key, ) { - return _wire_Signer_eth_signer( + return _wire__crate__api__Signer_eth_signer( eth_private_key, ); } - late final _wire_Signer_eth_signerPtr = _lookup< + late final _wire__crate__api__Signer_eth_signerPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_Signer_eth_signer'); - late final _wire_Signer_eth_signer = _wire_Signer_eth_signerPtr.asFunction< - WireSyncRust2DartDco Function( - ffi.Pointer)>(); + 'frbgen_zklink_wire__crate__api__Signer_eth_signer'); + late final _wire__crate__api__Signer_eth_signer = + _wire__crate__api__Signer_eth_signerPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - WireSyncRust2DartDco wire_Signer_sign_auto_deleveraging( + WireSyncRust2DartDco wire__crate__api__Signer_sign_auto_deleveraging( int that, int tx, ) { - return _wire_Signer_sign_auto_deleveraging( + return _wire__crate__api__Signer_sign_auto_deleveraging( that, tx, ); } - late final _wire_Signer_sign_auto_deleveragingPtr = _lookup< + late final _wire__crate__api__Signer_sign_auto_deleveragingPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_zklink_wire_Signer_sign_auto_deleveraging'); - late final _wire_Signer_sign_auto_deleveraging = - _wire_Signer_sign_auto_deleveragingPtr + 'frbgen_zklink_wire__crate__api__Signer_sign_auto_deleveraging'); + late final _wire__crate__api__Signer_sign_auto_deleveraging = + _wire__crate__api__Signer_sign_auto_deleveragingPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_change_pubkey_with_create2data_auth( + WireSyncRust2DartDco + wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth( int that, int tx, ffi.Pointer creator_address, ffi.Pointer salt_arg, ffi.Pointer code_hash, ) { - return _wire_Signer_sign_change_pubkey_with_create2data_auth( + return _wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth( that, tx, creator_address, @@ -2958,155 +2998,162 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Signer_sign_change_pubkey_with_create2data_authPtr = _lookup< - ffi.NativeFunction< + late final _wire__crate__api__Signer_sign_change_pubkey_with_create2data_authPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.UintPtr, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth'); + late final _wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth = + _wire__crate__api__Signer_sign_change_pubkey_with_create2data_authPtr + .asFunction< WireSyncRust2DartDco Function( - ffi.UintPtr, - ffi.UintPtr, + int, + int, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_zklink_wire_Signer_sign_change_pubkey_with_create2data_auth'); - late final _wire_Signer_sign_change_pubkey_with_create2data_auth = - _wire_Signer_sign_change_pubkey_with_create2data_authPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); - WireSyncRust2DartDco wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth( + WireSyncRust2DartDco + wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth( int that, int tx, ) { - return _wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth( + return _wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth( that, tx, ); } - late final _wire_Signer_sign_change_pubkey_with_eth_ecdsa_authPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_zklink_wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth'); - late final _wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth = - _wire_Signer_sign_change_pubkey_with_eth_ecdsa_authPtr + late final _wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_authPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth'); + late final _wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth = + _wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_authPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_change_pubkey_with_onchain( + WireSyncRust2DartDco wire__crate__api__Signer_sign_change_pubkey_with_onchain( int that, int tx, ) { - return _wire_Signer_sign_change_pubkey_with_onchain( + return _wire__crate__api__Signer_sign_change_pubkey_with_onchain( that, tx, ); } - late final _wire_Signer_sign_change_pubkey_with_onchainPtr = _lookup< + late final _wire__crate__api__Signer_sign_change_pubkey_with_onchainPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_zklink_wire_Signer_sign_change_pubkey_with_onchain'); - late final _wire_Signer_sign_change_pubkey_with_onchain = - _wire_Signer_sign_change_pubkey_with_onchainPtr + 'frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_onchain'); + late final _wire__crate__api__Signer_sign_change_pubkey_with_onchain = + _wire__crate__api__Signer_sign_change_pubkey_with_onchainPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_contract_matching( + WireSyncRust2DartDco wire__crate__api__Signer_sign_contract_matching( int that, int tx, ) { - return _wire_Signer_sign_contract_matching( + return _wire__crate__api__Signer_sign_contract_matching( that, tx, ); } - late final _wire_Signer_sign_contract_matchingPtr = _lookup< + late final _wire__crate__api__Signer_sign_contract_matchingPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_zklink_wire_Signer_sign_contract_matching'); - late final _wire_Signer_sign_contract_matching = - _wire_Signer_sign_contract_matchingPtr + 'frbgen_zklink_wire__crate__api__Signer_sign_contract_matching'); + late final _wire__crate__api__Signer_sign_contract_matching = + _wire__crate__api__Signer_sign_contract_matchingPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_forced_exit( + WireSyncRust2DartDco wire__crate__api__Signer_sign_forced_exit( int that, int tx, ) { - return _wire_Signer_sign_forced_exit( + return _wire__crate__api__Signer_sign_forced_exit( that, tx, ); } - late final _wire_Signer_sign_forced_exitPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Signer_sign_forced_exit'); - late final _wire_Signer_sign_forced_exit = _wire_Signer_sign_forced_exitPtr - .asFunction(); + late final _wire__crate__api__Signer_sign_forced_exitPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_forced_exit'); + late final _wire__crate__api__Signer_sign_forced_exit = + _wire__crate__api__Signer_sign_forced_exitPtr + .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_funding( + WireSyncRust2DartDco wire__crate__api__Signer_sign_funding( int that, int tx, ) { - return _wire_Signer_sign_funding( + return _wire__crate__api__Signer_sign_funding( that, tx, ); } - late final _wire_Signer_sign_fundingPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Signer_sign_funding'); - late final _wire_Signer_sign_funding = _wire_Signer_sign_fundingPtr - .asFunction(); + late final _wire__crate__api__Signer_sign_fundingPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_funding'); + late final _wire__crate__api__Signer_sign_funding = + _wire__crate__api__Signer_sign_fundingPtr + .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_liquidation( + WireSyncRust2DartDco wire__crate__api__Signer_sign_liquidation( int that, int tx, ) { - return _wire_Signer_sign_liquidation( + return _wire__crate__api__Signer_sign_liquidation( that, tx, ); } - late final _wire_Signer_sign_liquidationPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Signer_sign_liquidation'); - late final _wire_Signer_sign_liquidation = _wire_Signer_sign_liquidationPtr - .asFunction(); + late final _wire__crate__api__Signer_sign_liquidationPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_liquidation'); + late final _wire__crate__api__Signer_sign_liquidation = + _wire__crate__api__Signer_sign_liquidationPtr + .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_order_matching( + WireSyncRust2DartDco wire__crate__api__Signer_sign_order_matching( int that, int tx, ) { - return _wire_Signer_sign_order_matching( + return _wire__crate__api__Signer_sign_order_matching( that, tx, ); } - late final _wire_Signer_sign_order_matchingPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Signer_sign_order_matching'); - late final _wire_Signer_sign_order_matching = - _wire_Signer_sign_order_matchingPtr + late final _wire__crate__api__Signer_sign_order_matchingPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Signer_sign_order_matching'); + late final _wire__crate__api__Signer_sign_order_matching = + _wire__crate__api__Signer_sign_order_matchingPtr .asFunction(); - WireSyncRust2DartDco wire_Signer_sign_transfer( + WireSyncRust2DartDco wire__crate__api__Signer_sign_transfer( int that, int tx, ffi.Pointer token_symbol, ffi.Pointer chain_id, ffi.Pointer addr, ) { - return _wire_Signer_sign_transfer( + return _wire__crate__api__Signer_sign_transfer( that, tx, token_symbol, @@ -3115,7 +3162,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Signer_sign_transferPtr = _lookup< + late final _wire__crate__api__Signer_sign_transferPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, @@ -3123,9 +3170,9 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_Signer_sign_transfer'); - late final _wire_Signer_sign_transfer = - _wire_Signer_sign_transferPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Signer_sign_transfer'); + late final _wire__crate__api__Signer_sign_transfer = + _wire__crate__api__Signer_sign_transferPtr.asFunction< WireSyncRust2DartDco Function( int, int, @@ -3133,14 +3180,14 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Signer_sign_withdraw( + WireSyncRust2DartDco wire__crate__api__Signer_sign_withdraw( int that, int tx, ffi.Pointer token_symbol, ffi.Pointer chain_id, ffi.Pointer addr, ) { - return _wire_Signer_sign_withdraw( + return _wire__crate__api__Signer_sign_withdraw( that, tx, token_symbol, @@ -3149,7 +3196,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Signer_sign_withdrawPtr = _lookup< + late final _wire__crate__api__Signer_sign_withdrawPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, @@ -3157,9 +3204,9 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_Signer_sign_withdraw'); - late final _wire_Signer_sign_withdraw = - _wire_Signer_sign_withdrawPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Signer_sign_withdraw'); + late final _wire__crate__api__Signer_sign_withdraw = + _wire__crate__api__Signer_sign_withdrawPtr.asFunction< WireSyncRust2DartDco Function( int, int, @@ -3167,72 +3214,73 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Signer_starknet_signer( + WireSyncRust2DartDco wire__crate__api__Signer_starknet_signer( ffi.Pointer eth_private_key, ffi.Pointer starknet_chain_id, ffi.Pointer starknet_addr, ) { - return _wire_Signer_starknet_signer( + return _wire__crate__api__Signer_starknet_signer( eth_private_key, starknet_chain_id, starknet_addr, ); } - late final _wire_Signer_starknet_signerPtr = _lookup< + late final _wire__crate__api__Signer_starknet_signerPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_Signer_starknet_signer'); - late final _wire_Signer_starknet_signer = - _wire_Signer_starknet_signerPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Signer_starknet_signer'); + late final _wire__crate__api__Signer_starknet_signer = + _wire__crate__api__Signer_starknet_signerPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - WireSyncRust2DartDco wire_SpotPriceInfo_new( + WireSyncRust2DartDco wire__crate__api__SpotPriceInfo_new( int token_id, ffi.Pointer price, ) { - return _wire_SpotPriceInfo_new( + return _wire__crate__api__SpotPriceInfo_new( token_id, price, ); } - late final _wire_SpotPriceInfo_newPtr = _lookup< + late final _wire__crate__api__SpotPriceInfo_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Uint32, ffi.Pointer)>>( - 'frbgen_zklink_wire_SpotPriceInfo_new'); - late final _wire_SpotPriceInfo_new = _wire_SpotPriceInfo_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, ffi.Pointer)>(); + 'frbgen_zklink_wire__crate__api__SpotPriceInfo_new'); + late final _wire__crate__api__SpotPriceInfo_new = + _wire__crate__api__SpotPriceInfo_newPtr.asFunction< + WireSyncRust2DartDco Function( + int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Transfer_get_eth_sign_msg( + WireSyncRust2DartDco wire__crate__api__Transfer_get_eth_sign_msg( int that, ffi.Pointer token_symbol, ) { - return _wire_Transfer_get_eth_sign_msg( + return _wire__crate__api__Transfer_get_eth_sign_msg( that, token_symbol, ); } - late final _wire_Transfer_get_eth_sign_msgPtr = _lookup< + late final _wire__crate__api__Transfer_get_eth_sign_msgPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, ffi.Pointer)>>( - 'frbgen_zklink_wire_Transfer_get_eth_sign_msg'); - late final _wire_Transfer_get_eth_sign_msg = - _wire_Transfer_get_eth_sign_msgPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Transfer_get_eth_sign_msg'); + late final _wire__crate__api__Transfer_get_eth_sign_msg = + _wire__crate__api__Transfer_get_eth_sign_msgPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Transfer_new( + WireSyncRust2DartDco wire__crate__api__Transfer_new( int account_id, ffi.Pointer to_address, int from_sub_account_id, @@ -3243,7 +3291,7 @@ class RustLibWire implements BaseWire { int nonce, ffi.Pointer ts, ) { - return _wire_Transfer_new( + return _wire__crate__api__Transfer_new( account_id, to_address, from_sub_account_id, @@ -3256,68 +3304,72 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Transfer_newPtr = _lookup< - ffi.NativeFunction< + late final _wire__crate__api__Transfer_newPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint32, + ffi.Pointer, + ffi.Uint8, + ffi.Uint8, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>( + 'frbgen_zklink_wire__crate__api__Transfer_new'); + late final _wire__crate__api__Transfer_new = + _wire__crate__api__Transfer_newPtr.asFunction< WireSyncRust2DartDco Function( - ffi.Uint32, + int, ffi.Pointer, - ffi.Uint8, - ffi.Uint8, - ffi.Uint32, + int, + int, + int, ffi.Pointer, ffi.Pointer, - ffi.Uint32, - ffi.Pointer)>>('frbgen_zklink_wire_Transfer_new'); - late final _wire_Transfer_new = _wire_Transfer_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - ffi.Pointer, - int, - int, - int, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_Transfer_sign( + int, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__Transfer_sign( int that, int zk_link_signer, ) { - return _wire_Transfer_sign( + return _wire__crate__api__Transfer_sign( that, zk_link_signer, ); } - late final _wire_Transfer_signPtr = _lookup< + late final _wire__crate__api__Transfer_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_Transfer_sign'); - late final _wire_Transfer_sign = _wire_Transfer_signPtr - .asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__Transfer_sign'); + late final _wire__crate__api__Transfer_sign = + _wire__crate__api__Transfer_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Transfer_to_json( + WireSyncRust2DartDco wire__crate__api__Transfer_to_json( int that, ) { - return _wire_Transfer_to_json( + return _wire__crate__api__Transfer_to_json( that, ); } - late final _wire_Transfer_to_jsonPtr = + late final _wire__crate__api__Transfer_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Transfer_to_json'); - late final _wire_Transfer_to_json = _wire_Transfer_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__Transfer_to_json'); + late final _wire__crate__api__Transfer_to_json = + _wire__crate__api__Transfer_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_UpdateGlobalVar_new( + WireSyncRust2DartDco wire__crate__api__UpdateGlobalVar_new( int from_chain_id, int sub_account_id, int parameter, double serial_id, ) { - return _wire_UpdateGlobalVar_new( + return _wire__crate__api__UpdateGlobalVar_new( from_chain_id, sub_account_id, parameter, @@ -3325,35 +3377,38 @@ class RustLibWire implements BaseWire { ); } - late final _wire_UpdateGlobalVar_newPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.Uint8, ffi.Uint8, ffi.UintPtr, - ffi.Double)>>('frbgen_zklink_wire_UpdateGlobalVar_new'); - late final _wire_UpdateGlobalVar_new = _wire_UpdateGlobalVar_newPtr - .asFunction(); + late final _wire__crate__api__UpdateGlobalVar_newPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint8, ffi.Uint8, ffi.UintPtr, ffi.Double)>>( + 'frbgen_zklink_wire__crate__api__UpdateGlobalVar_new'); + late final _wire__crate__api__UpdateGlobalVar_new = + _wire__crate__api__UpdateGlobalVar_newPtr + .asFunction(); - WireSyncRust2DartDco wire_UpdateGlobalVar_to_json( + WireSyncRust2DartDco wire__crate__api__UpdateGlobalVar_to_json( int that, ) { - return _wire_UpdateGlobalVar_to_json( + return _wire__crate__api__UpdateGlobalVar_to_json( that, ); } - late final _wire_UpdateGlobalVar_to_jsonPtr = + late final _wire__crate__api__UpdateGlobalVar_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_UpdateGlobalVar_to_json'); - late final _wire_UpdateGlobalVar_to_json = _wire_UpdateGlobalVar_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__UpdateGlobalVar_to_json'); + late final _wire__crate__api__UpdateGlobalVar_to_json = + _wire__crate__api__UpdateGlobalVar_to_jsonPtr + .asFunction(); - void wire_Wallet_approve_erc20( + void wire__crate__api__Wallet_approve_erc20( int port_, int that, ffi.Pointer contract, ffi.Pointer amount, int eth_params, ) { - return _wire_Wallet_approve_erc20( + return _wire__crate__api__Wallet_approve_erc20( port_, that, contract, @@ -3362,20 +3417,21 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_approve_erc20Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.UintPtr, - ffi.Pointer, - ffi.Pointer, - ffi.UintPtr)>>('frbgen_zklink_wire_Wallet_approve_erc20'); - late final _wire_Wallet_approve_erc20 = - _wire_Wallet_approve_erc20Ptr.asFunction< + late final _wire__crate__api__Wallet_approve_erc20Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Wallet_approve_erc20'); + late final _wire__crate__api__Wallet_approve_erc20 = + _wire__crate__api__Wallet_approve_erc20Ptr.asFunction< void Function(int, int, ffi.Pointer, ffi.Pointer, int)>(); - void wire_Wallet_deposit_erc20( + void wire__crate__api__Wallet_deposit_erc20( int port_, int that, int sub_account_id, @@ -3386,7 +3442,7 @@ class RustLibWire implements BaseWire { int eth_params, bool is_gateway, ) { - return _wire_Wallet_deposit_erc20( + return _wire__crate__api__Wallet_deposit_erc20( port_, that, sub_account_id, @@ -3399,20 +3455,21 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_deposit_erc20Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.UintPtr, - ffi.Uint8, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UintPtr, - ffi.Bool)>>('frbgen_zklink_wire_Wallet_deposit_erc20'); - late final _wire_Wallet_deposit_erc20 = - _wire_Wallet_deposit_erc20Ptr.asFunction< + late final _wire__crate__api__Wallet_deposit_erc20Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Uint8, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UintPtr, + ffi.Bool)>>( + 'frbgen_zklink_wire__crate__api__Wallet_deposit_erc20'); + late final _wire__crate__api__Wallet_deposit_erc20 = + _wire__crate__api__Wallet_deposit_erc20Ptr.asFunction< void Function( int, int, @@ -3424,7 +3481,7 @@ class RustLibWire implements BaseWire { int, bool)>(); - void wire_Wallet_deposit_eth( + void wire__crate__api__Wallet_deposit_eth( int port_, int that, int sub_account_id, @@ -3432,7 +3489,7 @@ class RustLibWire implements BaseWire { int eth_params, bool is_gateway, ) { - return _wire_Wallet_deposit_eth( + return _wire__crate__api__Wallet_deposit_eth( port_, that, sub_account_id, @@ -3442,7 +3499,7 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_deposit_ethPtr = _lookup< + late final _wire__crate__api__Wallet_deposit_ethPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -3450,12 +3507,13 @@ class RustLibWire implements BaseWire { ffi.Uint8, ffi.Pointer, ffi.UintPtr, - ffi.Bool)>>('frbgen_zklink_wire_Wallet_deposit_eth'); - late final _wire_Wallet_deposit_eth = _wire_Wallet_deposit_ethPtr.asFunction< - void Function(int, int, int, ffi.Pointer, - int, bool)>(); + ffi.Bool)>>('frbgen_zklink_wire__crate__api__Wallet_deposit_eth'); + late final _wire__crate__api__Wallet_deposit_eth = + _wire__crate__api__Wallet_deposit_ethPtr.asFunction< + void Function(int, int, int, + ffi.Pointer, int, bool)>(); - void wire_Wallet_full_exit( + void wire__crate__api__Wallet_full_exit( int port_, int that, int account_id, @@ -3464,7 +3522,7 @@ class RustLibWire implements BaseWire { bool mapping, int eth_params, ) { - return _wire_Wallet_full_exit( + return _wire__crate__api__Wallet_full_exit( port_, that, account_id, @@ -3475,102 +3533,104 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_full_exitPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.UintPtr, - ffi.Uint32, - ffi.Uint8, - ffi.Uint16, - ffi.Bool, - ffi.UintPtr)>>('frbgen_zklink_wire_Wallet_full_exit'); - late final _wire_Wallet_full_exit = _wire_Wallet_full_exitPtr - .asFunction(); - - void wire_Wallet_get_balance( + late final _wire__crate__api__Wallet_full_exitPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Uint32, ffi.Uint8, + ffi.Uint16, ffi.Bool, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Wallet_full_exit'); + late final _wire__crate__api__Wallet_full_exit = + _wire__crate__api__Wallet_full_exitPtr + .asFunction(); + + void wire__crate__api__Wallet_get_balance( int port_, int that, ) { - return _wire_Wallet_get_balance( + return _wire__crate__api__Wallet_get_balance( port_, that, ); } - late final _wire_Wallet_get_balancePtr = + late final _wire__crate__api__Wallet_get_balancePtr = _lookup>( - 'frbgen_zklink_wire_Wallet_get_balance'); - late final _wire_Wallet_get_balance = - _wire_Wallet_get_balancePtr.asFunction(); + 'frbgen_zklink_wire__crate__api__Wallet_get_balance'); + late final _wire__crate__api__Wallet_get_balance = + _wire__crate__api__Wallet_get_balancePtr + .asFunction(); - void wire_Wallet_get_deposit_fee( + void wire__crate__api__Wallet_get_deposit_fee( int port_, int that, int eth_params, ) { - return _wire_Wallet_get_deposit_fee( + return _wire__crate__api__Wallet_get_deposit_fee( port_, that, eth_params, ); } - late final _wire_Wallet_get_deposit_feePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.UintPtr, - ffi.UintPtr)>>('frbgen_zklink_wire_Wallet_get_deposit_fee'); - late final _wire_Wallet_get_deposit_fee = _wire_Wallet_get_deposit_feePtr - .asFunction(); + late final _wire__crate__api__Wallet_get_deposit_feePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Wallet_get_deposit_fee'); + late final _wire__crate__api__Wallet_get_deposit_fee = + _wire__crate__api__Wallet_get_deposit_feePtr + .asFunction(); - void wire_Wallet_get_nonce( + void wire__crate__api__Wallet_get_nonce( int port_, int that, ffi.Pointer block_number, ) { - return _wire_Wallet_get_nonce( + return _wire__crate__api__Wallet_get_nonce( port_, that, block_number, ); } - late final _wire_Wallet_get_noncePtr = _lookup< + late final _wire__crate__api__Wallet_get_noncePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Pointer)>>( - 'frbgen_zklink_wire_Wallet_get_nonce'); - late final _wire_Wallet_get_nonce = _wire_Wallet_get_noncePtr.asFunction< - void Function(int, int, ffi.Pointer)>(); + 'frbgen_zklink_wire__crate__api__Wallet_get_nonce'); + late final _wire__crate__api__Wallet_get_nonce = + _wire__crate__api__Wallet_get_noncePtr.asFunction< + void Function( + int, int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Wallet_new( + WireSyncRust2DartDco wire__crate__api__Wallet_new( ffi.Pointer url, ffi.Pointer private_key, ) { - return _wire_Wallet_new( + return _wire__crate__api__Wallet_new( url, private_key, ); } - late final _wire_Wallet_newPtr = _lookup< + late final _wire__crate__api__Wallet_newPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_Wallet_new'); - late final _wire_Wallet_new = _wire_Wallet_newPtr.asFunction< - WireSyncRust2DartDco Function(ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_zklink_wire__crate__api__Wallet_new'); + late final _wire__crate__api__Wallet_new = + _wire__crate__api__Wallet_newPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer)>(); - void wire_Wallet_set_auth_pubkey_hash( + void wire__crate__api__Wallet_set_auth_pubkey_hash( int port_, int that, double nonce, ffi.Pointer new_pubkey_hash, int eth_params, ) { - return _wire_Wallet_set_auth_pubkey_hash( + return _wire__crate__api__Wallet_set_auth_pubkey_hash( port_, that, nonce, @@ -3579,26 +3639,23 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_set_auth_pubkey_hashPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.UintPtr, - ffi.Double, - ffi.Pointer, - ffi.UintPtr)>>('frbgen_zklink_wire_Wallet_set_auth_pubkey_hash'); - late final _wire_Wallet_set_auth_pubkey_hash = - _wire_Wallet_set_auth_pubkey_hashPtr.asFunction< + late final _wire__crate__api__Wallet_set_auth_pubkey_hashPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.UintPtr, ffi.Double, + ffi.Pointer, ffi.UintPtr)>>( + 'frbgen_zklink_wire__crate__api__Wallet_set_auth_pubkey_hash'); + late final _wire__crate__api__Wallet_set_auth_pubkey_hash = + _wire__crate__api__Wallet_set_auth_pubkey_hashPtr.asFunction< void Function(int, int, double, ffi.Pointer, int)>(); - void wire_Wallet_wait_for_transaction( + void wire__crate__api__Wallet_wait_for_transaction( int port_, int that, ffi.Pointer tx_hash, ffi.Pointer timeout, ) { - return _wire_Wallet_wait_for_transaction( + return _wire__crate__api__Wallet_wait_for_transaction( port_, that, tx_hash, @@ -3606,40 +3663,40 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Wallet_wait_for_transactionPtr = _lookup< + late final _wire__crate__api__Wallet_wait_for_transactionPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.UintPtr, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_zklink_wire_Wallet_wait_for_transaction'); - late final _wire_Wallet_wait_for_transaction = - _wire_Wallet_wait_for_transactionPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Wallet_wait_for_transaction'); + late final _wire__crate__api__Wallet_wait_for_transaction = + _wire__crate__api__Wallet_wait_for_transactionPtr.asFunction< void Function(int, int, ffi.Pointer, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Withdraw_get_eth_sign_msg( + WireSyncRust2DartDco wire__crate__api__Withdraw_get_eth_sign_msg( int that, ffi.Pointer token_symbol, ) { - return _wire_Withdraw_get_eth_sign_msg( + return _wire__crate__api__Withdraw_get_eth_sign_msg( that, token_symbol, ); } - late final _wire_Withdraw_get_eth_sign_msgPtr = _lookup< + late final _wire__crate__api__Withdraw_get_eth_sign_msgPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, ffi.Pointer)>>( - 'frbgen_zklink_wire_Withdraw_get_eth_sign_msg'); - late final _wire_Withdraw_get_eth_sign_msg = - _wire_Withdraw_get_eth_sign_msgPtr.asFunction< + 'frbgen_zklink_wire__crate__api__Withdraw_get_eth_sign_msg'); + late final _wire__crate__api__Withdraw_get_eth_sign_msg = + _wire__crate__api__Withdraw_get_eth_sign_msgPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_Withdraw_new( + WireSyncRust2DartDco wire__crate__api__Withdraw_new( int account_id, int sub_account_id, int to_chain_id, @@ -3654,7 +3711,7 @@ class RustLibWire implements BaseWire { int withdraw_fee_ratio, ffi.Pointer ts, ) { - return _wire_Withdraw_new( + return _wire__crate__api__Withdraw_new( account_id, sub_account_id, to_chain_id, @@ -3671,940 +3728,945 @@ class RustLibWire implements BaseWire { ); } - late final _wire_Withdraw_newPtr = _lookup< - ffi.NativeFunction< + late final _wire__crate__api__Withdraw_newPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Uint32, + ffi.Uint8, + ffi.Uint8, + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Bool, + ffi.Uint16, + ffi.Pointer)>>( + 'frbgen_zklink_wire__crate__api__Withdraw_new'); + late final _wire__crate__api__Withdraw_new = + _wire__crate__api__Withdraw_newPtr.asFunction< WireSyncRust2DartDco Function( - ffi.Uint32, - ffi.Uint8, - ffi.Uint8, + int, + int, + int, ffi.Pointer, - ffi.Uint32, - ffi.Uint32, + int, + int, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Uint32, - ffi.Bool, - ffi.Uint16, - ffi.Pointer)>>('frbgen_zklink_wire_Withdraw_new'); - late final _wire_Withdraw_new = _wire_Withdraw_newPtr.asFunction< - WireSyncRust2DartDco Function( - int, - int, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - int, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire_Withdraw_sign( + int, + bool, + int, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__Withdraw_sign( int that, int zk_link_signer, ) { - return _wire_Withdraw_sign( + return _wire__crate__api__Withdraw_sign( that, zk_link_signer, ); } - late final _wire_Withdraw_signPtr = _lookup< + late final _wire__crate__api__Withdraw_signPtr = _lookup< ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.UintPtr, ffi.UintPtr)>>('frbgen_zklink_wire_Withdraw_sign'); - late final _wire_Withdraw_sign = _wire_Withdraw_signPtr - .asFunction(); + WireSyncRust2DartDco Function(ffi.UintPtr, + ffi.UintPtr)>>('frbgen_zklink_wire__crate__api__Withdraw_sign'); + late final _wire__crate__api__Withdraw_sign = + _wire__crate__api__Withdraw_signPtr + .asFunction(); - WireSyncRust2DartDco wire_Withdraw_to_json( + WireSyncRust2DartDco wire__crate__api__Withdraw_to_json( int that, ) { - return _wire_Withdraw_to_json( + return _wire__crate__api__Withdraw_to_json( that, ); } - late final _wire_Withdraw_to_jsonPtr = + late final _wire__crate__api__Withdraw_to_jsonPtr = _lookup>( - 'frbgen_zklink_wire_Withdraw_to_json'); - late final _wire_Withdraw_to_json = _wire_Withdraw_to_jsonPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__Withdraw_to_json'); + late final _wire__crate__api__Withdraw_to_json = + _wire__crate__api__Withdraw_to_jsonPtr + .asFunction(); - WireSyncRust2DartDco wire_ZkLinkSignature_get_pubkey( + WireSyncRust2DartDco wire__crate__api__ZkLinkSignature_get_pubkey( int that, ) { - return _wire_ZkLinkSignature_get_pubkey( + return _wire__crate__api__ZkLinkSignature_get_pubkey( that, ); } - late final _wire_ZkLinkSignature_get_pubkeyPtr = + late final _wire__crate__api__ZkLinkSignature_get_pubkeyPtr = _lookup>( - 'frbgen_zklink_wire_ZkLinkSignature_get_pubkey'); - late final _wire_ZkLinkSignature_get_pubkey = - _wire_ZkLinkSignature_get_pubkeyPtr + 'frbgen_zklink_wire__crate__api__ZkLinkSignature_get_pubkey'); + late final _wire__crate__api__ZkLinkSignature_get_pubkey = + _wire__crate__api__ZkLinkSignature_get_pubkeyPtr .asFunction(); - WireSyncRust2DartDco wire_ZkLinkSignature_get_signature( + WireSyncRust2DartDco wire__crate__api__ZkLinkSignature_get_signature( int that, ) { - return _wire_ZkLinkSignature_get_signature( + return _wire__crate__api__ZkLinkSignature_get_signature( that, ); } - late final _wire_ZkLinkSignature_get_signaturePtr = + late final _wire__crate__api__ZkLinkSignature_get_signaturePtr = _lookup>( - 'frbgen_zklink_wire_ZkLinkSignature_get_signature'); - late final _wire_ZkLinkSignature_get_signature = - _wire_ZkLinkSignature_get_signaturePtr + 'frbgen_zklink_wire__crate__api__ZkLinkSignature_get_signature'); + late final _wire__crate__api__ZkLinkSignature_get_signature = + _wire__crate__api__ZkLinkSignature_get_signaturePtr .asFunction(); - WireSyncRust2DartDco wire_ZkLinkSigner_eth_sig( + WireSyncRust2DartDco wire__crate__api__ZkLinkSigner_eth_sig( ffi.Pointer sig, ) { - return _wire_ZkLinkSigner_eth_sig( + return _wire__crate__api__ZkLinkSigner_eth_sig( sig, ); } - late final _wire_ZkLinkSigner_eth_sigPtr = _lookup< + late final _wire__crate__api__ZkLinkSigner_eth_sigPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_ZkLinkSigner_eth_sig'); - late final _wire_ZkLinkSigner_eth_sig = - _wire_ZkLinkSigner_eth_sigPtr.asFunction< + 'frbgen_zklink_wire__crate__api__ZkLinkSigner_eth_sig'); + late final _wire__crate__api__ZkLinkSigner_eth_sig = + _wire__crate__api__ZkLinkSigner_eth_sigPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); - WireSyncRust2DartDco wire_ZkLinkSigner_get_pubkey( + WireSyncRust2DartDco wire__crate__api__ZkLinkSigner_get_pubkey( int that, ) { - return _wire_ZkLinkSigner_get_pubkey( + return _wire__crate__api__ZkLinkSigner_get_pubkey( that, ); } - late final _wire_ZkLinkSigner_get_pubkeyPtr = + late final _wire__crate__api__ZkLinkSigner_get_pubkeyPtr = _lookup>( - 'frbgen_zklink_wire_ZkLinkSigner_get_pubkey'); - late final _wire_ZkLinkSigner_get_pubkey = _wire_ZkLinkSigner_get_pubkeyPtr - .asFunction(); + 'frbgen_zklink_wire__crate__api__ZkLinkSigner_get_pubkey'); + late final _wire__crate__api__ZkLinkSigner_get_pubkey = + _wire__crate__api__ZkLinkSigner_get_pubkeyPtr + .asFunction(); - WireSyncRust2DartDco wire_ZkLinkSigner_get_pubkey_hash( + WireSyncRust2DartDco wire__crate__api__ZkLinkSigner_get_pubkey_hash( int that, ) { - return _wire_ZkLinkSigner_get_pubkey_hash( + return _wire__crate__api__ZkLinkSigner_get_pubkey_hash( that, ); } - late final _wire_ZkLinkSigner_get_pubkey_hashPtr = + late final _wire__crate__api__ZkLinkSigner_get_pubkey_hashPtr = _lookup>( - 'frbgen_zklink_wire_ZkLinkSigner_get_pubkey_hash'); - late final _wire_ZkLinkSigner_get_pubkey_hash = - _wire_ZkLinkSigner_get_pubkey_hashPtr + 'frbgen_zklink_wire__crate__api__ZkLinkSigner_get_pubkey_hash'); + late final _wire__crate__api__ZkLinkSigner_get_pubkey_hash = + _wire__crate__api__ZkLinkSigner_get_pubkey_hashPtr .asFunction(); - WireSyncRust2DartDco wire_ZkLinkSigner_sign_musig( + WireSyncRust2DartDco wire__crate__api__ZkLinkSigner_sign_musig( int that, ffi.Pointer msg, ) { - return _wire_ZkLinkSigner_sign_musig( + return _wire__crate__api__ZkLinkSigner_sign_musig( that, msg, ); } - late final _wire_ZkLinkSigner_sign_musigPtr = _lookup< + late final _wire__crate__api__ZkLinkSigner_sign_musigPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.UintPtr, ffi.Pointer)>>( - 'frbgen_zklink_wire_ZkLinkSigner_sign_musig'); - late final _wire_ZkLinkSigner_sign_musig = - _wire_ZkLinkSigner_sign_musigPtr.asFunction< + 'frbgen_zklink_wire__crate__api__ZkLinkSigner_sign_musig'); + late final _wire__crate__api__ZkLinkSigner_sign_musig = + _wire__crate__api__ZkLinkSigner_sign_musigPtr.asFunction< WireSyncRust2DartDco Function( int, ffi.Pointer)>(); - WireSyncRust2DartDco wire_ZkLinkSigner_starknet_sig( + WireSyncRust2DartDco wire__crate__api__ZkLinkSigner_starknet_sig( ffi.Pointer sig, ) { - return _wire_ZkLinkSigner_starknet_sig( + return _wire__crate__api__ZkLinkSigner_starknet_sig( sig, ); } - late final _wire_ZkLinkSigner_starknet_sigPtr = _lookup< + late final _wire__crate__api__ZkLinkSigner_starknet_sigPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_ZkLinkSigner_starknet_sig'); - late final _wire_ZkLinkSigner_starknet_sig = - _wire_ZkLinkSigner_starknet_sigPtr.asFunction< + 'frbgen_zklink_wire__crate__api__ZkLinkSigner_starknet_sig'); + late final _wire__crate__api__ZkLinkSigner_starknet_sig = + _wire__crate__api__ZkLinkSigner_starknet_sigPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); - WireSyncRust2DartDco wire_closest_packable_fee_amount( + WireSyncRust2DartDco wire__crate__api__closest_packable_fee_amount( ffi.Pointer fee, ) { - return _wire_closest_packable_fee_amount( + return _wire__crate__api__closest_packable_fee_amount( fee, ); } - late final _wire_closest_packable_fee_amountPtr = _lookup< + late final _wire__crate__api__closest_packable_fee_amountPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_closest_packable_fee_amount'); - late final _wire_closest_packable_fee_amount = - _wire_closest_packable_fee_amountPtr.asFunction< + 'frbgen_zklink_wire__crate__api__closest_packable_fee_amount'); + late final _wire__crate__api__closest_packable_fee_amount = + _wire__crate__api__closest_packable_fee_amountPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); - WireSyncRust2DartDco wire_closest_packable_token_amount( + WireSyncRust2DartDco wire__crate__api__closest_packable_token_amount( ffi.Pointer amount, ) { - return _wire_closest_packable_token_amount( + return _wire__crate__api__closest_packable_token_amount( amount, ); } - late final _wire_closest_packable_token_amountPtr = _lookup< + late final _wire__crate__api__closest_packable_token_amountPtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_closest_packable_token_amount'); - late final _wire_closest_packable_token_amount = - _wire_closest_packable_token_amountPtr.asFunction< + 'frbgen_zklink_wire__crate__api__closest_packable_token_amount'); + late final _wire__crate__api__closest_packable_token_amount = + _wire__crate__api__closest_packable_token_amountPtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); - void wire_init_app( + void wire__crate__api__init_app( int port_, ) { - return _wire_init_app( + return _wire__crate__api__init_app( port_, ); } - late final _wire_init_appPtr = + late final _wire__crate__api__init_appPtr = _lookup>( - 'frbgen_zklink_wire_init_app'); - late final _wire_init_app = - _wire_init_appPtr.asFunction(); + 'frbgen_zklink_wire__crate__api__init_app'); + late final _wire__crate__api__init_app = + _wire__crate__api__init_appPtr.asFunction(); - WireSyncRust2DartDco wire_is_fee_amount_packable( + WireSyncRust2DartDco wire__crate__api__is_fee_amount_packable( ffi.Pointer fee, ) { - return _wire_is_fee_amount_packable( + return _wire__crate__api__is_fee_amount_packable( fee, ); } - late final _wire_is_fee_amount_packablePtr = _lookup< + late final _wire__crate__api__is_fee_amount_packablePtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_is_fee_amount_packable'); - late final _wire_is_fee_amount_packable = - _wire_is_fee_amount_packablePtr.asFunction< + 'frbgen_zklink_wire__crate__api__is_fee_amount_packable'); + late final _wire__crate__api__is_fee_amount_packable = + _wire__crate__api__is_fee_amount_packablePtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); - WireSyncRust2DartDco wire_is_token_amount_packable( + WireSyncRust2DartDco wire__crate__api__is_token_amount_packable( ffi.Pointer amount, ) { - return _wire_is_token_amount_packable( + return _wire__crate__api__is_token_amount_packable( amount, ); } - late final _wire_is_token_amount_packablePtr = _lookup< + late final _wire__crate__api__is_token_amount_packablePtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function( ffi.Pointer)>>( - 'frbgen_zklink_wire_is_token_amount_packable'); - late final _wire_is_token_amount_packable = - _wire_is_token_amount_packablePtr.asFunction< + 'frbgen_zklink_wire__crate__api__is_token_amount_packable'); + late final _wire__crate__api__is_token_amount_packable = + _wire__crate__api__is_token_amount_packablePtr.asFunction< WireSyncRust2DartDco Function( ffi.Pointer)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveragingPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveragingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveragingPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveragingPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveragingPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveragingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveragingPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveragingPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKeyPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKeyPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKeyPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKeyPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKeyPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKeyPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKeyPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKeyPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatchingPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatchingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatchingPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatchingPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatchingPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatchingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatchingPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatchingPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOptionPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOptionPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOptionPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOptionPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOptionPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOptionPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOptionPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOptionPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExitPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExitPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExitPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExitPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExitPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExitPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExitPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExitPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidationPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidationPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidationPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidationPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidationPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidationPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidationPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidationPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatchingPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatchingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatchingPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatchingPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatchingPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatchingPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatchingPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatchingPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameterPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameterPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameterPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameterPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameterPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameterPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameterPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameterPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSignerPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSignerPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSignerPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSignerPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSignerPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSignerPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSignerPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSignerPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransferPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransferPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransferPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransferPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransferPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransferPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransferPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransferPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVarPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVarPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVarPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVarPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVarPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVarPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVarPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVarPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWalletPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWalletPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWalletPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWalletPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWalletPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWalletPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWalletPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWalletPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdrawPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdrawPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdrawPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdrawPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdrawPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdrawPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdrawPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdrawPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignaturePtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignaturePtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignaturePtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignaturePtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignaturePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignaturePtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignaturePtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignaturePtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignerPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignerPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignerPtr + 'frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignerPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignerPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignerPtr = _lookup)>>( - 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignerPtr + 'frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignerPtr .asFunction)>(); ffi.Pointer cst_new_box_autoadd_f_64( @@ -4636,99 +4698,99 @@ class RustLibWire implements BaseWire { .asFunction Function(int)>(); ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract> - cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract> + cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( int len, ) { - return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( + return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( len, ); } - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr = + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr = _lookup< ffi.NativeFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract> Function(ffi.Int32)>>( - 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract'); - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract = - _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPtr + 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract'); + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract = + _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPtr .asFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract> Function(int)>(); ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> - cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> + cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( int len, ) { - return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( + return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( len, ); } - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr = + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr = _lookup< ffi.NativeFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> Function(ffi.Int32)>>( - 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice'); - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice = - _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPricePtr + 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice'); + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice = + _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPricePtr .asFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice> Function(int)>(); ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo> - cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo> + cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( int len, ) { - return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( + return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( len, ); } - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr = + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr = _lookup< ffi.NativeFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo> Function(ffi.Int32)>>( - 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo'); - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo = - _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfoPtr + 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo'); + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo = + _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfoPtr .asFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo> Function(int)>(); ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> - cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> + cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( int len, ) { - return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( + return _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( len, ); } - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr = + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr = _lookup< ffi.NativeFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> Function(ffi.Int32)>>( - 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo'); - late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo = - _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfoPtr + 'frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo'); + late final _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo = + _cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfoPtr .asFunction< ffi.Pointer< - wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo> + wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo> Function(int)>(); ffi.Pointer cst_new_list_prim_u_32_loose( @@ -4811,7 +4873,7 @@ typedef DartDartPostCObjectFnTypeFunction = bool Function( typedef DartPort = ffi.Int64; typedef DartDartPort = int; -final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice +final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice extends ffi.Struct { external ffi.Pointer ptr; @@ -4819,7 +4881,7 @@ final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generated external int len; } -final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo +final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo extends ffi.Struct { external ffi.Pointer ptr; @@ -4834,7 +4896,7 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external int len; } -final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract +final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract extends ffi.Struct { external ffi.Pointer ptr; @@ -4849,7 +4911,7 @@ final class wire_cst_list_prim_u_32_loose extends ffi.Struct { external int len; } -final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo +final class wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo extends ffi.Struct { external ffi.Pointer ptr; diff --git a/bindings/dart/pubspec.yaml b/bindings/dart/pubspec.yaml index 0c13966..25ab9cb 100644 --- a/bindings/dart/pubspec.yaml +++ b/bindings/dart/pubspec.yaml @@ -5,19 +5,20 @@ homepage: "https://zk.link" version: 0.0.1 environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.4.0 <4.0.0' flutter: '>=3.0.0' dependencies: flutter: sdk: flutter ffi: ^2.1.2 - flutter_rust_bridge: 2.0.0-dev.32 + flutter_rust_bridge: 2.0.0 dev_dependencies: flutter_test: sdk: flutter - ffigen: ^11.0.0 + ffigen: ^12.0.0 + test: ^1.25.2 flutter: plugin: diff --git a/bindings/dart/rust/Cargo.toml b/bindings/dart/rust/Cargo.toml index ba894fa..1926679 100644 --- a/bindings/dart/rust/Cargo.toml +++ b/bindings/dart/rust/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" crate-type = ["cdylib", "staticlib"] [dependencies] -flutter_rust_bridge = "=2.0.0-dev.32" +flutter_rust_bridge = "=2.0.0" serde_json = { workspace = true } anyhow = { workspace = true } hex = { workspace = true } diff --git a/bindings/dart/rust/src/api.rs b/bindings/dart/rust/src/api.rs index 3ccecb0..7a7b556 100644 --- a/bindings/dart/rust/src/api.rs +++ b/bindings/dart/rust/src/api.rs @@ -49,7 +49,7 @@ macro_rules! tx_default { #[frb(opaque)] pub struct ZkLinkSignature { - pub inner: InnerZkLinkSignature, + inner: InnerZkLinkSignature, } impl ZkLinkSignature { @@ -66,7 +66,7 @@ impl ZkLinkSignature { #[frb(opaque)] pub struct ZkLinkSigner { - pub inner: InnerZkLinkSigner, + inner: InnerZkLinkSigner, } impl ZkLinkSigner { @@ -108,7 +108,7 @@ impl ZkLinkSigner { #[frb(opaque)] pub struct Signer { - pub inner: InnerSigner, + inner: InnerSigner, } impl Signer { @@ -250,7 +250,7 @@ impl Signer { #[frb(opaque)] pub struct ChangePubKey { - pub inner: InnerChangePubKey, + inner: InnerChangePubKey, } impl ChangePubKey { @@ -323,7 +323,7 @@ impl ChangePubKey { #[frb(opaque)] pub struct Transfer { - pub inner: InnerTransfer, + inner: InnerTransfer, } impl Transfer { @@ -370,7 +370,7 @@ impl Transfer { #[frb(opaque)] pub struct Withdraw { - pub inner: InnerWithdraw, + inner: InnerWithdraw, } impl Withdraw { @@ -430,7 +430,7 @@ impl Withdraw { #[frb(opaque)] pub struct ForcedExit { - pub inner: InnerForcedExit, + inner: InnerForcedExit, } impl ForcedExit { @@ -476,7 +476,7 @@ impl ForcedExit { #[frb(opaque)] pub struct ContractPrice { - pub inner: InnerContractPrice, + inner: InnerContractPrice, } impl ContractPrice { @@ -493,7 +493,7 @@ impl ContractPrice { #[frb(opaque)] pub struct SpotPriceInfo { - pub inner: InnerSpotPriceInfo, + inner: InnerSpotPriceInfo, } impl SpotPriceInfo { @@ -510,7 +510,7 @@ impl SpotPriceInfo { #[frb(opaque)] pub struct Order { - pub inner: InnerOrder, + inner: InnerOrder, } impl Order { @@ -552,7 +552,7 @@ impl Order { #[frb(opaque)] pub struct OrderMatching { - pub inner: InnerOrderMatching, + inner: InnerOrderMatching, } impl OrderMatching { @@ -593,7 +593,7 @@ impl OrderMatching { #[frb(opaque)] pub struct Contract { - pub inner: InnerContract, + inner: InnerContract, } impl Contract { @@ -634,7 +634,7 @@ impl Contract { #[frb(opaque)] pub struct ContractMatching { - pub inner: InnerContractMatching, + inner: InnerContractMatching, } impl ContractMatching { @@ -672,7 +672,7 @@ impl ContractMatching { #[frb(opaque)] pub struct AutoDeleveraging { - pub inner: InnerAutoDeleveraging, + inner: InnerAutoDeleveraging, } impl AutoDeleveraging { @@ -715,7 +715,7 @@ impl AutoDeleveraging { #[frb(opaque)] pub struct Funding { - pub inner: InnerFunding, + inner: InnerFunding, } impl Funding { @@ -750,7 +750,7 @@ impl Funding { #[frb(opaque)] pub struct Liquidation { - pub inner: InnerLiquidation, + inner: InnerLiquidation, } impl Liquidation { @@ -787,7 +787,7 @@ impl Liquidation { #[frb(opaque)] pub struct FundingInfo { - pub inner: InnerFundingInfo, + inner: InnerFundingInfo, } impl FundingInfo { @@ -805,7 +805,7 @@ impl FundingInfo { #[frb(opaque)] pub struct Parameter { - pub inner: InnerParameter, + inner: InnerParameter, } impl Parameter { @@ -872,7 +872,7 @@ impl Parameter { #[frb(opaque)] pub struct UpdateGlobalVar { - pub inner: InnerUpdateGlobalVar, + inner: InnerUpdateGlobalVar, } impl UpdateGlobalVar { @@ -902,7 +902,7 @@ impl UpdateGlobalVar { #[frb(opaque)] pub struct EthTxOption { - pub inner: InnerEthTxOption, + inner: InnerEthTxOption, } impl EthTxOption { @@ -940,7 +940,7 @@ impl EthTxOption { #[frb(opaque)] pub struct Wallet { - pub inner: InnerWallet, + inner: InnerWallet, } impl Wallet { diff --git a/bindings/dart/rust/src/frb_generated.io.rs b/bindings/dart/rust/src/frb_generated.io.rs index b1478f6..4d5592b 100644 --- a/bindings/dart/rust/src/frb_generated.io.rs +++ b/bindings/dart/rust/src/frb_generated.io.rs @@ -1,12 +1,12 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32. +// Generated by `flutter_rust_bridge`@ 2.0.0. // Section: imports use super::*; use crate::api::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::transform_result_dco; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -26,384 +26,439 @@ impl CstDecode impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> AutoDeleveraging { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + >, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ChangePubKey { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Contract { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ContractMatching { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + >, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ContractPrice { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> EthTxOption { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ForcedExit { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Funding { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> FundingInfo { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Liquidation { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Order { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> OrderMatching { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Parameter { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Signer { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> SpotPriceInfo { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Transfer { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> UpdateGlobalVar { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Wallet { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Withdraw { - CstDecode::>>::cst_decode(self).rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ZkLinkSignature { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> ZkLinkSigner { - CstDecode::< - RustOpaqueNom>, - >::cst_decode(self) - .rust_auto_opaque_decode_owned() + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) } } impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, > for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, > for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl + CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl + CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl + CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, > for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, > for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, - ) -> RustOpaqueNom> { + ) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } @@ -426,7 +481,7 @@ impl CstDecode for *mut u32 { unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } } } -impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract { +impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { let vec = unsafe { @@ -436,7 +491,7 @@ impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutt vec.into_iter().map(CstDecode::cst_decode).collect() } } -impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice { +impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { let vec = unsafe { @@ -446,7 +501,7 @@ impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_ vec.into_iter().map(CstDecode::cst_decode).collect() } } -impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo { +impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { let vec = unsafe { @@ -456,7 +511,7 @@ impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_fl vec.into_iter().map(CstDecode::cst_decode).collect() } } -impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo { +impl CstDecode> for *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { let vec = unsafe { @@ -504,12 +559,12 @@ impl CstDecode> for *mut wire_cst_list_prim_u_8_strict { } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_AutoDeleveraging_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__AutoDeleveraging_new( account_id: u32, sub_account_id: u8, sub_account_nonce: u32, - contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice, - margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo, + contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice, + margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo, adl_account_id: u32, pair_id: u16, adl_size: *mut wire_cst_list_prim_u_8_strict, @@ -517,7 +572,7 @@ pub extern "C" fn frbgen_zklink_wire_AutoDeleveraging_new( fee: *mut wire_cst_list_prim_u_8_strict, fee_token: u16, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_AutoDeleveraging_new_impl( + wire__crate__api__AutoDeleveraging_new_impl( account_id, sub_account_id, sub_account_nonce, @@ -533,31 +588,31 @@ pub extern "C" fn frbgen_zklink_wire_AutoDeleveraging_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_AutoDeleveraging_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__AutoDeleveraging_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_AutoDeleveraging_sign_impl(that, zk_link_signer) + wire__crate__api__AutoDeleveraging_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_AutoDeleveraging_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__AutoDeleveraging_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_AutoDeleveraging_to_json_impl(that) + wire__crate__api__AutoDeleveraging_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_get_eth_sign_msg( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_get_eth_sign_msg( that: usize, nonce: u32, account_id: u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_get_eth_sign_msg_impl(that, nonce, account_id) + wire__crate__api__ChangePubKey_get_eth_sign_msg_impl(that, nonce, account_id) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_new( chain_id: u8, account_id: u32, sub_account_id: u8, @@ -568,7 +623,7 @@ pub extern "C" fn frbgen_zklink_wire_ChangePubKey_new( eth_signature: *mut wire_cst_list_prim_u_8_strict, ts: *mut u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_new_impl( + wire__crate__api__ChangePubKey_new_impl( chain_id, account_id, sub_account_id, @@ -582,49 +637,49 @@ pub extern "C" fn frbgen_zklink_wire_ChangePubKey_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_set_eth_auth_data( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_set_eth_auth_data( that: usize, sig: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_set_eth_auth_data_impl(that, sig) + wire__crate__api__ChangePubKey_set_eth_auth_data_impl(that, sig) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_sign_impl(that, zk_link_signer) + wire__crate__api__ChangePubKey_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_to_eip712_request_payload( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_to_eip712_request_payload( that: usize, chain_id: u32, address: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_to_eip712_request_payload_impl(that, chain_id, address) + wire__crate__api__ChangePubKey_to_eip712_request_payload_impl(that, chain_id, address) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ChangePubKey_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__ChangePubKey_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ChangePubKey_to_json_impl(that) + wire__crate__api__ChangePubKey_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ContractMatching_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__ContractMatching_new( account_id: u32, sub_account_id: u8, taker: usize, - maker: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract, + maker: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract, fee: *mut wire_cst_list_prim_u_8_strict, fee_token: u16, - contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice, - margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo, + contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice, + margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ContractMatching_new_impl( + wire__crate__api__ContractMatching_new_impl( account_id, sub_account_id, taker, @@ -637,30 +692,30 @@ pub extern "C" fn frbgen_zklink_wire_ContractMatching_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ContractMatching_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__ContractMatching_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ContractMatching_sign_impl(that, zk_link_signer) + wire__crate__api__ContractMatching_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ContractMatching_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__ContractMatching_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ContractMatching_to_json_impl(that) + wire__crate__api__ContractMatching_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ContractPrice_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__ContractPrice_new( pair_id: u16, market_price: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ContractPrice_new_impl(pair_id, market_price) + wire__crate__api__ContractPrice_new_impl(pair_id, market_price) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Contract_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Contract_new( account_id: u32, sub_account_id: u8, slot_id: u32, @@ -673,7 +728,7 @@ pub extern "C" fn frbgen_zklink_wire_Contract_new( taker_fee_rate: u8, has_subsidy: bool, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Contract_new_impl( + wire__crate__api__Contract_new_impl( account_id, sub_account_id, slot_id, @@ -689,22 +744,22 @@ pub extern "C" fn frbgen_zklink_wire_Contract_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Contract_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Contract_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Contract_sign_impl(that, zk_link_signer) + wire__crate__api__Contract_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Contract_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Contract_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Contract_to_json_impl(that) + wire__crate__api__Contract_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_EthTxOption_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__EthTxOption_new( is_support_eip1559: bool, to: *mut wire_cst_list_prim_u_8_strict, nonce: *mut f64, @@ -712,11 +767,11 @@ pub extern "C" fn frbgen_zklink_wire_EthTxOption_new( gas: *mut f64, gas_price: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_EthTxOption_new_impl(is_support_eip1559, to, nonce, value, gas, gas_price) + wire__crate__api__EthTxOption_new_impl(is_support_eip1559, to, nonce, value, gas, gas_price) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ForcedExit_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__ForcedExit_new( to_chain_id: u8, initiator_account_id: u32, initiator_sub_account_id: u8, @@ -729,7 +784,7 @@ pub extern "C" fn frbgen_zklink_wire_ForcedExit_new( withdraw_to_l1: bool, ts: *mut u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ForcedExit_new_impl( + wire__crate__api__ForcedExit_new_impl( to_chain_id, initiator_account_id, initiator_sub_account_id, @@ -745,31 +800,31 @@ pub extern "C" fn frbgen_zklink_wire_ForcedExit_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ForcedExit_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__ForcedExit_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ForcedExit_sign_impl(that, zk_link_signer) + wire__crate__api__ForcedExit_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ForcedExit_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__ForcedExit_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ForcedExit_to_json_impl(that) + wire__crate__api__ForcedExit_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_FundingInfo_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__FundingInfo_new( pair_id: u16, price: *mut wire_cst_list_prim_u_8_strict, funding_rate: i16, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_FundingInfo_new_impl(pair_id, price, funding_rate) + wire__crate__api__FundingInfo_new_impl(pair_id, price, funding_rate) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Funding_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Funding_new( account_id: u32, sub_account_id: u8, sub_account_nonce: u32, @@ -777,7 +832,7 @@ pub extern "C" fn frbgen_zklink_wire_Funding_new( fee: *mut wire_cst_list_prim_u_8_strict, fee_token: u16, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Funding_new_impl( + wire__crate__api__Funding_new_impl( account_id, sub_account_id, sub_account_nonce, @@ -788,32 +843,32 @@ pub extern "C" fn frbgen_zklink_wire_Funding_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Funding_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Funding_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Funding_sign_impl(that, zk_link_signer) + wire__crate__api__Funding_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Funding_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Funding_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Funding_to_json_impl(that) + wire__crate__api__Funding_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Liquidation_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Liquidation_new( account_id: u32, sub_account_id: u8, sub_account_nonce: u32, - contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice, - margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo, + contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice, + margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo, liquidation_account_id: u32, fee: *mut wire_cst_list_prim_u_8_strict, fee_token: u16, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Liquidation_new_impl( + wire__crate__api__Liquidation_new_impl( account_id, sub_account_id, sub_account_nonce, @@ -826,34 +881,34 @@ pub extern "C" fn frbgen_zklink_wire_Liquidation_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Liquidation_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Liquidation_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Liquidation_sign_impl(that, zk_link_signer) + wire__crate__api__Liquidation_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Liquidation_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Liquidation_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Liquidation_to_json_impl(that) + wire__crate__api__Liquidation_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_OrderMatching_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__OrderMatching_new( account_id: u32, sub_account_id: u8, taker: usize, maker: usize, fee: *mut wire_cst_list_prim_u_8_strict, fee_token: u32, - contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice, - margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo, + contract_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice, + margin_prices: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo, expect_base_amount: *mut wire_cst_list_prim_u_8_strict, expect_quote_amount: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_OrderMatching_new_impl( + wire__crate__api__OrderMatching_new_impl( account_id, sub_account_id, taker, @@ -868,22 +923,22 @@ pub extern "C" fn frbgen_zklink_wire_OrderMatching_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_OrderMatching_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__OrderMatching_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_OrderMatching_sign_impl(that, zk_link_signer) + wire__crate__api__OrderMatching_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_OrderMatching_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__OrderMatching_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_OrderMatching_to_json_impl(that) + wire__crate__api__OrderMatching_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Order_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Order_new( account_id: u32, sub_account_id: u8, slot_id: u32, @@ -897,7 +952,7 @@ pub extern "C" fn frbgen_zklink_wire_Order_new( taker_fee_rate: u8, has_subsidy: bool, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Order_new_impl( + wire__crate__api__Order_new_impl( account_id, sub_account_id, slot_id, @@ -914,28 +969,28 @@ pub extern "C" fn frbgen_zklink_wire_Order_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Order_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Order_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Order_sign_impl(that, zk_link_signer) + wire__crate__api__Order_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Order_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Order_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Order_to_json_impl(that) + wire__crate__api__Order_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Parameter_contract_info( +pub extern "C" fn frbgen_zklink_wire__crate__api__Parameter_contract_info( pair_id: u16, symbol: *mut wire_cst_list_prim_u_8_strict, initial_margin_rate: u16, maintenance_margin_rate: u16, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Parameter_contract_info_impl( + wire__crate__api__Parameter_contract_info_impl( pair_id, symbol, initial_margin_rate, @@ -944,76 +999,76 @@ pub extern "C" fn frbgen_zklink_wire_Parameter_contract_info( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Parameter_fee_account( +pub extern "C" fn frbgen_zklink_wire__crate__api__Parameter_fee_account( account_id: u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Parameter_fee_account_impl(account_id) + wire__crate__api__Parameter_fee_account_impl(account_id) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Parameter_funding_infos( - infos: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo, +pub extern "C" fn frbgen_zklink_wire__crate__api__Parameter_funding_infos( + infos: *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Parameter_funding_infos_impl(infos) + wire__crate__api__Parameter_funding_infos_impl(infos) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Parameter_insurance_fund_account( +pub extern "C" fn frbgen_zklink_wire__crate__api__Parameter_insurance_fund_account( account_id: u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Parameter_insurance_fund_account_impl(account_id) + wire__crate__api__Parameter_insurance_fund_account_impl(account_id) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Parameter_margin_info( +pub extern "C" fn frbgen_zklink_wire__crate__api__Parameter_margin_info( margin_id: u8, symbol: *mut wire_cst_list_prim_u_8_strict, token_id: u32, ratio: u8, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Parameter_margin_info_impl(margin_id, symbol, token_id, ratio) + wire__crate__api__Parameter_margin_info_impl(margin_id, symbol, token_id, ratio) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_create_signed_contract( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_create_signed_contract( that: usize, contract: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_create_signed_contract_impl(that, contract) + wire__crate__api__Signer_create_signed_contract_impl(that, contract) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_create_signed_order( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_create_signed_order( that: usize, order: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_create_signed_order_impl(that, order) + wire__crate__api__Signer_create_signed_order_impl(that, order) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_eth_signer( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_eth_signer( eth_private_key: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_eth_signer_impl(eth_private_key) + wire__crate__api__Signer_eth_signer_impl(eth_private_key) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_auto_deleveraging( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_auto_deleveraging( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_auto_deleveraging_impl(that, tx) + wire__crate__api__Signer_sign_auto_deleveraging_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_change_pubkey_with_create2data_auth( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth( that: usize, tx: usize, creator_address: *mut wire_cst_list_prim_u_8_strict, salt_arg: *mut wire_cst_list_prim_u_8_strict, code_hash: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_change_pubkey_with_create2data_auth_impl( + wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth_impl( that, tx, creator_address, @@ -1023,110 +1078,110 @@ pub extern "C" fn frbgen_zklink_wire_Signer_sign_change_pubkey_with_create2data_ } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth_impl(that, tx) + wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_change_pubkey_with_onchain( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_change_pubkey_with_onchain( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_change_pubkey_with_onchain_impl(that, tx) + wire__crate__api__Signer_sign_change_pubkey_with_onchain_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_contract_matching( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_contract_matching( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_contract_matching_impl(that, tx) + wire__crate__api__Signer_sign_contract_matching_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_forced_exit( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_forced_exit( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_forced_exit_impl(that, tx) + wire__crate__api__Signer_sign_forced_exit_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_funding( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_funding( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_funding_impl(that, tx) + wire__crate__api__Signer_sign_funding_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_liquidation( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_liquidation( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_liquidation_impl(that, tx) + wire__crate__api__Signer_sign_liquidation_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_order_matching( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_order_matching( that: usize, tx: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_order_matching_impl(that, tx) + wire__crate__api__Signer_sign_order_matching_impl(that, tx) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_transfer( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_transfer( that: usize, tx: usize, token_symbol: *mut wire_cst_list_prim_u_8_strict, chain_id: *mut wire_cst_list_prim_u_8_strict, addr: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_transfer_impl(that, tx, token_symbol, chain_id, addr) + wire__crate__api__Signer_sign_transfer_impl(that, tx, token_symbol, chain_id, addr) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_sign_withdraw( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_sign_withdraw( that: usize, tx: usize, token_symbol: *mut wire_cst_list_prim_u_8_strict, chain_id: *mut wire_cst_list_prim_u_8_strict, addr: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_sign_withdraw_impl(that, tx, token_symbol, chain_id, addr) + wire__crate__api__Signer_sign_withdraw_impl(that, tx, token_symbol, chain_id, addr) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Signer_starknet_signer( +pub extern "C" fn frbgen_zklink_wire__crate__api__Signer_starknet_signer( eth_private_key: *mut wire_cst_list_prim_u_8_strict, starknet_chain_id: *mut wire_cst_list_prim_u_8_strict, starknet_addr: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Signer_starknet_signer_impl(eth_private_key, starknet_chain_id, starknet_addr) + wire__crate__api__Signer_starknet_signer_impl(eth_private_key, starknet_chain_id, starknet_addr) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_SpotPriceInfo_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__SpotPriceInfo_new( token_id: u32, price: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_SpotPriceInfo_new_impl(token_id, price) + wire__crate__api__SpotPriceInfo_new_impl(token_id, price) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Transfer_get_eth_sign_msg( +pub extern "C" fn frbgen_zklink_wire__crate__api__Transfer_get_eth_sign_msg( that: usize, token_symbol: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Transfer_get_eth_sign_msg_impl(that, token_symbol) + wire__crate__api__Transfer_get_eth_sign_msg_impl(that, token_symbol) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Transfer_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Transfer_new( account_id: u32, to_address: *mut wire_cst_list_prim_u_8_strict, from_sub_account_id: u8, @@ -1137,7 +1192,7 @@ pub extern "C" fn frbgen_zklink_wire_Transfer_new( nonce: u32, ts: *mut u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Transfer_new_impl( + wire__crate__api__Transfer_new_impl( account_id, to_address, from_sub_account_id, @@ -1151,50 +1206,50 @@ pub extern "C" fn frbgen_zklink_wire_Transfer_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Transfer_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Transfer_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Transfer_sign_impl(that, zk_link_signer) + wire__crate__api__Transfer_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Transfer_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Transfer_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Transfer_to_json_impl(that) + wire__crate__api__Transfer_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_UpdateGlobalVar_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__UpdateGlobalVar_new( from_chain_id: u8, sub_account_id: u8, parameter: usize, serial_id: f64, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_UpdateGlobalVar_new_impl(from_chain_id, sub_account_id, parameter, serial_id) + wire__crate__api__UpdateGlobalVar_new_impl(from_chain_id, sub_account_id, parameter, serial_id) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_UpdateGlobalVar_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__UpdateGlobalVar_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_UpdateGlobalVar_to_json_impl(that) + wire__crate__api__UpdateGlobalVar_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_approve_erc20( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_approve_erc20( port_: i64, that: usize, contract: *mut wire_cst_list_prim_u_8_strict, amount: *mut wire_cst_list_prim_u_8_strict, eth_params: usize, ) { - wire_Wallet_approve_erc20_impl(port_, that, contract, amount, eth_params) + wire__crate__api__Wallet_approve_erc20_impl(port_, that, contract, amount, eth_params) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_erc20( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_deposit_erc20( port_: i64, that: usize, sub_account_id: u8, @@ -1205,7 +1260,7 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_erc20( eth_params: usize, is_gateway: bool, ) { - wire_Wallet_deposit_erc20_impl( + wire__crate__api__Wallet_deposit_erc20_impl( port_, that, sub_account_id, @@ -1219,7 +1274,7 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_erc20( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_eth( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_deposit_eth( port_: i64, that: usize, sub_account_id: u8, @@ -1227,7 +1282,7 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_eth( eth_params: usize, is_gateway: bool, ) { - wire_Wallet_deposit_eth_impl( + wire__crate__api__Wallet_deposit_eth_impl( port_, that, sub_account_id, @@ -1238,7 +1293,7 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_deposit_eth( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_full_exit( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_full_exit( port_: i64, that: usize, account_id: u32, @@ -1247,7 +1302,7 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_full_exit( mapping: bool, eth_params: usize, ) { - wire_Wallet_full_exit_impl( + wire__crate__api__Wallet_full_exit_impl( port_, that, account_id, @@ -1259,67 +1314,73 @@ pub extern "C" fn frbgen_zklink_wire_Wallet_full_exit( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_get_balance(port_: i64, that: usize) { - wire_Wallet_get_balance_impl(port_, that) +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_get_balance(port_: i64, that: usize) { + wire__crate__api__Wallet_get_balance_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_get_deposit_fee( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_get_deposit_fee( port_: i64, that: usize, eth_params: usize, ) { - wire_Wallet_get_deposit_fee_impl(port_, that, eth_params) + wire__crate__api__Wallet_get_deposit_fee_impl(port_, that, eth_params) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_get_nonce( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_get_nonce( port_: i64, that: usize, block_number: *mut wire_cst_list_prim_u_8_strict, ) { - wire_Wallet_get_nonce_impl(port_, that, block_number) + wire__crate__api__Wallet_get_nonce_impl(port_, that, block_number) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_new( url: *mut wire_cst_list_prim_u_8_strict, private_key: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Wallet_new_impl(url, private_key) + wire__crate__api__Wallet_new_impl(url, private_key) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_set_auth_pubkey_hash( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_set_auth_pubkey_hash( port_: i64, that: usize, nonce: f64, new_pubkey_hash: *mut wire_cst_list_prim_u_8_strict, eth_params: usize, ) { - wire_Wallet_set_auth_pubkey_hash_impl(port_, that, nonce, new_pubkey_hash, eth_params) + wire__crate__api__Wallet_set_auth_pubkey_hash_impl( + port_, + that, + nonce, + new_pubkey_hash, + eth_params, + ) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Wallet_wait_for_transaction( +pub extern "C" fn frbgen_zklink_wire__crate__api__Wallet_wait_for_transaction( port_: i64, that: usize, tx_hash: *mut wire_cst_list_prim_u_8_strict, timeout: *mut u32, ) { - wire_Wallet_wait_for_transaction_impl(port_, that, tx_hash, timeout) + wire__crate__api__Wallet_wait_for_transaction_impl(port_, that, tx_hash, timeout) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Withdraw_get_eth_sign_msg( +pub extern "C" fn frbgen_zklink_wire__crate__api__Withdraw_get_eth_sign_msg( that: usize, token_symbol: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Withdraw_get_eth_sign_msg_impl(that, token_symbol) + wire__crate__api__Withdraw_get_eth_sign_msg_impl(that, token_symbol) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Withdraw_new( +pub extern "C" fn frbgen_zklink_wire__crate__api__Withdraw_new( account_id: u32, sub_account_id: u8, to_chain_id: u8, @@ -1334,7 +1395,7 @@ pub extern "C" fn frbgen_zklink_wire_Withdraw_new( withdraw_fee_ratio: u16, ts: *mut u32, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Withdraw_new_impl( + wire__crate__api__Withdraw_new_impl( account_id, sub_account_id, to_chain_id, @@ -1352,478 +1413,478 @@ pub extern "C" fn frbgen_zklink_wire_Withdraw_new( } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Withdraw_sign( +pub extern "C" fn frbgen_zklink_wire__crate__api__Withdraw_sign( that: usize, zk_link_signer: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Withdraw_sign_impl(that, zk_link_signer) + wire__crate__api__Withdraw_sign_impl(that, zk_link_signer) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_Withdraw_to_json( +pub extern "C" fn frbgen_zklink_wire__crate__api__Withdraw_to_json( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_Withdraw_to_json_impl(that) + wire__crate__api__Withdraw_to_json_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSignature_get_pubkey( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSignature_get_pubkey( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSignature_get_pubkey_impl(that) + wire__crate__api__ZkLinkSignature_get_pubkey_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSignature_get_signature( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSignature_get_signature( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSignature_get_signature_impl(that) + wire__crate__api__ZkLinkSignature_get_signature_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSigner_eth_sig( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSigner_eth_sig( sig: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSigner_eth_sig_impl(sig) + wire__crate__api__ZkLinkSigner_eth_sig_impl(sig) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSigner_get_pubkey( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSigner_get_pubkey( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSigner_get_pubkey_impl(that) + wire__crate__api__ZkLinkSigner_get_pubkey_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSigner_get_pubkey_hash( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSigner_get_pubkey_hash( that: usize, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSigner_get_pubkey_hash_impl(that) + wire__crate__api__ZkLinkSigner_get_pubkey_hash_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSigner_sign_musig( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSigner_sign_musig( that: usize, msg: *mut wire_cst_list_prim_u_8_loose, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSigner_sign_musig_impl(that, msg) + wire__crate__api__ZkLinkSigner_sign_musig_impl(that, msg) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_ZkLinkSigner_starknet_sig( +pub extern "C" fn frbgen_zklink_wire__crate__api__ZkLinkSigner_starknet_sig( sig: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_ZkLinkSigner_starknet_sig_impl(sig) + wire__crate__api__ZkLinkSigner_starknet_sig_impl(sig) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_closest_packable_fee_amount( +pub extern "C" fn frbgen_zklink_wire__crate__api__closest_packable_fee_amount( fee: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_closest_packable_fee_amount_impl(fee) + wire__crate__api__closest_packable_fee_amount_impl(fee) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_closest_packable_token_amount( +pub extern "C" fn frbgen_zklink_wire__crate__api__closest_packable_token_amount( amount: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_closest_packable_token_amount_impl(amount) + wire__crate__api__closest_packable_token_amount_impl(amount) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_init_app(port_: i64) { - wire_init_app_impl(port_) +pub extern "C" fn frbgen_zklink_wire__crate__api__init_app(port_: i64) { + wire__crate__api__init_app_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_is_fee_amount_packable( +pub extern "C" fn frbgen_zklink_wire__crate__api__is_fee_amount_packable( fee: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_is_fee_amount_packable_impl(fee) + wire__crate__api__is_fee_amount_packable_impl(fee) } #[no_mangle] -pub extern "C" fn frbgen_zklink_wire_is_token_amount_packable( +pub extern "C" fn frbgen_zklink_wire__crate__api__is_token_amount_packable( amount: *mut wire_cst_list_prim_u_8_strict, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire_is_token_amount_packable_impl(amount) + wire__crate__api__is_token_amount_packable_impl(amount) } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockAutoDeleveraging( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerAutoDeleveraging( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockChangePubKey( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerChangePubKey( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractMatching( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractMatching( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEthTxOption( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockForcedExit( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerForcedExit( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFunding( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockLiquidation( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLiquidation( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrder( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrder( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockOrderMatching( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOrderMatching( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerParameter( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSigner( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSigner( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerTransfer( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockUpdateGlobalVar( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerUpdateGlobalVar( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWallet( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWithdraw( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerWithdraw( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSignature( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSignature( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( +pub extern "C" fn frbgen_zklink_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockZkLinkSigner( +pub extern "C" fn frbgen_zklink_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerZkLinkSigner( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } @@ -1838,29 +1899,26 @@ pub extern "C" fn frbgen_zklink_cst_new_box_autoadd_u_32(value: u32) -> *mut u32 } #[no_mangle] -pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract( - len: i32, -) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract -{ - let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; +pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract{ + let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } #[no_mangle] -pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice{ - let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; +pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice{ + let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } #[no_mangle] -pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo{ - let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; +pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo{ + let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } #[no_mangle] -pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo{ - let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; +pub extern "C" fn frbgen_zklink_cst_new_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo(len: i32) -> *mut wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo{ + let wrap = wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo { ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), len }; flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } @@ -1910,28 +1968,28 @@ pub extern "C" fn frbgen_zklink_cst_new_list_prim_u_8_strict( #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContract +pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContract { ptr: *mut usize, len: i32, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockContractPrice +pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerContractPrice { ptr: *mut usize, len: i32, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFundingInfo +pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFundingInfo { ptr: *mut usize, len: i32, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockSpotPriceInfo +pub struct wire_cst_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSpotPriceInfo { ptr: *mut usize, len: i32, diff --git a/bindings/dart/rust/src/frb_generated.rs b/bindings/dart/rust/src/frb_generated.rs index 67ffdad..4f2ccbc 100644 --- a/bindings/dart/rust/src/frb_generated.rs +++ b/bindings/dart/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32. +// Generated by `flutter_rust_bridge`@ 2.0.0. #![allow( non_camel_case_types, @@ -14,14 +14,20 @@ clippy::double_parens, clippy::let_and_return, clippy::too_many_arguments, - clippy::match_single_binding + clippy::match_single_binding, + clippy::clone_on_copy, + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports use crate::api::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::transform_result_dco; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -31,7 +37,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom, ); -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.32"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -634235047; // Section: executor @@ -40,7 +46,7 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_AutoDeleveraging_new_impl( +fn wire__crate__api__AutoDeleveraging_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, sub_account_nonce: impl CstDecode, @@ -71,27 +77,30 @@ fn wire_AutoDeleveraging_new_impl( let api_adl_price = adl_price.cst_decode(); let api_fee = fee.cst_decode(); let api_fee_token = fee_token.cst_decode(); - transform_result_dco((move || { - crate::api::AutoDeleveraging::new( - api_account_id, - api_sub_account_id, - api_sub_account_nonce, - api_contract_prices, - api_margin_prices, - api_adl_account_id, - api_pair_id, - api_adl_size, - api_adl_price, - api_fee, - api_fee_token, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::AutoDeleveraging::new( + api_account_id, + api_sub_account_id, + api_sub_account_nonce, + api_contract_prices, + api_margin_prices, + api_adl_account_id, + api_pair_id, + api_adl_size, + api_adl_price, + api_fee, + api_fee_token, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_AutoDeleveraging_sign_impl( +fn wire__crate__api__AutoDeleveraging_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -104,16 +113,35 @@ fn wire_AutoDeleveraging_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::AutoDeleveraging::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::AutoDeleveraging::sign( + &mut *api_that_guard, + api_zk_link_signer, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_AutoDeleveraging_to_json_impl( +fn wire__crate__api__AutoDeleveraging_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -124,16 +152,32 @@ fn wire_AutoDeleveraging_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::AutoDeleveraging::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::AutoDeleveraging::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ChangePubKey_get_eth_sign_msg_impl( +fn wire__crate__api__ChangePubKey_get_eth_sign_msg_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, nonce: impl CstDecode, account_id: impl CstDecode, @@ -148,18 +192,32 @@ fn wire_ChangePubKey_get_eth_sign_msg_impl( let api_that = that.cst_decode(); let api_nonce = nonce.cst_decode(); let api_account_id = account_id.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::ChangePubKey::get_eth_sign_msg( - &api_that, + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(crate::api::ChangePubKey::get_eth_sign_msg( + &*api_that_guard, api_nonce, api_account_id, - )) + ))?; + Ok(output_ok) })()) }, ) } -fn wire_ChangePubKey_new_impl( +fn wire__crate__api__ChangePubKey_new_impl( chain_id: impl CstDecode, account_id: impl CstDecode, sub_account_id: impl CstDecode, @@ -186,25 +244,28 @@ fn wire_ChangePubKey_new_impl( let api_nonce = nonce.cst_decode(); let api_eth_signature = eth_signature.cst_decode(); let api_ts = ts.cst_decode(); - transform_result_dco((move || { - crate::api::ChangePubKey::new( - api_chain_id, - api_account_id, - api_sub_account_id, - api_new_pubkey_hash, - api_fee_token, - api_fee, - api_nonce, - api_eth_signature, - api_ts, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ChangePubKey::new( + api_chain_id, + api_account_id, + api_sub_account_id, + api_new_pubkey_hash, + api_fee_token, + api_fee, + api_nonce, + api_eth_signature, + api_ts, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ChangePubKey_set_eth_auth_data_impl( +fn wire__crate__api__ChangePubKey_set_eth_auth_data_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, sig: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -217,16 +278,33 @@ fn wire_ChangePubKey_set_eth_auth_data_impl( move || { let api_that = that.cst_decode(); let api_sig = sig.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::ChangePubKey::set_eth_auth_data(&mut api_that, api_sig) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::ChangePubKey::set_eth_auth_data(&mut *api_that_guard, api_sig)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ChangePubKey_sign_impl( +fn wire__crate__api__ChangePubKey_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -239,16 +317,33 @@ fn wire_ChangePubKey_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::ChangePubKey::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::ChangePubKey::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ChangePubKey_to_eip712_request_payload_impl( +fn wire__crate__api__ChangePubKey_to_eip712_request_payload_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, chain_id: impl CstDecode, address: impl CstDecode, @@ -263,20 +358,36 @@ fn wire_ChangePubKey_to_eip712_request_payload_impl( let api_that = that.cst_decode(); let api_chain_id = chain_id.cst_decode(); let api_address = address.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::ChangePubKey::to_eip712_request_payload( - &api_that, - api_chain_id, - api_address, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::ChangePubKey::to_eip712_request_payload( + &*api_that_guard, + api_chain_id, + api_address, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ChangePubKey_to_json_impl( +fn wire__crate__api__ChangePubKey_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -287,14 +398,30 @@ fn wire_ChangePubKey_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::ChangePubKey::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::ChangePubKey::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ContractMatching_new_impl( +fn wire__crate__api__ContractMatching_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, taker: impl CstDecode, @@ -319,24 +446,27 @@ fn wire_ContractMatching_new_impl( let api_fee_token = fee_token.cst_decode(); let api_contract_prices = contract_prices.cst_decode(); let api_margin_prices = margin_prices.cst_decode(); - transform_result_dco((move || { - crate::api::ContractMatching::new( - api_account_id, - api_sub_account_id, - api_taker, - api_maker, - api_fee, - api_fee_token, - api_contract_prices, - api_margin_prices, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ContractMatching::new( + api_account_id, + api_sub_account_id, + api_taker, + api_maker, + api_fee, + api_fee_token, + api_contract_prices, + api_margin_prices, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ContractMatching_sign_impl( +fn wire__crate__api__ContractMatching_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -349,16 +479,35 @@ fn wire_ContractMatching_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::ContractMatching::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::ContractMatching::sign( + &mut *api_that_guard, + api_zk_link_signer, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ContractMatching_to_json_impl( +fn wire__crate__api__ContractMatching_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -369,14 +518,30 @@ fn wire_ContractMatching_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::ContractMatching::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::ContractMatching::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ContractPrice_new_impl( +fn wire__crate__api__ContractPrice_new_impl( pair_id: impl CstDecode, market_price: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -389,13 +554,16 @@ fn wire_ContractPrice_new_impl( move || { let api_pair_id = pair_id.cst_decode(); let api_market_price = market_price.cst_decode(); - transform_result_dco((move || { - crate::api::ContractPrice::new(api_pair_id, api_market_price) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ContractPrice::new(api_pair_id, api_market_price)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Contract_new_impl( +fn wire__crate__api__Contract_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, slot_id: impl CstDecode, @@ -426,27 +594,30 @@ fn wire_Contract_new_impl( let api_maker_fee_rate = maker_fee_rate.cst_decode(); let api_taker_fee_rate = taker_fee_rate.cst_decode(); let api_has_subsidy = has_subsidy.cst_decode(); - transform_result_dco((move || { - crate::api::Contract::new( - api_account_id, - api_sub_account_id, - api_slot_id, - api_nonce, - api_pair_id, - api_size, - api_price, - api_direction, - api_maker_fee_rate, - api_taker_fee_rate, - api_has_subsidy, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Contract::new( + api_account_id, + api_sub_account_id, + api_slot_id, + api_nonce, + api_pair_id, + api_size, + api_price, + api_direction, + api_maker_fee_rate, + api_taker_fee_rate, + api_has_subsidy, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Contract_sign_impl( +fn wire__crate__api__Contract_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -459,16 +630,33 @@ fn wire_Contract_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Contract::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Contract::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Contract_to_json_impl( +fn wire__crate__api__Contract_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -479,14 +667,30 @@ fn wire_Contract_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Contract::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Contract::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_EthTxOption_new_impl( +fn wire__crate__api__EthTxOption_new_impl( is_support_eip1559: impl CstDecode, to: impl CstDecode, nonce: impl CstDecode>, @@ -507,20 +711,23 @@ fn wire_EthTxOption_new_impl( let api_value = value.cst_decode(); let api_gas = gas.cst_decode(); let api_gas_price = gas_price.cst_decode(); - transform_result_dco((move || { - crate::api::EthTxOption::new( - api_is_support_eip1559, - api_to, - api_nonce, - api_value, - api_gas, - api_gas_price, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::EthTxOption::new( + api_is_support_eip1559, + api_to, + api_nonce, + api_value, + api_gas, + api_gas_price, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ForcedExit_new_impl( +fn wire__crate__api__ForcedExit_new_impl( to_chain_id: impl CstDecode, initiator_account_id: impl CstDecode, initiator_sub_account_id: impl CstDecode, @@ -551,27 +758,30 @@ fn wire_ForcedExit_new_impl( let api_initiator_nonce = initiator_nonce.cst_decode(); let api_withdraw_to_l1 = withdraw_to_l1.cst_decode(); let api_ts = ts.cst_decode(); - transform_result_dco((move || { - crate::api::ForcedExit::new( - api_to_chain_id, - api_initiator_account_id, - api_initiator_sub_account_id, - api_target_sub_account_id, - api_target, - api_l2_source_token, - api_l1_target_token, - api_exit_amount, - api_initiator_nonce, - api_withdraw_to_l1, - api_ts, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ForcedExit::new( + api_to_chain_id, + api_initiator_account_id, + api_initiator_sub_account_id, + api_target_sub_account_id, + api_target, + api_l2_source_token, + api_l1_target_token, + api_exit_amount, + api_initiator_nonce, + api_withdraw_to_l1, + api_ts, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ForcedExit_sign_impl( +fn wire__crate__api__ForcedExit_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -584,16 +794,33 @@ fn wire_ForcedExit_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::ForcedExit::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::ForcedExit::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ForcedExit_to_json_impl( +fn wire__crate__api__ForcedExit_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -604,14 +831,30 @@ fn wire_ForcedExit_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::ForcedExit::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::ForcedExit::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_FundingInfo_new_impl( +fn wire__crate__api__FundingInfo_new_impl( pair_id: impl CstDecode, price: impl CstDecode, funding_rate: impl CstDecode, @@ -626,13 +869,17 @@ fn wire_FundingInfo_new_impl( let api_pair_id = pair_id.cst_decode(); let api_price = price.cst_decode(); let api_funding_rate = funding_rate.cst_decode(); - transform_result_dco((move || { - crate::api::FundingInfo::new(api_pair_id, api_price, api_funding_rate) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = + crate::api::FundingInfo::new(api_pair_id, api_price, api_funding_rate)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Funding_new_impl( +fn wire__crate__api__Funding_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, sub_account_nonce: impl CstDecode, @@ -653,21 +900,26 @@ fn wire_Funding_new_impl( let api_funding_account_ids = funding_account_ids.cst_decode(); let api_fee = fee.cst_decode(); let api_fee_token = fee_token.cst_decode(); - transform_result_dco((move || { - crate::api::Funding::new( - api_account_id, - api_sub_account_id, - api_sub_account_nonce, - api_funding_account_ids, - api_fee, - api_fee_token, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Funding::new( + api_account_id, + api_sub_account_id, + api_sub_account_nonce, + api_funding_account_ids, + api_fee, + api_fee_token, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Funding_sign_impl( - that: impl CstDecode>>, +fn wire__crate__api__Funding_sign_impl( + that: impl CstDecode< + RustOpaqueNom>, + >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -679,15 +931,34 @@ fn wire_Funding_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Funding::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Funding::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Funding_to_json_impl( - that: impl CstDecode>>, +fn wire__crate__api__Funding_to_json_impl( + that: impl CstDecode< + RustOpaqueNom>, + >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { @@ -697,14 +968,30 @@ fn wire_Funding_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Funding::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Funding::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Liquidation_new_impl( +fn wire__crate__api__Liquidation_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, sub_account_nonce: impl CstDecode, @@ -729,24 +1016,27 @@ fn wire_Liquidation_new_impl( let api_liquidation_account_id = liquidation_account_id.cst_decode(); let api_fee = fee.cst_decode(); let api_fee_token = fee_token.cst_decode(); - transform_result_dco((move || { - crate::api::Liquidation::new( - api_account_id, - api_sub_account_id, - api_sub_account_nonce, - api_contract_prices, - api_margin_prices, - api_liquidation_account_id, - api_fee, - api_fee_token, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Liquidation::new( + api_account_id, + api_sub_account_id, + api_sub_account_nonce, + api_contract_prices, + api_margin_prices, + api_liquidation_account_id, + api_fee, + api_fee_token, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Liquidation_sign_impl( +fn wire__crate__api__Liquidation_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -759,16 +1049,33 @@ fn wire_Liquidation_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Liquidation::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Liquidation::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Liquidation_to_json_impl( +fn wire__crate__api__Liquidation_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -779,14 +1086,30 @@ fn wire_Liquidation_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Liquidation::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Liquidation::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_OrderMatching_new_impl( +fn wire__crate__api__OrderMatching_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, taker: impl CstDecode, @@ -815,26 +1138,29 @@ fn wire_OrderMatching_new_impl( let api_margin_prices = margin_prices.cst_decode(); let api_expect_base_amount = expect_base_amount.cst_decode(); let api_expect_quote_amount = expect_quote_amount.cst_decode(); - transform_result_dco((move || { - crate::api::OrderMatching::new( - api_account_id, - api_sub_account_id, - api_taker, - api_maker, - api_fee, - api_fee_token, - api_contract_prices, - api_margin_prices, - api_expect_base_amount, - api_expect_quote_amount, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::OrderMatching::new( + api_account_id, + api_sub_account_id, + api_taker, + api_maker, + api_fee, + api_fee_token, + api_contract_prices, + api_margin_prices, + api_expect_base_amount, + api_expect_quote_amount, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_OrderMatching_sign_impl( +fn wire__crate__api__OrderMatching_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -847,16 +1173,33 @@ fn wire_OrderMatching_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::OrderMatching::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::OrderMatching::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_OrderMatching_to_json_impl( +fn wire__crate__api__OrderMatching_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -867,14 +1210,30 @@ fn wire_OrderMatching_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::OrderMatching::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::OrderMatching::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Order_new_impl( +fn wire__crate__api__Order_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, slot_id: impl CstDecode, @@ -907,27 +1266,30 @@ fn wire_Order_new_impl( let api_maker_fee_rate = maker_fee_rate.cst_decode(); let api_taker_fee_rate = taker_fee_rate.cst_decode(); let api_has_subsidy = has_subsidy.cst_decode(); - transform_result_dco((move || { - crate::api::Order::new( - api_account_id, - api_sub_account_id, - api_slot_id, - api_nonce, - api_base_token_id, - api_quote_token_id, - api_amount, - api_price, - api_is_sell, - api_maker_fee_rate, - api_taker_fee_rate, - api_has_subsidy, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Order::new( + api_account_id, + api_sub_account_id, + api_slot_id, + api_nonce, + api_base_token_id, + api_quote_token_id, + api_amount, + api_price, + api_is_sell, + api_maker_fee_rate, + api_taker_fee_rate, + api_has_subsidy, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Order_sign_impl( - that: impl CstDecode>>, +fn wire__crate__api__Order_sign_impl( + that: impl CstDecode>>, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -939,15 +1301,32 @@ fn wire_Order_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Order::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Order::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Order_to_json_impl( - that: impl CstDecode>>, +fn wire__crate__api__Order_to_json_impl( + that: impl CstDecode>>, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { @@ -957,14 +1336,30 @@ fn wire_Order_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Order::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Order::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Parameter_contract_info_impl( +fn wire__crate__api__Parameter_contract_info_impl( pair_id: impl CstDecode, symbol: impl CstDecode, initial_margin_rate: impl CstDecode, @@ -981,18 +1376,21 @@ fn wire_Parameter_contract_info_impl( let api_symbol = symbol.cst_decode(); let api_initial_margin_rate = initial_margin_rate.cst_decode(); let api_maintenance_margin_rate = maintenance_margin_rate.cst_decode(); - transform_result_dco((move || { - crate::api::Parameter::contract_info( - api_pair_id, - api_symbol, - api_initial_margin_rate, - api_maintenance_margin_rate, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Parameter::contract_info( + api_pair_id, + api_symbol, + api_initial_margin_rate, + api_maintenance_margin_rate, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Parameter_fee_account_impl( +fn wire__crate__api__Parameter_fee_account_impl( account_id: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1003,11 +1401,16 @@ fn wire_Parameter_fee_account_impl( }, move || { let api_account_id = account_id.cst_decode(); - transform_result_dco((move || crate::api::Parameter::fee_account(api_account_id))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Parameter::fee_account(api_account_id)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Parameter_funding_infos_impl( +fn wire__crate__api__Parameter_funding_infos_impl( infos: impl CstDecode>, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1018,11 +1421,16 @@ fn wire_Parameter_funding_infos_impl( }, move || { let api_infos = infos.cst_decode(); - transform_result_dco((move || crate::api::Parameter::funding_infos(api_infos))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Parameter::funding_infos(api_infos)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Parameter_insurance_fund_account_impl( +fn wire__crate__api__Parameter_insurance_fund_account_impl( account_id: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1033,13 +1441,16 @@ fn wire_Parameter_insurance_fund_account_impl( }, move || { let api_account_id = account_id.cst_decode(); - transform_result_dco((move || { - crate::api::Parameter::insurance_fund_account(api_account_id) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Parameter::insurance_fund_account(api_account_id)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Parameter_margin_info_impl( +fn wire__crate__api__Parameter_margin_info_impl( margin_id: impl CstDecode, symbol: impl CstDecode>, token_id: impl CstDecode, @@ -1056,19 +1467,22 @@ fn wire_Parameter_margin_info_impl( let api_symbol = symbol.cst_decode(); let api_token_id = token_id.cst_decode(); let api_ratio = ratio.cst_decode(); - transform_result_dco((move || { - crate::api::Parameter::margin_info( - api_margin_id, - api_symbol, - api_token_id, - api_ratio, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Parameter::margin_info( + api_margin_id, + api_symbol, + api_token_id, + api_ratio, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_create_signed_contract_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_create_signed_contract_impl( + that: impl CstDecode>>, contract: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1080,15 +1494,32 @@ fn wire_Signer_create_signed_contract_impl( move || { let api_that = that.cst_decode(); let api_contract = contract.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::create_signed_contract(&api_that, api_contract) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Signer::create_signed_contract(&*api_that_guard, api_contract)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_create_signed_order_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_create_signed_order_impl( + that: impl CstDecode>>, order: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1100,14 +1531,31 @@ fn wire_Signer_create_signed_order_impl( move || { let api_that = that.cst_decode(); let api_order = order.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::create_signed_order(&api_that, api_order) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Signer::create_signed_order(&*api_that_guard, api_order)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_eth_signer_impl( +fn wire__crate__api__Signer_eth_signer_impl( eth_private_key: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1118,14 +1566,17 @@ fn wire_Signer_eth_signer_impl( }, move || { let api_eth_private_key = eth_private_key.cst_decode(); - transform_result_dco((move || { - crate::api::Signer::eth_signer(api_eth_private_key) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Signer::eth_signer(api_eth_private_key)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_auto_deleveraging_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_auto_deleveraging_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1137,15 +1588,32 @@ fn wire_Signer_sign_auto_deleveraging_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_auto_deleveraging(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Signer::sign_auto_deleveraging(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_change_pubkey_with_create2data_auth_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_change_pubkey_with_create2data_auth_impl( + that: impl CstDecode>>, tx: impl CstDecode, creator_address: impl CstDecode, salt_arg: impl CstDecode, @@ -1163,21 +1631,37 @@ fn wire_Signer_sign_change_pubkey_with_create2data_auth_impl( let api_creator_address = creator_address.cst_decode(); let api_salt_arg = salt_arg.cst_decode(); let api_code_hash = code_hash.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_change_pubkey_with_create2data_auth( - &api_that, - api_tx, - api_creator_address, - api_salt_arg, - api_code_hash, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_change_pubkey_with_create2data_auth( + &*api_that_guard, + api_tx, + api_creator_address, + api_salt_arg, + api_code_hash, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_change_pubkey_with_eth_ecdsa_auth_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1189,15 +1673,34 @@ fn wire_Signer_sign_change_pubkey_with_eth_ecdsa_auth_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_change_pubkey_with_eth_ecdsa_auth(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_change_pubkey_with_eth_ecdsa_auth( + &*api_that_guard, + api_tx, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_change_pubkey_with_onchain_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_change_pubkey_with_onchain_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1209,15 +1712,34 @@ fn wire_Signer_sign_change_pubkey_with_onchain_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_change_pubkey_with_onchain(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_change_pubkey_with_onchain( + &*api_that_guard, + api_tx, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_contract_matching_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_contract_matching_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1229,15 +1751,32 @@ fn wire_Signer_sign_contract_matching_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_contract_matching(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Signer::sign_contract_matching(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_forced_exit_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_forced_exit_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1249,15 +1788,31 @@ fn wire_Signer_sign_forced_exit_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_forced_exit(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_forced_exit(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_funding_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_funding_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1269,15 +1824,31 @@ fn wire_Signer_sign_funding_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_funding(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_funding(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_liquidation_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_liquidation_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1289,15 +1860,31 @@ fn wire_Signer_sign_liquidation_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_liquidation(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_liquidation(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_order_matching_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_order_matching_impl( + that: impl CstDecode>>, tx: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1309,15 +1896,32 @@ fn wire_Signer_sign_order_matching_impl( move || { let api_that = that.cst_decode(); let api_tx = tx.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_order_matching(&api_that, api_tx) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Signer::sign_order_matching(&*api_that_guard, api_tx)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_transfer_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_transfer_impl( + that: impl CstDecode>>, tx: impl CstDecode, token_symbol: impl CstDecode, chain_id: impl CstDecode>, @@ -1335,21 +1939,37 @@ fn wire_Signer_sign_transfer_impl( let api_token_symbol = token_symbol.cst_decode(); let api_chain_id = chain_id.cst_decode(); let api_addr = addr.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_transfer( - &api_that, - api_tx, - api_token_symbol, - api_chain_id, - api_addr, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_transfer( + &*api_that_guard, + api_tx, + api_token_symbol, + api_chain_id, + api_addr, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_sign_withdraw_impl( - that: impl CstDecode>>, +fn wire__crate__api__Signer_sign_withdraw_impl( + that: impl CstDecode>>, tx: impl CstDecode, token_symbol: impl CstDecode, chain_id: impl CstDecode>, @@ -1367,20 +1987,36 @@ fn wire_Signer_sign_withdraw_impl( let api_token_symbol = token_symbol.cst_decode(); let api_chain_id = chain_id.cst_decode(); let api_addr = addr.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Signer::sign_withdraw( - &api_that, - api_tx, - api_token_symbol, - api_chain_id, - api_addr, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Signer::sign_withdraw( + &*api_that_guard, + api_tx, + api_token_symbol, + api_chain_id, + api_addr, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Signer_starknet_signer_impl( +fn wire__crate__api__Signer_starknet_signer_impl( eth_private_key: impl CstDecode, starknet_chain_id: impl CstDecode, starknet_addr: impl CstDecode, @@ -1395,17 +2031,20 @@ fn wire_Signer_starknet_signer_impl( let api_eth_private_key = eth_private_key.cst_decode(); let api_starknet_chain_id = starknet_chain_id.cst_decode(); let api_starknet_addr = starknet_addr.cst_decode(); - transform_result_dco((move || { - crate::api::Signer::starknet_signer( - api_eth_private_key, - api_starknet_chain_id, - api_starknet_addr, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Signer::starknet_signer( + api_eth_private_key, + api_starknet_chain_id, + api_starknet_addr, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_SpotPriceInfo_new_impl( +fn wire__crate__api__SpotPriceInfo_new_impl( token_id: impl CstDecode, price: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -1418,15 +2057,18 @@ fn wire_SpotPriceInfo_new_impl( move || { let api_token_id = token_id.cst_decode(); let api_price = price.cst_decode(); - transform_result_dco((move || { - crate::api::SpotPriceInfo::new(api_token_id, api_price) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::SpotPriceInfo::new(api_token_id, api_price)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Transfer_get_eth_sign_msg_impl( +fn wire__crate__api__Transfer_get_eth_sign_msg_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, token_symbol: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -1439,17 +2081,31 @@ fn wire_Transfer_get_eth_sign_msg_impl( move || { let api_that = that.cst_decode(); let api_token_symbol = token_symbol.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::Transfer::get_eth_sign_msg( - &api_that, + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(crate::api::Transfer::get_eth_sign_msg( + &*api_that_guard, api_token_symbol, - )) + ))?; + Ok(output_ok) })()) }, ) } -fn wire_Transfer_new_impl( +fn wire__crate__api__Transfer_new_impl( account_id: impl CstDecode, to_address: impl CstDecode, from_sub_account_id: impl CstDecode, @@ -1476,25 +2132,28 @@ fn wire_Transfer_new_impl( let api_amount = amount.cst_decode(); let api_nonce = nonce.cst_decode(); let api_ts = ts.cst_decode(); - transform_result_dco((move || { - crate::api::Transfer::new( - api_account_id, - api_to_address, - api_from_sub_account_id, - api_to_sub_account_id, - api_token, - api_fee, - api_amount, - api_nonce, - api_ts, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Transfer::new( + api_account_id, + api_to_address, + api_from_sub_account_id, + api_to_sub_account_id, + api_token, + api_fee, + api_amount, + api_nonce, + api_ts, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Transfer_sign_impl( +fn wire__crate__api__Transfer_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -1507,16 +2166,33 @@ fn wire_Transfer_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Transfer::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Transfer::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Transfer_to_json_impl( +fn wire__crate__api__Transfer_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1527,14 +2203,30 @@ fn wire_Transfer_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Transfer::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Transfer::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_UpdateGlobalVar_new_impl( +fn wire__crate__api__UpdateGlobalVar_new_impl( from_chain_id: impl CstDecode, sub_account_id: impl CstDecode, parameter: impl CstDecode, @@ -1551,20 +2243,23 @@ fn wire_UpdateGlobalVar_new_impl( let api_sub_account_id = sub_account_id.cst_decode(); let api_parameter = parameter.cst_decode(); let api_serial_id = serial_id.cst_decode(); - transform_result_dco((move || { - crate::api::UpdateGlobalVar::new( - api_from_chain_id, - api_sub_account_id, - api_parameter, - api_serial_id, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::UpdateGlobalVar::new( + api_from_chain_id, + api_sub_account_id, + api_parameter, + api_serial_id, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_UpdateGlobalVar_to_json_impl( +fn wire__crate__api__UpdateGlobalVar_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -1575,16 +2270,32 @@ fn wire_UpdateGlobalVar_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::UpdateGlobalVar::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::UpdateGlobalVar::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Wallet_approve_erc20_impl( +fn wire__crate__api__Wallet_approve_erc20_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, contract: impl CstDecode, amount: impl CstDecode, eth_params: impl CstDecode, @@ -1601,16 +2312,33 @@ fn wire_Wallet_approve_erc20_impl( let api_amount = amount.cst_decode(); let api_eth_params = eth_params.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::approve_erc20( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::approve_erc20( + &*api_that_guard, api_contract, api_amount, api_eth_params, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1618,9 +2346,9 @@ fn wire_Wallet_approve_erc20_impl( }, ) } -fn wire_Wallet_deposit_erc20_impl( +fn wire__crate__api__Wallet_deposit_erc20_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, sub_account_id: impl CstDecode, deposit_to: impl CstDecode, token_addr: impl CstDecode, @@ -1645,11 +2373,27 @@ fn wire_Wallet_deposit_erc20_impl( let api_eth_params = eth_params.cst_decode(); let api_is_gateway = is_gateway.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::deposit_erc20( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::deposit_erc20( + &*api_that_guard, api_sub_account_id, api_deposit_to, api_token_addr, @@ -1658,7 +2402,8 @@ fn wire_Wallet_deposit_erc20_impl( api_eth_params, api_is_gateway, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1666,9 +2411,9 @@ fn wire_Wallet_deposit_erc20_impl( }, ) } -fn wire_Wallet_deposit_eth_impl( +fn wire__crate__api__Wallet_deposit_eth_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, sub_account_id: impl CstDecode, deposit_to: impl CstDecode, eth_params: impl CstDecode, @@ -1687,17 +2432,34 @@ fn wire_Wallet_deposit_eth_impl( let api_eth_params = eth_params.cst_decode(); let api_is_gateway = is_gateway.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::deposit_eth( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::deposit_eth( + &*api_that_guard, api_sub_account_id, api_deposit_to, api_eth_params, api_is_gateway, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1705,9 +2467,9 @@ fn wire_Wallet_deposit_eth_impl( }, ) } -fn wire_Wallet_full_exit_impl( +fn wire__crate__api__Wallet_full_exit_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, account_id: impl CstDecode, sub_account_id: impl CstDecode, token_id: impl CstDecode, @@ -1728,18 +2490,35 @@ fn wire_Wallet_full_exit_impl( let api_mapping = mapping.cst_decode(); let api_eth_params = eth_params.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::full_exit( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::full_exit( + &*api_that_guard, api_account_id, api_sub_account_id, api_token_id, api_mapping, api_eth_params, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1747,9 +2526,9 @@ fn wire_Wallet_full_exit_impl( }, ) } -fn wire_Wallet_get_balance_impl( +fn wire__crate__api__Wallet_get_balance_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( flutter_rust_bridge::for_generated::TaskInfo { @@ -1760,10 +2539,27 @@ fn wire_Wallet_get_balance_impl( move || { let api_that = that.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::get_balance(&api_that).await + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::get_balance(&*api_that_guard).await?; + Ok(output_ok) })() .await, ) @@ -1771,9 +2567,9 @@ fn wire_Wallet_get_balance_impl( }, ) } -fn wire_Wallet_get_deposit_fee_impl( +fn wire__crate__api__Wallet_get_deposit_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, eth_params: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( @@ -1786,10 +2582,29 @@ fn wire_Wallet_get_deposit_fee_impl( let api_that = that.cst_decode(); let api_eth_params = eth_params.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::get_deposit_fee(&api_that, api_eth_params).await + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Wallet::get_deposit_fee(&*api_that_guard, api_eth_params) + .await?; + Ok(output_ok) })() .await, ) @@ -1797,9 +2612,9 @@ fn wire_Wallet_get_deposit_fee_impl( }, ) } -fn wire_Wallet_get_nonce_impl( +fn wire__crate__api__Wallet_get_nonce_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, block_number: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( @@ -1812,10 +2627,29 @@ fn wire_Wallet_get_nonce_impl( let api_that = that.cst_decode(); let api_block_number = block_number.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::get_nonce(&api_that, api_block_number).await + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Wallet::get_nonce(&*api_that_guard, api_block_number) + .await?; + Ok(output_ok) })() .await, ) @@ -1823,7 +2657,7 @@ fn wire_Wallet_get_nonce_impl( }, ) } -fn wire_Wallet_new_impl( +fn wire__crate__api__Wallet_new_impl( url: impl CstDecode, private_key: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -1836,13 +2670,18 @@ fn wire_Wallet_new_impl( move || { let api_url = url.cst_decode(); let api_private_key = private_key.cst_decode(); - transform_result_dco((move || crate::api::Wallet::new(api_url, api_private_key))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Wallet::new(api_url, api_private_key)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Wallet_set_auth_pubkey_hash_impl( +fn wire__crate__api__Wallet_set_auth_pubkey_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, nonce: impl CstDecode, new_pubkey_hash: impl CstDecode, eth_params: impl CstDecode, @@ -1859,16 +2698,33 @@ fn wire_Wallet_set_auth_pubkey_hash_impl( let api_new_pubkey_hash = new_pubkey_hash.cst_decode(); let api_eth_params = eth_params.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::set_auth_pubkey_hash( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::set_auth_pubkey_hash( + &*api_that_guard, api_nonce, api_new_pubkey_hash, api_eth_params, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1876,9 +2732,9 @@ fn wire_Wallet_set_auth_pubkey_hash_impl( }, ) } -fn wire_Wallet_wait_for_transaction_impl( +fn wire__crate__api__Wallet_wait_for_transaction_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode>>, + that: impl CstDecode>>, tx_hash: impl CstDecode, timeout: impl CstDecode>, ) { @@ -1893,15 +2749,32 @@ fn wire_Wallet_wait_for_transaction_impl( let api_tx_hash = tx_hash.cst_decode(); let api_timeout = timeout.cst_decode(); move |context| async move { - transform_result_dco( + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( (move || async move { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Wallet::wait_for_transaction( - &api_that, + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order( + vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + )], + ); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that.lockable_decode_async_ref().await) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Wallet::wait_for_transaction( + &*api_that_guard, api_tx_hash, api_timeout, ) - .await + .await?; + Ok(output_ok) })() .await, ) @@ -1909,9 +2782,9 @@ fn wire_Wallet_wait_for_transaction_impl( }, ) } -fn wire_Withdraw_get_eth_sign_msg_impl( +fn wire__crate__api__Withdraw_get_eth_sign_msg_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, token_symbol: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -1924,17 +2797,31 @@ fn wire_Withdraw_get_eth_sign_msg_impl( move || { let api_that = that.cst_decode(); let api_token_symbol = token_symbol.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::Withdraw::get_eth_sign_msg( - &api_that, + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(crate::api::Withdraw::get_eth_sign_msg( + &*api_that_guard, api_token_symbol, - )) + ))?; + Ok(output_ok) })()) }, ) } -fn wire_Withdraw_new_impl( +fn wire__crate__api__Withdraw_new_impl( account_id: impl CstDecode, sub_account_id: impl CstDecode, to_chain_id: impl CstDecode, @@ -1969,29 +2856,32 @@ fn wire_Withdraw_new_impl( let api_withdraw_to_l1 = withdraw_to_l1.cst_decode(); let api_withdraw_fee_ratio = withdraw_fee_ratio.cst_decode(); let api_ts = ts.cst_decode(); - transform_result_dco((move || { - crate::api::Withdraw::new( - api_account_id, - api_sub_account_id, - api_to_chain_id, - api_to_address, - api_l2_source_token, - api_l1_target_token, - api_amount, - api_call_data, - api_fee, - api_nonce, - api_withdraw_to_l1, - api_withdraw_fee_ratio, - api_ts, - ) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::Withdraw::new( + api_account_id, + api_sub_account_id, + api_to_chain_id, + api_to_address, + api_l2_source_token, + api_l1_target_token, + api_amount, + api_call_data, + api_fee, + api_nonce, + api_withdraw_to_l1, + api_withdraw_fee_ratio, + api_ts, + )?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Withdraw_sign_impl( +fn wire__crate__api__Withdraw_sign_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, zk_link_signer: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -2004,16 +2894,33 @@ fn wire_Withdraw_sign_impl( move || { let api_that = that.cst_decode(); let api_zk_link_signer = zk_link_signer.cst_decode(); - transform_result_dco((move || { - let mut api_that = api_that.rust_auto_opaque_decode_ref_mut(); - crate::api::Withdraw::sign(&mut api_that, api_zk_link_signer) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::Withdraw::sign(&mut *api_that_guard, api_zk_link_signer)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_Withdraw_to_json_impl( +fn wire__crate__api__Withdraw_to_json_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2024,16 +2931,32 @@ fn wire_Withdraw_to_json_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::Withdraw::to_json(&api_that) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::Withdraw::to_json(&*api_that_guard)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ZkLinkSignature_get_pubkey_impl( +fn wire__crate__api__ZkLinkSignature_get_pubkey_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2044,16 +2967,31 @@ fn wire_ZkLinkSignature_get_pubkey_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::ZkLinkSignature::get_pubkey(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + Result::<_, ()>::Ok(crate::api::ZkLinkSignature::get_pubkey(&*api_that_guard))?; + Ok(output_ok) })()) }, ) } -fn wire_ZkLinkSignature_get_signature_impl( +fn wire__crate__api__ZkLinkSignature_get_signature_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2064,14 +3002,30 @@ fn wire_ZkLinkSignature_get_signature_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::ZkLinkSignature::get_signature(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(crate::api::ZkLinkSignature::get_signature( + &*api_that_guard, + ))?; + Ok(output_ok) })()) }, ) } -fn wire_ZkLinkSigner_eth_sig_impl( +fn wire__crate__api__ZkLinkSigner_eth_sig_impl( sig: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2082,13 +3036,18 @@ fn wire_ZkLinkSigner_eth_sig_impl( }, move || { let api_sig = sig.cst_decode(); - transform_result_dco((move || crate::api::ZkLinkSigner::eth_sig(api_sig))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ZkLinkSigner::eth_sig(api_sig)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ZkLinkSigner_get_pubkey_impl( +fn wire__crate__api__ZkLinkSigner_get_pubkey_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2099,16 +3058,31 @@ fn wire_ZkLinkSigner_get_pubkey_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::ZkLinkSigner::get_pubkey(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + Result::<_, ()>::Ok(crate::api::ZkLinkSigner::get_pubkey(&*api_that_guard))?; + Ok(output_ok) })()) }, ) } -fn wire_ZkLinkSigner_get_pubkey_hash_impl( +fn wire__crate__api__ZkLinkSigner_get_pubkey_hash_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2119,16 +3093,32 @@ fn wire_ZkLinkSigner_get_pubkey_hash_impl( }, move || { let api_that = that.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - Result::<_, ()>::Ok(crate::api::ZkLinkSigner::get_pubkey_hash(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(crate::api::ZkLinkSigner::get_pubkey_hash( + &*api_that_guard, + ))?; + Ok(output_ok) })()) }, ) } -fn wire_ZkLinkSigner_sign_musig_impl( +fn wire__crate__api__ZkLinkSigner_sign_musig_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, msg: impl CstDecode>, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -2141,14 +3131,31 @@ fn wire_ZkLinkSigner_sign_musig_impl( move || { let api_that = that.cst_decode(); let api_msg = msg.cst_decode(); - transform_result_dco((move || { - let api_that = api_that.rust_auto_opaque_decode_ref(); - crate::api::ZkLinkSigner::sign_musig(&api_that, api_msg) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::ZkLinkSigner::sign_musig(&*api_that_guard, api_msg)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_ZkLinkSigner_starknet_sig_impl( +fn wire__crate__api__ZkLinkSigner_starknet_sig_impl( sig: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2159,11 +3166,16 @@ fn wire_ZkLinkSigner_starknet_sig_impl( }, move || { let api_sig = sig.cst_decode(); - transform_result_dco((move || crate::api::ZkLinkSigner::starknet_sig(api_sig))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::ZkLinkSigner::starknet_sig(api_sig)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_closest_packable_fee_amount_impl( +fn wire__crate__api__closest_packable_fee_amount_impl( fee: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2174,11 +3186,16 @@ fn wire_closest_packable_fee_amount_impl( }, move || { let api_fee = fee.cst_decode(); - transform_result_dco((move || crate::api::closest_packable_fee_amount(api_fee))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::closest_packable_fee_amount(api_fee)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_closest_packable_token_amount_impl( +fn wire__crate__api__closest_packable_token_amount_impl( amount: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2189,13 +3206,16 @@ fn wire_closest_packable_token_amount_impl( }, move || { let api_amount = amount.cst_decode(); - transform_result_dco((move || { - crate::api::closest_packable_token_amount(api_amount) - })()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::closest_packable_token_amount(api_amount)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_init_app_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__api__init_app_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "init_app", @@ -2204,12 +3224,17 @@ fn wire_init_app_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { }, move || { move |context| { - transform_result_dco((move || Result::<_, ()>::Ok(crate::api::init_app()))()) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok({ + crate::api::init_app(); + })?; + Ok(output_ok) + })()) } }, ) } -fn wire_is_fee_amount_packable_impl( +fn wire__crate__api__is_fee_amount_packable_impl( fee: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2220,11 +3245,16 @@ fn wire_is_fee_amount_packable_impl( }, move || { let api_fee = fee.cst_decode(); - transform_result_dco((move || crate::api::is_fee_amount_packable(api_fee))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::is_fee_amount_packable(api_fee)?; + Ok(output_ok) + })(), + ) }, ) } -fn wire_is_token_amount_packable_impl( +fn wire__crate__api__is_token_amount_packable_impl( amount: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( @@ -2235,7 +3265,12 @@ fn wire_is_token_amount_packable_impl( }, move || { let api_amount = amount.cst_decode(); - transform_result_dco((move || crate::api::is_token_amount_packable(api_amount))()) + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::is_token_amount_packable(api_amount)?; + Ok(output_ok) + })(), + ) }, ) } @@ -2287,7 +3322,8 @@ impl CstDecode for usize { impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - unreachable!(""); + let mut inner = ::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::anyhow::anyhow!("{}", inner); } } @@ -2295,9 +3331,9 @@ impl SseDecode for AutoDeleveraging { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2305,9 +3341,9 @@ impl SseDecode for ChangePubKey { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2315,9 +3351,9 @@ impl SseDecode for Contract { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2325,9 +3361,9 @@ impl SseDecode for ContractMatching { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2335,9 +3371,9 @@ impl SseDecode for ContractPrice { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2345,9 +3381,9 @@ impl SseDecode for EthTxOption { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2355,9 +3391,9 @@ impl SseDecode for ForcedExit { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2365,9 +3401,9 @@ impl SseDecode for Funding { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2375,9 +3411,9 @@ impl SseDecode for FundingInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2385,9 +3421,9 @@ impl SseDecode for Liquidation { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2395,9 +3431,9 @@ impl SseDecode for Order { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2405,9 +3441,9 @@ impl SseDecode for OrderMatching { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2415,9 +3451,9 @@ impl SseDecode for Parameter { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2425,9 +3461,9 @@ impl SseDecode for Signer { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2435,9 +3471,9 @@ impl SseDecode for SpotPriceInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2445,9 +3481,9 @@ impl SseDecode for Transfer { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2455,9 +3491,9 @@ impl SseDecode for UpdateGlobalVar { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2465,9 +3501,9 @@ impl SseDecode for Wallet { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2475,9 +3511,9 @@ impl SseDecode for Withdraw { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2485,9 +3521,9 @@ impl SseDecode for ZkLinkSignature { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } @@ -2495,14 +3531,14 @@ impl SseDecode for ZkLinkSigner { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); - return inner.rust_auto_opaque_decode_owned(); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2512,7 +3548,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2521,7 +3557,9 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2530,7 +3568,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2540,7 +3578,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2550,7 +3588,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2560,7 +3598,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2569,7 +3607,7 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2578,7 +3616,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2588,7 +3626,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2597,7 +3635,7 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2606,7 +3644,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2616,7 +3654,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2625,7 +3663,7 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2634,7 +3672,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2643,7 +3681,9 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2652,7 +3692,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2661,7 +3701,7 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2669,7 +3709,9 @@ impl SseDecode for RustOpaqueNom> { +impl SseDecode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -2678,7 +3720,7 @@ impl SseDecode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2688,7 +3730,7 @@ impl SseDecode } impl SseDecode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3223,77 +4265,77 @@ impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error { impl SseEncode for AutoDeleveraging { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ChangePubKey { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Contract { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ContractMatching { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ContractPrice { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for EthTxOption { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ForcedExit { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Funding { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for FundingInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Liquidation { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Order { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode( + >>::sse_encode( flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer, ); @@ -3303,81 +4345,75 @@ impl SseEncode for Order { impl SseEncode for OrderMatching { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Parameter { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Signer { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), - serializer, - ); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for SpotPriceInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Transfer { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for UpdateGlobalVar { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Wallet { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), - serializer, - ); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for Withdraw { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ZkLinkSignature { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode for ZkLinkSigner { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3388,7 +4424,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3398,7 +4434,9 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3408,7 +4446,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3419,7 +4457,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3430,7 +4468,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3441,7 +4479,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3451,7 +4489,7 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3461,7 +4499,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3472,7 +4510,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3482,7 +4520,7 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3492,7 +4530,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3503,7 +4541,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3513,7 +4551,7 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3523,7 +4561,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3533,7 +4571,9 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3543,7 +4583,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3553,7 +4593,7 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3562,7 +4602,9 @@ impl SseEncode for RustOpaqueNom> { +impl SseEncode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -3572,7 +4614,7 @@ impl SseEncode for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3583,7 +4625,7 @@ impl SseEncode } impl SseEncode - for RustOpaqueNom> + for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/examples/Cpp/2_withdraw.cpp b/examples/Cpp/2_withdraw.cpp index 94c3cd3..a104328 100644 --- a/examples/Cpp/2_withdraw.cpp +++ b/examples/Cpp/2_withdraw.cpp @@ -12,14 +12,8 @@ int main() { ZkLinkAddress to_address = "0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9"; TokenId l2_source_token = 17; TokenId l1_target_token = 17; - BigUint amount = "1234567899808787"; - cout << "Original amount: " << amount << "\n"; - amount = closest_packable_token_amount(amount); - cout << "Converted amount: " << amount << "\n"; - BigUint fee = "10000567777"; - cout << "Original fee: " << fee << "\n"; - fee = closest_packable_fee_amount(fee); - cout << "Converted fee: " << fee << "\n"; + BigUint amount = "1000000"; + BigUint fee = "1000"; Nonce nonce = 1; uint16_t withdraw_fee_ratio = 50; TimeStamp timestamp = 1000000000; diff --git a/examples/Cpp/3_transfer.cpp b/examples/Cpp/3_transfer.cpp new file mode 100644 index 0000000..354b80a --- /dev/null +++ b/examples/Cpp/3_transfer.cpp @@ -0,0 +1,42 @@ +#include +#include "generated/zklink_sdk.hpp" + +using namespace std; +using namespace zklink_sdk; + +int main() { + string private_key = "0xbe725250b123a39dab5b7579334d5888987c72a58f4508062545fe6e08ca94f4"; + AccountId account_id = 20; + ZkLinkAddress to_address = "0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9"; + SubAccountId from_sub_account_id = 1; + SubAccountId to_sub_account_id = 1; + TokenId token = 18; + BigUint amount = "1234567899808787"; + cout << "Original amount: " << amount << "\n"; + amount = closest_packable_token_amount(amount); + cout << "Converted amount: " << amount << "\n"; + BigUint fee = "10000567777"; + cout << "Original fee: " << fee << "\n"; + fee = closest_packable_fee_amount(fee); + cout << "Converted fee: " << fee << "\n"; + Nonce nonce = 1; + TimeStamp timestamp = 1693472232; + string token_sybmol = "DAI"; + + TransferBuilder builder = { + account_id, + to_address, + from_sub_account_id, + to_sub_account_id, + token, + amount, + fee, + nonce, + timestamp + }; + shared_ptr tx = Transfer::init(builder); + shared_ptr signer = Signer::init(private_key, L1SignerType::kEth{}); + TxSignature signature = signer->sign_transfer(tx, token_sybmol, {}, {}); + cout << signature.tx << "\n"; + return 0; +} diff --git a/examples/Golang/2_withdraw.go b/examples/Golang/2_withdraw.go index 83b6eca..800a9a8 100644 --- a/examples/Golang/2_withdraw.go +++ b/examples/Golang/2_withdraw.go @@ -29,14 +29,8 @@ func HighLevelWithdraw() { toAddress := sdk.ZkLinkAddress("0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9") l2SourceToken := sdk.TokenId(17) l1TargetToken := sdk.TokenId(17) - amount := *big.NewInt(1234567899808787) - fmt.Println("Original amount: ", amount) - amount = sdk.ClosestPackableTokenAmount(amount) - fmt.Println("Converted amount:s", amount) - fee := *big.NewInt(10000567777) - fmt.Println("Original fee: ", fee) - fee = sdk.ClosestPackableFeeAmount(fee) - fmt.Println("Converted fee: ", fee) + amount := *big.NewInt(1000000) + fee := *big.NewInt(1000) nonce := sdk.Nonce(1) withdrawFeeRatio := uint16(50) timestamp := sdk.TimeStamp(1000000000) diff --git a/examples/Golang/3_transfer.go b/examples/Golang/3_transfer.go index cf60f09..41f6a24 100644 --- a/examples/Golang/3_transfer.go +++ b/examples/Golang/3_transfer.go @@ -26,16 +26,24 @@ type SubmiterSignature struct { func HighLevelTransfer() { privateKey := "0xbe725250b123a39dab5b7579334d5888987c72a58f4508062545fe6e08ca94f4" address := sdk.ZkLinkAddress("0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9") + amount := *big.NewInt(1234567899808787) + fmt.Println("Original amount: ", amount) + amount = sdk.ClosestPackableTokenAmount(amount) + fmt.Println("Converted amount:s", amount) + fee := *big.NewInt(10000567777) + fmt.Println("Original fee: ", fee) + fee = sdk.ClosestPackableFeeAmount(fee) + fmt.Println("Converted fee: ", fee) builder := sdk.TransferBuilder { - sdk.AccountId(20), - address, - sdk.SubAccountId(1), - sdk.SubAccountId(1), - sdk.TokenId(18), - *big.NewInt(100000), - *big.NewInt(100), - sdk.Nonce(1), - sdk.TimeStamp(1693472232), + AccountId: sdk.AccountId(20), + ToAddress: address, + FromSubAccountId: sdk.SubAccountId(1), + ToSubAccountId: sdk.SubAccountId(1), + Token: sdk.TokenId(18), + Amount: amount, + Fee: fee, + Nonce: sdk.Nonce(1), + Timestamp: sdk.TimeStamp(1693472232), } tokenSymbol := "DAI" tx := sdk.NewTransfer(builder) @@ -68,7 +76,7 @@ func HighLevelTransfer() { fmt.Println("error rpc req: %s", err) return } - fmt.Println("ChangePubKey rpc request:", string(JsonTx)) + fmt.Println("Transfer rpc request:", string(JsonTx)) // get the testnet url or main net url zklinkUrl := sdk.ZklinkTestNetUrl() response, err := http.Post(zklinkUrl, "application/json", bytes.NewBuffer(JsonTx)) diff --git a/examples/Python/2_withdraw.py b/examples/Python/2_withdraw.py index 3aa21e3..877d2be 100644 --- a/examples/Python/2_withdraw.py +++ b/examples/Python/2_withdraw.py @@ -8,18 +8,8 @@ def main(): to_address = "0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9" l2_source_token = 17 l1_target_token = 17 - amount = "1234567899808787" - print("Original amount: " + amount) - assert not sdk.is_token_amount_packable(amount) - amount = sdk.closest_packable_token_amount(amount) - assert sdk.is_token_amount_packable(amount) - print("Converted amount: " + amount) - fee = "10000567777" - print("Original fee: " + fee) - assert not sdk.is_fee_amount_packable(fee) - fee = sdk.closest_packable_fee_amount(fee) - assert sdk.is_fee_amount_packable(fee) - print("Converted fee: " + fee) + amount = "1000000" + fee = "1000" nonce = 1 withdraw_fee_ratio = 50 timestamp = 1000000000 diff --git a/examples/Python/3_transfer.py b/examples/Python/3_transfer.py new file mode 100644 index 0000000..eeda03a --- /dev/null +++ b/examples/Python/3_transfer.py @@ -0,0 +1,44 @@ +import zklink_sdk as sdk + +def main(): + private_key = "0xbe725250b123a39dab5b7579334d5888987c72a58f4508062545fe6e08ca94f4" + account_id = 20 + to_address = "0xAFAFf3aD1a0425D792432D9eCD1c3e26Ef2C42E9" + from_sub_account_id = 1 + to_sub_account_id = 1 + token = 18 + amount = "1234567899808787" + print("Original amount: " + amount) + assert not sdk.is_token_amount_packable(amount) + amount = sdk.closest_packable_token_amount(amount) + assert sdk.is_token_amount_packable(amount) + print("Converted amount: " + amount) + fee = "10000567777" + print("Original fee: " + fee) + assert not sdk.is_fee_amount_packable(fee) + fee = sdk.closest_packable_fee_amount(fee) + assert sdk.is_fee_amount_packable(fee) + print("Converted fee: " + fee) + nonce = 1 + timestamp = 1693472232 + token_sybmol = "DAI" + + builder = sdk.TransferBuilder( + account_id, + to_address, + from_sub_account_id, + to_sub_account_id, + token, + amount, + fee, + nonce, + timestamp + ) + tx = sdk.Transfer(builder) + signer = sdk.Signer(private_key, sdk.L1SignerType.ETH()) + + tx_signature = signer.sign_transfer(tx, "USDT", None, None) + print(tx_signature) + +if __name__ == "__main__": + main()