WeightedThreshold

data class WeightedThreshold(val signerWeights: Map<SmartAccountSigner, UInt>, val threshold: UInt) : PolicyInstallParams

Weighted threshold policy with configurable signer weights.

Each signer has a weight (vote power). The sum of approving signers' weights must meet or exceed the threshold.

Constructors

Link copied to clipboard
constructor(signerWeights: Map<SmartAccountSigner, UInt>, threshold: UInt)

Properties

Link copied to clipboard

Map of signers to their weights defining vote power

Link copied to clipboard

Minimum total weight required for authorization

Functions

Link copied to clipboard
open override fun toScVal(): SCValXdr

Converts the weighted threshold policy parameters to an ScVal map.