nekoton_repository library

Nekoton repository package

Classes

AbiLoader
AbiParam
AccountList
This list of accounts(assets) is a wrapper around List
AccountRepository
Repository that can be used in data-classes related to Accounts. This repository can be used as
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
CachedContractStateProvider
CancelableOperationAwaited<T>
Wrapper above CancelableOperation that allows mark operation as canceled and wait for canceled operation itself except of ignoring result.
ContractFoundTransactionEvent
Event that contains list of last transactions for GenericContract.
ContractState
ContractStateChangedEvent
Event that contains actual contract state for GenericContract.
ContractUpdatesSubscription
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
DeriveKeysParams
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
FileMetadata
FullContractState
FunctionCall
GeneratedKeyG
Wrapper struct above GeneratedKey with suitable type for generation
GenericContract
Implementation of nekoton's GenericContract.
GenericContractDartWrapper
GenericContractRepository
This is a repository that lets you subscribe for GenericContract and call its methods for communication with blockchain. You can also refresh its state by polling or pause it.
GenericContractSubscriptionHandlerImpl
GenericContractSubscriptionHandlerImplImpl
GenericContractSubscriptionItem
Subscription item that is used to store GenericContract subscription and all related data.
GenericTokenWallet
GenTimings
GetPublicKeys
GetPublicKeysParams
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.
IgnoreTransactionTreeSimulationError
Int64List
A strict version of $data.Int64List which always returns a BigInt.
InternalMessage
JettonIncomingTransfer
JettonMetaData
JettonOutgoingTransfer
JettonRootData
JettonTokenWallet
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
KeyAccount
Wrapper class around KeyAccountBase account with additional logic.
KeyAccountBase
KeyAccountBase is KeyAccount but without any actions. This model allows tracking KeyAccount adding/removing from SeedList, see SeedListDiffChange.
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
LatestLtTracker
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
MultitokenTransfer
MultitokenWallet
MultitokenWalletInfo
NekotonBridge
Main entrypoint of the Rust API
NekotonBridgeApi
NekotonBridgeApiImpl
NekotonRepository
Nekoton repository package.
NekotonStorageRepository
This is a wrapper-class above EncryptedStorage that provides methods to interact with account/seed/public keys and all nekoton's related things.
Nft
NftCallbackPayload
NftCollection
NftDataProvider
NftInfo
NftItem
Represents an Nft item with its associated MultitokenWallet information (VEP-1155).
NftJsonData
NftList
NftRepository
NftTokenTransferInput
NftTokenTransferPayload
NftTransfer
NftTransferEvent
NftTransferInput
NormalTask<S, E extends Object>
A task to call FFI function.
OnBalanceChangedPayload
OnMessageExpiredPayload
OnMessageSentPayload
OnStateChangedPayload
OnTransactionsFoundPayload
Password
PasswordCacheBehavior
PasswordExplicit
PendingTransaction
PendingTransactionWithData
PollingConfig
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.
RefreshPollingQueue
This is a queue that lets you refreshing your wallets.
RootTokenContractDetails
RustStreamSink<T>
The Rust StreamSink<T> on the Dart side.
Seed
Any seed of application, that contains masterPublicKey and subKeys. masterPublicKey is a main key that derives directly from seed phrase. subKeys is a list of keys that derives from masterPublicKey.
SeedBase
SeedBase is just Seed where publicKey=masterKey and nothing more. This model allows tracking Seed adding/removing from SeedList, see SeedListDiffChange.
SeedKey
Wrapper class for KeyStoreEntry that helps storing accounts and interact with key.
SeedKeyBase
SeedKeyBase is SeedKey (even master key=seed). This model allows tracking SeedKey adding/removing from SeedList, see SeedListDiffChange.
SeedKeyRepository
Repository that can be used in data-classes related to Seeds/Keys. This repository can be used as
SeedList
List of seeds that user added into application. This list allows iterating over seeds and add/remove seeds.
SeedListDiffChange
Model that displays changes between 2 versions of SeedList. This changes calculates in NekotonRepository and put all related data here. If you see this changes, then it's already appeared and you cannot affect for this action.
SeedMetadata
Object to store seed metadata (name, created at, etc.)
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
SignInputAuth
StakingInformation
Information about stake logic for transport.
Storage
StorageDartWrapper
StorageFeeInfo
StorageImpl
StorageImplImpl
SubscriptionHandlerMessage
Symbol
SyncTask<S, E extends Object, WireSyncType>
A task to call FFI function, but it is synchronous.
Tip3TokenWallet
TokenIncomingTransfer
TokenOutgoingTransfer
TokenSwapBack
TokenWallet
Implementation of nekoton's TonWallet.
TokenWalletAsset
TokenWalletDartWrapper
TokenWalletDeployedNotification
TokenWalletDetails
TokenWalletOrdinaryTransaction
Transaction for TokenWallet that is created by TokenWalletRepository.mapOrdinaryTokenTransactions.
TokenWalletRepository
This is a repository that lets you subscribe for TokenWallet and call its methods for communication with blockchain.
TokenWalletState
State of GenericTokenWallet that allows tracking when subscription was created successfully or when it failed with some error.
TokenWalletSubscription
Helper class that allows to listen for events from GenericTokenWallet and automatically dispose all subscriptions.
TokenWalletSubscriptionHandlerImpl
TokenWalletSubscriptionHandlerImplImpl
TokenWalletTransaction
TokenWalletTransactionsStorage
Interface that lets TokenWalletRepository handles transactions during wallet lifetime. This interface is used to store transactions or wallet info in cash storage.
TonWallet
Implementation of nekoton's TonWallet.
TonWalletAsset
TonWalletDartWrapper
TonWalletDetails
TonWalletExpiredTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapExpiredTransactions.
TonWalletMultisigExpiredTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapMultisigExpiredTransactions.
TonWalletMultisigOrdinaryTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapMultisigOrdinaryTransactions.
TonWalletMultisigPendingTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapMultisigPendingTransactions.
TonWalletOrdinaryTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapOrdinaryTransactions.
TonWalletPendingTransaction
Transaction for TonWallet that is created by TonWalletRepository.mapPendingTransactions.
TonWalletRepository
This is a repository that lets you subscribe for TonWallet and call its methods for communication with blockchain. You can also refresh its state by polling or pause it.
TonWalletState
State of TonWallet that allows tracking when subscription was created successfully or when it failed with some error.
TonWalletSubscription
Helper class that allows to listen for events from TonWallet and automatically dispose all subscriptions.
TonWalletSubscriptionHandlerImpl
TonWalletSubscriptionHandlerImplImpl
TonWalletTransactionsStorage
Interface that lets TonWalletRepository handles transactions during wallet lifetime. This interface is used to store transactions or wallet info in cash storage.
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
TransportRepository
Repository that allows listen for transport changes in application and change it.
TransportStrategy
This is a strategy for Transport that adds additional logic. There are 3 default strategies that can be used in application.
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

