flutter_nekoton_bridge library

Classes

AbiParam
AccountsList
AccountsStorage
Implementations of nekoton's AccountsStorage
AccountsStorageImpl
AccountToAdd
AdditionalAssets
Address
ArcAccountsStorageBoxTrait
ArcAccountsStorageBoxTraitImpl
ArcFnStringDartFnFuture
ArcFnStringDartFnFutureImpl
ArcFnStringDartFnFutureOptionString
ArcFnStringDartFnFutureOptionStringImpl
ArcFnStringDartFnFutureString
ArcFnStringDartFnFutureStringImpl
ArcFnStringStringDartFnFuture
ArcFnStringStringDartFnFutureImpl
ArcFnU16DartFnFutureVecU8
ArcFnU16DartFnFutureVecU8Impl
ArcFnU16OptionI32VecU8DartFnFutureVecU8
ArcFnU16OptionI32VecU8DartFnFutureVecU8Impl
ArcFnU16U16OptionI32VecU8StringDartFnFutureVecU8
ArcFnU16U16OptionI32VecU8StringDartFnFutureVecU8Impl
ArcFnVecU8DartFnFutureVecU8
ArcFnVecU8DartFnFutureVecU8Impl
ArcGenericContractBoxTrait
ArcGenericContractBoxTraitImpl
ArcGqlConnectionBoxTrait
ArcGqlConnectionBoxTraitImpl
ArcJettonWalletBoxTrait
ArcJettonWalletBoxTraitImpl
ArcJrpcConnectionBoxTrait
ArcJrpcConnectionBoxTraitImpl
ArcKeyStoreApiBoxTrait
ArcKeyStoreApiBoxTraitImpl
ArcLedgerConnectionBoxTrait
ArcLedgerConnectionBoxTraitImpl
ArcProtoConnectionBoxTrait
ArcProtoConnectionBoxTraitImpl
ArcStorageBoxTrait
ArcStorageBoxTraitImpl
ArcTokenWalletBoxTrait
ArcTokenWalletBoxTraitImpl
ArcTonWalletBoxTrait
ArcTonWalletBoxTraitImpl
ArcTransportBoxTrait
ArcTransportBoxTraitImpl
ArcUnsignedMessageBoxTrait
ArcUnsignedMessageBoxTraitImpl
AssetsList
BaseHandler
Generically handles a Dart-Rust call.
Bip39MnemonicData
Mirror struct of Bip39MnemonicData
BlockchainConfig
Config of transport that could be used in executeLocal
ContractState
CreateKeyInput
DartCallStub
Instruction for dart side that should call some method of some class instance.
DartCallStubRegistred
Registered call of dart function that is tracked in rust side
DecodedEvent
DecodedInput
DecodedOutput
DecodedTransaction
DecodedTransactionEvent
DePoolAsset
DePoolOnRoundCompleteNotification
DePoolReceiveAnswerNotification
DerivedKeyCreateInput
Input for creating labs key
DerivedKeyCreateInputDerive
DerivedKeyCreateInputImport
DerivedKeyExportOutput
DerivedKeyExportSeedParams
DerivedKeyGetPublicKeys
DerivedKeyPassword
DerivedKeyPasswordByAccountId
DerivedKeyPasswordByPublicKey
DerivedKeyUpdateParams
DerivedKeyUpdateParamsChangePassword
DerivedKeyUpdateParamsRenameKey
DynamicNamedValue
Value of function call that should be placed in dart as named parameter. EX: void funcCall({int? valueName}) -> DynamicNamedValue(name: "valueName", value: DynamicValue::U32(10))
DynamicValue
EncryptedData
EncryptedKeyCreateInput
Input for creating legacy key
EncryptedKeyExportSeedOutput
EncryptedKeyGetPublicKeys
EncryptedKeyPassword
EncryptedKeyUpdateParams
EncryptedKeyUpdateParamsChangePassword
EncryptedKeyUpdateParamsRename
ExecutionOutput
ExistingContract
ExistingWalletInfo
Expiration
ExportKeyInput
ExportKeyOutput
FeeFactors
FullContractState
FunctionCall
GeneratedKeyG
Wrapper struct above GeneratedKey with suitable type for generation
GenericContract
Implementation of nekoton's GenericContract.
GenericContractDartWrapper
GenericContractSubscriptionHandlerImpl
GenericContractSubscriptionHandlerImplImpl
GenTimings
GetPublicKeys
GqlConnection
GqlConnectionDartWrapper
GqlConnectionHttpClient
GqlConnectionImpl
GqlConnectionImplImpl
GqlNetworkSettings
GqlTransport
Implementation of jrpc transport
GqlTransportImpl
Wrapper structure above GqlTransport that provides interface to communicate with it via TransportBoxTrait.
Int64List
A strict version of $data.Int64List which always returns a BigInt.
InternalMessage
JettonIncomingTransfer
JettonMetaData
JettonOutgoingTransfer
JettonRootData
JettonWallet
Implementation of nekoton's JettonWallet.
JettonWalletDartWrapper
JettonWalletData
JettonWalletSubscriptionHandlerImpl
JettonWalletSubscriptionHandlerImplImpl
JrpcConnection
JrpcConnectionDartWrapper
JrpcConnectionHttpClient
Interface for http client to make post requests.
JrpcConnectionImpl
JrpcConnectionImplImpl
JrpcNetworkSettings
JrpcTransport
Implementation of jrpc transport
JrpcTransportImpl
Keypair
KeySigner
KeyStore
Implementation of nekoton's KeyStore For all of method: signer - is one of strings to identify type of key (ENCRYPTED_KEY_SIGNER_NAME, DERIVED_KEY_SIGNER_NAME or LEDGER_KEY_SIGNER_NAME)
KeystoreDartWrapper
KeyStoreEntry
KnownPayload
LastTransactionId
LatestBlock
LedgerConnection
LedgerConnectionDartWrapper
LedgerConnectionHandler
LedgerConnectionImpl
LedgerConnectionImplImpl
LedgerKeyCreateInput
LedgerKeyGetPublicKeys
LedgerSignatureContext
LedgerSignInput
LedgerUpdateKeyInput
LedgerUpdateKeyInputRename
LogEntry
Log entry
Message
MnemonicType
MnemonicTypeJsonConverter
Json converter for MnemonicType
MultisigConfirmTransaction
MultisigPendingTransaction
MultisigSendTransaction
MultisigSubmitTransaction
MultisigTransaction
NekotonBridge
Main entrypoint of the Rust API
NekotonBridgeApi
NekotonBridgeApiImpl
NormalTask<S, E extends Object>
A task to call FFI function.
OnBalanceChangedPayload
OnMessageExpiredPayload
OnMessageSentPayload
OnStateChangedPayload
OnTransactionsFoundPayload
Password
PasswordCacheBehavior
PasswordExplicit
PendingTransaction
ProtoConnection
ProtoConnectionDartWrapper
ProtoConnectionHttpClient
Interface for http client to make post requests.
ProtoConnectionImpl
ProtoConnectionImplImpl
ProtoNetworkSettings
ProtoTransport
Implementation of proto transport
ProtoTransportImpl
PublicKey
Public key of the account
RawContractState
RawTransaction
RefreshingInterface
Interface, that should be implemented by any wallet or contract that supports functionality of refreshing.
RootTokenContractDetails
RustStreamSink<T>
The Rust StreamSink<T> on the Dart side.
SignatureParts
Structure that is used with signing data high and low looks like: 0x{hex_data}
SignedData
Structure that is used with signing data
SignedDataRaw
Structure that is used with signing data
SignedMessage
SignInput
Storage
StorageDartWrapper
StorageFeeInfo
StorageImpl
StorageImplImpl
SubscriptionHandlerMessage
Symbol
SyncTask<S, E extends Object, WireSyncType>
A task to call FFI function, but it is synchronous.
TokenIncomingTransfer
TokenOutgoingTransfer
TokenSwapBack
TokenWallet
Implementation of nekoton's TonWallet.
TokenWalletAsset
TokenWalletDartWrapper
TokenWalletDeployedNotification
TokenWalletDetails
TokenWalletSubscriptionHandlerImpl
TokenWalletSubscriptionHandlerImplImpl
TokenWalletTransaction
TonWallet
Implementation of nekoton's TonWallet.
TonWalletAsset
TonWalletDartWrapper
TonWalletDetails
TonWalletSubscriptionHandlerImpl
TonWalletSubscriptionHandlerImplImpl
TonWalletTransactionWithData
TonWalletTransferParams
Transaction
TransactionAdditionalInfo
TransactionExecutionOptions
TransactionId
TransactionsBatchInfo
TransactionsList
TransactionWithData<T>
TransferRecipient
Transport
Abstract class for transport, so we can combine both implementations into single list
TxTreeSimulationError
TxTreeSimulationErrorItem
Uint64List
A strict version of $data.Uint64List which always returns a BigInt.
UnsignedMessage
Wrapper above nekoton's UnsignedMessage
UnsignedMessageImpl
This struct creates only in rust side and describes UnsignedMessage
UpdateKeyInput
WalletInteractionInfo
WalletInteractionMethod
WalletType

