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()
boolean
isAye()
void
setAye
(boolean aye) void
setBalance
(BigDecimal balance) void
setConviction
(Conviction conviction) void
setTotalAbstain
(BigDecimal totalAbstain) void
setTotalAye
(BigDecimal totalAye) void
setTotalNay
(BigDecimal totalNay) void
setType
(AccountVoteType type) static AccountVote
split
(BigDecimal totalAye, BigDecimal totalNay) static AccountVote
splitAbstain
(BigDecimal totalAye, BigDecimal totalNay, BigDecimal totalAbstain) static AccountVote
standard
(boolean aye, Conviction conviction, BigDecimal balance) toString()
-
Method Details
-
standard
-
split
-
splitAbstain
public static AccountVote splitAbstain(BigDecimal totalAye, BigDecimal totalNay, BigDecimal totalAbstain) -
isAye
public boolean isAye() -
setAye
public void setAye(boolean aye) -
getConviction
-
setConviction
-
getBalance
-
setBalance
-
getType
-
setType
-
getTotalAye
-
setTotalAye
-
getTotalNay
-
setTotalNay
-
getTotalAbstain
-
setTotalAbstain
-
encode
public byte[] encode() -
toString
-