Interface: GovTxExtensionMethods
@shareledgerjs/client.gov.GovTxExtensionMethods
Methods
depositTx
▸ depositTx(proposalId
, depositor
, amount
): MsgDepositEncodeObject
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
depositor | string |
amount | Coin [] |
Returns
submitProposal
▸ submitProposal(proposer
, initialDeposit
, content?
): MsgSubmitProposalEncodeObject
Parameters
Name | Type |
---|---|
proposer | string |
initialDeposit | Coin [] |
content? | Object |
content.description | string |
content.title | string |
Returns
voteTx
▸ voteTx(proposalId
, voter
, option
): MsgVoteEncodeObject
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
voter | string |
option | VoteOption |
Returns
voteWeightedTx
▸ voteWeightedTx(proposalId
, voter
, options
): MsgVoteWeightedEncodeObject
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
voter | string |
options | { option : VoteOption ; weight : string }[] |