Extensions

AbiParamPatterns on AbiParam
Adds pattern-matching-related methods to AbiParam.
AccountsListPatterns on AccountsList
Adds pattern-matching-related methods to AccountsList.
AccountToAddPatterns on AccountToAdd
Adds pattern-matching-related methods to AccountToAdd.
AdditionalAssetsPatterns on AdditionalAssets
Adds pattern-matching-related methods to AdditionalAssets.
AddressPatterns on Address
Adds pattern-matching-related methods to Address.
AssetsListPatterns on AssetsList
Adds pattern-matching-related methods to AssetsList.
BlockchainConfigPatterns on BlockchainConfig
Adds pattern-matching-related methods to BlockchainConfig.
ContractStatePatterns on ContractState
Adds pattern-matching-related methods to ContractState.
CreateKeyInputToSigner on CreateKeyInput
DecodedEventPatterns on DecodedEvent
Adds pattern-matching-related methods to DecodedEvent.
DecodedInputPatterns on DecodedInput
Adds pattern-matching-related methods to DecodedInput.
DecodedOutputPatterns on DecodedOutput
Adds pattern-matching-related methods to DecodedOutput.
DecodedTransactionEventPatterns on DecodedTransactionEvent
Adds pattern-matching-related methods to DecodedTransactionEvent.
DecodedTransactionPatterns on DecodedTransaction
Adds pattern-matching-related methods to DecodedTransaction.
DePoolAssetPatterns on DePoolAsset
Adds pattern-matching-related methods to DePoolAsset.
DePoolOnRoundCompleteNotificationPatterns on DePoolOnRoundCompleteNotification
Adds pattern-matching-related methods to DePoolOnRoundCompleteNotification.
DePoolReceiveAnswerNotificationPatterns on DePoolReceiveAnswerNotification
Adds pattern-matching-related methods to DePoolReceiveAnswerNotification.
DerivedKeyCreateInputDerivePatterns on DerivedKeyCreateInputDerive
Adds pattern-matching-related methods to DerivedKeyCreateInputDerive.
DerivedKeyCreateInputImportPatterns on DerivedKeyCreateInputImport
Adds pattern-matching-related methods to DerivedKeyCreateInputImport.
DerivedKeyCreateInputPatterns on DerivedKeyCreateInput
Adds pattern-matching-related methods to DerivedKeyCreateInput.
DerivedKeyExportOutputPatterns on DerivedKeyExportOutput
Adds pattern-matching-related methods to DerivedKeyExportOutput.
DerivedKeyExportSeedParamsPatterns on DerivedKeyExportSeedParams
Adds pattern-matching-related methods to DerivedKeyExportSeedParams.
DerivedKeyGetPublicKeysPatterns on DerivedKeyGetPublicKeys
Adds pattern-matching-related methods to DerivedKeyGetPublicKeys.
DerivedKeyPasswordByAccountIdPatterns on DerivedKeyPasswordByAccountId
Adds pattern-matching-related methods to DerivedKeyPasswordByAccountId.
DerivedKeyPasswordByPublicKeyPatterns on DerivedKeyPasswordByPublicKey
Adds pattern-matching-related methods to DerivedKeyPasswordByPublicKey.
DerivedKeyPasswordPatterns on DerivedKeyPassword
Adds pattern-matching-related methods to DerivedKeyPassword.
DerivedKeyUpdateParamsChangePasswordPatterns on DerivedKeyUpdateParamsChangePassword
Adds pattern-matching-related methods to DerivedKeyUpdateParamsChangePassword.
DerivedKeyUpdateParamsPatterns on DerivedKeyUpdateParams
Adds pattern-matching-related methods to DerivedKeyUpdateParams.
DerivedKeyUpdateParamsRenameKeyPatterns on DerivedKeyUpdateParamsRenameKey
Adds pattern-matching-related methods to DerivedKeyUpdateParamsRenameKey.
DynamicValuePatterns on DynamicValue
Adds pattern-matching-related methods to DynamicValue.
EncryptedDataPatterns on EncryptedData
Adds pattern-matching-related methods to EncryptedData.
EncryptedKeyCreateInputPatterns on EncryptedKeyCreateInput
Adds pattern-matching-related methods to EncryptedKeyCreateInput.
EncryptedKeyExportSeedOutputPatterns on EncryptedKeyExportSeedOutput
Adds pattern-matching-related methods to EncryptedKeyExportSeedOutput.
EncryptedKeyGetPublicKeysPatterns on EncryptedKeyGetPublicKeys
Adds pattern-matching-related methods to EncryptedKeyGetPublicKeys.
EncryptedKeyPasswordPatterns on EncryptedKeyPassword
Adds pattern-matching-related methods to EncryptedKeyPassword.
EncryptedKeyUpdateParamsChangePasswordPatterns on EncryptedKeyUpdateParamsChangePassword
Adds pattern-matching-related methods to EncryptedKeyUpdateParamsChangePassword.
EncryptedKeyUpdateParamsPatterns on EncryptedKeyUpdateParams
Adds pattern-matching-related methods to EncryptedKeyUpdateParams.
EncryptedKeyUpdateParamsRenamePatterns on EncryptedKeyUpdateParamsRename
Adds pattern-matching-related methods to EncryptedKeyUpdateParamsRename.
ExecutionOutputPatterns on ExecutionOutput
Adds pattern-matching-related methods to ExecutionOutput.
ExistingContractPatterns on ExistingContract
Adds pattern-matching-related methods to ExistingContract.
ExistingWalletInfoPatterns on ExistingWalletInfo
Adds pattern-matching-related methods to ExistingWalletInfo.
ExpirationPatterns on Expiration
Adds pattern-matching-related methods to Expiration.
ExportKeyInputToSigner on ExportKeyInput
FeeFactorsPatterns on FeeFactors
Adds pattern-matching-related methods to FeeFactors.
FullContractStatePatterns on FullContractState
Adds pattern-matching-related methods to FullContractState.
FunctionCallPatterns on FunctionCall
Adds pattern-matching-related methods to FunctionCall.
GenTimingsPatterns on GenTimings
Adds pattern-matching-related methods to GenTimings.
GetPublicKeysToSigner on GetPublicKeys
GqlNetworkSettingsPatterns on GqlNetworkSettings
Adds pattern-matching-related methods to GqlNetworkSettings.
InternalMessagePatterns on InternalMessage
Adds pattern-matching-related methods to InternalMessage.
JettonIncomingTransferPatterns on JettonIncomingTransfer
Adds pattern-matching-related methods to JettonIncomingTransfer.
JettonMetaDataPatterns on JettonMetaData
Adds pattern-matching-related methods to JettonMetaData.
JettonOutgoingTransferPatterns on JettonOutgoingTransfer
Adds pattern-matching-related methods to JettonOutgoingTransfer.
JettonRootDataPatterns on JettonRootData
Adds pattern-matching-related methods to JettonRootData.
JettonWalletDataPatterns on JettonWalletData
Adds pattern-matching-related methods to JettonWalletData.
JrpcNetworkSettingsPatterns on JrpcNetworkSettings
Adds pattern-matching-related methods to JrpcNetworkSettings.
KeypairPatterns on Keypair
Adds pattern-matching-related methods to Keypair.
KeySignerName on KeySigner
Get name of KeySigner, same as in rust side
KeySignerPatterns on KeySigner
Adds pattern-matching-related methods to KeySigner.
KeyStoreEntryPatterns on KeyStoreEntry
Adds pattern-matching-related methods to KeyStoreEntry.
KnownPayloadPatterns on KnownPayload
Adds pattern-matching-related methods to KnownPayload.
LastTransactionIdPatterns on LastTransactionId
Adds pattern-matching-related methods to LastTransactionId.
LedgerKeyCreateInputPatterns on LedgerKeyCreateInput
Adds pattern-matching-related methods to LedgerKeyCreateInput.
LedgerKeyGetPublicKeysPatterns on LedgerKeyGetPublicKeys
Adds pattern-matching-related methods to LedgerKeyGetPublicKeys.
LedgerSignatureContextPatterns on LedgerSignatureContext
Adds pattern-matching-related methods to LedgerSignatureContext.
LedgerSignInputPatterns on LedgerSignInput
Adds pattern-matching-related methods to LedgerSignInput.
LedgerUpdateKeyInputPatterns on LedgerUpdateKeyInput
Adds pattern-matching-related methods to LedgerUpdateKeyInput.
LedgerUpdateKeyInputRenamePatterns on LedgerUpdateKeyInputRename
Adds pattern-matching-related methods to LedgerUpdateKeyInputRename.
MessagePatterns on Message
Adds pattern-matching-related methods to Message.
MnemonicTypePatterns on MnemonicType
Adds pattern-matching-related methods to MnemonicType.
MultisigConfirmTransactionPatterns on MultisigConfirmTransaction
Adds pattern-matching-related methods to MultisigConfirmTransaction.
MultisigPendingTransactionPatterns on MultisigPendingTransaction
Adds pattern-matching-related methods to MultisigPendingTransaction.
MultisigSendTransactionPatterns on MultisigSendTransaction
Adds pattern-matching-related methods to MultisigSendTransaction.
MultisigSubmitTransactionPatterns on MultisigSubmitTransaction
Adds pattern-matching-related methods to MultisigSubmitTransaction.
MultisigTransactionPatterns on MultisigTransaction
Adds pattern-matching-related methods to MultisigTransaction.
OnBalanceChangedPayloadPatterns on OnBalanceChangedPayload
Adds pattern-matching-related methods to OnBalanceChangedPayload.
OnMessageExpiredPayloadPatterns on OnMessageExpiredPayload
Adds pattern-matching-related methods to OnMessageExpiredPayload.
OnMessageSentPayloadPatterns on OnMessageSentPayload
Adds pattern-matching-related methods to OnMessageSentPayload.
OnStateChangedPayloadPatterns on OnStateChangedPayload
Adds pattern-matching-related methods to OnStateChangedPayload.
OnTransactionsFoundPayloadPatterns on OnTransactionsFoundPayload
Adds pattern-matching-related methods to OnTransactionsFoundPayload.
PasswordCacheBehaviorPatterns on PasswordCacheBehavior
Adds pattern-matching-related methods to PasswordCacheBehavior.
PasswordExplicitPatterns on PasswordExplicit
Adds pattern-matching-related methods to PasswordExplicit.
PasswordPatterns on Password
Adds pattern-matching-related methods to Password.
PendingTransactionPatterns on PendingTransaction
Adds pattern-matching-related methods to PendingTransaction.
ProtoNetworkSettingsPatterns on ProtoNetworkSettings
Adds pattern-matching-related methods to ProtoNetworkSettings.
PublicKeyPatterns on PublicKey
Adds pattern-matching-related methods to PublicKey.
RawContractStatePatterns on RawContractState
Adds pattern-matching-related methods to RawContractState.
RawTransactionPatterns on RawTransaction
Adds pattern-matching-related methods to RawTransaction.
RootTokenContractDetailsPatterns on RootTokenContractDetails
Adds pattern-matching-related methods to RootTokenContractDetails.
SignedMessagePatterns on SignedMessage
Adds pattern-matching-related methods to SignedMessage.
SignInputToSigner on SignInput
StorageFeeInfoPatterns on StorageFeeInfo
Adds pattern-matching-related methods to StorageFeeInfo.
SubscriptionHandlerMessagePatterns on SubscriptionHandlerMessage
Adds pattern-matching-related methods to SubscriptionHandlerMessage.
SymbolPatterns on Symbol
Adds pattern-matching-related methods to Symbol.
TokenIncomingTransferPatterns on TokenIncomingTransfer
Adds pattern-matching-related methods to TokenIncomingTransfer.
TokenOutgoingTransferPatterns on TokenOutgoingTransfer
Adds pattern-matching-related methods to TokenOutgoingTransfer.
TokenSwapBackPatterns on TokenSwapBack
Adds pattern-matching-related methods to TokenSwapBack.
TokenWalletAssetPatterns on TokenWalletAsset
Adds pattern-matching-related methods to TokenWalletAsset.
TokenWalletDeployedNotificationPatterns on TokenWalletDeployedNotification
Adds pattern-matching-related methods to TokenWalletDeployedNotification.
TokenWalletDetailsPatterns on TokenWalletDetails
Adds pattern-matching-related methods to TokenWalletDetails.
TokenWalletTransactionPatterns on TokenWalletTransaction
Adds pattern-matching-related methods to TokenWalletTransaction.
TonWalletAssetPatterns on TonWalletAsset
Adds pattern-matching-related methods to TonWalletAsset.
TonWalletDetailsPatterns on TonWalletDetails
Adds pattern-matching-related methods to TonWalletDetails.
TonWalletTransactionWithDataPatterns on TonWalletTransactionWithData
Adds pattern-matching-related methods to TonWalletTransactionWithData.
TonWalletTransferParamsPatterns on TonWalletTransferParams
Adds pattern-matching-related methods to TonWalletTransferParams.
TransactionAdditionalInfoPatterns on TransactionAdditionalInfo
Adds pattern-matching-related methods to TransactionAdditionalInfo.
TransactionExecutionOptionsPatterns on TransactionExecutionOptions
Adds pattern-matching-related methods to TransactionExecutionOptions.
TransactionIdPatterns on TransactionId
Adds pattern-matching-related methods to TransactionId.
TransactionPatterns on Transaction
Adds pattern-matching-related methods to Transaction.
TransactionsBatchInfoPatterns on TransactionsBatchInfo
Adds pattern-matching-related methods to TransactionsBatchInfo.
TransactionsListPatterns on TransactionsList
Adds pattern-matching-related methods to TransactionsList.
TransactionWithDataPatterns on TransactionWithData<T>
Adds pattern-matching-related methods to TransactionWithData.
TransferRecipientPatterns on TransferRecipient
Adds pattern-matching-related methods to TransferRecipient.
TxTreeSimulationErrorItemPatterns on TxTreeSimulationErrorItem
Adds pattern-matching-related methods to TxTreeSimulationErrorItem.
TxTreeSimulationErrorPatterns on TxTreeSimulationError
Adds pattern-matching-related methods to TxTreeSimulationError.
UpdateKeyInputToSigner on UpdateKeyInput
WalletInteractionInfoPatterns on WalletInteractionInfo
Adds pattern-matching-related methods to WalletInteractionInfo.
WalletInteractionMethodPatterns on WalletInteractionMethod
Adds pattern-matching-related methods to WalletInteractionMethod.
WalletTypePatterns on WalletType
Adds pattern-matching-related methods to WalletType.

