MsgWeightedVote -> MsgVoteWeighted
This commit is contained in:
@@ -35,7 +35,7 @@ type Vote struct {
|
||||
}
|
||||
```
|
||||
|
||||
And for backwards compatibility, we introduce `MsgWeightedVote` while keeping `MsgVote`.
|
||||
And for backwards compatibility, we introduce `MsgVoteWeighted` while keeping `MsgVote`.
|
||||
```
|
||||
type MsgVote struct {
|
||||
ProposalID int64
|
||||
@@ -43,14 +43,14 @@ type MsgVote struct {
|
||||
Option Option
|
||||
}
|
||||
|
||||
type MsgWeightedVote struct {
|
||||
type MsgVoteWeighted struct {
|
||||
ProposalID int64
|
||||
Voter sdk.Address
|
||||
Options []WeightedVoteOption
|
||||
}
|
||||
```
|
||||
|
||||
The `ValidateBasic` of a `MsgWeightedVote` struct would require that
|
||||
The `ValidateBasic` of a `MsgVoteWeighted` struct would require that
|
||||
1. The sum of all the Rates is equal to 1.0
|
||||
2. No Option is repeated
|
||||
|
||||
|
||||
@@ -284,8 +284,8 @@
|
||||
- [MsgSubmitProposalResponse](#cosmos.gov.v1beta1.MsgSubmitProposalResponse)
|
||||
- [MsgVote](#cosmos.gov.v1beta1.MsgVote)
|
||||
- [MsgVoteResponse](#cosmos.gov.v1beta1.MsgVoteResponse)
|
||||
- [MsgWeightedVote](#cosmos.gov.v1beta1.MsgWeightedVote)
|
||||
- [MsgWeightedVoteResponse](#cosmos.gov.v1beta1.MsgWeightedVoteResponse)
|
||||
- [MsgVoteWeighted](#cosmos.gov.v1beta1.MsgVoteWeighted)
|
||||
- [MsgVoteWeightedResponse](#cosmos.gov.v1beta1.MsgVoteWeightedResponse)
|
||||
|
||||
- [Msg](#cosmos.gov.v1beta1.Msg)
|
||||
|
||||
@@ -4402,9 +4402,9 @@ MsgVoteResponse defines the Msg/Vote response type.
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.gov.v1beta1.MsgWeightedVote"></a>
|
||||
<a name="cosmos.gov.v1beta1.MsgVoteWeighted"></a>
|
||||
|
||||
### MsgWeightedVote
|
||||
### MsgVoteWeighted
|
||||
MsgVote defines a message to cast a vote.
|
||||
|
||||
|
||||
@@ -4419,10 +4419,10 @@ MsgVote defines a message to cast a vote.
|
||||
|
||||
|
||||
|
||||
<a name="cosmos.gov.v1beta1.MsgWeightedVoteResponse"></a>
|
||||
<a name="cosmos.gov.v1beta1.MsgVoteWeightedResponse"></a>
|
||||
|
||||
### MsgWeightedVoteResponse
|
||||
MsgWeightedVoteResponse defines the MsgWeightedVote response type.
|
||||
### MsgVoteWeightedResponse
|
||||
MsgVoteWeightedResponse defines the MsgVoteWeighted response type.
|
||||
|
||||
|
||||
|
||||
@@ -4444,7 +4444,7 @@ Msg defines the bank Msg service.
|
||||
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
|
||||
| `SubmitProposal` | [MsgSubmitProposal](#cosmos.gov.v1beta1.MsgSubmitProposal) | [MsgSubmitProposalResponse](#cosmos.gov.v1beta1.MsgSubmitProposalResponse) | SubmitProposal defines a method to create new proposal given a content. | |
|
||||
| `Vote` | [MsgVote](#cosmos.gov.v1beta1.MsgVote) | [MsgVoteResponse](#cosmos.gov.v1beta1.MsgVoteResponse) | Vote defines a method to add a vote on a specific proposal. | |
|
||||
| `WeightedVote` | [MsgWeightedVote](#cosmos.gov.v1beta1.MsgWeightedVote) | [MsgWeightedVoteResponse](#cosmos.gov.v1beta1.MsgWeightedVoteResponse) | WeightedVote defines a method to add a weighted vote on a specific proposal. | |
|
||||
| `VoteWeighted` | [MsgVoteWeighted](#cosmos.gov.v1beta1.MsgVoteWeighted) | [MsgVoteWeightedResponse](#cosmos.gov.v1beta1.MsgVoteWeightedResponse) | WeightedVote defines a method to add a weighted vote on a specific proposal. | |
|
||||
| `Deposit` | [MsgDeposit](#cosmos.gov.v1beta1.MsgDeposit) | [MsgDepositResponse](#cosmos.gov.v1beta1.MsgDepositResponse) | Deposit defines a method to add deposit on a specific proposal. | |
|
||||
|
||||
<!-- end services -->
|
||||
|
||||
Reference in New Issue
Block a user