import { Address, Identity } from "@iov/bcp"; import { BnsConnection, CreateProposalTx, ElectionRule, Electorate, Proposal, Vote, VoteOption, VoteTx, } from "@iov/bns"; import { ProposalOptions } from "./proposals"; export interface GovernorOptions { readonly connection: BnsConnection; readonly identity: Identity; readonly guaranteeFundEscrowId?: number; readonly rewardFundAddress?: Address; } export declare class Governor { readonly identity: Identity; readonly address: Address; private readonly connection; private readonly guaranteeFundEscrowId?; private readonly rewardFundAddress?; constructor({ connection, identity, guaranteeFundEscrowId, rewardFundAddress }: GovernorOptions); /** * Returns a list of electorates that contain the current governor as one of the electors * * @param skipFiltering if set to true, the list is not filtered by electors anymore */ getElectorates(skipFiltering?: boolean): Promise; getElectionRules(electorateId: number): Promise; getElectionRuleById(electionRuleId: number): Promise; getProposals(): Promise; getVotes(): Promise; buildCreateProposalTx(options: ProposalOptions): Promise; buildVoteTx(proposalId: number, selection: VoteOption): Promise; }