Constants

accountsStorageKey → const String
dateSecondsSinceEpochJsonConverter → const _DateTimeJsonConverter
Json converter for date time from secondsSinceEpoch (typically used for fields such as expireAt)
keystoreStorageKey → const String
mnemonicJsonConverter → const MnemonicTypeJsonConverter
publicKeyLength → const int
secretKeyLength → const int
signatureLength → const int

Functions

checkPublicKey(PublicKey publicKey) bool
Check if public key is correct. Return true or false
codeToTvc(String code) → (String, String)
Convert code to base64 tvc string and return (tvc, hash) or throw error
computeStorageFee({required String config, required String account, required int utime, bool? isMasterchain}) Future<StorageFeeInfo>
config - value from Transport.getBlockchainConfig account - base64-encoded boc utime - seconds isMasterchain - default: false
computeTonWalletAddress({required PublicKey publicKey, required WalletType walletType, required int workchain}) Address
createExternalMessage({required String dst, required String contractAbi, required String method, String? stateInit, required TokensObject input, required PublicKey publicKey, required Duration timeout}) Future<UnsignedMessage>
Create external unsigned message that can be listened and handled or throws error
createExternalMessageWithoutSignature({required Address dst, required String contractAbi, required String method, String? stateInit, required TokensObject input, required Duration timeout}) Future<SignedMessage>
Returns SignedMessage from nekoton or throws error
createLogStream() Stream<LogEntry>
Create log stream
createRawExternalMessage({required Address dst, required Duration timeout, String? stateInit, String? body}) Future<SignedMessage>
Create raw external message without real signing or throws error
decodeEvent({required String messageBody, required String contractAbi, dynamic event}) Future<DecodedEvent?>
Decode input data and return DecodedEvent or throws error
decodeInput({required String messageBody, required String contractAbi, dynamic method, required bool internal}) Future<DecodedInput?>
Decode input data and return DecodedInput or throws error
decodeOutput({required String messageBody, required String contractAbi, dynamic method}) Future<DecodedOutput?>
Decode output data and return DecodedOutput or throws error
decodeTransaction({required Transaction transaction, required String contractAbi, dynamic method}) Future<DecodedTransaction?>
Decode transaction and return DecodedTransaction or throws error
decodeTransactionEvents({required Transaction transaction, required String contractAbi}) Future<List<DecodedEvent>>
Decode events of transaction and return list of DecodedEvent or throws error
deriveFromPhrase({required String phrase, required MnemonicType mnemonicType}) Keypair
Generate public and secret keys from seed phrase and mnemonic type Returns json {'public': '...', 'secret': '...'} or throws Exception
encodeComment(String comment, {bool plain = false}) String
comment - comment to encode plain - if true, then return plain comment payload (used for TON)
encodeInternalInput({required String contractAbi, required String method, required TokensObject input}) Future<String>
Returns base64-encoded body that was encoded or throws error
encodeInternalMessage({required Address dst, required bool bounce, required BigInt amount, Address? src, String? stateInit, String? body, bool? bounced}) Future<String>
Returns base-64 encoded Message or throws error
executeLocal({required String config, required String account, required String message, required DateTime utime, required bool disableSignatureCheck, BigInt? overwriteBalance, int? globalId}) Future<(String, Transaction)>
Run contract locally. config - value from Transport.getBlockchainConfig account - boc from makeFullAccountBoc message - base64-encoded boc from one of:
extractPublicKey(String boc) PublicKey
Extract public key from boc and return it or throw error
generateKey({required MnemonicType accountType}) GeneratedKeyG
Generate seed phrase by specified mnemonic type
getBocHash(String boc) String
Returns hash of decoded boc or throws error
getCodeSalt(String code) String?
Get salt from code if possible and return base64-encoded salt or throw error
getContractTypeNumber(WalletType walletType) int
getExpectedAddress({required String tvc, required String contractAbi, required int workchainId, PublicKey? publicKey, required TokensObject initData}) Future<(Address, String, String)>
Get address of tvc and contract_abi. Returns list of address, state_init, hash or throws error
getHash(String string) String
Get hash of String
getHints({required String input}) List<String>
Get hints for input part of word of seed phrase to get possible words input: acco returns account, accommodate, ...
initLogger({required LogLevel level, required bool mobileLogger}) Future<void>
loadExternalLibrary(ExternalLibraryLoaderConfig config) FutureOr<ExternalLibrary>
Load the ExternalLibrary, with the following cases in mind:
makeFullAccountBoc(String? accountStuffBoc) Future<String>
Returns base-64 encoded Account or throws error accountStuffBoc - FullContractState.boc
mergeTvc({required String code, required String data}) → (String, String)
Merge code and data to tvc base64 string and return (tvc, hash) or throw error
ntCheckPublicKey({required String publicKey}) bool
ntCodeToTvc({required String code}) List<String>
Convert code to base64 tvc string and return it or throw error returns tvc, hash
ntComputeStorageFee({required String config, required String account, required int utime, required bool isMasterchain}) Future<String>
ntComputeTonWalletAddress({required String publicKey, required String walletType, required int workchain}) String
ntCreateExternalMessage({required String dst, required String contractAbi, required String method, String? stateInit, required String input, required String publicKey, required int timeout}) Future<UnsignedMessageImpl>
Create external unsigned message that can be listened and handled or throws error timeout - milliseconds
ntCreateExternalMessageWithoutSignature({required String dst, required String contractAbi, required String method, String? stateInit, required String input, required int timeout}) Future<String>
Returns json-encoded SignedMessage from nekoton or throws error timeout - milliseconds
ntCreateRawExternalMessage({required String dst, String? stateInit, String? body, required int timeout}) Future<String>
Returns json-encoded SignedMessage or throws error dst - destination address timeout - milliseconds
ntDecodeEvent({required String messageBody, required String contractAbi, String? event}) Future<String>
Decode input data and return json-encoded DecodedEvent or throws error
ntDecodeInput({required String messageBody, required String contractAbi, String? method, required bool internal}) Future<String>
Decode input data and return json-encoded DecodedInput or throws error
ntDecodeOutput({required String messageBody, required String contractAbi, String? method}) Future<String>
Decode output data and return json-encoded DecodedOutput or throws error
ntDecodeTransaction({required String transaction, required String contractAbi, String? method}) Future<String>
Decode transaction and return json-encoded DecodedTransaction or throws error
ntDecodeTransactionEvents({required String transaction, required String contractAbi}) Future<String>
Decode events of transaction and return json-encoded list of DecodedEvent or throws error
ntDeriveFromPhrase({required String phrase, required MnemonicType mnemonicType}) String
Generate public and secret keys from seed phrase and mnemonic type Returns json {'public': '...', 'secret': '...'} or throws Exception
ntEncodeComment({required String comment, required bool plain}) String
ntEncodeInternalInput({required String contractAbi, required String method, required String input}) Future<String>
Returns base64-encoded body that was encoded or throws error
ntEncodeInternalMessage({String? src, required String dst, required bool bounce, String? stateInit, String? body, required String amount, bool? bounced}) Future<String>
Returns base-64 encoded Message or throws error src - address of sender dst - address of destination body - base64-encoded data
ntExecuteLocal({required String config, required String account, required String message, required int utime, required bool disableSignatureCheck, String? overwriteBalance, int? globalId}) Future<List<String>>
Run contract locally. config - base64-encoded ConfigParams after (getBlockchainConfig) message - base64-encoded Message after (encodeInternalMessage) utime - unixtime in milliseconds account - account address Returns boc, transaction if everything is ok or error_code if transaction failed or throws error
ntExtractPublicKey({required String boc}) String
Extract public key from boc and return it or throw error
ntGenerateKey({required MnemonicType accountType}) GeneratedKeyG
ntGetBocHash({required String boc}) String
Returns hash of decoded boc or throws error
ntGetCodeSalt({required String code}) String?
Get salt from code if possible and return base64-encoded salt or throw error
ntGetContractTypeNumber({required String walletType}) int
ntGetExpectedAddress({required String tvc, required String contractAbi, required int workchainId, String? publicKey, required String initData}) Future<List<String>>
Get address of tvc and contract_abi. Returns list of address, boc of state_init, hash or throws error
ntGetHints({required String input}) List<String>
Get hints for input part of word of seed phrase to get possible words input: acco returns account, accommodate, ...
ntMakeFullAccountBoc({String? accountStuffBoc}) Future<String>
Returns base-64 encoded Account or throws error
ntMergeTvc({required String code, required String data}) List<String>
Merge code and data to tvc base64 string and return it or throw error returns tvc, hash
ntPackAddress({required String address, required bool isUrlSafe, required bool bounceable}) String
ntPackIntoCell({required String params, required String tokens, String? version}) List<String>
Return base64 encoded bytes of tokens or throws error returns tvc, hash
ntPackStdSmcAddr({required String addr, required bool base64Url, required bool bounceable}) String
Pack address std smd or throw error Returns new packed address as string
ntParseFullAccountBoc({required String account}) Future<String?>
Returns optional json-encoded FullContractState or throws error account - base64-encoded boc after execute_local
ntParseKnownPayload({required String payload}) String?
Parse payload and return optional json-encoded KnownPayload or throws error
ntRepackAddress({required String address}) String
Repack address and return MsgAddressInt string or original string if failed
ntRunGetter({required String accountStuffBoc, required String contractAbi, required String methodId, required String input, required Map<String, String> libraries, int? signatureId}) Future<String>
Run getter. Return json-encoded VmGetterOutput or throws error.
ntRunLocal({required String accountStuffBoc, required String contractAbi, required String methodId, required String input, required bool responsible, required Map<String, String> libraries, int? signatureId}) Future<String>
Run contract local. Return json-encoded ExecutionOutput or throws error.
ntRunLocalWithLibs({required ArcTransportBoxTrait transport, required String accountStuffBoc, required String contractAbi, required String methodId, required String input, required bool responsible, required Map<String, String> libraries, required int retryCount, int? signatureId}) Future<String>
ntSetCodeSalt({required String code, required String salt}) List<String>
Set salt to code and return base64-encoded string or throw error returns tvc, hash
ntSplitTvc({required String tvc}) List<String?>
Split base64 tvc string into data and code. Return vec![data, code] or throw error
ntUnpackContractFields({required String contractAbi, required String boc, required bool allowPartial}) Future<String?>
Unpack contract fields. Returns optional json-encoded Map<String, Token> or throw error
ntUnpackFromCell({required String params, required String boc, required bool allowPartial, String? version}) String
Parse list of params and return json-encoded Tokens or throws error
ntUnpackInitData({required String contractAbi, required String data}) Future<List<String?>>
Unpack data by contract. Returns option publicKey, json-encoded Map<String, Token> or throw error
ntUnpackStdSmcAddr({required String packed, required bool base64Url}) String
Unpack address std smd or throw error. Returns json-encoded MsgAddressInt
ntValidateAddress({required String address}) bool
Return true if address is valid, false otherwise
ntVerifySignature({required String publicKey, required String data, required String signature, int? signatureId}) Future<bool>
packAddress(Address address, {bool isUrlSafe = true, bool bounceable = true}) Address
packIntoCell({required List<AbiParam> params, required TokensObject tokens, String? abiVersion}) → (String, String)
Return (base64 tvc, hash) or throws error
packStdSmcAddr({required Address address, required bool base64Url, required bool bounceable}) String
Pack address std smd or throw error Returns new packed address as string
parseFullAccountBoc(String account) Future<FullContractState?>
account - base64-encoded boc after executeLocal
parseKnownPayload(String payload) KnownPayload?
Parse payload and return KnownPayload or throws error
repackAddress(Address address) Address
Repack address and return json-encoded MsgAddressInt or throw error
runGetter({required String accountStuffBoc, required String contractAbi, required String methodId, required Map<String, dynamic> input, int? signatureId, Map<String, String>? libraries}) Future<ExecutionOutput>
Run getter. Return json-encoded ExecutionOutput or throws error.
runLocal({required String accountStuffBoc, required String contractAbi, required String methodId, required Map<String, dynamic> input, required bool responsible, int? signatureId, Map<String, String>? libraries}) Future<ExecutionOutput>
Run contract local. Return json-encoded ExecutionOutput or throws error.
runLocalWithLibs({required Transport transport, required String accountStuffBoc, required String contractAbi, required String methodId, required Map<String, dynamic> input, required bool responsible, int? signatureId, Map<String, String>? libraries, int retryCount = 5}) Future<ExecutionOutput>
setClockOffset({required PlatformInt64 offsetMs}) Future<void>
Set clock offset in milliseconds
setCodeSalt({required String code, required String salt}) → (String, String)
Set salt to code and return (tvc, hash) or throw error
setupLogger({LogLevel level = LogLevel.warn, bool mobileLogger = true, required void logHandler(LogEntry logEntry)}) Future<void>
Init logger
splitTvc(String tvc) → (String?, String?)
Split base64 tvc string into data and code. Return (data, code) or throw error
unpackContractFields({required String contractAbi, required String boc, required bool allowPartial}) Future<Map<String, dynamic>?>
Unpack contract fields. Returns optional json-encoded Map<String, Token> or throw error
unpackFromCell({required List<AbiParam> params, required String boc, required bool allowPartial, String? abiVersion}) TokensObject
Parse list of params and return json-encoded Tokens or throws error
unpackInitData({required String contractAbi, required String data}) Future<(PublicKey?, Map<String, dynamic>)>
Unpack data from contractAbi. Returns optional public key and json-encoded Map<String, Token> or throws error.
unpackStdSmcAddr({required String packed, required bool base64Url}) String
updateClockOffset(Duration offset) Future<void>
Update clock offset
validateAddress(Address address) bool
Return true if address is valid, false otherwise
verifySignature({required PublicKey publicKey, required String data, required String signature, required int? signatureId}) Future<bool>
Check signature by publicKey and data hash

Typedefs

MethodName = dynamic
StorageGet = Future<String?> Function(String key)
StorageRemove = Future<void> Function(String key)
StorageRemoveUnchecked = void Function(String key)
StorageSet = Future<void> Function({required String key, required String value})
StorageSetUnchecked = void Function({required String key, required String value})
TokensObject = Map<String, dynamic>

Exceptions / Errors

AnyhowException
The rust code returns anyhow::Error
ExecuteLocalException
None code-related exception that means that executeLocal finished with specified errorCode.
FrbBacktracedException
Interface indicating exceptions that have backtrace (stack trace)
FrbException
Base class for exceptions in flutter_rust_bridge
LedgerException
LedgerOperationCancelledException
PanicException
The rust code is panicked
PlatformMismatchException
Platform is not matched
TransportCallAfterDisposeError
Exception that is thrown when transport is disposed and user calls its methods
UnmodifiableTypedListException
Cannot modify a typed list