Readonly gov
gov: { deposit: any; deposits: any; params: any; proposal: any; proposals: any; tally: any; vote: any; votes: any }
Type declaration
deposit:function
- deposit(proposalId: GovProposalId, depositorAddress: string): Promise<QueryDepositResponse>
Parameters
Returns Promise<QueryDepositResponse>
deposits:function
- deposits(proposalId: GovProposalId, paginationKey?: Uint8Array): Promise<QueryDepositsResponse>
Parameters
Optional paginationKey: Uint8Array
Returns Promise<QueryDepositsResponse>
params:function
- params(parametersType: GovParamsType): Promise<QueryParamsResponse>
Parameters
Returns Promise<QueryParamsResponse>
proposal:function
- proposal(proposalId: GovProposalId): Promise<QueryProposalResponse>
Parameters
Returns Promise<QueryProposalResponse>
proposals:function
- proposals(proposalStatus: ProposalStatus, depositor: string, voter: string, paginationKey?: Uint8Array): Promise<QueryProposalsResponse>
Parameters
proposalStatus: ProposalStatus
depositor: string
voter: string
Optional paginationKey: Uint8Array
Returns Promise<QueryProposalsResponse>
tally:function
- tally(proposalId: GovProposalId): Promise<QueryTallyResultResponse>
Parameters
Returns Promise<QueryTallyResultResponse>
vote:function
- vote(proposalId: GovProposalId, voterAddress: string): Promise<QueryVoteResponse>
Parameters
Returns Promise<QueryVoteResponse>
votes:function
- votes(proposalId: GovProposalId, paginationKey?: Uint8Array): Promise<QueryVotesResponse>
Parameters
Optional paginationKey: Uint8Array
Returns Promise<QueryVotesResponse>