OZWeightedThresholdPolicyParams class final
Weighted threshold policy parameters. Each signer carries a vote weight; the sum of approving-signer weights must reach threshold.
- Inheritance
-
- Object
- OZPolicyInstallParams
- OZWeightedThresholdPolicyParams
Constructors
-
OZWeightedThresholdPolicyParams({required Map<
OZSmartAccountSigner, int> signerWeights, required int threshold}) -
Constructs weighted threshold params.
thresholdmust be > 0 andsignerWeightsmust be non-empty.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signerWeights
→ Map<
OZSmartAccountSigner, int> -
Map of signer to its vote weight.
final
- threshold → int
-
Minimum total weight required to authorise.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toScVal(
) → XdrSCVal -
Returns the on-chain
ScValmap encoding of the parameter shape. The managers call this internally when installing the policy.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override