Mixins

AccountRepositoryImpl
Implementation of AccountRepository. Usage
GenericContractRepositoryImpl
NftRepositoryImpl
SeedKeyRepositoryImpl
Implementation of SeedRepository. Usage
TokenWalletRepositoryImpl
TonWalletRepositoryImpl
TransportRepositoryImpl
Implementation of TransportRepository. Usage

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.
ContractFoundTransactionEventPatterns on ContractFoundTransactionEvent
Adds pattern-matching-related methods to ContractFoundTransactionEvent.
ContractStateChangedEventPatterns on ContractStateChangedEvent
Adds pattern-matching-related methods to ContractStateChangedEvent.
ContractStatePatterns on ContractState
Adds pattern-matching-related methods to ContractState.
ContractUpdatesSubscriptionPatterns on ContractUpdatesSubscription
Adds pattern-matching-related methods to ContractUpdatesSubscription.
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.
DeriveKeysParamsPatterns on DeriveKeysParams
Adds pattern-matching-related methods to DeriveKeysParams.
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.
ExistingWalletInfoX on ExistingWalletInfo
ExpirationPatterns on Expiration
Adds pattern-matching-related methods to Expiration.
ExpireAtToTimeout on DateTime
ExportKeyInputToSigner on ExportKeyInput
FeeFactorsPatterns on FeeFactors
Adds pattern-matching-related methods to FeeFactors.
FileMetadataPatterns on FileMetadata
Adds pattern-matching-related methods to FileMetadata.
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.
GetPublicKeysParamsPatterns on GetPublicKeysParams
Adds pattern-matching-related methods to GetPublicKeysParams.
GetPublicKeysToSigner on GetPublicKeys
GqlNetworkSettingsPatterns on GqlNetworkSettings
Adds pattern-matching-related methods to GqlNetworkSettings.
IgnoreTransactionTreeSimulationErrorPatterns on IgnoreTransactionTreeSimulationError
Adds pattern-matching-related methods to IgnoreTransactionTreeSimulationError.
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.
MultitokenTransferPatterns on MultitokenTransfer
Adds pattern-matching-related methods to MultitokenTransfer.
MultitokenWalletInfoPatterns on MultitokenWalletInfo
Adds pattern-matching-related methods to MultitokenWalletInfo.
MultitokenWalletPatterns on MultitokenWallet
Adds pattern-matching-related methods to MultitokenWallet.
NftCallbackPayloadPatterns on NftCallbackPayload
Adds pattern-matching-related methods to NftCallbackPayload.
NftCollectionPatterns on NftCollection
Adds pattern-matching-related methods to NftCollection.
NftInfoPatterns on NftInfo
Adds pattern-matching-related methods to NftInfo.
NftItemPatterns on NftItem
Adds pattern-matching-related methods to NftItem.
NftJsonDataPatterns on NftJsonData
Adds pattern-matching-related methods to NftJsonData.
NftListPatterns on NftList
Adds pattern-matching-related methods to NftList.
NftPatterns on Nft
Adds pattern-matching-related methods to Nft.
NftTokenTransferInputPatterns on NftTokenTransferInput
Adds pattern-matching-related methods to NftTokenTransferInput.
NftTokenTransferPayloadPatterns on NftTokenTransferPayload
Adds pattern-matching-related methods to NftTokenTransferPayload.
NftTransferEventPatterns on NftTransferEvent
Adds pattern-matching-related methods to NftTransferEvent.
NftTransferInputPatterns on NftTransferInput
Adds pattern-matching-related methods to NftTransferInput.
NftTransferPatterns on NftTransfer
Adds pattern-matching-related methods to NftTransfer.
NumExtension on num
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.
PendingTransactionWithDataPatterns on PendingTransactionWithData
Adds pattern-matching-related methods to PendingTransactionWithData.
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.
SeedMetadataPatterns on SeedMetadata
Adds pattern-matching-related methods to SeedMetadata.
SignedMessagePatterns on SignedMessage
Adds pattern-matching-related methods to SignedMessage.
SignInputAuthPatterns on SignInputAuth
Adds pattern-matching-related methods to SignInputAuth.
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.
SymbolX on 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.
TokenWalletOrdinaryTransactionPatterns on TokenWalletOrdinaryTransaction
Adds pattern-matching-related methods to TokenWalletOrdinaryTransaction.
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.
TonWalletExpiredTransactionPatterns on TonWalletExpiredTransaction
Adds pattern-matching-related methods to TonWalletExpiredTransaction.
TonWalletMultisigExpiredTransactionPatterns on TonWalletMultisigExpiredTransaction
Adds pattern-matching-related methods to TonWalletMultisigExpiredTransaction.
TonWalletMultisigOrdinaryTransactionPatterns on TonWalletMultisigOrdinaryTransaction
Adds pattern-matching-related methods to TonWalletMultisigOrdinaryTransaction.
TonWalletMultisigPendingTransactionPatterns on TonWalletMultisigPendingTransaction
Adds pattern-matching-related methods to TonWalletMultisigPendingTransaction.
TonWalletOrdinaryTransactionPatterns on TonWalletOrdinaryTransaction
Adds pattern-matching-related methods to TonWalletOrdinaryTransaction.
TonWalletPendingTransactionPatterns on TonWalletPendingTransaction
Adds pattern-matching-related methods to TonWalletPendingTransaction.
TonWalletTransactionExtension on TransactionWithData<TransactionAdditionalInfo?>
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)
defaultEndpointSelectionRetryCount → const int
How many times transport must try to check network connection if internet was lost.
defaultLatencyDetectionInterval → const int
Timeout in milliseconds, that is used to find network connection.
defaultMaxLatency → const int
Timeout in milliseconds that is used to make network call.
keystoreStorageKey → const String
maxLastSelectedSeeds → const int
Max number of seeds that can be displayed as "last viewed"
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
fakeSignature() String
This is a fake signature string that can be used to check decrypt/encrypt methods to verify that user entered correct password.
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>
initMicroPackage() → dynamic
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
RefreshCompleteCallback = void Function([(Object, StackTrace)? error])
Callback that will be called during every refresh completes. If refresh completes with error, error will not be null.
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>
TokenWalletOnBalanceChanged = void Function(BigInt event)
Callbacks that allows handle events from GenericTokenWallet
TokenWalletOnTransactionsFound = void Function((List<TransactionWithData<TokenWalletTransaction?>>, TransactionsBatchInfo) event)
TonWalletOnMessageExpired = void Function(PendingTransaction event)
TonWalletOnMessageSent = void Function((PendingTransaction, Transaction?) event)
Callbacks that allows handle events from TonWallet
TonWalletOnStateChanged = void Function(ContractState event)
TonWalletOnTransactionsFound = void Function((List<TransactionWithData<TransactionAdditionalInfo?>>, TransactionsBatchInfo) event)

Exceptions / Errors

AnyhowException
The rust code returns anyhow::Error
ContractNotExistsException
Exception thrown when attempting to interact with a contract instance that does not exist. This typically happens when methods are called before proper contract initialization / or when accessing a contract that hasn't been deployed to the blockchain.
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
OperationCanceledException
PanicException
The rust code is panicked
PlatformMismatchException
Platform is not matched
TokenWalletRetrySubscriptionMissedAsset
Exception that will be thrown from TokenWalletRepository.retryTokenSubscription when asset with specified owner and rootTokenContract won't be found.
TokenWalletStateNotInitializedException
Exception that will be thrown from any methods when user outside package called method without making sure that state was initialized.
TonWalletRetrySubscriptionMissedAsset
Exception that will be thrown from TonWalletRepository.retrySubscriptions when asset with specified address won't be found
TonWalletStateNotInitializedException
Exception that will be thrown from any methods when user outside package called method without making sure that state was initialized.
TransportCallAfterDisposeError
Exception that is thrown when transport is disposed and user calls its methods
TvmException
UnmodifiableTypedListException
Cannot modify a typed list