Skip to content

ApprovalThresholdPolicy

Source code in docs_src/capo_managedblockchain/types/approval_threshold_policy.py
class ApprovalThresholdPolicy(TypedDict, closed=True):
    threshold_percentage: NotRequired[
        "capo_managedblockchain.types.threshold_percentage_int.ThresholdPercentageInt"
    ]
    """<p>The percentage of votes among all members that must be <code>YES</code> for a proposal to be approved. For example, a <code>ThresholdPercentage</code> value of <code>50</code> indicates 50%. The <code>ThresholdComparator</code> determines the precise comparison. If a <code>ThresholdPercentage</code> value of <code>50</code> is specified on a network with 10 members, along with a <code>ThresholdComparator</code> value of <code>GREATER_THAN</code>, this indicates that 6 <code>YES</code> votes are required for the proposal to be approved.</p>"""
    proposal_duration_in_hours: NotRequired[
        "capo_managedblockchain.types.proposal_duration_int.ProposalDurationInt"
    ]
    """<p>The duration from the time that a proposal is created until it expires. If members cast neither the required number of <code>YES</code> votes to approve the proposal nor the number of <code>NO</code> votes required to reject it before the duration expires, the proposal is <code>EXPIRED</code> and <code>ProposalActions</code> aren't carried out.</p>"""
    threshold_comparator: NotRequired[
        "capo_managedblockchain.types.threshold_comparator.ThresholdComparator"
    ]
    """<p>Determines whether the vote percentage must be greater than the <code>ThresholdPercentage</code> or must be greater than or equal to the <code>ThresholdPercentage</code> to be approved.</p>"""

proposal_duration_in_hours instance-attribute

proposal_duration_in_hours: NotRequired[ProposalDurationInt]

The duration from the time that a proposal is created until it expires. If members cast neither the required number of YES votes to approve the proposal nor the number of NO votes required to reject it before the duration expires, the proposal is EXPIRED and ProposalActions aren't carried out.

threshold_comparator instance-attribute

threshold_comparator: NotRequired[ThresholdComparator]

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThresholdPercentage to be approved.

threshold_percentage instance-attribute

threshold_percentage: NotRequired[ThresholdPercentageInt]

The percentage of votes among all members that must be YES for a proposal to be approved. For example, a ThresholdPercentage value of 50 indicates 50%. The ThresholdComparator determines the precise comparison. If a ThresholdPercentage value of 50 is specified on a network with 10 members, along with a ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are required for the proposal to be approved.