UNPKG

@polkassembly/util

Version:

Set of utility functions for Polkassembly and more.

17 lines (16 loc) 541 B
import BN from 'bn.js'; export declare enum VoteThresholdEnum { Supermajorityapproval = "Supermajorityapproval", Supermajorityrejection = "Supermajorityrejection", Simplemajority = "Simplemajority" } export declare type VoteThreshold = keyof typeof VoteThresholdEnum; export interface BaseThresholdResult { isValid: boolean; } export interface PassingThresholdResult extends BaseThresholdResult { passingThreshold?: BN; } export interface FailingThresholdResult extends BaseThresholdResult { failingThreshold?: BN; }