TonWalletTransactionsStorage class abstract
Interface that lets TonWalletRepository handles transactions during wallet lifetime. This interface is used to store transactions or wallet info in cash storage.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addExpiredTransaction(
{required int networkId, required String group, required Address address, required PendingTransactionWithData transaction}) → Future< void> - Add expired transaction to list of transactions. This method calls when TonWallet.onMessageExpiredStream emits new data. This method calls deletePendingTransaction and enters deleted transaction in list of expired.
-
addFoundTransactions(
{required int networkId, required String group, required Address address, required List< TransactionWithData< transaction}) → Future<TransactionAdditionalInfo?> >void> - Add list of found transactions to list of transactions. This method calls when TonWallet.onTransactionsFoundStream emits new data.
-
addPendingTransaction(
{required int networkId, required String group, required Address address, required PendingTransactionWithData transaction}) → Future< void> - Add pending transaction to list of transactions. This method calls during TonWallet.send method, when transaction should be in progress for some time. In the end of this method, transaction will be deleted.
-
deletePendingTransaction(
{required int networkId, required String group, required Address address, required String messageHash}) → Future< PendingTransactionWithData?> -
Delete pending transaction from list of transactions.
If transaction was deleted, this means, that is was completed (or timed
out).
To identify transaction, use
messageHashthat isPendingTransaction.messageHash. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTonWalletDetails(
{required int networkId, required String group, required Address address, required ContractState contractState, required TonWalletDetails details, required List< PublicKey> ? custodians}) → Future<void> -
Put information about ton wallet to cash storage.
This callback calls, when TonWallet.onStateChangedStream triggered some
action.
To identify wallet, use
networkId,groupandaddress.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited