Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Governor

Hierarchy

  • Governor

Index

Constructors

constructor

  • new Governor(__namedParameters: object): Governor

Properties

address

address: Address

Methods

buildCreateProposalTx

  • buildCreateProposalTx(options: ProposalOptions): Promise<CreateProposalTx & WithCreator>

buildVoteTx

  • buildVoteTx(proposalId: number, selection: VoteOption): Promise<VoteTx & WithCreator>
  • Parameters

    • proposalId: number
    • selection: VoteOption

    Returns Promise<VoteTx & WithCreator>

getElectionRuleById

  • getElectionRuleById(electionRuleId: number): Promise<ElectionRule>
  • Parameters

    • electionRuleId: number

    Returns Promise<ElectionRule>

getElectionRules

  • getElectionRules(electorateId: number): Promise<keyof ElectionRule[]>
  • Parameters

    • electorateId: number

    Returns Promise<keyof ElectionRule[]>

getElectorates

  • getElectorates(skipFiltering?: boolean): Promise<keyof Electorate[]>
  • Returns a list of electorates that contain the current governor as one of the electors

    Parameters

    • Default value skipFiltering: boolean = false

      if set to true, the list is not filtered by electors anymore

    Returns Promise<keyof Electorate[]>

getProposals

  • getProposals(): Promise<keyof Proposal[]>

getVotes

  • getVotes(): Promise<keyof Vote[]>

Generated using TypeDoc