Package com.method5.jot.extrinsic.model
Class AccountVote
java.lang.Object
com.method5.jot.extrinsic.model.AccountVote
AccountVote — class for account vote in the Jot SDK. Provides extrinsic construction and
submission; types and data models.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]encode()getType()booleanisAye()static AccountVotesplit(BigDecimal totalAye, BigDecimal totalNay) static AccountVotesplitAbstain(BigDecimal totalAye, BigDecimal totalNay, BigDecimal totalAbstain) static AccountVotestandard(boolean aye, Conviction conviction, BigDecimal balance)
-
Method Details
-
standard
-
split
-
splitAbstain
public static AccountVote splitAbstain(BigDecimal totalAye, BigDecimal totalNay, BigDecimal totalAbstain) -
isAye
public boolean isAye() -
getConviction
-
getBalance
-
getType
-
getTotalAye
-
getTotalNay
-
getTotalAbstain
-
encode
public byte[] encode()
-