RustLibApi class abstract

Implementers

Constructors

RustLibApi.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
rust_arc_decrement_strong_count_AutoDeleveraging → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_AutoDeleveragingPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_ChangePubKey → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ChangePubKeyPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Contract → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ContractMatching → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ContractMatchingPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_ContractPrice → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ContractPricePtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_ContractPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_EthTxOption → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_EthTxOptionPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_ForcedExit → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ForcedExitPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Funding → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_FundingInfo → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_FundingInfoPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_FundingPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Liquidation → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_LiquidationPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Order → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_OrderMatching → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_OrderMatchingPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_OrderPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Parameter → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ParameterPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Signer → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_SignerPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_SpotPriceInfo → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_SpotPriceInfoPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Transfer → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_TransferPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_UpdateGlobalVar → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_UpdateGlobalVarPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Wallet → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_WalletPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_Withdraw → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_WithdrawPtr → CrossPlatformFinalizerArg
no setter
rust_arc_decrement_strong_count_ZkLinkSigner → RustArcDecrementStrongCountFnType
no setter
rust_arc_decrement_strong_count_ZkLinkSignerPtr → CrossPlatformFinalizerArg
no setter
rust_arc_increment_strong_count_AutoDeleveraging → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_ChangePubKey → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Contract → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_ContractMatching → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_ContractPrice → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_EthTxOption → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_ForcedExit → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Funding → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_FundingInfo → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Liquidation → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Order → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_OrderMatching → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Parameter → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Signer → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_SpotPriceInfo → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Transfer → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_UpdateGlobalVar → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Wallet → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_Withdraw → RustArcIncrementStrongCountFnType
no setter
rust_arc_increment_strong_count_ZkLinkSigner → RustArcIncrementStrongCountFnType
no setter

Methods

