nekoton_repository library
Nekoton repository package
Classes
- 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
- 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
- CallerTestClass
-
CancelableOperationAwaited<
T> - Wrapper above CancelableOperation that allows mark operation as canceled and wait for canceled operation itself except of ignoring result.
- CommonCurrencies
- Provides a list of the most common currencies.
- ContractFoundTransactionEvent
- Event that contains list of last transactions for GenericContract.
- ContractState
- ContractStateChangedEvent
- Event that contains actual contract state for GenericContract.
- ContractUpdatesSubscription
- CreateKeyInput
- Currencies
- A factory for registering, parsing and finding Currency instances.
- Currency
- Allows you to create a Currency which is then used to construct Money instances.
- DartCallback
- 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
- DynamicValue_Error
- DynamicValue_F32
- DynamicValue_F64
- DynamicValue_I32
- DynamicValue_I64
- DynamicValue_MegaStruct
- DynamicValue_None
- DynamicValue_String
- DynamicValue_U16
- DynamicValue_U32
- DynamicValue_U64
- DynamicValue_VecU8
- EncryptedData
- EncryptedKeyCreateInput
- Input for creating legacy key
- EncryptedKeyExportSeedOutput
- EncryptedKeyGetPublicKeys
- EncryptedKeyPassword
- EncryptedKeyUpdateParams
- EncryptedKeyUpdateParamsChangePassword
- EncryptedKeyUpdateParamsRename
- ExchangePlatform
- The ExchangePlatform allows you to register a set of ExchangeRate which you can then use to do currency conversions.
- ExchangeRate
- When defining an exchange rate we need to specify the conditions under which the exchange is calculated.
- ExecutionOutput
- ExistingContract
- ExistingWalletInfo
- Expiration
- ExportKeyInput
- ExportKeyOutput
- FeeFactors
- Fixed
- Represents a fixed scale decimal no.
- 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.
- GenericContractSubscriptionItem
- Subscription item that is used to store GenericContract subscription and all related data.
- GenericTokenWallet
- GenTimings
- GetPublicKeys
- GqlConnection
- GqlConnectionDartWrapper
- GqlConnectionHttpClient
- 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
- JrpcConnection
- JrpcConnectionDartWrapper
- JrpcConnectionHttpClient
- Interface for http client to make post requests.
- 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
- KeySigner_Derived
- KeySigner_Encrypted
- KeySigner_Ledger
- KeySigner_Stub
- 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
- LedgerConnectionImpl
- Implementation of nekoton's LedgerConnection
- LedgerKeyCreateInput
- LedgerKeyGetPublicKeys
- LedgerSignatureContext
- LedgerSignInput
- LedgerUpdateKeyInput
- LedgerUpdateKeyInputRename
- LogEntry
- Log entry
- Message
- MnemonicType
- MnemonicType_Bip39
- MnemonicType_Legacy
- MnemonicTypeJsonConverter
- Json converter for MnemonicType
- Money
- Allows you to store, print and perform mathematically operations on money whilst maintaining precision.
- MoneyData
-
DTO for exchange of data between an instance of Money and
PatternEncoder
orPatternDecoder
. -
MoneyDecoder<
T> - Bases class for implementing a decoder for money.
-
MoneyEncoder<
T> - Bases class for implementing a encoder for money.
- MultisigConfirmTransaction
- MultisigPendingTransaction
- MultisigSendTransaction
- MultisigSubmitTransaction
- MultisigTransaction
- MyClass
- MyFormat
- 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. -
NormalTask<
S, E extends Object> - A task to call FFI function.
- OnBalanceChangedPayload
- OnMessageExpiredPayload
- OnMessageSentPayload
- OnStateChangedPayload
- OnTransactionsFoundPayload
- Password
- PasswordCacheBehavior
- PasswordExplicit
- PendingTransaction
- PendingTransactionWithData
- Percentage
- Helper class to allow us to do percentage calculations on Money amounts. Percentage is described as a decimal Fixed so 20% is expressed as 20.0
- ProtoConnection
- ProtoConnectionDartWrapper
- ProtoConnectionHttpClient
- Interface for http client to make post requests.
- 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. - RustToDartCaller
- Class that is used to unify calls from rust to dart for any types and count of instances.
- RustToDartMirrorInterface
- Mirroring interface for classes that is used with RustToDartCaller to specify which instance should invoke calls from rust by instanceHash.
- 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
- StakingInformation
- Information about stake logic for transport.
- Storage
- StorageDartWrapper
- StorageFeeInfo
- StorageImpl
- Implementation of nekoton's Storage
- 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.
- 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.
- 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
Enums
Mixins
- AccountRepositoryImpl
- Implementation of AccountRepository. Usage
- GenericContractRepositoryImpl
- SeedKeyRepositoryImpl
- Implementation of SeedRepository. Usage
- TokenWalletRepositoryImpl
- TonWalletRepositoryImpl
- TransportRepositoryImpl
- Implementation of TransportRepository. Usage
Extensions
- CreateKeyInputToSigner on CreateKeyInput
- CurrencyFixer on Currency
- Extension on Currency to add improved serialization and formatting methods
- DynamicValueConvert on DynamicValue
- ExistingWalletInfoX on ExistingWalletInfo
- ExpireAtToTimeout on DateTime
- ExportKeyInputToSigner on ExportKeyInput
- FixedFixer on Fixed
- Extension on Fixed to add improved serialization and formatting methods.
- GetPublicKeysToSigner on GetPublicKeys
- KeySignerName on KeySigner
- Get name of KeySigner, same as in rust side
- MoneyFixer on Money
- Extension on Money to add improved serialization and formatting methods.
- NumExtension on num
- SignInputToSigner on SignInput
-
TonWalletTransactionExtension
on TransactionWithData<
TransactionAdditionalInfo?> - UpdateKeyInputToSigner on UpdateKeyInput
Constants
- accountsStorageKey → const String
- amountJsonConverter → const _BigIntJsonConverter
- Json converter of amount value from string to BigInt (without currency identification)
- 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.
- defaultWorkchainId → const int
- Default workchain for loading accounts
- intensivePollingInterval → const Duration
- This is an interval for active polling to check wallet state during send method.
- 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
- tokenWalletRefreshInterval → const Duration
- Polling interval for token wallet refresh
- tonWalletRefreshInterval → const Duration
- Polling interval for TonWallet.refresh
- uriJsonConverter → const _UriJsonConverter
- Json converter of Uri value from string to Uri
Functions
-
callSendResult(
{required String id, required DynamicValue value}) → void - Callback functions for returning Dart method result
-
checkPublicKey(
PublicKey publicKey) → bool - Check if public key is correct. Return true or false
-
codeToTvc(
String code) → Future< (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.getBlockchainConfigaccount
- base64-encoded bocutime
- secondsisMasterchain
- default: false -
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 encodeplain
- 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.getBlockchainConfigaccount
- boc from makeFullAccountBocmessage
- base64-encoded boc from one of: -
extractPublicKey(
String boc) → Future< 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) → Future< String> - Returns hash of decoded boc or throws error
-
getCodeSalt(
String code) → Future< String?> - Get salt from code if possible and return base64-encoded salt or throw error
-
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, ...
-
initCaller(
) → Stream< DartCallStubRegistred> - Init caller
-
initLogger(
{required LogLevel level, required bool mobileLogger}) → Future< void> -
initMicroPackage(
) → dynamic -
initRustToDartCaller(
) → Future< void> - Init rust to dart caller that will call methods of registered instances. For details, see RustToDartCaller
-
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}) → Future< (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}) → Future< 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> -
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 millisecondsaccount
- account address Returnsboc, transaction
if everything is ok orerror_code
if transaction failed or throws error -
ntExtractPublicKey(
{required String boc}) → Future< String> - Extract public key from boc and return it or throw error
-
ntGenerateKey(
{required MnemonicType accountType}) → GeneratedKeyG -
ntGetBocHash(
{required String boc}) → Future< String> - Returns hash of decoded boc or throws error
-
ntGetCodeSalt(
{required String code}) → Future< String?> - Get salt from code if possible and return base64-encoded salt or throw error
-
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}) → Future< 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}) → Future< List< String> > -
Return base64 encoded bytes of tokens or throws error
returns
tvc, hash
-
ntPackStdSmcAddr(
{required String addr, required bool base64Url, required bool bounceable}) → Future< 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, 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, int? signatureId}) → Future< String> - Run contract local. Return json-encoded ExecutionOutput or throws error.
-
ntSetCodeSalt(
{required String code, required String salt}) → Future< List< String> > -
Set salt to code and return base64-encoded string or throw error
returns
tvc, hash
-
ntSplitTvc(
{required String tvc}) → Future< 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}) → Future< 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}) → Future< 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, required String? abiVersion}) → Future<(String, String)> - Return (base64 tvc, hash) or throws error
-
packStdSmcAddr(
{required Address address, required bool base64Url, required bool bounceable}) → Future< 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
-
registerRustToDartCaller(
RustToDartCaller rustToDartCaller) → Future< void> -
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}) → 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}) → Future<ExecutionOutput> - Run contract local. Return json-encoded ExecutionOutput or throws error.
-
setClockOffset(
{required PlatformInt64 offsetMs}) → Future< void> - Set clock offset in milliseconds
-
setCodeSalt(
{required String code, required String salt}) → Future< (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
-
simpleAdder(
{required int a, required int b}) → Future< int> -
simpleAdderSync(
{required int a, required int b}) → int -
simpleCallDart(
) → Future< void> -
simpleCallFunc0(
{required bool needResult}) → Future< void> -
simpleCallFunc1(
{required bool needResult}) → Future< void> -
simpleCallFunc2(
) → Future< void> -
simpleCallFunc3(
) → Future< void> -
simpleLog(
{required String string}) → Future< void> -
simplePanic(
) → Future< void> -
splitTvc(
String tvc) → Future< (String?, String?)> - Split base64 tvc string into data and code. Return (data, code) or throw error
-
stubCallDart(
{required DartCallStub stub}) → Future< void> -
stubDcs(
) → Future< DartCallStub> -
stubDv(
) → Future< DynamicValue> -
testCallerCallTest0Async(
{required String string, required bool needResult}) → Future< DynamicValue> -
testCallerCallTest0Sync(
{required String string, required bool needResult}) → DynamicValue -
testCallerCallTest1Async(
{required String string, required bool needResult}) → Future< DynamicValue> -
testLoggerDebug(
{required String string}) → Future< void> -
testLoggerError(
{required String string}) → Future< void> -
testLoggerInfo(
{required String string}) → Future< void> -
testLoggerPanic(
{required String string}) → Future< void> -
testLoggerWarn(
{required String string}) → Future< void> -
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, required String? abiVersion}) → Future<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}) → Future< 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
- CurrencyIsoCode = String
-
LedgerConnectionGetPublicKey
= Future<
PublicKey> Function(int accountId) -
LedgerConnectionSign
= Future<
String> Function({required int account, Object? context, required List<int> message}) - 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< , TransactionsBatchInfo) event)TokenWalletTransaction?> > - 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< , TransactionsBatchInfo) event)TransactionAdditionalInfo?> >
Exceptions / Errors
- AmountTooLargeException
- Thrown if a number larger than the supported ranges is passed in. This will only occur if you call Fixed.fromNum with scale > 20 or a absolute value of > 10^21 If you need larger numbers then use one of the alternate constructors.
- 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.
- FixedException
- Base exception of all exceptions thrown from the Fixed package.
- FixedParseException
- Exception thrown when a parse fails.
- FrbBacktracedException
- Interface indicating exceptions that have backtrace (stack trace)
- FrbException
- Base class for exceptions in flutter_rust_bridge
- IllegalFixedPatternException
- Thrown when you pass an invalid pattern to Fixed.format.
- IllegalPatternException
- Thrown when you pass an invalid pattern to Money.format.
- MismatchedCurrencyException
- Thrown if an exchange is attempted with a Money has a Currency which doesn't match the exchange rate.
- MoneyException
- Base class of all exceptions thrown from Money2.
- MoneyParseException
- Exception thrown when a parse fails.
- 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
- UnknownCurrencyException
- Thrown if the currency is not registered.
- UnknownExchangeRateException
- Thrown if an attempt is made to calcuate the value of a Money amount in another currency for which there isn't a registered exchange rate.
- UnmodifiableTypedListException
- Cannot modify a typed list