Methods
castVote
- castVote(_pollID: number, _voteId: number): ContractSendMethod
Parameters
_pollID: number
_voteId: number
Returns ContractSendMethod
createPoll
- createPoll(_description: string, _voteLength: number, options: number[]): ContractCallMethod<number>
Parameters
_description: string
_voteLength: number
options: number[]
endPoll
- endPoll(_pollID: number): ContractSendMethod
Parameters
Returns ContractSendMethod
getPollInfoForVoter
- getPollInfoForVoter(_pollID: number, _voter: string): ContractCallMethod<{ 0: number; 1: number }>
Parameters
_pollID: number
_voter: string
getPollOptionById
Parameters
_pollID: number
id: number
getPoolInformation
- getPoolInformation(_pollID: number): ContractCallMethod<{ 0: string; 1: undefined; 2: number; 3: string; 4: string[]; 5: number }>
Parameters
Returns ContractCallMethod<{ 0: string; 1: undefined; 2: number; 3: string; 4: string[]; 5: number }>
polls
- polls(v1: number): ContractCallMethod<{ 0: string; 1: undefined; 2: number; 3: string; 4: number; 5: number }>
Parameters
Returns ContractCallMethod<{ 0: string; 1: undefined; 2: number; 3: string; 4: number; 5: number }>
stakeVotingTokens
- stakeVotingTokens(_numTokens: string | number): ContractSendMethod
Parameters
_numTokens: string | number
Returns ContractSendMethod
userHasVoted
Parameters
_pollID: number
_user: string
withdrawTokens
- withdrawTokens(_numTokens: string | number): ContractSendMethod
Parameters
_numTokens: string | number
Returns ContractSendMethod