autoDeleveragingNew({required int accountId, required int subAccountId, required int subAccountNonce, required List<ContractPrice> contractPrices, required List<SpotPriceInfo> marginPrices, required int adlAccountId, required int pairId, required String adlSize, required String adlPrice, required String fee, required int feeToken, dynamic hint}) AutoDeleveraging
autoDeleveragingSign({required AutoDeleveraging that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
autoDeleveragingToJson({required AutoDeleveraging that, dynamic hint}) String
changePubKeyGetEthSignMsg({required ChangePubKey that, required int nonce, required int accountId, dynamic hint}) String
changePubKeyNew({required int chainId, required int accountId, required int subAccountId, required String newPubkeyHash, required int feeToken, required String fee, required int nonce, String? ethSignature, int? ts, dynamic hint}) ChangePubKey
changePubKeySetEthAuthData({required ChangePubKey that, required String sig, dynamic hint}) → void
changePubKeySign({required ChangePubKey that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
changePubKeyToEip712RequestPayload({required ChangePubKey that, required int chainId, required String address, dynamic hint}) String
changePubKeyToJson({required ChangePubKey that, dynamic hint}) String
contractMatchingNew({required int accountId, required int subAccountId, required Contract taker, required List<Contract> maker, required String fee, required int feeToken, required List<ContractPrice> contractPrices, required List<SpotPriceInfo> marginPrices, dynamic hint}) ContractMatching
contractMatchingSign({required ContractMatching that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
contractMatchingToJson({required ContractMatching that, dynamic hint}) String
contractNew({required int accountId, required int subAccountId, required int slotId, required int nonce, required int pairId, required String size, required String price, required bool direction, required int makerFeeRate, required int takerFeeRate, required bool hasSubsidy, dynamic hint}) Contract
contractPriceNew({required int pairId, required String marketPrice, dynamic hint}) ContractPrice
ethTxOptionNew({required bool isSupportEip1559, required String to, double? nonce, String? value, double? gas, String? gasPrice, dynamic hint}) EthTxOption
forcedExitNew({required int toChainId, required int initiatorAccountId, required int initiatorSubAccountId, required int targetSubAccountId, required String target, required int l2SourceToken, required int l1TargetToken, required String exitAmount, required int initiatorNonce, required bool withdrawToL1, int? ts, dynamic hint}) ForcedExit
forcedExitSign({required ForcedExit that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
forcedExitToJson({required ForcedExit that, dynamic hint}) String
fundingInfoNew({required int pairId, required String price, required int fundingRate, dynamic hint}) FundingInfo
fundingNew({required int accountId, required int subAccountId, required int subAccountNonce, required List<int> fundingAccountIds, required String fee, required int feeToken, dynamic hint}) Funding
fundingSign({required Funding that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
fundingToJson({required Funding that, dynamic hint}) String
initApp({dynamic hint}) Future<void>
liquidationNew({required int accountId, required int subAccountId, required int subAccountNonce, required List<ContractPrice> contractPrices, required List<SpotPriceInfo> marginPrices, required int liquidationAccountId, required String fee, required int feeToken, dynamic hint}) Liquidation
liquidationSign({required Liquidation that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
liquidationToJson({required Liquidation that, dynamic hint}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderMatchingNew({required int accountId, required int subAccountId, required Order taker, required Order maker, required String fee, required int feeToken, required List<ContractPrice> contractPrices, required List<SpotPriceInfo> marginPrices, required String expectBaseAmount, required String expectQuoteAmount, dynamic hint}) OrderMatching
orderMatchingSign({required OrderMatching that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
orderMatchingToJson({required OrderMatching that, dynamic hint}) String
orderNew({required int accountId, required int subAccountId, required int slotId, required int nonce, required int baseTokenId, required int quoteTokenId, required String amount, required String price, required bool isSell, required int makerFeeRate, required int takerFeeRate, required bool hasSubsidy, dynamic hint}) Order
parameterContractInfo({required int pairId, required String symbol, required int initialMarginRate, required int maintenanceMarginRate, dynamic hint}) Parameter
parameterFeeAccount({required int accountId, dynamic hint}) Parameter
parameterFundingInfos({required List<FundingInfo> infos, dynamic hint}) Parameter
parameterInsuranceFundAccount({required int accountId, dynamic hint}) Parameter
parameterMarginInfo({required int marginId, String? symbol, required int tokenId, required int ratio, dynamic hint}) Parameter
signerCreateSignedContract({required Signer that, required Contract contract, dynamic hint}) Contract
signerCreateSignedOrder({required Signer that, required Order order, dynamic hint}) Order
signerEthSigner({required String ethPrivateKey, dynamic hint}) Signer
signerSignAutoDeleveraging({required Signer that, required AutoDeleveraging tx, dynamic hint}) String
signerSignChangePubkeyWithCreate2DataAuth({required Signer that, required ChangePubKey tx, required String creatorAddress, required String saltArg, required String codeHash, dynamic hint}) String
signerSignChangePubkeyWithEthEcdsaAuth({required Signer that, required ChangePubKey tx, dynamic hint}) String
signerSignChangePubkeyWithOnchain({required Signer that, required ChangePubKey tx, dynamic hint}) String
signerSignContractMatching({required Signer that, required ContractMatching tx, dynamic hint}) String
signerSignForcedExit({required Signer that, required ForcedExit tx, dynamic hint}) String
signerSignFunding({required Signer that, required Funding tx, dynamic hint}) String
signerSignLiquidation({required Signer that, required Liquidation tx, dynamic hint}) String
signerSignOrderMatching({required Signer that, required OrderMatching tx, dynamic hint}) String
signerSignTransfer({required Signer that, required Transfer tx, required String tokenSymbol, String? chainId, String? addr, dynamic hint}) String
signerSignWithdraw({required Signer that, required Withdraw tx, required String tokenSymbol, String? chainId, String? addr, dynamic hint}) String
signerStarknetSigner({required String ethPrivateKey, required String starknetChainId, required String starknetAddr, dynamic hint}) Signer
spotPriceInfoNew({required int tokenId, required String price, dynamic hint}) SpotPriceInfo
toString() String
A string representation of this object.
inherited
transferGetEthSignMsg({required Transfer that, required String tokenSymbol, dynamic hint}) String
transferNew({required int accountId, required String toAddress, required int fromSubAccountId, required int toSubAccountId, required int token, required String fee, required String amount, required int nonce, int? ts, dynamic hint}) Transfer
transferSign({required Transfer that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
transferToJson({required Transfer that, dynamic hint}) String
updateGlobalVarNew({required int fromChainId, required int subAccountId, required Parameter parameter, required double serialId, dynamic hint}) UpdateGlobalVar
updateGlobalVarToJson({required UpdateGlobalVar that, dynamic hint}) String
walletApproveErc20({required Wallet that, required String contract, required String amount, required EthTxOption ethParams, dynamic hint}) Future<String>
walletDepositErc20({required Wallet that, required int subAccountId, required String depositTo, required String tokenAddr, required String amount, required bool mapping, required EthTxOption ethParams, required bool isGateway, dynamic hint}) Future<String>
walletDepositEth({required Wallet that, required int subAccountId, required String depositTo, required EthTxOption ethParams, required bool isGateway, dynamic hint}) Future<String>
walletFullExit({required Wallet that, required int accountId, required int subAccountId, required int tokenId, required bool mapping, required EthTxOption ethParams, dynamic hint}) Future<String>
walletGetBalance({required Wallet that, dynamic hint}) Future<String>
walletGetDepositFee({required Wallet that, required EthTxOption ethParams, dynamic hint}) Future<String>
walletGetNonce({required Wallet that, required String blockNumber, dynamic hint}) Future<double>
walletNew({required String url, required String privateKey, dynamic hint}) Wallet
walletSetAuthPubkeyHash({required Wallet that, required double nonce, required String newPubkeyHash, required EthTxOption ethParams, dynamic hint}) Future<String>
walletWaitForTransaction({required Wallet that, required String txHash, int? timeout, dynamic hint}) Future<int>
withdrawGetEthSignMsg({required Withdraw that, required String tokenSymbol, dynamic hint}) String
withdrawNew({required int accountId, required int subAccountId, required int toChainId, required String toAddress, required int l2SourceToken, required int l1TargetToken, required String amount, String? callData, required String fee, required int nonce, required bool withdrawToL1, required int withdrawFeeRatio, int? ts, dynamic hint}) Withdraw
withdrawSign({required Withdraw that, required ZkLinkSigner zkLinkSigner, dynamic hint}) → void
withdrawToJson({required Withdraw that, dynamic hint}) String
zkLinkSignerEthSig({required String sig, dynamic hint}) ZkLinkSigner
zkLinkSignerGetPubkey({required ZkLinkSigner that, dynamic hint}) String
zkLinkSignerGetPubkeyHash({required ZkLinkSigner that, dynamic hint}) String
zkLinkSignerStarknetSig({required String sig, dynamic hint}) ZkLinkSigner

Operators

operator ==(Object other) bool
The equality operator.
inherited