OZWeightedThresholdPolicyParams class final

Weighted threshold policy parameters. Each signer carries a vote weight; the sum of approving-signer weights must reach threshold.

Inheritance

Constructors

OZWeightedThresholdPolicyParams({required Map<OZSmartAccountSigner, int> signerWeights, required int threshold})
Constructs weighted threshold params. threshold must be > 0 and signerWeights must 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 ScVal map 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