MultisigStorageStatus class
Status information for a pending multisig transaction.
This class provides a comprehensive view of a multisig transaction's current state, including approval progress, depositor information, and signer-specific permissions. It's typically obtained from MultisigStorage.getStatus or MultisigResponse.getStatus.
Example:
final status = await response.getStatus(provider, signerAddress: bob.address);
if (status != null) {
print('Progress: ${status.approvalCount}/${status.threshold}');
print('Bob has approved: ${status.hasApproved}');
print('Bob can approve: ${status.canApprove}');
print('Is final approval: ${status.isWaitingForFinalApproval}');
}
Constructors
-
MultisigStorageStatus({required int threshold, required bool isComplete, required bool isWaitingForFinalApproval, required BigInt deposit, required TimePoint when, required Uint8List depositor, required List<
Uint8List> approvals, bool? hasApproved, bool? canApprove, bool? canCancel}) -
Creates a MultisigStorageStatus instance.
const
Properties
- approvalCount → int
-
Returns the current number of approvals received.
no setter
-
approvals
→ List<
Uint8List> -
List of public keys that have already approved the transaction.
final
- canApprove → bool?
-
Whether the specified signer can approve (null if no signer specified).
final
- canCancel → bool?
-
Whether the specified signer can cancel (null if no signer specified).
final
- deposit → BigInt
-
The storage deposit amount (in smallest units) paid by the depositor.
final
- depositor → Uint8List
-
The public key of the depositor who initiated the transaction.
final
- hasApproved → bool?
-
Whether the specified signer has already approved (null if no signer specified).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
Whether the transaction has received enough approvals to execute.
final
- isWaitingForFinalApproval → bool
-
Whether the next approval will be the final one that executes the transaction.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - threshold → int
-
The number of approvals required to execute the transaction.
final
- when → TimePoint
-
The timepoint when the transaction was initiated.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this status object to a JSON representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited