GenericContractRepositoryImpl mixin
- Implemented types
-
- Mixin applications
-
Methods
-
addContractInst(GenericContractSubscriptionItem item)
→ void
-
This is internal method to add contract to cache.
You must not call this method directly form app, use subscribeContract.
-
executeTransactionLocally({required Address address, required SignedMessage signedMessage, required TransactionExecutionOptions options})
→ Future<Transaction>
-
Call GenericContract.executeTransactionLocally for contract with
subscription with
address.
override
-
getContractByAddress(Address address)
→ GenericContract
-
Get contract for address.
If there is multiple contracts, then first will be taken, because
it's by the way same contract even if subscriptions are different.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
removeContractInst({required String tabId, required Uri origin, required Address address})
→ GenericContractSubscriptionItem?
-
This is internal method to remove contract from cache.
You must not call this method directly form app, use unsubscribeContract
-
sendContract({required Address address, required SignedMessage signedMessage})
→ Future<Transaction>
-
Send funds from contract with subscription with
address, starting
listening for result.
override
-
sendContractUnawaited({required Address address, required SignedMessage signedMessage})
→ Future<PendingTransaction>
-
Send funds from contract with subscription with
address but do not
listen for result.
override
-
subscribeContract({required String tabId, required Uri origin, required Address address, required ContractUpdatesSubscription contractUpdatesSubscription})
→ Future<GenericContract>
-
Create subscription for browser tab with
tabId and url origin.
And address account and options for subscription.
override
-
tabStateChangesStream(String tabId)
→ Stream<ContractStateChangedEvent>
-
Stream, that listens for all created contract subscriptions for browser
tab with
tabId and provides actual contract state for every contract
separately.
override
-
tabSubscriptions(String tabId)
→ Map<Address, ContractUpdatesSubscription>?
-
Get map of subscription options for every contract in scope of browser
tab with
tabId.
override
-
tabTransactionsStream(String tabId)
→ Stream<ContractFoundTransactionEvent>
-
Stream, that listens for all created contract subscriptions for browser
tab with
tabId and provides found transactions for every contract
separately.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsubscribeAllContracts()
→ void
-
Close all contract's subscriptions
override
-
unsubscribeContract({required String tabId, required Uri origin, required Address address})
→ void
-
Close subscription for contract with specified wallet with
address.
By browser's tabId and origin url.
override
-
unsubscribeContractsTab(String tabId)
→ void
-
Close all contract's subscriptions specified for browser tab with
tabId
override
-
updateContractTransportSubscriptions()
→ void
-
Close all previously created subscriptions because transport had changed
override
-
waitContractSending({required Address address, required PendingTransaction pending})
→ Future<Transaction>
-
Wait for sending funds from contract. This can be helpful when you used
sendContractUnawaited and you need to wait sending in async way to call
methods from InPageProvider
override