WalletTasksWorker class base
Worker for WalletTasks
- Implemented types
Constructors
- WalletTasksWorker({PlatformThreadHook? threadHook, ExceptionManager? exceptionManager})
- WalletTasksWorker.js({PlatformThreadHook? threadHook, ExceptionManager? exceptionManager})
- WalletTasksWorker.vm({PlatformThreadHook? threadHook, ExceptionManager? exceptionManager})
- WalletTasksWorker.wasm({PlatformThreadHook? threadHook, ExceptionManager? exceptionManager})
Properties
- channelLogger ↔ Logger?
-
getter/setter pairinherited
- exceptionManager → ExceptionManager
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Returns true if the
Workeris connected i.e., it has a validChannel. Returns false otherwise.no setterinherited - isReleased → bool
-
Returns
trueif the instance has been released,falseotherwise.no setterinherited - isStopped → bool
-
no setterinherited
- operations → OperationsMap
-
Workers do not need an
operationsmap.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stats → WorkerStat
-
Workerstatistics.no setterinherited
Methods
-
autoRelease(
List< Releasable?> instances) → void -
The
autoReleasemethod is used to register a set ofReleasableinstances that will be automatically released when this instance becomes unreachable. Please note that this mechanism is based on Dart's Finalizer feature which makes no guarantee that it will ever be called. Depending on instance dependencies and their relationship with the internal Finalizer instance, it may even never be called. For instance, make surethisis never passed toautoReleaseas this will create a cyclic graph of dependencies that will prevent finalization to happen.inherited -
buildHdWalletFromMnemonic(
List< String> mnemonic, int accountIndex) → Future<HdWallet> -
inherited
-
buildHdWalletFromSeed(
Uint8List seed, int accountIndex) → Future< HdWallet> -
inherited
-
buildWalletFromHdWallet(
HdWallet hdWallet, NetworkId networkId) → Future< CardanoWallet> -
inherited
-
ckdPubBip32Ed25519KeyDerivation(
Bip32PublicKey pubKey, int index) → Future< Bip32PublicKey> -
inherited
-
ckdPubBip32Ed25519KeyDerivations(
Bip32PublicKey pubKey, int startIndexInclusive, int endIndexExclusive) → Future< List< Bip32PublicKey> > -
inherited
-
deriveAddressKit(
HdWallet wallet, NetworkId networkId, int index, Bip32KeyRole role) → Future< CardanoAddressKit> -
inherited
-
findCardanoSigner(
String xPubHex, String requestedSignerRaw, int deriveMaxAddressCount) → Future< CardanoSigner> -
inherited
-
Shared
Channelthat can be used to communicate with the worker.inherited -
getStartArgs(
) → List? -
The
Worker's start arguments. -
getStats(
) → WorkerStat -
Workerstatistics.inherited -
hexCredentialsDerivation(
Bip32PublicKey pubKey, int startIndexInclusive, int endIndexExclusive) → Future< List< String> > -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareTxsForSigningImpl(
String walletBech32Address, String drepCredential, String constitutionalCommitteeColdCredential, String constitutionalCommitteeHotCredential, NetworkId networkId, List< CardanoTransaction> txs, List<Utxo> utxos) → Future<TxSigningBundle> -
inherited
-
release(
) → void -
The release method must be overriden in derived classes to clean up
any resources they use. Implementations should not throw and must call
super.release()in afinallyblock. If a derived class definesReleasablefields, these fields should be released of in this method. Note for implementers: it should be safe to call this method several times.inherited -
send(
int command, {List args = const [], CancelationToken? token, bool inspectRequest = false, bool inspectResponse = false}) → Future -
Sends a workload to the worker.
inherited
-
signDataLegacy(
CardanoWallet wallet, String payloadHex, String requestedSignerRaw, int deriveMaxAddressCount) → Future< DataSignature> -
inherited
-
signDataV2(
CardanoWalletImpl wallet, String payloadHex, String requestedSignerRaw, int deriveMaxAddressCount) → Future< DataSignature> -
inherited
-
signTransactionsBundle(
CardanoWallet wallet, TxSigningBundle bundle, int deriveMaxAddressCount) → Future< TxSignedBundle> -
inherited
-
start(
) → Future< Channel> -
Creates a
Channeland starts the worker using the_entryPoint.inherited -
stop(
) → void -
Stops this worker.
inherited
-
stream(
int command, {List args = const [], CancelationToken? token, bool inspectRequest = false, bool inspectResponse = false}) → Stream -
Sends a streaming workload to the worker.
inherited
-
terminate(
[TaskTerminatedException? ex]) → void -
Terminates this worker.
inherited
-
toCardanoBaseAddress(
Bip32PublicKey spend, Bip32PublicKey stake, NetworkId networkId, {CredentialType paymentType = CredentialType.key, CredentialType stakeType = CredentialType.key}) → Future< CardanoAddress> -
inherited
-
toCardanoRewardAddress(
Bip32PublicKey spend, NetworkId networkId, {CredentialType paymentType = CredentialType.key}) → Future< CardanoAddress> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
) → void -
Implementations should call this method e.g. at construction time to make
sure they will be trackable in debugging scenarios. See
ReleasableTracker.enablefor more information.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited