chore: Bump gov and group to v1 (#11334)
## Description Closes: #11331 --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
This commit is contained in:
parent
142cf67978
commit
1715693ca2
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package govv1beta2
|
||||
package govv1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@ -177,8 +177,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cosmos_gov_v1beta2_genesis_proto_init()
|
||||
md_GenesisState = File_cosmos_gov_v1beta2_genesis_proto.Messages().ByName("GenesisState")
|
||||
file_cosmos_gov_v1_genesis_proto_init()
|
||||
md_GenesisState = File_cosmos_gov_v1_genesis_proto.Messages().ByName("GenesisState")
|
||||
fd_GenesisState_starting_proposal_id = md_GenesisState.Fields().ByName("starting_proposal_id")
|
||||
fd_GenesisState_deposits = md_GenesisState.Fields().ByName("deposits")
|
||||
fd_GenesisState_votes = md_GenesisState.Fields().ByName("votes")
|
||||
@ -197,7 +197,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cosmos_gov_v1beta2_genesis_proto_msgTypes[0]
|
||||
mi := &file_cosmos_gov_v1_genesis_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -310,25 +310,25 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor,
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
return x.StartingProposalId != uint64(0)
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
return len(x.Deposits) != 0
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
return len(x.Votes) != 0
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
return len(x.Proposals) != 0
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
return x.DepositParams != nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
return x.VotingParams != nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
return x.TallyParams != nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -340,25 +340,25 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
x.StartingProposalId = uint64(0)
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
x.Deposits = nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
x.Votes = nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
x.Proposals = nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
x.DepositParams = nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
x.VotingParams = nil
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
x.TallyParams = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -370,41 +370,41 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
value := x.StartingProposalId
|
||||
return protoreflect.ValueOfUint64(value)
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
if len(x.Deposits) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_2_list{})
|
||||
}
|
||||
listValue := &_GenesisState_2_list{list: &x.Deposits}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
if len(x.Votes) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_3_list{})
|
||||
}
|
||||
listValue := &_GenesisState_3_list{list: &x.Votes}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
if len(x.Proposals) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_4_list{})
|
||||
}
|
||||
listValue := &_GenesisState_4_list{list: &x.Proposals}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
value := x.DepositParams
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
value := x.VotingParams
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
value := x.TallyParams
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -420,31 +420,31 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
x.StartingProposalId = value.Uint()
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_2_list)
|
||||
x.Deposits = *clv.list
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_3_list)
|
||||
x.Votes = *clv.list
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_4_list)
|
||||
x.Proposals = *clv.list
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
x.DepositParams = value.Message().Interface().(*DepositParams)
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
x.VotingParams = value.Message().Interface().(*VotingParams)
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
x.TallyParams = value.Message().Interface().(*TallyParams)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -460,46 +460,46 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
if x.Deposits == nil {
|
||||
x.Deposits = []*Deposit{}
|
||||
}
|
||||
value := &_GenesisState_2_list{list: &x.Deposits}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
if x.Votes == nil {
|
||||
x.Votes = []*Vote{}
|
||||
}
|
||||
value := &_GenesisState_3_list{list: &x.Votes}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
if x.Proposals == nil {
|
||||
x.Proposals = []*Proposal{}
|
||||
}
|
||||
value := &_GenesisState_4_list{list: &x.Proposals}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
if x.DepositParams == nil {
|
||||
x.DepositParams = new(DepositParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.DepositParams.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
if x.VotingParams == nil {
|
||||
x.VotingParams = new(VotingParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.VotingParams.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
if x.TallyParams == nil {
|
||||
x.TallyParams = new(TallyParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.TallyParams.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
panic(fmt.Errorf("field starting_proposal_id of message cosmos.gov.v1beta2.GenesisState is not mutable"))
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
panic(fmt.Errorf("field starting_proposal_id of message cosmos.gov.v1.GenesisState is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -508,31 +508,31 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.gov.v1beta2.GenesisState.starting_proposal_id":
|
||||
case "cosmos.gov.v1.GenesisState.starting_proposal_id":
|
||||
return protoreflect.ValueOfUint64(uint64(0))
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposits":
|
||||
case "cosmos.gov.v1.GenesisState.deposits":
|
||||
list := []*Deposit{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
|
||||
case "cosmos.gov.v1beta2.GenesisState.votes":
|
||||
case "cosmos.gov.v1.GenesisState.votes":
|
||||
list := []*Vote{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
|
||||
case "cosmos.gov.v1beta2.GenesisState.proposals":
|
||||
case "cosmos.gov.v1.GenesisState.proposals":
|
||||
list := []*Proposal{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list})
|
||||
case "cosmos.gov.v1beta2.GenesisState.deposit_params":
|
||||
case "cosmos.gov.v1.GenesisState.deposit_params":
|
||||
m := new(DepositParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.voting_params":
|
||||
case "cosmos.gov.v1.GenesisState.voting_params":
|
||||
m := new(VotingParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.gov.v1beta2.GenesisState.tally_params":
|
||||
case "cosmos.gov.v1.GenesisState.tally_params":
|
||||
m := new(TallyParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1beta2.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.gov.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.gov.v1beta2.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.gov.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -542,7 +542,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cosmos.gov.v1beta2.GenesisState", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cosmos.gov.v1.GenesisState", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1073,7 +1073,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cosmos/gov/v1beta2/genesis.proto
|
||||
// source: cosmos/gov/v1/genesis.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -1107,7 +1107,7 @@ type GenesisState struct {
|
||||
func (x *GenesisState) Reset() {
|
||||
*x = GenesisState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cosmos_gov_v1beta2_genesis_proto_msgTypes[0]
|
||||
mi := &file_cosmos_gov_v1_genesis_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1121,7 +1121,7 @@ func (*GenesisState) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_gov_v1beta2_genesis_proto_rawDescGZIP(), []int{0}
|
||||
return file_cosmos_gov_v1_genesis_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GenesisState) GetStartingProposalId() uint64 {
|
||||
@ -1173,87 +1173,82 @@ func (x *GenesisState) GetTallyParams() *TallyParams {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_cosmos_gov_v1beta2_genesis_proto protoreflect.FileDescriptor
|
||||
var File_cosmos_gov_v1_genesis_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cosmos_gov_v1beta2_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x76, 0x2f, 0x76, 0x31, 0x62,
|
||||
0x65, 0x74, 0x61, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76,
|
||||
0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x1a, 0x1c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67,
|
||||
0x6f, 0x76, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x67, 0x6f, 0x76, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x03, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f,
|
||||
0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73,
|
||||
0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x44,
|
||||
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73,
|
||||
0x12, 0x2e, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x18, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x62,
|
||||
0x65, 0x74, 0x61, 0x32, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73,
|
||||
0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76,
|
||||
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61,
|
||||
0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x48, 0x0a, 0x0e,
|
||||
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f,
|
||||
0x76, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69,
|
||||
0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0d, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
|
||||
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x45, 0x0a, 0x0d, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x32, 0x2e, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
|
||||
0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x42, 0x0a,
|
||||
0x0c, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76,
|
||||
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x54, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x42, 0xd0, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0c, 0x47, 0x65,
|
||||
0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69,
|
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||||
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x76, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
0x32, 0x3b, 0x67, 0x6f, 0x76, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x43,
|
||||
0x47, 0x58, 0xaa, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x6f, 0x76, 0x2e,
|
||||
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x5c, 0x47, 0x6f, 0x76, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xe2, 0x02, 0x1e, 0x43,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x6f, 0x76, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14,
|
||||
0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x76, 0x3a, 0x3a, 0x56, 0x31, 0x62,
|
||||
0x65, 0x74, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
var file_cosmos_gov_v1_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x76, 0x2f, 0x76, 0x31, 0x2f,
|
||||
0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x76, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x6f, 0x76, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x03, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69,
|
||||
0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72,
|
||||
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x08, 0x64, 0x65, 0x70, 0x6f,
|
||||
0x73, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73,
|
||||
0x69, 0x74, 0x52, 0x08, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x29, 0x0a, 0x05,
|
||||
0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65,
|
||||
0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f,
|
||||
0x73, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f,
|
||||
0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x43,
|
||||
0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x50, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x52, 0x0d, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x12, 0x40, 0x0a, 0x0d, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x5f, 0x70,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x6c, 0x6c,
|
||||
0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x42, 0xad, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65,
|
||||
0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68,
|
||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x76, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x6f, 0x76, 0x76, 0x31,
|
||||
0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x47, 0x6f, 0x76, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c,
|
||||
0x47, 0x6f, 0x76, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c,
|
||||
0x47, 0x6f, 0x76, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
||||
0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x76,
|
||||
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_cosmos_gov_v1beta2_genesis_proto_rawDescOnce sync.Once
|
||||
file_cosmos_gov_v1beta2_genesis_proto_rawDescData = file_cosmos_gov_v1beta2_genesis_proto_rawDesc
|
||||
file_cosmos_gov_v1_genesis_proto_rawDescOnce sync.Once
|
||||
file_cosmos_gov_v1_genesis_proto_rawDescData = file_cosmos_gov_v1_genesis_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_cosmos_gov_v1beta2_genesis_proto_rawDescGZIP() []byte {
|
||||
file_cosmos_gov_v1beta2_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_cosmos_gov_v1beta2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_gov_v1beta2_genesis_proto_rawDescData)
|
||||
func file_cosmos_gov_v1_genesis_proto_rawDescGZIP() []byte {
|
||||
file_cosmos_gov_v1_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_cosmos_gov_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_gov_v1_genesis_proto_rawDescData)
|
||||
})
|
||||
return file_cosmos_gov_v1beta2_genesis_proto_rawDescData
|
||||
return file_cosmos_gov_v1_genesis_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cosmos_gov_v1beta2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cosmos_gov_v1beta2_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: cosmos.gov.v1beta2.GenesisState
|
||||
(*Deposit)(nil), // 1: cosmos.gov.v1beta2.Deposit
|
||||
(*Vote)(nil), // 2: cosmos.gov.v1beta2.Vote
|
||||
(*Proposal)(nil), // 3: cosmos.gov.v1beta2.Proposal
|
||||
(*DepositParams)(nil), // 4: cosmos.gov.v1beta2.DepositParams
|
||||
(*VotingParams)(nil), // 5: cosmos.gov.v1beta2.VotingParams
|
||||
(*TallyParams)(nil), // 6: cosmos.gov.v1beta2.TallyParams
|
||||
var file_cosmos_gov_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cosmos_gov_v1_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: cosmos.gov.v1.GenesisState
|
||||
(*Deposit)(nil), // 1: cosmos.gov.v1.Deposit
|
||||
(*Vote)(nil), // 2: cosmos.gov.v1.Vote
|
||||
(*Proposal)(nil), // 3: cosmos.gov.v1.Proposal
|
||||
(*DepositParams)(nil), // 4: cosmos.gov.v1.DepositParams
|
||||
(*VotingParams)(nil), // 5: cosmos.gov.v1.VotingParams
|
||||
(*TallyParams)(nil), // 6: cosmos.gov.v1.TallyParams
|
||||
}
|
||||
var file_cosmos_gov_v1beta2_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.gov.v1beta2.GenesisState.deposits:type_name -> cosmos.gov.v1beta2.Deposit
|
||||
2, // 1: cosmos.gov.v1beta2.GenesisState.votes:type_name -> cosmos.gov.v1beta2.Vote
|
||||
3, // 2: cosmos.gov.v1beta2.GenesisState.proposals:type_name -> cosmos.gov.v1beta2.Proposal
|
||||
4, // 3: cosmos.gov.v1beta2.GenesisState.deposit_params:type_name -> cosmos.gov.v1beta2.DepositParams
|
||||
5, // 4: cosmos.gov.v1beta2.GenesisState.voting_params:type_name -> cosmos.gov.v1beta2.VotingParams
|
||||
6, // 5: cosmos.gov.v1beta2.GenesisState.tally_params:type_name -> cosmos.gov.v1beta2.TallyParams
|
||||
var file_cosmos_gov_v1_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.gov.v1.GenesisState.deposits:type_name -> cosmos.gov.v1.Deposit
|
||||
2, // 1: cosmos.gov.v1.GenesisState.votes:type_name -> cosmos.gov.v1.Vote
|
||||
3, // 2: cosmos.gov.v1.GenesisState.proposals:type_name -> cosmos.gov.v1.Proposal
|
||||
4, // 3: cosmos.gov.v1.GenesisState.deposit_params:type_name -> cosmos.gov.v1.DepositParams
|
||||
5, // 4: cosmos.gov.v1.GenesisState.voting_params:type_name -> cosmos.gov.v1.VotingParams
|
||||
6, // 5: cosmos.gov.v1.GenesisState.tally_params:type_name -> cosmos.gov.v1.TallyParams
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
@ -1261,14 +1256,14 @@ var file_cosmos_gov_v1beta2_genesis_proto_depIdxs = []int32{
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_cosmos_gov_v1beta2_genesis_proto_init() }
|
||||
func file_cosmos_gov_v1beta2_genesis_proto_init() {
|
||||
if File_cosmos_gov_v1beta2_genesis_proto != nil {
|
||||
func init() { file_cosmos_gov_v1_genesis_proto_init() }
|
||||
func file_cosmos_gov_v1_genesis_proto_init() {
|
||||
if File_cosmos_gov_v1_genesis_proto != nil {
|
||||
return
|
||||
}
|
||||
file_cosmos_gov_v1beta2_gov_proto_init()
|
||||
file_cosmos_gov_v1_gov_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cosmos_gov_v1beta2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cosmos_gov_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GenesisState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1285,18 +1280,18 @@ func file_cosmos_gov_v1beta2_genesis_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_cosmos_gov_v1beta2_genesis_proto_rawDesc,
|
||||
RawDescriptor: file_cosmos_gov_v1_genesis_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_cosmos_gov_v1beta2_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_cosmos_gov_v1beta2_genesis_proto_depIdxs,
|
||||
MessageInfos: file_cosmos_gov_v1beta2_genesis_proto_msgTypes,
|
||||
GoTypes: file_cosmos_gov_v1_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_cosmos_gov_v1_genesis_proto_depIdxs,
|
||||
MessageInfos: file_cosmos_gov_v1_genesis_proto_msgTypes,
|
||||
}.Build()
|
||||
File_cosmos_gov_v1beta2_genesis_proto = out.File
|
||||
file_cosmos_gov_v1beta2_genesis_proto_rawDesc = nil
|
||||
file_cosmos_gov_v1beta2_genesis_proto_goTypes = nil
|
||||
file_cosmos_gov_v1beta2_genesis_proto_depIdxs = nil
|
||||
File_cosmos_gov_v1_genesis_proto = out.File
|
||||
file_cosmos_gov_v1_genesis_proto_rawDesc = nil
|
||||
file_cosmos_gov_v1_genesis_proto_goTypes = nil
|
||||
file_cosmos_gov_v1_genesis_proto_depIdxs = nil
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc (unknown)
|
||||
// source: cosmos/gov/v1beta2/query.proto
|
||||
// source: cosmos/gov/v1/query.proto
|
||||
|
||||
package govv1beta2
|
||||
package govv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -50,7 +50,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
|
||||
|
||||
func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
|
||||
out := new(QueryProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Proposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Proposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -59,7 +59,7 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op
|
||||
|
||||
func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) {
|
||||
out := new(QueryProposalsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Proposals", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Proposals", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -68,7 +68,7 @@ func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest,
|
||||
|
||||
func (c *queryClient) Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error) {
|
||||
out := new(QueryVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -77,7 +77,7 @@ func (c *queryClient) Vote(ctx context.Context, in *QueryVoteRequest, opts ...gr
|
||||
|
||||
func (c *queryClient) Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error) {
|
||||
out := new(QueryVotesResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Votes", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Votes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -86,7 +86,7 @@ func (c *queryClient) Votes(ctx context.Context, in *QueryVotesRequest, opts ...
|
||||
|
||||
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
||||
out := new(QueryParamsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Params", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Params", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -95,7 +95,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
||||
|
||||
func (c *queryClient) Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) {
|
||||
out := new(QueryDepositResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Deposit", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Deposit", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -104,7 +104,7 @@ func (c *queryClient) Deposit(ctx context.Context, in *QueryDepositRequest, opts
|
||||
|
||||
func (c *queryClient) Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) {
|
||||
out := new(QueryDepositsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Deposits", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Deposits", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -113,7 +113,7 @@ func (c *queryClient) Deposits(ctx context.Context, in *QueryDepositsRequest, op
|
||||
|
||||
func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
|
||||
out := new(QueryTallyResultResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/TallyResult", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/TallyResult", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -194,7 +194,7 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Proposal",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Proposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
|
||||
@ -212,7 +212,7 @@ func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Proposals",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Proposals",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest))
|
||||
@ -230,7 +230,7 @@ func _Query_Vote_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Vote",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Vote(ctx, req.(*QueryVoteRequest))
|
||||
@ -248,7 +248,7 @@ func _Query_Votes_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Votes",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Votes",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Votes(ctx, req.(*QueryVotesRequest))
|
||||
@ -266,7 +266,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Params",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Params",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
||||
@ -284,7 +284,7 @@ func _Query_Deposit_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Deposit",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Deposit",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Deposit(ctx, req.(*QueryDepositRequest))
|
||||
@ -302,7 +302,7 @@ func _Query_Deposits_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Deposits",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Deposits",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Deposits(ctx, req.(*QueryDepositsRequest))
|
||||
@ -320,7 +320,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/TallyResult",
|
||||
FullMethod: "/cosmos.gov.v1.Query/TallyResult",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
|
||||
@ -332,7 +332,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.gov.v1beta2.Query",
|
||||
ServiceName: "cosmos.gov.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -369,5 +369,5 @@ var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/gov/v1beta2/query.proto",
|
||||
Metadata: "cosmos/gov/v1/query.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc (unknown)
|
||||
// source: cosmos/gov/v1beta2/tx.proto
|
||||
// source: cosmos/gov/v1/tx.proto
|
||||
|
||||
package govv1beta2
|
||||
package govv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -45,7 +45,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
|
||||
|
||||
func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
|
||||
out := new(MsgSubmitProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/SubmitProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/SubmitProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -54,7 +54,7 @@ func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, o
|
||||
|
||||
func (c *msgClient) ExecLegacyContent(ctx context.Context, in *MsgExecLegacyContent, opts ...grpc.CallOption) (*MsgExecLegacyContentResponse, error) {
|
||||
out := new(MsgExecLegacyContentResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/ExecLegacyContent", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/ExecLegacyContent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -63,7 +63,7 @@ func (c *msgClient) ExecLegacyContent(ctx context.Context, in *MsgExecLegacyCont
|
||||
|
||||
func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
|
||||
out := new(MsgVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -72,7 +72,7 @@ func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error) {
|
||||
out := new(MsgVoteWeightedResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/VoteWeighted", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/VoteWeighted", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -81,7 +81,7 @@ func (c *msgClient) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts
|
||||
|
||||
func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) {
|
||||
out := new(MsgDepositResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/Deposit", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/Deposit", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -148,7 +148,7 @@ func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/SubmitProposal",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/SubmitProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
|
||||
@ -166,7 +166,7 @@ func _Msg_ExecLegacyContent_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/ExecLegacyContent",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/ExecLegacyContent",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ExecLegacyContent(ctx, req.(*MsgExecLegacyContent))
|
||||
@ -184,7 +184,7 @@ func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/Vote",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
|
||||
@ -202,7 +202,7 @@ func _Msg_VoteWeighted_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/VoteWeighted",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/VoteWeighted",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).VoteWeighted(ctx, req.(*MsgVoteWeighted))
|
||||
@ -220,7 +220,7 @@ func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/Deposit",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/Deposit",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit))
|
||||
@ -232,7 +232,7 @@ func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.gov.v1beta2.Msg",
|
||||
ServiceName: "cosmos.gov.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -257,5 +257,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/gov/v1beta2/tx.proto",
|
||||
Metadata: "cosmos/gov/v1/tx.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package groupv1beta1
|
||||
package groupv1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@ -280,8 +280,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cosmos_group_v1beta1_genesis_proto_init()
|
||||
md_GenesisState = File_cosmos_group_v1beta1_genesis_proto.Messages().ByName("GenesisState")
|
||||
file_cosmos_group_v1_genesis_proto_init()
|
||||
md_GenesisState = File_cosmos_group_v1_genesis_proto.Messages().ByName("GenesisState")
|
||||
fd_GenesisState_group_seq = md_GenesisState.Fields().ByName("group_seq")
|
||||
fd_GenesisState_groups = md_GenesisState.Fields().ByName("groups")
|
||||
fd_GenesisState_group_members = md_GenesisState.Fields().ByName("group_members")
|
||||
@ -301,7 +301,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cosmos_group_v1beta1_genesis_proto_msgTypes[0]
|
||||
mi := &file_cosmos_group_v1_genesis_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -420,27 +420,27 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor,
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
return x.GroupSeq != uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
return len(x.Groups) != 0
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
return len(x.GroupMembers) != 0
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
return x.GroupPolicySeq != uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
return len(x.GroupPolicies) != 0
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
return x.ProposalSeq != uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
return len(x.Proposals) != 0
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
return len(x.Votes) != 0
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -452,27 +452,27 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
x.GroupSeq = uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
x.Groups = nil
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
x.GroupMembers = nil
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
x.GroupPolicySeq = uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
x.GroupPolicies = nil
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
x.ProposalSeq = uint64(0)
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
x.Proposals = nil
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
x.Votes = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -484,40 +484,40 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
value := x.GroupSeq
|
||||
return protoreflect.ValueOfUint64(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
if len(x.Groups) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_2_list{})
|
||||
}
|
||||
listValue := &_GenesisState_2_list{list: &x.Groups}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
if len(x.GroupMembers) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_3_list{})
|
||||
}
|
||||
listValue := &_GenesisState_3_list{list: &x.GroupMembers}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
value := x.GroupPolicySeq
|
||||
return protoreflect.ValueOfUint64(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
if len(x.GroupPolicies) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_5_list{})
|
||||
}
|
||||
listValue := &_GenesisState_5_list{list: &x.GroupPolicies}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
value := x.ProposalSeq
|
||||
return protoreflect.ValueOfUint64(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
if len(x.Proposals) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_7_list{})
|
||||
}
|
||||
listValue := &_GenesisState_7_list{list: &x.Proposals}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
if len(x.Votes) == 0 {
|
||||
return protoreflect.ValueOfList(&_GenesisState_8_list{})
|
||||
}
|
||||
@ -525,9 +525,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -543,37 +543,37 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
x.GroupSeq = value.Uint()
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_2_list)
|
||||
x.Groups = *clv.list
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_3_list)
|
||||
x.GroupMembers = *clv.list
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
x.GroupPolicySeq = value.Uint()
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_5_list)
|
||||
x.GroupPolicies = *clv.list
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
x.ProposalSeq = value.Uint()
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_7_list)
|
||||
x.Proposals = *clv.list
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
lv := value.List()
|
||||
clv := lv.(*_GenesisState_8_list)
|
||||
x.Votes = *clv.list
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -589,47 +589,47 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
if x.Groups == nil {
|
||||
x.Groups = []*GroupInfo{}
|
||||
}
|
||||
value := &_GenesisState_2_list{list: &x.Groups}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
if x.GroupMembers == nil {
|
||||
x.GroupMembers = []*GroupMember{}
|
||||
}
|
||||
value := &_GenesisState_3_list{list: &x.GroupMembers}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
if x.GroupPolicies == nil {
|
||||
x.GroupPolicies = []*GroupPolicyInfo{}
|
||||
}
|
||||
value := &_GenesisState_5_list{list: &x.GroupPolicies}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
if x.Proposals == nil {
|
||||
x.Proposals = []*Proposal{}
|
||||
}
|
||||
value := &_GenesisState_7_list{list: &x.Proposals}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
if x.Votes == nil {
|
||||
x.Votes = []*Vote{}
|
||||
}
|
||||
value := &_GenesisState_8_list{list: &x.Votes}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
panic(fmt.Errorf("field group_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
panic(fmt.Errorf("field group_policy_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
panic(fmt.Errorf("field proposal_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
panic(fmt.Errorf("field group_seq of message cosmos.group.v1.GenesisState is not mutable"))
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
panic(fmt.Errorf("field group_policy_seq of message cosmos.group.v1.GenesisState is not mutable"))
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
panic(fmt.Errorf("field proposal_seq of message cosmos.group.v1.GenesisState is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -638,32 +638,32 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.group.v1beta1.GenesisState.group_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_seq":
|
||||
return protoreflect.ValueOfUint64(uint64(0))
|
||||
case "cosmos.group.v1beta1.GenesisState.groups":
|
||||
case "cosmos.group.v1.GenesisState.groups":
|
||||
list := []*GroupInfo{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
|
||||
case "cosmos.group.v1beta1.GenesisState.group_members":
|
||||
case "cosmos.group.v1.GenesisState.group_members":
|
||||
list := []*GroupMember{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
|
||||
case "cosmos.group.v1.GenesisState.group_policy_seq":
|
||||
return protoreflect.ValueOfUint64(uint64(0))
|
||||
case "cosmos.group.v1beta1.GenesisState.group_policies":
|
||||
case "cosmos.group.v1.GenesisState.group_policies":
|
||||
list := []*GroupPolicyInfo{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list})
|
||||
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
|
||||
case "cosmos.group.v1.GenesisState.proposal_seq":
|
||||
return protoreflect.ValueOfUint64(uint64(0))
|
||||
case "cosmos.group.v1beta1.GenesisState.proposals":
|
||||
case "cosmos.group.v1.GenesisState.proposals":
|
||||
list := []*Proposal{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list})
|
||||
case "cosmos.group.v1beta1.GenesisState.votes":
|
||||
case "cosmos.group.v1.GenesisState.votes":
|
||||
list := []*Vote{}
|
||||
return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cosmos.group.v1beta1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cosmos.group.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -673,7 +673,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.GenesisState", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1.GenesisState", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1206,7 +1206,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cosmos/group/v1beta1/genesis.proto
|
||||
// source: cosmos/group/v1/genesis.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -1245,7 +1245,7 @@ type GenesisState struct {
|
||||
func (x *GenesisState) Reset() {
|
||||
*x = GenesisState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cosmos_group_v1beta1_genesis_proto_msgTypes[0]
|
||||
mi := &file_cosmos_group_v1_genesis_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1259,7 +1259,7 @@ func (*GenesisState) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_group_v1beta1_genesis_proto_rawDescGZIP(), []int{0}
|
||||
return file_cosmos_group_v1_genesis_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GenesisState) GetGroupSeq() uint64 {
|
||||
@ -1318,86 +1318,82 @@ func (x *GenesisState) GetVotes() []*Vote {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_cosmos_group_v1beta1_genesis_proto protoreflect.FileDescriptor
|
||||
var File_cosmos_group_v1_genesis_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cosmos_group_v1beta1_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76,
|
||||
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||||
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x03, 0x0a,
|
||||
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a,
|
||||
0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x06, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x67, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d,
|
||||
0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x0c, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x73, 0x65, 0x71, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69,
|
||||
0x63, 0x79, 0x53, 0x65, 0x71, 0x12, 0x4c, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70,
|
||||
0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e,
|
||||
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62,
|
||||
0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
||||
0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f,
|
||||
0x73, 0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f,
|
||||
0x73, 0x61, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
|
||||
0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||||
0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f,
|
||||
0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52,
|
||||
0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xde, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65,
|
||||
0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64,
|
||||
0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x14,
|
||||
0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x62,
|
||||
0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
|
||||
0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a,
|
||||
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
var file_cosmos_group_v1_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76,
|
||||
0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31,
|
||||
0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76,
|
||||
0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e, 0x03,
|
||||
0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b,
|
||||
0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x71, 0x12, 0x32, 0x0a, 0x06, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12,
|
||||
0x41, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
|
||||
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||||
0x6d, 0x62, 0x65, 0x72, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
||||
0x72, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69,
|
||||
0x63, 0x79, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x0e,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69,
|
||||
0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c,
|
||||
0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61,
|
||||
0x6c, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f,
|
||||
0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70,
|
||||
0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,
|
||||
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||||
0x73, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x15, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xbb,
|
||||
0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31,
|
||||
0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f,
|
||||
0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
|
||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x73, 0x6d, 0x6f,
|
||||
0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_cosmos_group_v1beta1_genesis_proto_rawDescOnce sync.Once
|
||||
file_cosmos_group_v1beta1_genesis_proto_rawDescData = file_cosmos_group_v1beta1_genesis_proto_rawDesc
|
||||
file_cosmos_group_v1_genesis_proto_rawDescOnce sync.Once
|
||||
file_cosmos_group_v1_genesis_proto_rawDescData = file_cosmos_group_v1_genesis_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_cosmos_group_v1beta1_genesis_proto_rawDescGZIP() []byte {
|
||||
file_cosmos_group_v1beta1_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_cosmos_group_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1beta1_genesis_proto_rawDescData)
|
||||
func file_cosmos_group_v1_genesis_proto_rawDescGZIP() []byte {
|
||||
file_cosmos_group_v1_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_cosmos_group_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1_genesis_proto_rawDescData)
|
||||
})
|
||||
return file_cosmos_group_v1beta1_genesis_proto_rawDescData
|
||||
return file_cosmos_group_v1_genesis_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cosmos_group_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cosmos_group_v1beta1_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: cosmos.group.v1beta1.GenesisState
|
||||
(*GroupInfo)(nil), // 1: cosmos.group.v1beta1.GroupInfo
|
||||
(*GroupMember)(nil), // 2: cosmos.group.v1beta1.GroupMember
|
||||
(*GroupPolicyInfo)(nil), // 3: cosmos.group.v1beta1.GroupPolicyInfo
|
||||
(*Proposal)(nil), // 4: cosmos.group.v1beta1.Proposal
|
||||
(*Vote)(nil), // 5: cosmos.group.v1beta1.Vote
|
||||
var file_cosmos_group_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cosmos_group_v1_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: cosmos.group.v1.GenesisState
|
||||
(*GroupInfo)(nil), // 1: cosmos.group.v1.GroupInfo
|
||||
(*GroupMember)(nil), // 2: cosmos.group.v1.GroupMember
|
||||
(*GroupPolicyInfo)(nil), // 3: cosmos.group.v1.GroupPolicyInfo
|
||||
(*Proposal)(nil), // 4: cosmos.group.v1.Proposal
|
||||
(*Vote)(nil), // 5: cosmos.group.v1.Vote
|
||||
}
|
||||
var file_cosmos_group_v1beta1_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.group.v1beta1.GenesisState.groups:type_name -> cosmos.group.v1beta1.GroupInfo
|
||||
2, // 1: cosmos.group.v1beta1.GenesisState.group_members:type_name -> cosmos.group.v1beta1.GroupMember
|
||||
3, // 2: cosmos.group.v1beta1.GenesisState.group_policies:type_name -> cosmos.group.v1beta1.GroupPolicyInfo
|
||||
4, // 3: cosmos.group.v1beta1.GenesisState.proposals:type_name -> cosmos.group.v1beta1.Proposal
|
||||
5, // 4: cosmos.group.v1beta1.GenesisState.votes:type_name -> cosmos.group.v1beta1.Vote
|
||||
var file_cosmos_group_v1_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.group.v1.GenesisState.groups:type_name -> cosmos.group.v1.GroupInfo
|
||||
2, // 1: cosmos.group.v1.GenesisState.group_members:type_name -> cosmos.group.v1.GroupMember
|
||||
3, // 2: cosmos.group.v1.GenesisState.group_policies:type_name -> cosmos.group.v1.GroupPolicyInfo
|
||||
4, // 3: cosmos.group.v1.GenesisState.proposals:type_name -> cosmos.group.v1.Proposal
|
||||
5, // 4: cosmos.group.v1.GenesisState.votes:type_name -> cosmos.group.v1.Vote
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
@ -1405,14 +1401,14 @@ var file_cosmos_group_v1beta1_genesis_proto_depIdxs = []int32{
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_cosmos_group_v1beta1_genesis_proto_init() }
|
||||
func file_cosmos_group_v1beta1_genesis_proto_init() {
|
||||
if File_cosmos_group_v1beta1_genesis_proto != nil {
|
||||
func init() { file_cosmos_group_v1_genesis_proto_init() }
|
||||
func file_cosmos_group_v1_genesis_proto_init() {
|
||||
if File_cosmos_group_v1_genesis_proto != nil {
|
||||
return
|
||||
}
|
||||
file_cosmos_group_v1beta1_types_proto_init()
|
||||
file_cosmos_group_v1_types_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cosmos_group_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cosmos_group_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GenesisState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1429,18 +1425,18 @@ func file_cosmos_group_v1beta1_genesis_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_cosmos_group_v1beta1_genesis_proto_rawDesc,
|
||||
RawDescriptor: file_cosmos_group_v1_genesis_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_cosmos_group_v1beta1_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_cosmos_group_v1beta1_genesis_proto_depIdxs,
|
||||
MessageInfos: file_cosmos_group_v1beta1_genesis_proto_msgTypes,
|
||||
GoTypes: file_cosmos_group_v1_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_cosmos_group_v1_genesis_proto_depIdxs,
|
||||
MessageInfos: file_cosmos_group_v1_genesis_proto_msgTypes,
|
||||
}.Build()
|
||||
File_cosmos_group_v1beta1_genesis_proto = out.File
|
||||
file_cosmos_group_v1beta1_genesis_proto_rawDesc = nil
|
||||
file_cosmos_group_v1beta1_genesis_proto_goTypes = nil
|
||||
file_cosmos_group_v1beta1_genesis_proto_depIdxs = nil
|
||||
File_cosmos_group_v1_genesis_proto = out.File
|
||||
file_cosmos_group_v1_genesis_proto_rawDesc = nil
|
||||
file_cosmos_group_v1_genesis_proto_goTypes = nil
|
||||
file_cosmos_group_v1_genesis_proto_depIdxs = nil
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc (unknown)
|
||||
// source: cosmos/group/v1beta1/query.proto
|
||||
// source: cosmos/group/v1/query.proto
|
||||
|
||||
package groupv1beta1
|
||||
package groupv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -60,7 +60,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
|
||||
|
||||
func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) {
|
||||
out := new(QueryGroupInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupInfo", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -69,7 +69,7 @@ func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest,
|
||||
|
||||
func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error) {
|
||||
out := new(QueryGroupPolicyInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPolicyInfo", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPolicyInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -78,7 +78,7 @@ func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyI
|
||||
|
||||
func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) {
|
||||
out := new(QueryGroupMembersResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupMembers", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupMembers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -87,7 +87,7 @@ func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersReq
|
||||
|
||||
func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) {
|
||||
out := new(QueryGroupsByAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupsByAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -96,7 +96,7 @@ func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminR
|
||||
|
||||
func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error) {
|
||||
out := new(QueryGroupPoliciesByGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPoliciesByGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -105,7 +105,7 @@ func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPo
|
||||
|
||||
func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error) {
|
||||
out := new(QueryGroupPoliciesByAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPoliciesByAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -114,7 +114,7 @@ func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPo
|
||||
|
||||
func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
|
||||
out := new(QueryProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/Proposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/Proposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -123,7 +123,7 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op
|
||||
|
||||
func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error) {
|
||||
out := new(QueryProposalsByGroupPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/ProposalsByGroupPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/ProposalsByGroupPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -132,7 +132,7 @@ func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryPropo
|
||||
|
||||
func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error) {
|
||||
out := new(QueryVoteByProposalVoterResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VoteByProposalVoter", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VoteByProposalVoter", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -141,7 +141,7 @@ func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByPr
|
||||
|
||||
func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error) {
|
||||
out := new(QueryVotesByProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VotesByProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -150,7 +150,7 @@ func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByPropo
|
||||
|
||||
func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error) {
|
||||
out := new(QueryVotesByVoterResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VotesByVoter", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByVoter", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -159,7 +159,7 @@ func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterReq
|
||||
|
||||
func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error) {
|
||||
out := new(QueryGroupsByMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupsByMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByMember", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -168,7 +168,7 @@ func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMembe
|
||||
|
||||
func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
|
||||
out := new(QueryTallyResultResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/TallyResult", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/TallyResult", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -274,7 +274,7 @@ func _Query_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupInfo",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupInfo(ctx, req.(*QueryGroupInfoRequest))
|
||||
@ -292,7 +292,7 @@ func _Query_GroupPolicyInfo_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPolicyInfo",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPolicyInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPolicyInfo(ctx, req.(*QueryGroupPolicyInfoRequest))
|
||||
@ -310,7 +310,7 @@ func _Query_GroupMembers_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupMembers",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupMembers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupMembers(ctx, req.(*QueryGroupMembersRequest))
|
||||
@ -328,7 +328,7 @@ func _Query_GroupsByAdmin_Handler(srv interface{}, ctx context.Context, dec func
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupsByAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupsByAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupsByAdmin(ctx, req.(*QueryGroupsByAdminRequest))
|
||||
@ -346,7 +346,7 @@ func _Query_GroupPoliciesByGroup_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPoliciesByGroup",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPoliciesByGroup(ctx, req.(*QueryGroupPoliciesByGroupRequest))
|
||||
@ -364,7 +364,7 @@ func _Query_GroupPoliciesByAdmin_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPoliciesByAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPoliciesByAdmin(ctx, req.(*QueryGroupPoliciesByAdminRequest))
|
||||
@ -382,7 +382,7 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/Proposal",
|
||||
FullMethod: "/cosmos.group.v1.Query/Proposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
|
||||
@ -400,7 +400,7 @@ func _Query_ProposalsByGroupPolicy_Handler(srv interface{}, ctx context.Context,
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/ProposalsByGroupPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Query/ProposalsByGroupPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).ProposalsByGroupPolicy(ctx, req.(*QueryProposalsByGroupPolicyRequest))
|
||||
@ -418,7 +418,7 @@ func _Query_VoteByProposalVoter_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VoteByProposalVoter",
|
||||
FullMethod: "/cosmos.group.v1.Query/VoteByProposalVoter",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VoteByProposalVoter(ctx, req.(*QueryVoteByProposalVoterRequest))
|
||||
@ -436,7 +436,7 @@ func _Query_VotesByProposal_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VotesByProposal",
|
||||
FullMethod: "/cosmos.group.v1.Query/VotesByProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VotesByProposal(ctx, req.(*QueryVotesByProposalRequest))
|
||||
@ -454,7 +454,7 @@ func _Query_VotesByVoter_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VotesByVoter",
|
||||
FullMethod: "/cosmos.group.v1.Query/VotesByVoter",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VotesByVoter(ctx, req.(*QueryVotesByVoterRequest))
|
||||
@ -472,7 +472,7 @@ func _Query_GroupsByMember_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupsByMember",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupsByMember",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupsByMember(ctx, req.(*QueryGroupsByMemberRequest))
|
||||
@ -490,7 +490,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/TallyResult",
|
||||
FullMethod: "/cosmos.group.v1.Query/TallyResult",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
|
||||
@ -502,7 +502,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.group.v1beta1.Query",
|
||||
ServiceName: "cosmos.group.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -559,5 +559,5 @@ var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/group/v1beta1/query.proto",
|
||||
Metadata: "cosmos/group/v1/query.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc (unknown)
|
||||
// source: cosmos/group/v1beta1/tx.proto
|
||||
// source: cosmos/group/v1/tx.proto
|
||||
|
||||
package groupv1beta1
|
||||
package groupv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -62,7 +62,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
|
||||
|
||||
func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) {
|
||||
out := new(MsgCreateGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -71,7 +71,7 @@ func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ..
|
||||
|
||||
func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) {
|
||||
out := new(MsgUpdateGroupMembersResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupMembers", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMembers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -80,7 +80,7 @@ func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMe
|
||||
|
||||
func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) {
|
||||
out := new(MsgUpdateGroupAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -89,7 +89,7 @@ func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmi
|
||||
|
||||
func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) {
|
||||
out := new(MsgUpdateGroupMetadataResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupMetadata", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMetadata", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -98,7 +98,7 @@ func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupM
|
||||
|
||||
func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) {
|
||||
out := new(MsgCreateGroupPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroupPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -107,7 +107,7 @@ func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPol
|
||||
|
||||
func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) {
|
||||
out := new(MsgCreateGroupWithPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroupWithPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupWithPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -116,7 +116,7 @@ func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGrou
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -125,7 +125,7 @@ func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGro
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyDecisionPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyDecisionPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -134,7 +134,7 @@ func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *Msg
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyMetadataResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyMetadata", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -143,7 +143,7 @@ func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdate
|
||||
|
||||
func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
|
||||
out := new(MsgSubmitProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/SubmitProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/SubmitProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -152,7 +152,7 @@ func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, o
|
||||
|
||||
func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) {
|
||||
out := new(MsgWithdrawProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/WithdrawProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/WithdrawProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -161,7 +161,7 @@ func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposa
|
||||
|
||||
func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
|
||||
out := new(MsgVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -170,7 +170,7 @@ func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) {
|
||||
out := new(MsgExecResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/Exec", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Exec", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -179,7 +179,7 @@ func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) {
|
||||
out := new(MsgLeaveGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/LeaveGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/LeaveGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -290,7 +290,7 @@ func _Msg_CreateGroup_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroup",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroup(ctx, req.(*MsgCreateGroup))
|
||||
@ -308,7 +308,7 @@ func _Msg_UpdateGroupMembers_Handler(srv interface{}, ctx context.Context, dec f
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupMembers",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMembers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupMembers(ctx, req.(*MsgUpdateGroupMembers))
|
||||
@ -326,7 +326,7 @@ func _Msg_UpdateGroupAdmin_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupAdmin(ctx, req.(*MsgUpdateGroupAdmin))
|
||||
@ -344,7 +344,7 @@ func _Msg_UpdateGroupMetadata_Handler(srv interface{}, ctx context.Context, dec
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupMetadata",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMetadata",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupMetadata(ctx, req.(*MsgUpdateGroupMetadata))
|
||||
@ -362,7 +362,7 @@ func _Msg_CreateGroupPolicy_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroupPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroupPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroupPolicy(ctx, req.(*MsgCreateGroupPolicy))
|
||||
@ -380,7 +380,7 @@ func _Msg_CreateGroupWithPolicy_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroupWithPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroupWithPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroupWithPolicy(ctx, req.(*MsgCreateGroupWithPolicy))
|
||||
@ -398,7 +398,7 @@ func _Msg_UpdateGroupPolicyAdmin_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, req.(*MsgUpdateGroupPolicyAdmin))
|
||||
@ -416,7 +416,7 @@ func _Msg_UpdateGroupPolicyDecisionPolicy_Handler(srv interface{}, ctx context.C
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyDecisionPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, req.(*MsgUpdateGroupPolicyDecisionPolicy))
|
||||
@ -434,7 +434,7 @@ func _Msg_UpdateGroupPolicyMetadata_Handler(srv interface{}, ctx context.Context
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyMetadata",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, req.(*MsgUpdateGroupPolicyMetadata))
|
||||
@ -452,7 +452,7 @@ func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/SubmitProposal",
|
||||
FullMethod: "/cosmos.group.v1.Msg/SubmitProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
|
||||
@ -470,7 +470,7 @@ func _Msg_WithdrawProposal_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/WithdrawProposal",
|
||||
FullMethod: "/cosmos.group.v1.Msg/WithdrawProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).WithdrawProposal(ctx, req.(*MsgWithdrawProposal))
|
||||
@ -488,7 +488,7 @@ func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/Vote",
|
||||
FullMethod: "/cosmos.group.v1.Msg/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
|
||||
@ -506,7 +506,7 @@ func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/Exec",
|
||||
FullMethod: "/cosmos.group.v1.Msg/Exec",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Exec(ctx, req.(*MsgExec))
|
||||
@ -524,7 +524,7 @@ func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/LeaveGroup",
|
||||
FullMethod: "/cosmos.group.v1.Msg/LeaveGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).LeaveGroup(ctx, req.(*MsgLeaveGroup))
|
||||
@ -536,7 +536,7 @@ func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.group.v1beta1.Msg",
|
||||
ServiceName: "cosmos.group.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -597,5 +597,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/group/v1beta1/tx.proto",
|
||||
Metadata: "cosmos/group/v1/tx.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,11 @@
|
||||
// Since: cosmos-sdk 0.46
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.gov.v1beta2;
|
||||
package cosmos.gov.v1;
|
||||
|
||||
import "cosmos/gov/v1beta2/gov.proto";
|
||||
import "cosmos/gov/v1/gov.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1";
|
||||
|
||||
// GenesisState defines the gov module's genesis state.
|
||||
message GenesisState {
|
||||
@ -1,6 +1,6 @@
|
||||
// Since: cosmos-sdk 0.46
|
||||
syntax = "proto3";
|
||||
package cosmos.gov.v1beta2;
|
||||
package cosmos.gov.v1;
|
||||
|
||||
import "cosmos/base/v1beta1/coin.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
@ -9,7 +9,7 @@ import "google/protobuf/any.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1";
|
||||
|
||||
// VoteOption enumerates the valid vote options for a given governance proposal.
|
||||
enum VoteOption {
|
||||
@ -1,55 +1,55 @@
|
||||
|
||||
// Since: cosmos-sdk 0.46
|
||||
syntax = "proto3";
|
||||
package cosmos.gov.v1beta2;
|
||||
package cosmos.gov.v1;
|
||||
|
||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "cosmos/gov/v1beta2/gov.proto";
|
||||
import "cosmos/gov/v1/gov.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1";
|
||||
|
||||
// Query defines the gRPC querier service for gov module
|
||||
service Query {
|
||||
// Proposal queries proposal details based on ProposalID.
|
||||
rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}";
|
||||
}
|
||||
|
||||
// Proposals queries all proposals based on given status.
|
||||
rpc Proposals(QueryProposalsRequest) returns (QueryProposalsResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals";
|
||||
}
|
||||
|
||||
// Vote queries voted information based on proposalID, voterAddr.
|
||||
rpc Vote(QueryVoteRequest) returns (QueryVoteResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}/votes/{voter}";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}";
|
||||
}
|
||||
|
||||
// Votes queries votes of a given proposal.
|
||||
rpc Votes(QueryVotesRequest) returns (QueryVotesResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}/votes";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/votes";
|
||||
}
|
||||
|
||||
// Params queries all parameters of the gov module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/params/{params_type}";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/params/{params_type}";
|
||||
}
|
||||
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
rpc Deposit(QueryDepositRequest) returns (QueryDepositResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}/deposits/{depositor}";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}";
|
||||
}
|
||||
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
rpc Deposits(QueryDepositsRequest) returns (QueryDepositsResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}/deposits";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/deposits";
|
||||
}
|
||||
|
||||
// TallyResult queries the tally of a proposal vote.
|
||||
rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) {
|
||||
option (google.api.http).get = "/cosmos/gov/v1beta2/proposals/{proposal_id}/tally";
|
||||
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/tally";
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
// Since: cosmos-sdk 0.46
|
||||
syntax = "proto3";
|
||||
package cosmos.gov.v1beta2;
|
||||
package cosmos.gov.v1;
|
||||
|
||||
import "cosmos/base/v1beta1/coin.proto";
|
||||
import "cosmos/gov/v1beta2/gov.proto";
|
||||
import "cosmos/gov/v1/gov.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
import "cosmos/msg/v1/msg.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types/v1";
|
||||
|
||||
// Msg defines the gov Msg service.
|
||||
service Msg {
|
||||
@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.group.v1beta1;
|
||||
package cosmos.group.v1;
|
||||
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.group.v1beta1;
|
||||
package cosmos.group.v1;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/group";
|
||||
|
||||
import "cosmos/group/v1beta1/types.proto";
|
||||
import "cosmos/group/v1/types.proto";
|
||||
|
||||
// GenesisState defines the group module's genesis state.
|
||||
message GenesisState {
|
||||
@ -1,81 +1,81 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.group.v1beta1;
|
||||
package cosmos.group.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "cosmos/group/v1beta1/types.proto";
|
||||
import "cosmos/group/v1/types.proto";
|
||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/group";
|
||||
|
||||
// Query is the cosmos.group.v1beta1 Query service.
|
||||
// Query is the cosmos.group.v1 Query service.
|
||||
service Query {
|
||||
|
||||
// GroupInfo queries group info based on group id.
|
||||
rpc GroupInfo(QueryGroupInfoRequest) returns (QueryGroupInfoResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/group_info/{group_id}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/group_info/{group_id}";
|
||||
};
|
||||
|
||||
// GroupPolicyInfo queries group policy info based on account address of group policy.
|
||||
rpc GroupPolicyInfo(QueryGroupPolicyInfoRequest) returns (QueryGroupPolicyInfoResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/group_policy_info/{address}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/group_policy_info/{address}";
|
||||
};
|
||||
|
||||
// GroupMembers queries members of a group
|
||||
rpc GroupMembers(QueryGroupMembersRequest) returns (QueryGroupMembersResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/group_members/{group_id}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/group_members/{group_id}";
|
||||
};
|
||||
|
||||
// GroupsByAdmin queries groups by admin address.
|
||||
rpc GroupsByAdmin(QueryGroupsByAdminRequest) returns (QueryGroupsByAdminResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/groups_by_admin/{admin}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/groups_by_admin/{admin}";
|
||||
};
|
||||
|
||||
// GroupPoliciesByGroup queries group policies by group id.
|
||||
rpc GroupPoliciesByGroup(QueryGroupPoliciesByGroupRequest) returns (QueryGroupPoliciesByGroupResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/group_policies_by_group/{group_id}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/group_policies_by_group/{group_id}";
|
||||
};
|
||||
|
||||
// GroupsByAdmin queries group policies by admin address.
|
||||
rpc GroupPoliciesByAdmin(QueryGroupPoliciesByAdminRequest) returns (QueryGroupPoliciesByAdminResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/group_policies_by_admin/{admin}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/group_policies_by_admin/{admin}";
|
||||
};
|
||||
|
||||
// Proposal queries a proposal based on proposal id.
|
||||
rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/proposal/{proposal_id}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/proposal/{proposal_id}";
|
||||
};
|
||||
|
||||
// ProposalsByGroupPolicy queries proposals based on account address of group policy.
|
||||
rpc ProposalsByGroupPolicy(QueryProposalsByGroupPolicyRequest) returns (QueryProposalsByGroupPolicyResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/proposals_by_group_policy/{address}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/proposals_by_group_policy/{address}";
|
||||
};
|
||||
|
||||
// VoteByProposalVoter queries a vote by proposal id and voter.
|
||||
rpc VoteByProposalVoter(QueryVoteByProposalVoterRequest) returns (QueryVoteByProposalVoterResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/vote_by_proposal_voter/{proposal_id}/{voter}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}";
|
||||
};
|
||||
|
||||
// VotesByProposal queries a vote by proposal.
|
||||
rpc VotesByProposal(QueryVotesByProposalRequest) returns (QueryVotesByProposalResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/votes_by_proposal/{proposal_id}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/votes_by_proposal/{proposal_id}";
|
||||
};
|
||||
|
||||
// VotesByVoter queries a vote by voter.
|
||||
rpc VotesByVoter(QueryVotesByVoterRequest) returns (QueryVotesByVoterResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/votes_by_voter/{voter}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/votes_by_voter/{voter}";
|
||||
};
|
||||
|
||||
// GroupsByMember queries groups by member address.
|
||||
rpc GroupsByMember(QueryGroupsByMemberRequest) returns (QueryGroupsByMemberResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/groups_by_member/{address}";
|
||||
option (google.api.http).get = "/cosmos/group/v1/groups_by_member/{address}";
|
||||
};
|
||||
|
||||
// TallyResult queries the tally of a proposal votes.
|
||||
rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) {
|
||||
option (google.api.http).get = "/cosmos/group/v1beta1/proposals/{proposal_id}/tally";
|
||||
option (google.api.http).get = "/cosmos/group/v1/proposals/{proposal_id}/tally";
|
||||
};
|
||||
}
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.group.v1beta1;
|
||||
package cosmos.group.v1;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/group";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
import "cosmos/group/v1beta1/types.proto";
|
||||
import "cosmos/group/v1/types.proto";
|
||||
|
||||
import "cosmos/msg/v1/msg.proto";
|
||||
|
||||
// Msg is the cosmos.group.v1beta1 Msg service.
|
||||
// Msg is the cosmos.group.v1 Msg service.
|
||||
service Msg {
|
||||
|
||||
// CreateGroup creates a new group with an admin account address, a list of members and some optional metadata.
|
||||
@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cosmos.group.v1beta1;
|
||||
package cosmos.group.v1;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/group";
|
||||
|
||||
@ -68,8 +68,8 @@ import (
|
||||
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
|
||||
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
govv1beta2 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/group"
|
||||
groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
|
||||
groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
|
||||
@ -631,7 +631,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
|
||||
paramsKeeper.Subspace(minttypes.ModuleName)
|
||||
paramsKeeper.Subspace(distrtypes.ModuleName)
|
||||
paramsKeeper.Subspace(slashingtypes.ModuleName)
|
||||
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1beta2.ParamKeyTable())
|
||||
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable())
|
||||
paramsKeeper.Subspace(crisistypes.ModuleName)
|
||||
|
||||
return paramsKeeper
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types/tx/signing"
|
||||
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
|
||||
)
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ func NewCmdGrantAuthorization() *cobra.Command {
|
||||
|
||||
Examples:
|
||||
$ %s tx %s grant cosmos1skjw.. send %s --spend-limit=1000stake --from=cosmos1skl..
|
||||
$ %s tx %s grant cosmos1skjw.. generic --msg-type=/cosmos.gov.v1beta2.MsgVote --from=cosmos1sk..
|
||||
$ %s tx %s grant cosmos1skjw.. generic --msg-type=/cosmos.gov.v1.MsgVote --from=cosmos1sk..
|
||||
`, version.AppName, authz.ModuleName, bank.SendAuthorization{}.MsgTypeURL(), version.AppName, authz.ModuleName),
|
||||
),
|
||||
Args: cobra.ExactArgs(2),
|
||||
|
||||
@ -19,8 +19,8 @@ import (
|
||||
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli"
|
||||
govtestutil "github.com/cosmos/cosmos-sdk/x/gov/client/testutil"
|
||||
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
govv1beta2 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
stakingcli "github.com/cosmos/cosmos-sdk/x/staking/client/cli"
|
||||
)
|
||||
|
||||
@ -56,7 +56,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
// create a proposal with deposit
|
||||
_, err = govtestutil.MsgSubmitLegacyProposal(val.ClientCtx, val.Address.String(),
|
||||
"Text Proposal 1", "Where is the title!?", govv1beta1.ProposalTypeText,
|
||||
fmt.Sprintf("--%s=%s", govcli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, govv1beta2.DefaultMinDepositTokens).String()))
|
||||
fmt.Sprintf("--%s=%s", govcli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, govv1.DefaultMinDepositTokens).String()))
|
||||
s.Require().NoError(err)
|
||||
|
||||
// Create new account in the keyring.
|
||||
@ -140,8 +140,8 @@ func (s *IntegrationTestSuite) TearDownSuite() {
|
||||
}
|
||||
|
||||
var typeMsgSend = bank.SendAuthorization{}.MsgTypeURL()
|
||||
var typeMsgVote = sdk.MsgTypeURL(&govv1beta2.MsgVote{})
|
||||
var typeMsgSubmitProposal = sdk.MsgTypeURL(&govv1beta2.MsgSubmitProposal{})
|
||||
var typeMsgVote = sdk.MsgTypeURL(&govv1.MsgVote{})
|
||||
var typeMsgSubmitProposal = sdk.MsgTypeURL(&govv1.MsgSubmitProposal{})
|
||||
|
||||
func (s *IntegrationTestSuite) TestCLITxGrantAuthorization() {
|
||||
val := s.network.Validators[0]
|
||||
@ -531,7 +531,7 @@ func (s *IntegrationTestSuite) TestExecAuthorizationWithExpiration() {
|
||||
)
|
||||
s.Require().NoError(err)
|
||||
// msg vote
|
||||
voteTx := fmt.Sprintf(`{"body":{"messages":[{"@type":"/cosmos.gov.v1beta2.MsgVote","proposal_id":"1","voter":"%s","option":"VOTE_OPTION_YES"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}`, val.Address.String())
|
||||
voteTx := fmt.Sprintf(`{"body":{"messages":[{"@type":"/cosmos.gov.v1.MsgVote","proposal_id":"1","voter":"%s","option":"VOTE_OPTION_YES"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}`, val.Address.String())
|
||||
execMsg := testutil.WriteToNewTempFile(s.T(), voteTx)
|
||||
|
||||
// waiting for authorization to expires
|
||||
@ -572,7 +572,7 @@ func (s *IntegrationTestSuite) TestNewExecGenericAuthorized() {
|
||||
s.Require().NoError(err)
|
||||
|
||||
// msg vote
|
||||
voteTx := fmt.Sprintf(`{"body":{"messages":[{"@type":"/cosmos.gov.v1beta2.MsgVote","proposal_id":"1","voter":"%s","option":"VOTE_OPTION_YES"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}`, val.Address.String())
|
||||
voteTx := fmt.Sprintf(`{"body":{"messages":[{"@type":"/cosmos.gov.v1.MsgVote","proposal_id":"1","voter":"%s","option":"VOTE_OPTION_YES"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}`, val.Address.String())
|
||||
execMsg := testutil.WriteToNewTempFile(s.T(), voteTx)
|
||||
|
||||
testCases := []struct {
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/authz"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// genGrant returns a slice of authorization grants.
|
||||
@ -33,7 +33,7 @@ func genGrant(r *rand.Rand, accounts []simtypes.Account, genT time.Time) []authz
|
||||
func generateRandomGrant(r *rand.Rand) *codectypes.Any {
|
||||
authorizations := make([]*codectypes.Any, 2)
|
||||
authorizations[0] = newAnyAuthorization(banktypes.NewSendAuthorization(sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(1000)))))
|
||||
authorizations[1] = newAnyAuthorization(authz.NewGenericAuthorization(sdk.MsgTypeURL(&v1beta2.MsgSubmitProposal{})))
|
||||
authorizations[1] = newAnyAuthorization(authz.NewGenericAuthorization(sdk.MsgTypeURL(&v1.MsgSubmitProposal{})))
|
||||
|
||||
return authorizations[r.Intn(len(authorizations))]
|
||||
}
|
||||
|
||||
@ -21,8 +21,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/feegrant"
|
||||
"github.com/cosmos/cosmos-sdk/x/feegrant/client/cli"
|
||||
govtestutil "github.com/cosmos/cosmos-sdk/x/gov/client/testutil"
|
||||
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
govv1beta2 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -782,7 +782,7 @@ func (s *IntegrationTestSuite) TestFilteredFeeAllowance() {
|
||||
}
|
||||
spendLimit := sdk.NewCoin("stake", sdk.NewInt(1000))
|
||||
|
||||
allowMsgs := strings.Join([]string{sdk.MsgTypeURL(&govv1beta1.MsgSubmitProposal{}), sdk.MsgTypeURL(&govv1beta2.MsgVoteWeighted{})}, ",")
|
||||
allowMsgs := strings.Join([]string{sdk.MsgTypeURL(&govv1beta1.MsgSubmitProposal{}), sdk.MsgTypeURL(&govv1.MsgVoteWeighted{})}, ",")
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
|
||||
@ -46,7 +46,7 @@ func TestFilteredFeeValidAllow(t *testing.T) {
|
||||
},
|
||||
"msg not contained": {
|
||||
allowance: &feegrant.BasicAllowance{},
|
||||
msgs: []string{"/cosmos.gov.v1beta2.MsgVote"},
|
||||
msgs: []string{"/cosmos.gov.v1.MsgVote"},
|
||||
accept: false,
|
||||
},
|
||||
"small fee without expire": {
|
||||
|
||||
@ -48,7 +48,7 @@ func generateRandomAllowances(granter, grantee sdk.AccAddress, r *rand.Rand) fee
|
||||
|
||||
filteredAllowance, err := feegrant.NewGrant(granter, grantee, &feegrant.AllowedMsgAllowance{
|
||||
Allowance: basicAllowance.GetAllowance(),
|
||||
AllowedMessages: []string{"/cosmos.gov.v1beta2.MsgSubmitProposal"},
|
||||
AllowedMessages: []string{"/cosmos.gov.v1.MsgSubmitProposal"},
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// EndBlocker called every block, process inflation, update validator set.
|
||||
@ -18,7 +18,7 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) {
|
||||
logger := keeper.Logger(ctx)
|
||||
|
||||
// delete dead proposals from store and returns theirs deposits. A proposal is dead when it's inactive and didn't get enough deposit on time to get into voting phase.
|
||||
keeper.IterateInactiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal v1beta2.Proposal) bool {
|
||||
keeper.IterateInactiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal v1.Proposal) bool {
|
||||
keeper.DeleteProposal(ctx, proposal.Id)
|
||||
keeper.RefundAndDeleteDeposits(ctx, proposal.Id) // refund deposit if proposal got removed without getting 100% of the proposal
|
||||
|
||||
@ -44,7 +44,7 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) {
|
||||
})
|
||||
|
||||
// fetch active proposals whose voting periods have ended (are passed the block time)
|
||||
keeper.IterateActiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal v1beta2.Proposal) bool {
|
||||
keeper.IterateActiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal v1.Proposal) bool {
|
||||
var tagValue, logMsg string
|
||||
|
||||
passes, burnDeposits, tallyResults := keeper.Tally(ctx, proposal)
|
||||
@ -80,7 +80,7 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) {
|
||||
// `err == nil` when all handlers passed.
|
||||
// Or else, `idx` and `err` are populated with the msg index and error.
|
||||
if err == nil {
|
||||
proposal.Status = v1beta2.StatusPassed
|
||||
proposal.Status = v1.StatusPassed
|
||||
tagValue = types.AttributeValueProposalPassed
|
||||
logMsg = "passed"
|
||||
|
||||
@ -93,12 +93,12 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) {
|
||||
// write state to the underlying multi-store
|
||||
writeCache()
|
||||
} else {
|
||||
proposal.Status = v1beta2.StatusFailed
|
||||
proposal.Status = v1.StatusFailed
|
||||
tagValue = types.AttributeValueProposalFailed
|
||||
logMsg = fmt.Sprintf("passed, but msg %d (%s) failed on execution: %s", idx, sdk.MsgTypeURL(msg), err)
|
||||
}
|
||||
} else {
|
||||
proposal.Status = v1beta2.StatusRejected
|
||||
proposal.Status = v1.StatusRejected
|
||||
tagValue = types.AttributeValueProposalRejected
|
||||
logMsg = "rejected"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/gov"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
@ -33,7 +33,7 @@ func TestTickExpiredDepositPeriod(t *testing.T) {
|
||||
require.False(t, inactiveQueue.Valid())
|
||||
inactiveQueue.Close()
|
||||
|
||||
newProposalMsg, err := v1beta2.NewMsgSubmitProposal(
|
||||
newProposalMsg, err := v1.NewMsgSubmitProposal(
|
||||
[]sdk.Msg{mkTestLegacyContent(t)},
|
||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||
addrs[0].String(),
|
||||
@ -86,7 +86,7 @@ func TestTickMultipleExpiredDepositPeriod(t *testing.T) {
|
||||
require.False(t, inactiveQueue.Valid())
|
||||
inactiveQueue.Close()
|
||||
|
||||
newProposalMsg, err := v1beta2.NewMsgSubmitProposal(
|
||||
newProposalMsg, err := v1.NewMsgSubmitProposal(
|
||||
[]sdk.Msg{mkTestLegacyContent(t)},
|
||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||
addrs[0].String(),
|
||||
@ -110,7 +110,7 @@ func TestTickMultipleExpiredDepositPeriod(t *testing.T) {
|
||||
require.False(t, inactiveQueue.Valid())
|
||||
inactiveQueue.Close()
|
||||
|
||||
newProposalMsg2, err := v1beta2.NewMsgSubmitProposal(
|
||||
newProposalMsg2, err := v1.NewMsgSubmitProposal(
|
||||
[]sdk.Msg{mkTestLegacyContent(t)},
|
||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||
addrs[0].String(),
|
||||
@ -168,7 +168,7 @@ func TestTickPassedDepositPeriod(t *testing.T) {
|
||||
require.False(t, activeQueue.Valid())
|
||||
activeQueue.Close()
|
||||
|
||||
newProposalMsg, err := v1beta2.NewMsgSubmitProposal(
|
||||
newProposalMsg, err := v1.NewMsgSubmitProposal(
|
||||
[]sdk.Msg{mkTestLegacyContent(t)},
|
||||
sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)},
|
||||
addrs[0].String(),
|
||||
@ -194,7 +194,7 @@ func TestTickPassedDepositPeriod(t *testing.T) {
|
||||
require.False(t, inactiveQueue.Valid())
|
||||
inactiveQueue.Close()
|
||||
|
||||
newDepositMsg := v1beta2.NewMsgDeposit(addrs[1], proposalID, sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)})
|
||||
newDepositMsg := v1.NewMsgDeposit(addrs[1], proposalID, sdk.Coins{sdk.NewInt64Coin(sdk.DefaultBondDenom, 5)})
|
||||
|
||||
res1, err := govMsgSvr.Deposit(sdk.WrapSDKContext(ctx), newDepositMsg)
|
||||
require.NoError(t, err)
|
||||
@ -225,7 +225,7 @@ func TestTickPassedVotingPeriod(t *testing.T) {
|
||||
activeQueue.Close()
|
||||
|
||||
proposalCoins := sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 5))}
|
||||
newProposalMsg, err := v1beta2.NewMsgSubmitProposal([]sdk.Msg{mkTestLegacyContent(t)}, proposalCoins, addrs[0].String(), "")
|
||||
newProposalMsg, err := v1.NewMsgSubmitProposal([]sdk.Msg{mkTestLegacyContent(t)}, proposalCoins, addrs[0].String(), "")
|
||||
require.NoError(t, err)
|
||||
|
||||
wrapCtx := sdk.WrapSDKContext(ctx)
|
||||
@ -240,7 +240,7 @@ func TestTickPassedVotingPeriod(t *testing.T) {
|
||||
newHeader.Time = ctx.BlockHeader().Time.Add(time.Duration(1) * time.Second)
|
||||
ctx = ctx.WithBlockHeader(newHeader)
|
||||
|
||||
newDepositMsg := v1beta2.NewMsgDeposit(addrs[1], proposalID, proposalCoins)
|
||||
newDepositMsg := v1.NewMsgDeposit(addrs[1], proposalID, proposalCoins)
|
||||
|
||||
res1, err := govMsgSvr.Deposit(wrapCtx, newDepositMsg)
|
||||
require.NoError(t, err)
|
||||
@ -260,7 +260,7 @@ func TestTickPassedVotingPeriod(t *testing.T) {
|
||||
activeProposalID := types.GetProposalIDFromBytes(activeQueue.Value())
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, activeProposalID)
|
||||
require.True(t, ok)
|
||||
require.Equal(t, v1beta2.StatusVotingPeriod, proposal.Status)
|
||||
require.Equal(t, v1.StatusVotingPeriod, proposal.Status)
|
||||
|
||||
activeQueue.Close()
|
||||
|
||||
@ -297,7 +297,7 @@ func TestProposalPassedEndblocker(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
proposalCoins := sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 10))}
|
||||
newDepositMsg := v1beta2.NewMsgDeposit(addrs[0], proposal.Id, proposalCoins)
|
||||
newDepositMsg := v1.NewMsgDeposit(addrs[0], proposal.Id, proposalCoins)
|
||||
|
||||
res, err := govMsgSvr.Deposit(sdk.WrapSDKContext(ctx), newDepositMsg)
|
||||
require.NoError(t, err)
|
||||
@ -310,7 +310,7 @@ func TestProposalPassedEndblocker(t *testing.T) {
|
||||
deposits := initialModuleAccCoins.Add(proposal.TotalDeposit...).Add(proposalCoins...)
|
||||
require.True(t, moduleAccCoins.IsEqual(deposits))
|
||||
|
||||
err = app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
err = app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
require.NoError(t, err)
|
||||
|
||||
newHeader := ctx.BlockHeader()
|
||||
@ -347,14 +347,14 @@ func TestEndBlockerProposalHandlerFailed(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
proposalCoins := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 10)))
|
||||
newDepositMsg := v1beta2.NewMsgDeposit(addrs[0], proposal.Id, proposalCoins)
|
||||
newDepositMsg := v1.NewMsgDeposit(addrs[0], proposal.Id, proposalCoins)
|
||||
|
||||
govMsgSvr := keeper.NewMsgServerImpl(app.GovKeeper)
|
||||
res, err := govMsgSvr.Deposit(sdk.WrapSDKContext(ctx), newDepositMsg)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, res)
|
||||
|
||||
err = app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
err = app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
require.NoError(t, err)
|
||||
|
||||
newHeader := ctx.BlockHeader()
|
||||
|
||||
@ -13,8 +13,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
)
|
||||
|
||||
@ -85,7 +85,7 @@ func TestParseSubmitProposal(t *testing.T) {
|
||||
banktypes.RegisterInterfaces(interfaceRegistry)
|
||||
stakingtypes.RegisterInterfaces(interfaceRegistry)
|
||||
v1beta1.RegisterInterfaces(interfaceRegistry)
|
||||
v1beta2.RegisterInterfaces(interfaceRegistry)
|
||||
v1.RegisterInterfaces(interfaceRegistry)
|
||||
expectedMetadata := []byte{42}
|
||||
|
||||
okJSON := testutil.WriteToNewTempFile(t, fmt.Sprintf(`
|
||||
@ -104,7 +104,7 @@ func TestParseSubmitProposal(t *testing.T) {
|
||||
"amount":{"denom": "stake","amount": "10"}
|
||||
},
|
||||
{
|
||||
"@type": "/cosmos.gov.v1beta2.MsgExecLegacyContent",
|
||||
"@type": "/cosmos.gov.v1.MsgExecLegacyContent",
|
||||
"authority": "%s",
|
||||
"content": {
|
||||
"@type": "/cosmos.gov.v1beta1.TextProposal",
|
||||
@ -144,7 +144,7 @@ func TestParseSubmitProposal(t *testing.T) {
|
||||
require.Equal(t, addr.String(), msg2.DelegatorAddress)
|
||||
require.Equal(t, addr.String(), msg2.ValidatorAddress)
|
||||
require.Equal(t, sdk.NewCoin("stake", sdk.NewInt(10)), msg2.Amount)
|
||||
msg3, ok := msgs[2].(*v1beta2.MsgExecLegacyContent)
|
||||
msg3, ok := msgs[2].(*v1.MsgExecLegacyContent)
|
||||
require.True(t, ok)
|
||||
require.Equal(t, addr.String(), msg3.Authority)
|
||||
textProp, ok := msg3.Content.GetCachedValue().(*v1beta1.TextProposal)
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/version"
|
||||
gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
@ -64,7 +64,7 @@ $ %s query gov proposal 1
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -75,7 +75,7 @@ $ %s query gov proposal 1
|
||||
// Query the proposal
|
||||
res, err := queryClient.Proposal(
|
||||
cmd.Context(),
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -113,7 +113,7 @@ $ %s query gov proposals --page=2 --limit=100
|
||||
bechVoterAddr, _ := cmd.Flags().GetString(flagVoter)
|
||||
strProposalStatus, _ := cmd.Flags().GetString(flagStatus)
|
||||
|
||||
var proposalStatus v1beta2.ProposalStatus
|
||||
var proposalStatus v1.ProposalStatus
|
||||
|
||||
if len(bechDepositorAddr) != 0 {
|
||||
_, err := sdk.AccAddressFromBech32(bechDepositorAddr)
|
||||
@ -130,7 +130,7 @@ $ %s query gov proposals --page=2 --limit=100
|
||||
}
|
||||
|
||||
if len(strProposalStatus) != 0 {
|
||||
proposalStatus1, err := v1beta2.ProposalStatusFromString(gcutils.NormalizeProposalStatus(strProposalStatus))
|
||||
proposalStatus1, err := v1.ProposalStatusFromString(gcutils.NormalizeProposalStatus(strProposalStatus))
|
||||
proposalStatus = proposalStatus1
|
||||
if err != nil {
|
||||
return err
|
||||
@ -141,7 +141,7 @@ $ %s query gov proposals --page=2 --limit=100
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
pageReq, err := client.ReadPageRequest(cmd.Flags())
|
||||
if err != nil {
|
||||
@ -150,7 +150,7 @@ $ %s query gov proposals --page=2 --limit=100
|
||||
|
||||
res, err := queryClient.Proposals(
|
||||
cmd.Context(),
|
||||
&v1beta2.QueryProposalsRequest{
|
||||
&v1.QueryProposalsRequest{
|
||||
ProposalStatus: proposalStatus,
|
||||
Voter: bechVoterAddr,
|
||||
Depositor: bechDepositorAddr,
|
||||
@ -199,7 +199,7 @@ $ %s query gov vote 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -211,7 +211,7 @@ $ %s query gov vote 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
ctx := cmd.Context()
|
||||
_, err = queryClient.Proposal(
|
||||
ctx,
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to fetch proposal-id %d: %s", proposalID, err)
|
||||
@ -224,7 +224,7 @@ $ %s query gov vote 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
|
||||
res, err := queryClient.Vote(
|
||||
ctx,
|
||||
&v1beta2.QueryVoteRequest{ProposalId: proposalID, Voter: args[1]},
|
||||
&v1.QueryVoteRequest{ProposalId: proposalID, Voter: args[1]},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -232,7 +232,7 @@ $ %s query gov vote 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
|
||||
vote := res.GetVote()
|
||||
if vote.Empty() {
|
||||
params := v1beta2.NewQueryVoteParams(proposalID, voterAddr)
|
||||
params := v1.NewQueryVoteParams(proposalID, voterAddr)
|
||||
resByTxQuery, err := gcutils.QueryVoteByTxQuery(clientCtx, params)
|
||||
|
||||
if err != nil {
|
||||
@ -274,7 +274,7 @@ $ %[1]s query gov votes 1 --page=2 --limit=100
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -286,24 +286,24 @@ $ %[1]s query gov votes 1 --page=2 --limit=100
|
||||
ctx := cmd.Context()
|
||||
proposalRes, err := queryClient.Proposal(
|
||||
ctx,
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to fetch proposal-id %d: %s", proposalID, err)
|
||||
}
|
||||
|
||||
propStatus := proposalRes.GetProposal().Status
|
||||
if !(propStatus == v1beta2.StatusVotingPeriod || propStatus == v1beta2.StatusDepositPeriod) {
|
||||
if !(propStatus == v1.StatusVotingPeriod || propStatus == v1.StatusDepositPeriod) {
|
||||
page, _ := cmd.Flags().GetInt(flags.FlagPage)
|
||||
limit, _ := cmd.Flags().GetInt(flags.FlagLimit)
|
||||
|
||||
params := v1beta2.NewQueryProposalVotesParams(proposalID, page, limit)
|
||||
params := v1.NewQueryProposalVotesParams(proposalID, page, limit)
|
||||
resByTxQuery, err := gcutils.QueryVotesByTxQuery(clientCtx, params)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var votes v1beta2.Votes
|
||||
var votes v1.Votes
|
||||
// TODO migrate to use JSONCodec (implement MarshalJSONArray
|
||||
// or wrap lists of proto.Message in some other message)
|
||||
clientCtx.LegacyAmino.MustUnmarshalJSON(resByTxQuery, &votes)
|
||||
@ -318,7 +318,7 @@ $ %[1]s query gov votes 1 --page=2 --limit=100
|
||||
|
||||
res, err := queryClient.Votes(
|
||||
ctx,
|
||||
&v1beta2.QueryVotesRequest{ProposalId: proposalID, Pagination: pageReq},
|
||||
&v1.QueryVotesRequest{ProposalId: proposalID, Pagination: pageReq},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
@ -357,7 +357,7 @@ $ %s query gov deposit 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -369,7 +369,7 @@ $ %s query gov deposit 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
ctx := cmd.Context()
|
||||
_, err = queryClient.Proposal(
|
||||
ctx,
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to fetch proposal-id %d: %s", proposalID, err)
|
||||
@ -377,7 +377,7 @@ $ %s query gov deposit 1 cosmos1skjwj5whet0lpe65qaq4rpq03hjxlwd9nf39lk
|
||||
|
||||
res, err := queryClient.Deposit(
|
||||
ctx,
|
||||
&v1beta2.QueryDepositRequest{ProposalId: proposalID, Depositor: args[1]},
|
||||
&v1.QueryDepositRequest{ProposalId: proposalID, Depositor: args[1]},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -413,7 +413,7 @@ $ %s query gov deposits 1
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -425,7 +425,7 @@ $ %s query gov deposits 1
|
||||
ctx := cmd.Context()
|
||||
_, err = queryClient.Proposal(
|
||||
ctx,
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to fetch proposal-id %d: %s", proposalID, err)
|
||||
@ -438,7 +438,7 @@ $ %s query gov deposits 1
|
||||
|
||||
res, err := queryClient.Deposits(
|
||||
ctx,
|
||||
&v1beta2.QueryDepositsRequest{ProposalId: proposalID, Pagination: pageReq},
|
||||
&v1.QueryDepositsRequest{ProposalId: proposalID, Pagination: pageReq},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
@ -476,7 +476,7 @@ $ %s query gov tally 1
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// validate that the proposal id is a uint
|
||||
proposalID, err := strconv.ParseUint(args[0], 10, 64)
|
||||
@ -488,7 +488,7 @@ $ %s query gov tally 1
|
||||
ctx := cmd.Context()
|
||||
_, err = queryClient.Proposal(
|
||||
ctx,
|
||||
&v1beta2.QueryProposalRequest{ProposalId: proposalID},
|
||||
&v1.QueryProposalRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to fetch proposal-id %d: %s", proposalID, err)
|
||||
@ -497,7 +497,7 @@ $ %s query gov tally 1
|
||||
// Query store
|
||||
res, err := queryClient.TallyResult(
|
||||
ctx,
|
||||
&v1beta2.QueryTallyResultRequest{ProposalId: proposalID},
|
||||
&v1.QueryTallyResultRequest{ProposalId: proposalID},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -532,13 +532,13 @@ $ %s query gov params
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// Query store for all 3 params
|
||||
ctx := cmd.Context()
|
||||
votingRes, err := queryClient.Params(
|
||||
ctx,
|
||||
&v1beta2.QueryParamsRequest{ParamsType: "voting"},
|
||||
&v1.QueryParamsRequest{ParamsType: "voting"},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -546,7 +546,7 @@ $ %s query gov params
|
||||
|
||||
tallyRes, err := queryClient.Params(
|
||||
ctx,
|
||||
&v1beta2.QueryParamsRequest{ParamsType: "tallying"},
|
||||
&v1.QueryParamsRequest{ParamsType: "tallying"},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -554,13 +554,13 @@ $ %s query gov params
|
||||
|
||||
depositRes, err := queryClient.Params(
|
||||
ctx,
|
||||
&v1beta2.QueryParamsRequest{ParamsType: "deposit"},
|
||||
&v1.QueryParamsRequest{ParamsType: "deposit"},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
params := v1beta2.NewParams(
|
||||
params := v1.NewParams(
|
||||
*votingRes.GetVotingParams(),
|
||||
*tallyRes.GetTallyParams(),
|
||||
*depositRes.GetDepositParams(),
|
||||
@ -597,12 +597,12 @@ $ %s query gov param deposit
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
queryClient := v1beta2.NewQueryClient(clientCtx)
|
||||
queryClient := v1.NewQueryClient(clientCtx)
|
||||
|
||||
// Query store
|
||||
res, err := queryClient.Params(
|
||||
cmd.Context(),
|
||||
&v1beta2.QueryParamsRequest{ParamsType: args[0]},
|
||||
&v1.QueryParamsRequest{ParamsType: args[0]},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -14,8 +14,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/version"
|
||||
govutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
// Proposal flags
|
||||
@ -121,7 +121,7 @@ Where proposal.json contains:
|
||||
return err
|
||||
}
|
||||
|
||||
msg, err := v1beta2.NewMsgSubmitProposal(msgs, deposit, clientCtx.GetFromAddress().String(), metadata)
|
||||
msg, err := v1.NewMsgSubmitProposal(msgs, deposit, clientCtx.GetFromAddress().String(), metadata)
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid message: %w", err)
|
||||
}
|
||||
@ -237,7 +237,7 @@ $ %s tx gov deposit 1 10stake --from mykey
|
||||
return err
|
||||
}
|
||||
|
||||
msg := v1beta2.NewMsgDeposit(from, proposalID, amount)
|
||||
msg := v1.NewMsgDeposit(from, proposalID, amount)
|
||||
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
|
||||
},
|
||||
@ -279,7 +279,7 @@ $ %s tx gov vote 1 yes --from mykey
|
||||
}
|
||||
|
||||
// Find out which vote option user chose
|
||||
byteVoteOption, err := v1beta2.VoteOptionFromString(govutils.NormalizeVoteOption(args[1]))
|
||||
byteVoteOption, err := v1.VoteOptionFromString(govutils.NormalizeVoteOption(args[1]))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -290,7 +290,7 @@ $ %s tx gov vote 1 yes --from mykey
|
||||
}
|
||||
|
||||
// Build vote message and run basic validation
|
||||
msg := v1beta2.NewMsgVote(from, proposalID, byteVoteOption, metadata)
|
||||
msg := v1.NewMsgVote(from, proposalID, byteVoteOption, metadata)
|
||||
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
|
||||
},
|
||||
@ -334,7 +334,7 @@ $ %s tx gov weighted-vote 1 yes=0.6,no=0.3,abstain=0.05,no_with_veto=0.05 --from
|
||||
}
|
||||
|
||||
// Figure out which vote options user chose
|
||||
options, err := v1beta2.WeightedVoteOptionsFromString(govutils.NormalizeWeightedVoteOptions(args[1]))
|
||||
options, err := v1.WeightedVoteOptionsFromString(govutils.NormalizeWeightedVoteOptions(args[1]))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -345,7 +345,7 @@ $ %s tx gov weighted-vote 1 yes=0.6,no=0.3,abstain=0.05,no_with_veto=0.05 --from
|
||||
}
|
||||
|
||||
// Build vote message and run basic validation
|
||||
msg := v1beta2.NewMsgVoteWeighted(from, proposalID, options, metadata)
|
||||
msg := v1.NewMsgVoteWeighted(from, proposalID, options, metadata)
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
|
||||
},
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/testutil/network"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/stretchr/testify/suite"
|
||||
@ -17,9 +17,9 @@ func TestIntegrationTestSuite(t *testing.T) {
|
||||
cfg.NumValidators = 1
|
||||
suite.Run(t, NewIntegrationTestSuite(cfg))
|
||||
|
||||
dp := v1beta2.NewDepositParams(sdk.NewCoins(sdk.NewCoin(cfg.BondDenom, v1beta2.DefaultMinDepositTokens)), time.Duration(15)*time.Second)
|
||||
vp := v1beta2.NewVotingParams(time.Duration(5) * time.Second)
|
||||
genesisState := v1beta2.DefaultGenesisState()
|
||||
dp := v1.NewDepositParams(sdk.NewCoins(sdk.NewCoin(cfg.BondDenom, v1.DefaultMinDepositTokens)), time.Duration(15)*time.Second)
|
||||
vp := v1.NewVotingParams(time.Duration(5) * time.Second)
|
||||
genesisState := v1.DefaultGenesisState()
|
||||
genesisState.DepositParams = &dp
|
||||
genesisState.VotingParams = &vp
|
||||
bz, err := cfg.Codec.MarshalJSON(genesisState)
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/testutil/network"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/client/cli"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
type DepositTestSuite struct {
|
||||
@ -42,7 +42,7 @@ func (s *DepositTestSuite) SetupSuite() {
|
||||
|
||||
deposits := sdk.Coins{
|
||||
sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(0)),
|
||||
sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens.Sub(sdk.NewInt(50))),
|
||||
sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens.Sub(sdk.NewInt(50))),
|
||||
}
|
||||
s.deposits = deposits
|
||||
|
||||
@ -99,7 +99,7 @@ func (s *DepositTestSuite) TestQueryDepositsWithoutInitialDeposit() {
|
||||
proposalID := s.proposalIDs[0]
|
||||
|
||||
// deposit amount
|
||||
depositAmount := sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens.Add(sdk.NewInt(50))).String()
|
||||
depositAmount := sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens.Add(sdk.NewInt(50))).String()
|
||||
_, err := MsgDeposit(clientCtx, val.Address.String(), proposalID, depositAmount)
|
||||
s.Require().NoError(err)
|
||||
|
||||
@ -147,14 +147,14 @@ func (s *DepositTestSuite) TestRejectedProposalDeposits() {
|
||||
|
||||
val := s.network.Validators[0]
|
||||
clientCtx := val.ClientCtx
|
||||
initialDeposit := sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens)
|
||||
initialDeposit := sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens)
|
||||
id := 1
|
||||
proposalID := fmt.Sprintf("%d", id)
|
||||
|
||||
s.submitProposal(val, initialDeposit, id)
|
||||
|
||||
// query deposits
|
||||
var deposits v1beta2.QueryDepositsResponse
|
||||
var deposits v1.QueryDepositsResponse
|
||||
args := []string{proposalID, fmt.Sprintf("--%s=json", tmcli.OutputFlag)}
|
||||
cmd := cli.GetCmdQueryDeposits()
|
||||
out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, args)
|
||||
@ -184,9 +184,9 @@ func (s *DepositTestSuite) TestRejectedProposalDeposits() {
|
||||
s.Require().Equal(sdk.Coins(depositsRes.Deposits[0].Amount).String(), initialDeposit.String())
|
||||
}
|
||||
|
||||
func (s *DepositTestSuite) queryDeposits(val *network.Validator, proposalID string, exceptErr bool, message string) *v1beta2.QueryDepositsResponse {
|
||||
func (s *DepositTestSuite) queryDeposits(val *network.Validator, proposalID string, exceptErr bool, message string) *v1.QueryDepositsResponse {
|
||||
args := []string{proposalID, fmt.Sprintf("--%s=json", tmcli.OutputFlag)}
|
||||
var depositsRes *v1beta2.QueryDepositsResponse
|
||||
var depositsRes *v1.QueryDepositsResponse
|
||||
cmd := cli.GetCmdQueryDeposits()
|
||||
out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, args)
|
||||
|
||||
@ -201,9 +201,9 @@ func (s *DepositTestSuite) queryDeposits(val *network.Validator, proposalID stri
|
||||
return depositsRes
|
||||
}
|
||||
|
||||
func (s *DepositTestSuite) queryDeposit(val *network.Validator, proposalID string, exceptErr bool, message string) *v1beta2.Deposit {
|
||||
func (s *DepositTestSuite) queryDeposit(val *network.Validator, proposalID string, exceptErr bool, message string) *v1.Deposit {
|
||||
args := []string{proposalID, val.Address.String(), fmt.Sprintf("--%s=json", tmcli.OutputFlag)}
|
||||
var depositRes *v1beta2.Deposit
|
||||
var depositRes *v1.Deposit
|
||||
cmd := cli.GetCmdQueryDeposit()
|
||||
out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, args)
|
||||
if exceptErr {
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/testutil/rest"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
func (s *IntegrationTestSuite) TestGetProposalGRPC() {
|
||||
@ -22,17 +22,17 @@ func (s *IntegrationTestSuite) TestGetProposalGRPC() {
|
||||
}{
|
||||
{
|
||||
"empty proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s", val.APIAddress, ""),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s", val.APIAddress, ""),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get non existing proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s", val.APIAddress, "10"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s", val.APIAddress, "10"),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get proposal with id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s", val.APIAddress, "1"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s", val.APIAddress, "1"),
|
||||
false,
|
||||
},
|
||||
}
|
||||
@ -43,7 +43,7 @@ func (s *IntegrationTestSuite) TestGetProposalGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var proposal v1beta2.QueryProposalResponse
|
||||
var proposal v1.QueryProposalResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &proposal)
|
||||
|
||||
if tc.expErr {
|
||||
@ -68,7 +68,7 @@ func (s *IntegrationTestSuite) TestGetProposalsGRPC() {
|
||||
}{
|
||||
{
|
||||
"get proposals with height 1",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals", val.APIAddress),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals", val.APIAddress),
|
||||
map[string]string{
|
||||
grpctypes.GRPCBlockHeightHeader: "1",
|
||||
},
|
||||
@ -77,14 +77,14 @@ func (s *IntegrationTestSuite) TestGetProposalsGRPC() {
|
||||
},
|
||||
{
|
||||
"valid request",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals", val.APIAddress),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals", val.APIAddress),
|
||||
map[string]string{},
|
||||
3,
|
||||
false,
|
||||
},
|
||||
{
|
||||
"valid request with filter by status",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals?proposal_status=1", val.APIAddress),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals?proposal_status=1", val.APIAddress),
|
||||
map[string]string{},
|
||||
1,
|
||||
false,
|
||||
@ -97,7 +97,7 @@ func (s *IntegrationTestSuite) TestGetProposalsGRPC() {
|
||||
resp, err := testutil.GetRequestWithHeaders(tc.url, tc.headers)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var proposals v1beta2.QueryProposalsResponse
|
||||
var proposals v1.QueryProposalsResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &proposals)
|
||||
|
||||
if tc.expErr {
|
||||
@ -119,41 +119,41 @@ func (s *IntegrationTestSuite) TestGetProposalVoteGRPC() {
|
||||
name string
|
||||
url string
|
||||
expErr bool
|
||||
expVoteOptions v1beta2.WeightedVoteOptions
|
||||
expVoteOptions v1.WeightedVoteOptions
|
||||
}{
|
||||
{
|
||||
"empty proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes/%s", val.APIAddress, "", voterAddressBech32),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes/%s", val.APIAddress, "", voterAddressBech32),
|
||||
true,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"get non existing proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes/%s", val.APIAddress, "10", voterAddressBech32),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes/%s", val.APIAddress, "10", voterAddressBech32),
|
||||
true,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"get proposal with wrong voter address",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes/%s", val.APIAddress, "1", "wrongVoterAddress"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes/%s", val.APIAddress, "1", "wrongVoterAddress"),
|
||||
true,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"get proposal with id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes/%s", val.APIAddress, "1", voterAddressBech32),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes/%s", val.APIAddress, "1", voterAddressBech32),
|
||||
false,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"get proposal with id for split vote",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes/%s", val.APIAddress, "3", voterAddressBech32),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes/%s", val.APIAddress, "3", voterAddressBech32),
|
||||
false,
|
||||
v1beta2.WeightedVoteOptions{
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionYes, Weight: sdk.NewDecWithPrec(60, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionNo, Weight: sdk.NewDecWithPrec(30, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionAbstain, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionNoWithVeto, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
v1.WeightedVoteOptions{
|
||||
&v1.WeightedVoteOption{Option: v1.OptionYes, Weight: sdk.NewDecWithPrec(60, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionNo, Weight: sdk.NewDecWithPrec(30, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionAbstain, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionNoWithVeto, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -164,7 +164,7 @@ func (s *IntegrationTestSuite) TestGetProposalVoteGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var vote v1beta2.QueryVoteResponse
|
||||
var vote v1.QueryVoteResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &vote)
|
||||
|
||||
if tc.expErr {
|
||||
@ -192,12 +192,12 @@ func (s *IntegrationTestSuite) TestGetProposalVotesGRPC() {
|
||||
}{
|
||||
{
|
||||
"votes with empty proposal id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes", val.APIAddress, ""),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes", val.APIAddress, ""),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get votes with valid id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/votes", val.APIAddress, "1"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/votes", val.APIAddress, "1"),
|
||||
false,
|
||||
},
|
||||
}
|
||||
@ -208,7 +208,7 @@ func (s *IntegrationTestSuite) TestGetProposalVotesGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var votes v1beta2.QueryVotesResponse
|
||||
var votes v1.QueryVotesResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &votes)
|
||||
|
||||
if tc.expErr {
|
||||
@ -231,22 +231,22 @@ func (s *IntegrationTestSuite) TestGetProposalDepositGRPC() {
|
||||
}{
|
||||
{
|
||||
"get deposit with empty proposal id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits/%s", val.APIAddress, "", val.Address.String()),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "", val.Address.String()),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get deposit of non existing proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits/%s", val.APIAddress, "10", val.Address.String()),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "10", val.Address.String()),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get deposit with wrong depositer address",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositerAddress"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", "wrongDepositerAddress"),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get deposit valid request",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits/%s", val.APIAddress, "1", val.Address.String()),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits/%s", val.APIAddress, "1", val.Address.String()),
|
||||
false,
|
||||
},
|
||||
}
|
||||
@ -257,7 +257,7 @@ func (s *IntegrationTestSuite) TestGetProposalDepositGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var deposit v1beta2.QueryDepositResponse
|
||||
var deposit v1.QueryDepositResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &deposit)
|
||||
|
||||
if tc.expErr {
|
||||
@ -280,12 +280,12 @@ func (s *IntegrationTestSuite) TestGetProposalDepositsGRPC() {
|
||||
}{
|
||||
{
|
||||
"get deposits with empty proposal id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits", val.APIAddress, ""),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits", val.APIAddress, ""),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"valid request",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/deposits", val.APIAddress, "1"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/deposits", val.APIAddress, "1"),
|
||||
false,
|
||||
},
|
||||
}
|
||||
@ -296,7 +296,7 @@ func (s *IntegrationTestSuite) TestGetProposalDepositsGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var deposits v1beta2.QueryDepositsResponse
|
||||
var deposits v1.QueryDepositsResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &deposits)
|
||||
|
||||
if tc.expErr {
|
||||
@ -320,17 +320,17 @@ func (s *IntegrationTestSuite) TestGetTallyGRPC() {
|
||||
}{
|
||||
{
|
||||
"get tally with no proposal id",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/tally", val.APIAddress, ""),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/tally", val.APIAddress, ""),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get tally with non existing proposal",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/tally", val.APIAddress, "10"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/tally", val.APIAddress, "10"),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"get tally valid request",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/proposals/%s/tally", val.APIAddress, "1"),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/proposals/%s/tally", val.APIAddress, "1"),
|
||||
false,
|
||||
},
|
||||
}
|
||||
@ -341,7 +341,7 @@ func (s *IntegrationTestSuite) TestGetTallyGRPC() {
|
||||
resp, err := rest.GetRequest(tc.url)
|
||||
s.Require().NoError(err)
|
||||
|
||||
var tally v1beta2.QueryTallyResultResponse
|
||||
var tally v1.QueryTallyResultResponse
|
||||
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &tally)
|
||||
|
||||
if tc.expErr {
|
||||
@ -357,9 +357,9 @@ func (s *IntegrationTestSuite) TestGetTallyGRPC() {
|
||||
func (s *IntegrationTestSuite) TestGetParamsGRPC() {
|
||||
val := s.network.Validators[0]
|
||||
|
||||
dp := v1beta2.DefaultDepositParams()
|
||||
vp := v1beta2.DefaultVotingParams()
|
||||
tp := v1beta2.DefaultTallyParams()
|
||||
dp := v1.DefaultDepositParams()
|
||||
vp := v1.DefaultVotingParams()
|
||||
tp := v1.DefaultTallyParams()
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@ -370,29 +370,29 @@ func (s *IntegrationTestSuite) TestGetParamsGRPC() {
|
||||
}{
|
||||
{
|
||||
"request params with empty params type",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/params/%s", val.APIAddress, ""),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/params/%s", val.APIAddress, ""),
|
||||
true, nil, nil,
|
||||
},
|
||||
{
|
||||
"get deposit params",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/params/%s", val.APIAddress, v1beta2.ParamDeposit),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/params/%s", val.APIAddress, v1.ParamDeposit),
|
||||
false,
|
||||
&v1beta2.QueryParamsResponse{},
|
||||
&v1beta2.QueryParamsResponse{DepositParams: &dp},
|
||||
&v1.QueryParamsResponse{},
|
||||
&v1.QueryParamsResponse{DepositParams: &dp},
|
||||
},
|
||||
{
|
||||
"get vote params",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/params/%s", val.APIAddress, v1beta2.ParamVoting),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/params/%s", val.APIAddress, v1.ParamVoting),
|
||||
false,
|
||||
&v1beta2.QueryParamsResponse{},
|
||||
&v1beta2.QueryParamsResponse{VotingParams: &vp},
|
||||
&v1.QueryParamsResponse{},
|
||||
&v1.QueryParamsResponse{VotingParams: &vp},
|
||||
},
|
||||
{
|
||||
"get tally params",
|
||||
fmt.Sprintf("%s/cosmos/gov/v1beta2/params/%s", val.APIAddress, v1beta2.ParamTallying),
|
||||
fmt.Sprintf("%s/cosmos/gov/v1/params/%s", val.APIAddress, v1.ParamTallying),
|
||||
false,
|
||||
&v1beta2.QueryParamsResponse{},
|
||||
&v1beta2.QueryParamsResponse{TallyParams: &tp},
|
||||
&v1.QueryParamsResponse{},
|
||||
&v1.QueryParamsResponse{TallyParams: &tp},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -19,8 +19,8 @@ import (
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/client/cli"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
type IntegrationTestSuite struct {
|
||||
@ -49,7 +49,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
// create a proposal with deposit
|
||||
_, err = MsgSubmitLegacyProposal(val.ClientCtx, val.Address.String(),
|
||||
"Text Proposal 1", "Where is the title!?", v1beta1.ProposalTypeText,
|
||||
fmt.Sprintf("--%s=%s", cli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens).String()))
|
||||
fmt.Sprintf("--%s=%s", cli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens).String()))
|
||||
s.Require().NoError(err)
|
||||
_, err = s.network.WaitForHeight(1)
|
||||
s.Require().NoError(err)
|
||||
@ -68,7 +68,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
// create a proposal3 with deposit
|
||||
_, err = MsgSubmitLegacyProposal(val.ClientCtx, val.Address.String(),
|
||||
"Text Proposal 3", "Where is the title!?", v1beta1.ProposalTypeText,
|
||||
fmt.Sprintf("--%s=%s", cli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens).String()))
|
||||
fmt.Sprintf("--%s=%s", cli.FlagDeposit, sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens).String()))
|
||||
s.Require().NoError(err)
|
||||
_, err = s.network.WaitForHeight(1)
|
||||
s.Require().NoError(err)
|
||||
@ -230,7 +230,7 @@ func (s *IntegrationTestSuite) TestCmdTally() {
|
||||
name string
|
||||
args []string
|
||||
expectErr bool
|
||||
expectedOutput v1beta2.TallyResult
|
||||
expectedOutput v1.TallyResult
|
||||
}{
|
||||
{
|
||||
"without proposal id",
|
||||
@ -238,7 +238,7 @@ func (s *IntegrationTestSuite) TestCmdTally() {
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
true,
|
||||
v1beta2.TallyResult{},
|
||||
v1.TallyResult{},
|
||||
},
|
||||
{
|
||||
"json output",
|
||||
@ -247,7 +247,7 @@ func (s *IntegrationTestSuite) TestCmdTally() {
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
false,
|
||||
v1beta2.NewTallyResult(sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0)),
|
||||
v1.NewTallyResult(sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0)),
|
||||
},
|
||||
{
|
||||
"json output",
|
||||
@ -256,7 +256,7 @@ func (s *IntegrationTestSuite) TestCmdTally() {
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
false,
|
||||
v1beta2.NewTallyResult(s.cfg.BondedTokens, sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0)),
|
||||
v1.NewTallyResult(s.cfg.BondedTokens, sdk.NewInt(0), sdk.NewInt(0), sdk.NewInt(0)),
|
||||
},
|
||||
}
|
||||
|
||||
@ -271,7 +271,7 @@ func (s *IntegrationTestSuite) TestCmdTally() {
|
||||
if tc.expectErr {
|
||||
s.Require().Error(err)
|
||||
} else {
|
||||
var tally v1beta2.TallyResult
|
||||
var tally v1.TallyResult
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &tally), out.String())
|
||||
s.Require().Equal(tally, tc.expectedOutput)
|
||||
}
|
||||
@ -298,7 +298,7 @@ func (s *IntegrationTestSuite) TestNewCmdSubmitProposal() {
|
||||
{
|
||||
"messages": [
|
||||
{
|
||||
"@type": "/cosmos.gov.v1beta2.MsgExecLegacyContent",
|
||||
"@type": "/cosmos.gov.v1.MsgExecLegacyContent",
|
||||
"authority": "%s",
|
||||
"content": {
|
||||
"@type": "/cosmos.gov.v1beta1.TextProposal",
|
||||
@ -493,9 +493,9 @@ func (s *IntegrationTestSuite) TestCmdGetProposal() {
|
||||
s.Require().Error(err)
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
var proposal v1beta2.Proposal
|
||||
var proposal v1.Proposal
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &proposal), out.String())
|
||||
s.Require().Equal(title, proposal.Messages[0].GetCachedValue().(*v1beta2.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetTitle())
|
||||
s.Require().Equal(title, proposal.Messages[0].GetCachedValue().(*v1.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetTitle())
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -538,7 +538,7 @@ func (s *IntegrationTestSuite) TestCmdGetProposals() {
|
||||
s.Require().Error(err)
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
var proposals v1beta2.QueryProposalsResponse
|
||||
var proposals v1.QueryProposalsResponse
|
||||
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &proposals), out.String())
|
||||
s.Require().Len(proposals.Proposals, 3)
|
||||
@ -585,7 +585,7 @@ func (s *IntegrationTestSuite) TestCmdQueryDeposits() {
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
|
||||
var deposits v1beta2.QueryDepositsResponse
|
||||
var deposits v1.QueryDepositsResponse
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &deposits), out.String())
|
||||
s.Require().Len(deposits.Deposits, 1)
|
||||
}
|
||||
@ -595,7 +595,7 @@ func (s *IntegrationTestSuite) TestCmdQueryDeposits() {
|
||||
|
||||
func (s *IntegrationTestSuite) TestCmdQueryDeposit() {
|
||||
val := s.network.Validators[0]
|
||||
depositAmount := sdk.NewCoin(s.cfg.BondDenom, v1beta2.DefaultMinDepositTokens)
|
||||
depositAmount := sdk.NewCoin(s.cfg.BondDenom, v1.DefaultMinDepositTokens)
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@ -641,7 +641,7 @@ func (s *IntegrationTestSuite) TestCmdQueryDeposit() {
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
|
||||
var deposit v1beta2.Deposit
|
||||
var deposit v1.Deposit
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &deposit), out.String())
|
||||
s.Require().Equal(depositAmount.String(), sdk.Coins(deposit.Amount).String())
|
||||
}
|
||||
@ -770,7 +770,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVotes() {
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
|
||||
var votes v1beta2.QueryVotesResponse
|
||||
var votes v1.QueryVotesResponse
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &votes), out.String())
|
||||
s.Require().Len(votes.Votes, 1)
|
||||
}
|
||||
@ -785,7 +785,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
name string
|
||||
args []string
|
||||
expectErr bool
|
||||
expVoteOptions v1beta2.WeightedVoteOptions
|
||||
expVoteOptions v1.WeightedVoteOptions
|
||||
}{
|
||||
{
|
||||
"get vote of non existing proposal",
|
||||
@ -794,7 +794,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
val.Address.String(),
|
||||
},
|
||||
true,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"get vote by wrong voter",
|
||||
@ -803,7 +803,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
"wrong address",
|
||||
},
|
||||
true,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"vote for valid proposal",
|
||||
@ -813,7 +813,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
false,
|
||||
v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
},
|
||||
{
|
||||
"split vote for valid proposal",
|
||||
@ -823,11 +823,11 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
false,
|
||||
v1beta2.WeightedVoteOptions{
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionYes, Weight: sdk.NewDecWithPrec(60, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionNo, Weight: sdk.NewDecWithPrec(30, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionAbstain, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
&v1beta2.WeightedVoteOption{Option: v1beta2.OptionNoWithVeto, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
v1.WeightedVoteOptions{
|
||||
&v1.WeightedVoteOption{Option: v1.OptionYes, Weight: sdk.NewDecWithPrec(60, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionNo, Weight: sdk.NewDecWithPrec(30, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionAbstain, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
&v1.WeightedVoteOption{Option: v1.OptionNoWithVeto, Weight: sdk.NewDecWithPrec(5, 2).String()},
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -845,7 +845,7 @@ func (s *IntegrationTestSuite) TestCmdQueryVote() {
|
||||
} else {
|
||||
s.Require().NoError(err)
|
||||
|
||||
var vote v1beta2.Vote
|
||||
var vote v1.Vote
|
||||
s.Require().NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &vote), out.String())
|
||||
s.Require().Equal(len(vote.Options), len(tc.expVoteOptions))
|
||||
for i, option := range tc.expVoteOptions {
|
||||
|
||||
@ -8,8 +8,8 @@ import (
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -39,8 +39,8 @@ func (p Proposer) String() string {
|
||||
//
|
||||
// NOTE: SearchTxs is used to facilitate the txs query which does not currently
|
||||
// support configurable pagination.
|
||||
func QueryDepositsByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalParams) ([]byte, error) {
|
||||
var deposits []v1beta2.Deposit
|
||||
func QueryDepositsByTxQuery(clientCtx client.Context, params v1.QueryProposalParams) ([]byte, error) {
|
||||
var deposits []v1.Deposit
|
||||
|
||||
// initial deposit was submitted with proposal, so must be queried separately
|
||||
initialDeposit, err := queryInitialDepositByTxQuery(clientCtx, params.ProposalID)
|
||||
@ -64,9 +64,9 @@ func QueryDepositsByTxQuery(clientCtx client.Context, params v1beta2.QueryPropos
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta1.MsgDeposit{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
// Query proto Msgs event action v1beta2
|
||||
// Query proto Msgs event action v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgDeposit{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgDeposit{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
)
|
||||
@ -77,15 +77,15 @@ func QueryDepositsByTxQuery(clientCtx client.Context, params v1beta2.QueryPropos
|
||||
for _, info := range searchResult.Txs {
|
||||
for _, msg := range info.GetTx().GetMsgs() {
|
||||
if depMsg, ok := msg.(*v1beta1.MsgDeposit); ok {
|
||||
deposits = append(deposits, v1beta2.Deposit{
|
||||
deposits = append(deposits, v1.Deposit{
|
||||
Depositor: depMsg.Depositor,
|
||||
ProposalId: params.ProposalID,
|
||||
Amount: depMsg.Amount,
|
||||
})
|
||||
}
|
||||
|
||||
if depMsg, ok := msg.(*v1beta2.MsgDeposit); ok {
|
||||
deposits = append(deposits, v1beta2.Deposit{
|
||||
if depMsg, ok := msg.(*v1.MsgDeposit); ok {
|
||||
deposits = append(deposits, v1.Deposit{
|
||||
Depositor: depMsg.Depositor,
|
||||
ProposalId: params.ProposalID,
|
||||
Amount: depMsg.Amount,
|
||||
@ -105,9 +105,9 @@ func QueryDepositsByTxQuery(clientCtx client.Context, params v1beta2.QueryPropos
|
||||
// QueryVotesByTxQuery will query for votes via a direct txs tags query. It
|
||||
// will fetch and build votes directly from the returned txs and return a JSON
|
||||
// marshalled result or any error that occurred.
|
||||
func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalVotesParams) ([]byte, error) {
|
||||
func QueryVotesByTxQuery(clientCtx client.Context, params v1.QueryProposalVotesParams) ([]byte, error) {
|
||||
var (
|
||||
votes []*v1beta2.Vote
|
||||
votes []*v1.Vote
|
||||
nextTxPage = defaultPage
|
||||
totalLimit = params.Limit * params.Page
|
||||
)
|
||||
@ -127,9 +127,9 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta1.MsgVote{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
// Query Vote proto Msgs v1beta2
|
||||
// Query Vote proto Msgs v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgVote{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgVote{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
// Query legacy VoteWeighted Msgs
|
||||
@ -142,9 +142,9 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta1.MsgVoteWeighted{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
// Query VoteWeighted proto Msgs v1beta2
|
||||
// Query VoteWeighted proto Msgs v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgVoteWeighted{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgVoteWeighted{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
},
|
||||
)
|
||||
@ -155,18 +155,18 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
for _, info := range searchResult.Txs {
|
||||
for _, msg := range info.GetTx().GetMsgs() {
|
||||
if voteMsg, ok := msg.(*v1beta1.MsgVote); ok {
|
||||
votes = append(votes, &v1beta2.Vote{
|
||||
votes = append(votes, &v1.Vote{
|
||||
Voter: voteMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: v1beta2.NewNonSplitVoteOption(v1beta2.VoteOption(voteMsg.Option)),
|
||||
Options: v1.NewNonSplitVoteOption(v1.VoteOption(voteMsg.Option)),
|
||||
})
|
||||
}
|
||||
|
||||
if voteMsg, ok := msg.(*v1beta2.MsgVote); ok {
|
||||
votes = append(votes, &v1beta2.Vote{
|
||||
if voteMsg, ok := msg.(*v1.MsgVote); ok {
|
||||
votes = append(votes, &v1.Vote{
|
||||
Voter: voteMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: v1beta2.NewNonSplitVoteOption(voteMsg.Option),
|
||||
Options: v1.NewNonSplitVoteOption(voteMsg.Option),
|
||||
})
|
||||
}
|
||||
|
||||
@ -174,8 +174,8 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
votes = append(votes, convertVote(voteWeightedMsg))
|
||||
}
|
||||
|
||||
if voteWeightedMsg, ok := msg.(*v1beta2.MsgVoteWeighted); ok {
|
||||
votes = append(votes, &v1beta2.Vote{
|
||||
if voteWeightedMsg, ok := msg.(*v1.MsgVoteWeighted); ok {
|
||||
votes = append(votes, &v1.Vote{
|
||||
Voter: voteWeightedMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: voteWeightedMsg.Options,
|
||||
@ -191,7 +191,7 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
}
|
||||
start, end := client.Paginate(len(votes), params.Page, params.Limit, 100)
|
||||
if start < 0 || end < 0 {
|
||||
votes = []*v1beta2.Vote{}
|
||||
votes = []*v1.Vote{}
|
||||
} else {
|
||||
votes = votes[start:end]
|
||||
}
|
||||
@ -205,7 +205,7 @@ func QueryVotesByTxQuery(clientCtx client.Context, params v1beta2.QueryProposalV
|
||||
}
|
||||
|
||||
// QueryVoteByTxQuery will query for a single vote via a direct txs tags query.
|
||||
func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams) ([]byte, error) {
|
||||
func QueryVoteByTxQuery(clientCtx client.Context, params v1.QueryVoteParams) ([]byte, error) {
|
||||
searchResult, err := combineEvents(
|
||||
clientCtx, defaultPage,
|
||||
// Query legacy Vote Msgs
|
||||
@ -220,9 +220,9 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Voter.String()),
|
||||
},
|
||||
// Query Vote proto Msgs v1beta2
|
||||
// Query Vote proto Msgs v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgVote{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgVote{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Voter.String()),
|
||||
},
|
||||
@ -238,9 +238,9 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Voter),
|
||||
},
|
||||
// Query VoteWeighted proto Msgs v1beta2
|
||||
// Query VoteWeighted proto Msgs v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgVoteWeighted{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgVoteWeighted{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalVote, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Voter),
|
||||
},
|
||||
@ -252,20 +252,20 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams
|
||||
for _, info := range searchResult.Txs {
|
||||
for _, msg := range info.GetTx().GetMsgs() {
|
||||
// there should only be a single vote under the given conditions
|
||||
var vote *v1beta2.Vote
|
||||
var vote *v1.Vote
|
||||
if voteMsg, ok := msg.(*v1beta1.MsgVote); ok {
|
||||
vote = &v1beta2.Vote{
|
||||
vote = &v1.Vote{
|
||||
Voter: voteMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: v1beta2.NewNonSplitVoteOption(v1beta2.VoteOption(voteMsg.Option)),
|
||||
Options: v1.NewNonSplitVoteOption(v1.VoteOption(voteMsg.Option)),
|
||||
}
|
||||
}
|
||||
|
||||
if voteMsg, ok := msg.(*v1beta2.MsgVote); ok {
|
||||
vote = &v1beta2.Vote{
|
||||
if voteMsg, ok := msg.(*v1.MsgVote); ok {
|
||||
vote = &v1.Vote{
|
||||
Voter: voteMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: v1beta2.NewNonSplitVoteOption(voteMsg.Option),
|
||||
Options: v1.NewNonSplitVoteOption(voteMsg.Option),
|
||||
}
|
||||
}
|
||||
|
||||
@ -273,8 +273,8 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams
|
||||
vote = convertVote(voteWeightedMsg)
|
||||
}
|
||||
|
||||
if voteWeightedMsg, ok := msg.(*v1beta2.MsgVoteWeighted); ok {
|
||||
vote = &v1beta2.Vote{
|
||||
if voteWeightedMsg, ok := msg.(*v1.MsgVoteWeighted); ok {
|
||||
vote = &v1.Vote{
|
||||
Voter: voteWeightedMsg.Voter,
|
||||
ProposalId: params.ProposalID,
|
||||
Options: voteWeightedMsg.Options,
|
||||
@ -297,7 +297,7 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1beta2.QueryVoteParams
|
||||
|
||||
// QueryDepositByTxQuery will query for a single deposit via a direct txs tags
|
||||
// query.
|
||||
func QueryDepositByTxQuery(clientCtx client.Context, params v1beta2.QueryDepositParams) ([]byte, error) {
|
||||
func QueryDepositByTxQuery(clientCtx client.Context, params v1.QueryDepositParams) ([]byte, error) {
|
||||
|
||||
// initial deposit was submitted with proposal, so must be queried separately
|
||||
initialDeposit, err := queryInitialDepositByTxQuery(clientCtx, params.ProposalID)
|
||||
@ -328,9 +328,9 @@ func QueryDepositByTxQuery(clientCtx client.Context, params v1beta2.QueryDeposit
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Depositor.String()),
|
||||
},
|
||||
// Query proto Msgs event action v1beta2
|
||||
// Query proto Msgs event action v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgDeposit{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgDeposit{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeySender, params.Depositor.String()),
|
||||
},
|
||||
@ -343,7 +343,7 @@ func QueryDepositByTxQuery(clientCtx client.Context, params v1beta2.QueryDeposit
|
||||
for _, msg := range info.GetTx().GetMsgs() {
|
||||
// there should only be a single deposit under the given conditions
|
||||
if depMsg, ok := msg.(*v1beta1.MsgDeposit); ok {
|
||||
deposit := v1beta2.Deposit{
|
||||
deposit := v1.Deposit{
|
||||
Depositor: depMsg.Depositor,
|
||||
ProposalId: params.ProposalID,
|
||||
Amount: depMsg.Amount,
|
||||
@ -357,8 +357,8 @@ func QueryDepositByTxQuery(clientCtx client.Context, params v1beta2.QueryDeposit
|
||||
return bz, nil
|
||||
}
|
||||
|
||||
if depMsg, ok := msg.(*v1beta2.MsgDeposit); ok {
|
||||
deposit := v1beta2.Deposit{
|
||||
if depMsg, ok := msg.(*v1.MsgDeposit); ok {
|
||||
deposit := v1.Deposit{
|
||||
Depositor: depMsg.Depositor,
|
||||
ProposalId: params.ProposalID,
|
||||
Amount: depMsg.Amount,
|
||||
@ -393,9 +393,9 @@ func QueryProposerByTxQuery(clientCtx client.Context, proposalID uint64) (Propos
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta1.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeSubmitProposal, types.AttributeKeyProposalID, proposalID),
|
||||
},
|
||||
// Query proto Msgs event action v1beta2
|
||||
// Query proto Msgs event action v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeSubmitProposal, types.AttributeKeyProposalID, proposalID),
|
||||
},
|
||||
)
|
||||
@ -409,7 +409,7 @@ func QueryProposerByTxQuery(clientCtx client.Context, proposalID uint64) (Propos
|
||||
if subMsg, ok := msg.(*v1beta1.MsgSubmitProposal); ok {
|
||||
return NewProposer(proposalID, subMsg.Proposer), nil
|
||||
}
|
||||
if subMsg, ok := msg.(*v1beta2.MsgSubmitProposal); ok {
|
||||
if subMsg, ok := msg.(*v1.MsgSubmitProposal); ok {
|
||||
return NewProposer(proposalID, subMsg.Proposer), nil
|
||||
}
|
||||
}
|
||||
@ -420,7 +420,7 @@ func QueryProposerByTxQuery(clientCtx client.Context, proposalID uint64) (Propos
|
||||
|
||||
// QueryProposalByID takes a proposalID and returns a proposal
|
||||
func QueryProposalByID(proposalID uint64, clientCtx client.Context, queryRoute string) ([]byte, error) {
|
||||
params := v1beta2.NewQueryProposalParams(proposalID)
|
||||
params := v1.NewQueryProposalParams(proposalID)
|
||||
bz, err := clientCtx.LegacyAmino.MarshalJSON(params)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -458,7 +458,7 @@ func combineEvents(clientCtx client.Context, page int, eventGroups ...[]string)
|
||||
|
||||
// queryInitialDepositByTxQuery will query for a initial deposit of a governance proposal by
|
||||
// ID.
|
||||
func queryInitialDepositByTxQuery(clientCtx client.Context, proposalID uint64) (v1beta2.Deposit, error) {
|
||||
func queryInitialDepositByTxQuery(clientCtx client.Context, proposalID uint64) (v1.Deposit, error) {
|
||||
searchResult, err := combineEvents(
|
||||
clientCtx, defaultPage,
|
||||
// Query legacy Msgs event action
|
||||
@ -471,30 +471,30 @@ func queryInitialDepositByTxQuery(clientCtx client.Context, proposalID uint64) (
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta1.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeSubmitProposal, types.AttributeKeyProposalID, proposalID),
|
||||
},
|
||||
// Query proto Msgs event action v1beta2
|
||||
// Query proto Msgs event action v1
|
||||
[]string{
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1beta2.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%s'", sdk.EventTypeMessage, sdk.AttributeKeyAction, sdk.MsgTypeURL(&v1.MsgSubmitProposal{})),
|
||||
fmt.Sprintf("%s.%s='%d'", types.EventTypeSubmitProposal, types.AttributeKeyProposalID, proposalID),
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return v1beta2.Deposit{}, err
|
||||
return v1.Deposit{}, err
|
||||
}
|
||||
|
||||
for _, info := range searchResult.Txs {
|
||||
for _, msg := range info.GetTx().GetMsgs() {
|
||||
// there should only be a single proposal under the given conditions
|
||||
if subMsg, ok := msg.(*v1beta1.MsgSubmitProposal); ok {
|
||||
return v1beta2.Deposit{
|
||||
return v1.Deposit{
|
||||
ProposalId: proposalID,
|
||||
Depositor: subMsg.Proposer,
|
||||
Amount: subMsg.InitialDeposit,
|
||||
}, nil
|
||||
}
|
||||
|
||||
if subMsg, ok := msg.(*v1beta2.MsgSubmitProposal); ok {
|
||||
return v1beta2.Deposit{
|
||||
if subMsg, ok := msg.(*v1.MsgSubmitProposal); ok {
|
||||
return v1.Deposit{
|
||||
ProposalId: proposalID,
|
||||
Depositor: subMsg.Proposer,
|
||||
Amount: subMsg.InitialDeposit,
|
||||
@ -503,19 +503,19 @@ func queryInitialDepositByTxQuery(clientCtx client.Context, proposalID uint64) (
|
||||
}
|
||||
}
|
||||
|
||||
return v1beta2.Deposit{}, sdkerrors.ErrNotFound.Wrapf("failed to find the initial deposit for proposalID %d", proposalID)
|
||||
return v1.Deposit{}, sdkerrors.ErrNotFound.Wrapf("failed to find the initial deposit for proposalID %d", proposalID)
|
||||
}
|
||||
|
||||
// convertVote converts a MsgVoteWeighted into a *v1beta2.Vote.
|
||||
func convertVote(v *v1beta1.MsgVoteWeighted) *v1beta2.Vote {
|
||||
opts := make([]*v1beta2.WeightedVoteOption, len(v.Options))
|
||||
// convertVote converts a MsgVoteWeighted into a *v1.Vote.
|
||||
func convertVote(v *v1beta1.MsgVoteWeighted) *v1.Vote {
|
||||
opts := make([]*v1.WeightedVoteOption, len(v.Options))
|
||||
for i, o := range v.Options {
|
||||
opts[i] = &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.VoteOption(o.Option),
|
||||
opts[i] = &v1.WeightedVoteOption{
|
||||
Option: v1.VoteOption(o.Option),
|
||||
Weight: o.Weight.String(),
|
||||
}
|
||||
}
|
||||
return &v1beta2.Vote{
|
||||
return &v1.Vote{
|
||||
Voter: v.Voter,
|
||||
ProposalId: v.ProposalId,
|
||||
Options: opts,
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/client/utils"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
type TxSearchMock struct {
|
||||
@ -81,19 +81,19 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
description string
|
||||
page, limit int
|
||||
msgs [][]sdk.Msg
|
||||
votes []v1beta2.Vote
|
||||
votes []v1.Vote
|
||||
}
|
||||
acc1 := make(sdk.AccAddress, 20)
|
||||
acc1[0] = 1
|
||||
acc2 := make(sdk.AccAddress, 20)
|
||||
acc2[0] = 2
|
||||
acc1Msgs := []sdk.Msg{
|
||||
v1beta2.NewMsgVote(acc1, 0, v1beta2.OptionYes, ""),
|
||||
v1beta2.NewMsgVote(acc1, 0, v1beta2.OptionYes, ""),
|
||||
v1.NewMsgVote(acc1, 0, v1.OptionYes, ""),
|
||||
v1.NewMsgVote(acc1, 0, v1.OptionYes, ""),
|
||||
}
|
||||
acc2Msgs := []sdk.Msg{
|
||||
v1beta2.NewMsgVote(acc2, 0, v1beta2.OptionYes, ""),
|
||||
v1beta2.NewMsgVoteWeighted(acc2, 0, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
v1.NewMsgVote(acc2, 0, v1.OptionYes, ""),
|
||||
v1.NewMsgVoteWeighted(acc2, 0, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
}
|
||||
for _, tc := range []testCase{
|
||||
{
|
||||
@ -104,9 +104,9 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
acc1Msgs[:1],
|
||||
acc2Msgs[:1],
|
||||
},
|
||||
votes: []v1beta2.Vote{
|
||||
v1beta2.NewVote(0, acc1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
v1beta2.NewVote(0, acc2, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")},
|
||||
votes: []v1.Vote{
|
||||
v1.NewVote(0, acc1, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
v1.NewVote(0, acc2, v1.NewNonSplitVoteOption(v1.OptionYes), "")},
|
||||
},
|
||||
{
|
||||
description: "2MsgPerTx1Chunk",
|
||||
@ -116,9 +116,9 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
acc1Msgs,
|
||||
acc2Msgs,
|
||||
},
|
||||
votes: []v1beta2.Vote{
|
||||
v1beta2.NewVote(0, acc1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
v1beta2.NewVote(0, acc1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
votes: []v1.Vote{
|
||||
v1.NewVote(0, acc1, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
v1.NewVote(0, acc1, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -129,9 +129,9 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
acc1Msgs,
|
||||
acc2Msgs,
|
||||
},
|
||||
votes: []v1beta2.Vote{
|
||||
v1beta2.NewVote(0, acc2, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
v1beta2.NewVote(0, acc2, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""),
|
||||
votes: []v1.Vote{
|
||||
v1.NewVote(0, acc2, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
v1.NewVote(0, acc2, v1.NewNonSplitVoteOption(v1.OptionYes), ""),
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -141,7 +141,7 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
msgs: [][]sdk.Msg{
|
||||
acc1Msgs[:1],
|
||||
},
|
||||
votes: []v1beta2.Vote{v1beta2.NewVote(0, acc1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")},
|
||||
votes: []v1.Vote{v1.NewVote(0, acc1, v1.NewNonSplitVoteOption(v1.OptionYes), "")},
|
||||
},
|
||||
{
|
||||
description: "InvalidPage",
|
||||
@ -179,10 +179,10 @@ func TestGetPaginatedVotes(t *testing.T) {
|
||||
marshalled[i] = tx
|
||||
}
|
||||
|
||||
params := v1beta2.NewQueryProposalVotesParams(0, tc.page, tc.limit)
|
||||
params := v1.NewQueryProposalVotesParams(0, tc.page, tc.limit)
|
||||
votesData, err := utils.QueryVotesByTxQuery(clientCtx, params)
|
||||
require.NoError(t, err)
|
||||
votes := []v1beta2.Vote{}
|
||||
votes := []v1.Vote{}
|
||||
require.NoError(t, clientCtx.LegacyAmino.UnmarshalJSON(votesData, &votes))
|
||||
require.Equal(t, len(tc.votes), len(votes))
|
||||
for i := range votes {
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@ -25,8 +25,8 @@ var (
|
||||
)
|
||||
|
||||
// mkTestLegacyContent creates a MsgExecLegacyContent for testing purposes.
|
||||
func mkTestLegacyContent(t *testing.T) *v1beta2.MsgExecLegacyContent {
|
||||
msgContent, err := v1beta2.NewLegacyContent(TestProposal, authtypes.NewModuleAddress(types.ModuleName).String())
|
||||
func mkTestLegacyContent(t *testing.T) *v1.MsgExecLegacyContent {
|
||||
msgContent, err := v1.NewLegacyContent(TestProposal, authtypes.NewModuleAddress(types.ModuleName).String())
|
||||
require.NoError(t, err)
|
||||
|
||||
return msgContent
|
||||
|
||||
@ -6,11 +6,11 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// InitGenesis - store genesis parameters
|
||||
func InitGenesis(ctx sdk.Context, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, data *v1beta2.GenesisState) {
|
||||
func InitGenesis(ctx sdk.Context, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, data *v1.GenesisState) {
|
||||
k.SetProposalID(ctx, data.StartingProposalId)
|
||||
k.SetDepositParams(ctx, *data.DepositParams)
|
||||
k.SetVotingParams(ctx, *data.VotingParams)
|
||||
@ -34,9 +34,9 @@ func InitGenesis(ctx sdk.Context, ak types.AccountKeeper, bk types.BankKeeper, k
|
||||
|
||||
for _, proposal := range data.Proposals {
|
||||
switch proposal.Status {
|
||||
case v1beta2.StatusDepositPeriod:
|
||||
case v1.StatusDepositPeriod:
|
||||
k.InsertInactiveProposalQueue(ctx, proposal.Id, *proposal.DepositEndTime)
|
||||
case v1beta2.StatusVotingPeriod:
|
||||
case v1.StatusVotingPeriod:
|
||||
k.InsertActiveProposalQueue(ctx, proposal.Id, *proposal.VotingEndTime)
|
||||
}
|
||||
k.SetProposal(ctx, *proposal)
|
||||
@ -55,15 +55,15 @@ func InitGenesis(ctx sdk.Context, ak types.AccountKeeper, bk types.BankKeeper, k
|
||||
}
|
||||
|
||||
// ExportGenesis - output genesis parameters
|
||||
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *v1beta2.GenesisState {
|
||||
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *v1.GenesisState {
|
||||
startingProposalID, _ := k.GetProposalID(ctx)
|
||||
depositParams := k.GetDepositParams(ctx)
|
||||
votingParams := k.GetVotingParams(ctx)
|
||||
tallyParams := k.GetTallyParams(ctx)
|
||||
proposals := k.GetProposals(ctx)
|
||||
|
||||
var proposalsDeposits v1beta2.Deposits
|
||||
var proposalsVotes v1beta2.Votes
|
||||
var proposalsDeposits v1.Deposits
|
||||
var proposalsVotes v1.Votes
|
||||
for _, proposal := range proposals {
|
||||
deposits := k.GetDeposits(ctx, proposal.Id)
|
||||
proposalsDeposits = append(proposalsDeposits, deposits...)
|
||||
@ -72,7 +72,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *v1beta2.GenesisState {
|
||||
proposalsVotes = append(proposalsVotes, votes...)
|
||||
}
|
||||
|
||||
return &v1beta2.GenesisState{
|
||||
return &v1.GenesisState{
|
||||
StartingProposalId: startingProposalID,
|
||||
Deposits: proposalsDeposits,
|
||||
Votes: proposalsVotes,
|
||||
|
||||
@ -18,7 +18,7 @@ import (
|
||||
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
)
|
||||
@ -51,8 +51,8 @@ func TestImportExportQueues(t *testing.T) {
|
||||
require.True(t, ok)
|
||||
proposal2, ok = app.GovKeeper.GetProposal(ctx, proposalID2)
|
||||
require.True(t, ok)
|
||||
require.True(t, proposal1.Status == v1beta2.StatusDepositPeriod)
|
||||
require.True(t, proposal2.Status == v1beta2.StatusVotingPeriod)
|
||||
require.True(t, proposal1.Status == v1.StatusDepositPeriod)
|
||||
require.True(t, proposal2.Status == v1.StatusVotingPeriod)
|
||||
|
||||
authGenState := auth.ExportGenesis(ctx, app.AccountKeeper)
|
||||
bankGenState := app.BankKeeper.ExportGenesis(ctx)
|
||||
@ -101,8 +101,8 @@ func TestImportExportQueues(t *testing.T) {
|
||||
require.True(t, ok)
|
||||
proposal2, ok = app2.GovKeeper.GetProposal(ctx2, proposalID2)
|
||||
require.True(t, ok)
|
||||
require.True(t, proposal1.Status == v1beta2.StatusDepositPeriod)
|
||||
require.True(t, proposal2.Status == v1beta2.StatusVotingPeriod)
|
||||
require.True(t, proposal1.Status == v1.StatusDepositPeriod)
|
||||
require.True(t, proposal2.Status == v1.StatusVotingPeriod)
|
||||
|
||||
macc := app2.GovKeeper.GetGovernanceAccount(ctx2)
|
||||
require.Equal(t, sdk.Coins(app2.GovKeeper.GetDepositParams(ctx2).MinDeposit), app2.BankKeeper.GetAllBalances(ctx2, macc.GetAddress()))
|
||||
@ -115,15 +115,15 @@ func TestImportExportQueues(t *testing.T) {
|
||||
|
||||
proposal2, ok = app2.GovKeeper.GetProposal(ctx2, proposalID2)
|
||||
require.True(t, ok)
|
||||
require.True(t, proposal2.Status == v1beta2.StatusRejected)
|
||||
require.True(t, proposal2.Status == v1.StatusRejected)
|
||||
}
|
||||
|
||||
func TestImportExportQueues_ErrorUnconsistentState(t *testing.T) {
|
||||
app := simapp.Setup(t, false)
|
||||
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
|
||||
require.Panics(t, func() {
|
||||
gov.InitGenesis(ctx, app.AccountKeeper, app.BankKeeper, app.GovKeeper, &v1beta2.GenesisState{
|
||||
Deposits: v1beta2.Deposits{
|
||||
gov.InitGenesis(ctx, app.AccountKeeper, app.BankKeeper, app.GovKeeper, &v1.GenesisState{
|
||||
Deposits: v1.Deposits{
|
||||
{
|
||||
ProposalId: 1234,
|
||||
Depositor: "me",
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
@ -25,7 +25,7 @@ var (
|
||||
)
|
||||
|
||||
func getTestProposal() []sdk.Msg {
|
||||
legacyProposalMsg, err := v1beta2.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), authtypes.NewModuleAddress(types.ModuleName).String())
|
||||
legacyProposalMsg, err := v1.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), authtypes.NewModuleAddress(types.ModuleName).String())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
@ -6,11 +6,11 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// GetDeposit gets the deposit of a specific depositor on a specific proposal
|
||||
func (keeper Keeper) GetDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit v1beta2.Deposit, found bool) {
|
||||
func (keeper Keeper) GetDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit v1.Deposit, found bool) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
bz := store.Get(types.DepositKey(proposalID, depositorAddr))
|
||||
if bz == nil {
|
||||
@ -23,7 +23,7 @@ func (keeper Keeper) GetDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
|
||||
}
|
||||
|
||||
// SetDeposit sets a Deposit to the gov store
|
||||
func (keeper Keeper) SetDeposit(ctx sdk.Context, deposit v1beta2.Deposit) {
|
||||
func (keeper Keeper) SetDeposit(ctx sdk.Context, deposit v1.Deposit) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
bz := keeper.cdc.MustMarshal(&deposit)
|
||||
depositor, err := sdk.AccAddressFromBech32(deposit.Depositor)
|
||||
@ -35,8 +35,8 @@ func (keeper Keeper) SetDeposit(ctx sdk.Context, deposit v1beta2.Deposit) {
|
||||
}
|
||||
|
||||
// GetAllDeposits returns all the deposits from the store
|
||||
func (keeper Keeper) GetAllDeposits(ctx sdk.Context) (deposits v1beta2.Deposits) {
|
||||
keeper.IterateAllDeposits(ctx, func(deposit v1beta2.Deposit) bool {
|
||||
func (keeper Keeper) GetAllDeposits(ctx sdk.Context) (deposits v1.Deposits) {
|
||||
keeper.IterateAllDeposits(ctx, func(deposit v1.Deposit) bool {
|
||||
deposits = append(deposits, &deposit)
|
||||
return false
|
||||
})
|
||||
@ -45,8 +45,8 @@ func (keeper Keeper) GetAllDeposits(ctx sdk.Context) (deposits v1beta2.Deposits)
|
||||
}
|
||||
|
||||
// GetDeposits returns all the deposits from a proposal
|
||||
func (keeper Keeper) GetDeposits(ctx sdk.Context, proposalID uint64) (deposits v1beta2.Deposits) {
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1beta2.Deposit) bool {
|
||||
func (keeper Keeper) GetDeposits(ctx sdk.Context, proposalID uint64) (deposits v1.Deposits) {
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1.Deposit) bool {
|
||||
deposits = append(deposits, &deposit)
|
||||
return false
|
||||
})
|
||||
@ -58,7 +58,7 @@ func (keeper Keeper) GetDeposits(ctx sdk.Context, proposalID uint64) (deposits v
|
||||
func (keeper Keeper) DeleteAndBurnDeposits(ctx sdk.Context, proposalID uint64) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1beta2.Deposit) bool {
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1.Deposit) bool {
|
||||
err := keeper.bankKeeper.BurnCoins(ctx, types.ModuleName, deposit.Amount)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -74,14 +74,14 @@ func (keeper Keeper) DeleteAndBurnDeposits(ctx sdk.Context, proposalID uint64) {
|
||||
}
|
||||
|
||||
// IterateAllDeposits iterates over the all the stored deposits and performs a callback function
|
||||
func (keeper Keeper) IterateAllDeposits(ctx sdk.Context, cb func(deposit v1beta2.Deposit) (stop bool)) {
|
||||
func (keeper Keeper) IterateAllDeposits(ctx sdk.Context, cb func(deposit v1.Deposit) (stop bool)) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
iterator := sdk.KVStorePrefixIterator(store, types.DepositsKeyPrefix)
|
||||
|
||||
defer iterator.Close()
|
||||
|
||||
for ; iterator.Valid(); iterator.Next() {
|
||||
var deposit v1beta2.Deposit
|
||||
var deposit v1.Deposit
|
||||
|
||||
keeper.cdc.MustUnmarshal(iterator.Value(), &deposit)
|
||||
|
||||
@ -92,14 +92,14 @@ func (keeper Keeper) IterateAllDeposits(ctx sdk.Context, cb func(deposit v1beta2
|
||||
}
|
||||
|
||||
// IterateDeposits iterates over the all the proposals deposits and performs a callback function
|
||||
func (keeper Keeper) IterateDeposits(ctx sdk.Context, proposalID uint64, cb func(deposit v1beta2.Deposit) (stop bool)) {
|
||||
func (keeper Keeper) IterateDeposits(ctx sdk.Context, proposalID uint64, cb func(deposit v1.Deposit) (stop bool)) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
iterator := sdk.KVStorePrefixIterator(store, types.DepositsKey(proposalID))
|
||||
|
||||
defer iterator.Close()
|
||||
|
||||
for ; iterator.Valid(); iterator.Next() {
|
||||
var deposit v1beta2.Deposit
|
||||
var deposit v1.Deposit
|
||||
|
||||
keeper.cdc.MustUnmarshal(iterator.Value(), &deposit)
|
||||
|
||||
@ -119,7 +119,7 @@ func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
|
||||
}
|
||||
|
||||
// Check if proposal is still depositable
|
||||
if (proposal.Status != v1beta2.StatusDepositPeriod) && (proposal.Status != v1beta2.StatusVotingPeriod) {
|
||||
if (proposal.Status != v1.StatusDepositPeriod) && (proposal.Status != v1.StatusVotingPeriod) {
|
||||
return false, sdkerrors.Wrapf(types.ErrInactiveProposal, "%d", proposalID)
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
|
||||
// Check if deposit has provided sufficient total funds to transition the proposal into the voting period
|
||||
activatedVotingPeriod := false
|
||||
|
||||
if proposal.Status == v1beta2.StatusDepositPeriod && sdk.NewCoins(proposal.TotalDeposit...).IsAllGTE(keeper.GetDepositParams(ctx).MinDeposit) {
|
||||
if proposal.Status == v1.StatusDepositPeriod && sdk.NewCoins(proposal.TotalDeposit...).IsAllGTE(keeper.GetDepositParams(ctx).MinDeposit) {
|
||||
keeper.ActivateVotingPeriod(ctx, proposal)
|
||||
|
||||
activatedVotingPeriod = true
|
||||
@ -148,7 +148,7 @@ func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
|
||||
if found {
|
||||
deposit.Amount = sdk.NewCoins(deposit.Amount...).Add(depositAmount...)
|
||||
} else {
|
||||
deposit = v1beta2.NewDeposit(proposalID, depositorAddr, depositAmount)
|
||||
deposit = v1.NewDeposit(proposalID, depositorAddr, depositAmount)
|
||||
}
|
||||
|
||||
// called when deposit has been added to a proposal, however the proposal may not be active
|
||||
@ -171,7 +171,7 @@ func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAdd
|
||||
func (keeper Keeper) RefundAndDeleteDeposits(ctx sdk.Context, proposalID uint64) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1beta2.Deposit) bool {
|
||||
keeper.IterateDeposits(ctx, proposalID, func(deposit v1.Deposit) bool {
|
||||
depositor, err := sdk.AccAddressFromBech32(deposit.Depositor)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@ -11,14 +11,14 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
v046 "github.com/cosmos/cosmos-sdk/x/gov/migrations/v046"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
var _ v1beta2.QueryServer = Keeper{}
|
||||
var _ v1.QueryServer = Keeper{}
|
||||
|
||||
// Proposal returns proposal details based on ProposalID
|
||||
func (q Keeper) Proposal(c context.Context, req *v1beta2.QueryProposalRequest) (*v1beta2.QueryProposalResponse, error) {
|
||||
func (q Keeper) Proposal(c context.Context, req *v1.QueryProposalRequest) (*v1.QueryProposalResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -34,19 +34,19 @@ func (q Keeper) Proposal(c context.Context, req *v1beta2.QueryProposalRequest) (
|
||||
return nil, status.Errorf(codes.NotFound, "proposal %d doesn't exist", req.ProposalId)
|
||||
}
|
||||
|
||||
return &v1beta2.QueryProposalResponse{Proposal: &proposal}, nil
|
||||
return &v1.QueryProposalResponse{Proposal: &proposal}, nil
|
||||
}
|
||||
|
||||
// Proposals implements the Query/Proposals gRPC method
|
||||
func (q Keeper) Proposals(c context.Context, req *v1beta2.QueryProposalsRequest) (*v1beta2.QueryProposalsResponse, error) {
|
||||
var filteredProposals []*v1beta2.Proposal
|
||||
func (q Keeper) Proposals(c context.Context, req *v1.QueryProposalsRequest) (*v1.QueryProposalsResponse, error) {
|
||||
var filteredProposals []*v1.Proposal
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
store := ctx.KVStore(q.storeKey)
|
||||
proposalStore := prefix.NewStore(store, types.ProposalsKeyPrefix)
|
||||
|
||||
pageRes, err := query.FilteredPaginate(proposalStore, req.Pagination, func(key []byte, value []byte, accumulate bool) (bool, error) {
|
||||
var p v1beta2.Proposal
|
||||
var p v1.Proposal
|
||||
if err := q.cdc.Unmarshal(value, &p); err != nil {
|
||||
return false, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
@ -54,7 +54,7 @@ func (q Keeper) Proposals(c context.Context, req *v1beta2.QueryProposalsRequest)
|
||||
matchVoter, matchDepositor, matchStatus := true, true, true
|
||||
|
||||
// match status (if supplied/valid)
|
||||
if v1beta2.ValidProposalStatus(req.ProposalStatus) {
|
||||
if v1.ValidProposalStatus(req.ProposalStatus) {
|
||||
matchStatus = p.Status == req.ProposalStatus
|
||||
}
|
||||
|
||||
@ -92,11 +92,11 @@ func (q Keeper) Proposals(c context.Context, req *v1beta2.QueryProposalsRequest)
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
|
||||
return &v1beta2.QueryProposalsResponse{Proposals: filteredProposals, Pagination: pageRes}, nil
|
||||
return &v1.QueryProposalsResponse{Proposals: filteredProposals, Pagination: pageRes}, nil
|
||||
}
|
||||
|
||||
// Vote returns Voted information based on proposalID, voterAddr
|
||||
func (q Keeper) Vote(c context.Context, req *v1beta2.QueryVoteRequest) (*v1beta2.QueryVoteResponse, error) {
|
||||
func (q Keeper) Vote(c context.Context, req *v1.QueryVoteRequest) (*v1.QueryVoteResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -121,11 +121,11 @@ func (q Keeper) Vote(c context.Context, req *v1beta2.QueryVoteRequest) (*v1beta2
|
||||
"voter: %v not found for proposal: %v", req.Voter, req.ProposalId)
|
||||
}
|
||||
|
||||
return &v1beta2.QueryVoteResponse{Vote: &vote}, nil
|
||||
return &v1.QueryVoteResponse{Vote: &vote}, nil
|
||||
}
|
||||
|
||||
// Votes returns single proposal's votes
|
||||
func (q Keeper) Votes(c context.Context, req *v1beta2.QueryVotesRequest) (*v1beta2.QueryVotesResponse, error) {
|
||||
func (q Keeper) Votes(c context.Context, req *v1.QueryVotesRequest) (*v1.QueryVotesResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -134,14 +134,14 @@ func (q Keeper) Votes(c context.Context, req *v1beta2.QueryVotesRequest) (*v1bet
|
||||
return nil, status.Error(codes.InvalidArgument, "proposal id can not be 0")
|
||||
}
|
||||
|
||||
var votes v1beta2.Votes
|
||||
var votes v1.Votes
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
store := ctx.KVStore(q.storeKey)
|
||||
votesStore := prefix.NewStore(store, types.VotesKey(req.ProposalId))
|
||||
|
||||
pageRes, err := query.Paginate(votesStore, req.Pagination, func(key []byte, value []byte) error {
|
||||
var vote v1beta2.Vote
|
||||
var vote v1.Vote
|
||||
if err := q.cdc.Unmarshal(value, &vote); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -154,11 +154,11 @@ func (q Keeper) Votes(c context.Context, req *v1beta2.QueryVotesRequest) (*v1bet
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
|
||||
return &v1beta2.QueryVotesResponse{Votes: votes, Pagination: pageRes}, nil
|
||||
return &v1.QueryVotesResponse{Votes: votes, Pagination: pageRes}, nil
|
||||
}
|
||||
|
||||
// Params queries all params
|
||||
func (q Keeper) Params(c context.Context, req *v1beta2.QueryParamsRequest) (*v1beta2.QueryParamsResponse, error) {
|
||||
func (q Keeper) Params(c context.Context, req *v1.QueryParamsRequest) (*v1.QueryParamsResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -166,17 +166,17 @@ func (q Keeper) Params(c context.Context, req *v1beta2.QueryParamsRequest) (*v1b
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
switch req.ParamsType {
|
||||
case v1beta2.ParamDeposit:
|
||||
case v1.ParamDeposit:
|
||||
depositParmas := q.GetDepositParams(ctx)
|
||||
return &v1beta2.QueryParamsResponse{DepositParams: &depositParmas}, nil
|
||||
return &v1.QueryParamsResponse{DepositParams: &depositParmas}, nil
|
||||
|
||||
case v1beta2.ParamVoting:
|
||||
case v1.ParamVoting:
|
||||
votingParmas := q.GetVotingParams(ctx)
|
||||
return &v1beta2.QueryParamsResponse{VotingParams: &votingParmas}, nil
|
||||
return &v1.QueryParamsResponse{VotingParams: &votingParmas}, nil
|
||||
|
||||
case v1beta2.ParamTallying:
|
||||
case v1.ParamTallying:
|
||||
tallyParams := q.GetTallyParams(ctx)
|
||||
return &v1beta2.QueryParamsResponse{TallyParams: &tallyParams}, nil
|
||||
return &v1.QueryParamsResponse{TallyParams: &tallyParams}, nil
|
||||
|
||||
default:
|
||||
return nil, status.Errorf(codes.InvalidArgument,
|
||||
@ -185,7 +185,7 @@ func (q Keeper) Params(c context.Context, req *v1beta2.QueryParamsRequest) (*v1b
|
||||
}
|
||||
|
||||
// Deposit queries single deposit information based proposalID, depositAddr
|
||||
func (q Keeper) Deposit(c context.Context, req *v1beta2.QueryDepositRequest) (*v1beta2.QueryDepositResponse, error) {
|
||||
func (q Keeper) Deposit(c context.Context, req *v1.QueryDepositRequest) (*v1.QueryDepositResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -210,11 +210,11 @@ func (q Keeper) Deposit(c context.Context, req *v1beta2.QueryDepositRequest) (*v
|
||||
"depositer: %v not found for proposal: %v", req.Depositor, req.ProposalId)
|
||||
}
|
||||
|
||||
return &v1beta2.QueryDepositResponse{Deposit: &deposit}, nil
|
||||
return &v1.QueryDepositResponse{Deposit: &deposit}, nil
|
||||
}
|
||||
|
||||
// Deposits returns single proposal's all deposits
|
||||
func (q Keeper) Deposits(c context.Context, req *v1beta2.QueryDepositsRequest) (*v1beta2.QueryDepositsResponse, error) {
|
||||
func (q Keeper) Deposits(c context.Context, req *v1.QueryDepositsRequest) (*v1.QueryDepositsResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -223,14 +223,14 @@ func (q Keeper) Deposits(c context.Context, req *v1beta2.QueryDepositsRequest) (
|
||||
return nil, status.Error(codes.InvalidArgument, "proposal id can not be 0")
|
||||
}
|
||||
|
||||
var deposits []*v1beta2.Deposit
|
||||
var deposits []*v1.Deposit
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
store := ctx.KVStore(q.storeKey)
|
||||
depositStore := prefix.NewStore(store, types.DepositsKey(req.ProposalId))
|
||||
|
||||
pageRes, err := query.Paginate(depositStore, req.Pagination, func(key []byte, value []byte) error {
|
||||
var deposit v1beta2.Deposit
|
||||
var deposit v1.Deposit
|
||||
if err := q.cdc.Unmarshal(value, &deposit); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -243,11 +243,11 @@ func (q Keeper) Deposits(c context.Context, req *v1beta2.QueryDepositsRequest) (
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
|
||||
return &v1beta2.QueryDepositsResponse{Deposits: deposits, Pagination: pageRes}, nil
|
||||
return &v1.QueryDepositsResponse{Deposits: deposits, Pagination: pageRes}, nil
|
||||
}
|
||||
|
||||
// TallyResult queries the tally of a proposal vote
|
||||
func (q Keeper) TallyResult(c context.Context, req *v1beta2.QueryTallyResultRequest) (*v1beta2.QueryTallyResultResponse, error) {
|
||||
func (q Keeper) TallyResult(c context.Context, req *v1.QueryTallyResultRequest) (*v1.QueryTallyResultResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
||||
}
|
||||
@ -263,13 +263,13 @@ func (q Keeper) TallyResult(c context.Context, req *v1beta2.QueryTallyResultRequ
|
||||
return nil, status.Errorf(codes.NotFound, "proposal %d doesn't exist", req.ProposalId)
|
||||
}
|
||||
|
||||
var tallyResult v1beta2.TallyResult
|
||||
var tallyResult v1.TallyResult
|
||||
|
||||
switch {
|
||||
case proposal.Status == v1beta2.StatusDepositPeriod:
|
||||
tallyResult = v1beta2.EmptyTallyResult()
|
||||
case proposal.Status == v1.StatusDepositPeriod:
|
||||
tallyResult = v1.EmptyTallyResult()
|
||||
|
||||
case proposal.Status == v1beta2.StatusPassed || proposal.Status == v1beta2.StatusRejected:
|
||||
case proposal.Status == v1.StatusPassed || proposal.Status == v1.StatusRejected:
|
||||
tallyResult = *proposal.FinalTallyResult
|
||||
|
||||
default:
|
||||
@ -277,7 +277,7 @@ func (q Keeper) TallyResult(c context.Context, req *v1beta2.QueryTallyResultRequ
|
||||
_, _, tallyResult = q.Tally(ctx, proposal)
|
||||
}
|
||||
|
||||
return &v1beta2.QueryTallyResultResponse{Tally: &tallyResult}, nil
|
||||
return &v1.QueryTallyResultResponse{Tally: &tallyResult}, nil
|
||||
}
|
||||
|
||||
var _ v1beta1.QueryServer = legacyQueryServer{}
|
||||
@ -291,7 +291,7 @@ func NewLegacyQueryServer(k Keeper) v1beta1.QueryServer {
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Proposal(c context.Context, req *v1beta1.QueryProposalRequest) (*v1beta1.QueryProposalResponse, error) {
|
||||
resp, err := q.keeper.Proposal(c, &v1beta2.QueryProposalRequest{
|
||||
resp, err := q.keeper.Proposal(c, &v1.QueryProposalRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
})
|
||||
if err != nil {
|
||||
@ -307,8 +307,8 @@ func (q legacyQueryServer) Proposal(c context.Context, req *v1beta1.QueryProposa
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Proposals(c context.Context, req *v1beta1.QueryProposalsRequest) (*v1beta1.QueryProposalsResponse, error) {
|
||||
resp, err := q.keeper.Proposals(c, &v1beta2.QueryProposalsRequest{
|
||||
ProposalStatus: v1beta2.ProposalStatus(req.ProposalStatus),
|
||||
resp, err := q.keeper.Proposals(c, &v1.QueryProposalsRequest{
|
||||
ProposalStatus: v1.ProposalStatus(req.ProposalStatus),
|
||||
Voter: req.Voter,
|
||||
Depositor: req.Depositor,
|
||||
Pagination: req.Pagination,
|
||||
@ -332,7 +332,7 @@ func (q legacyQueryServer) Proposals(c context.Context, req *v1beta1.QueryPropos
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Vote(c context.Context, req *v1beta1.QueryVoteRequest) (*v1beta1.QueryVoteResponse, error) {
|
||||
resp, err := q.keeper.Vote(c, &v1beta2.QueryVoteRequest{
|
||||
resp, err := q.keeper.Vote(c, &v1.QueryVoteRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
Voter: req.Voter,
|
||||
})
|
||||
@ -349,7 +349,7 @@ func (q legacyQueryServer) Vote(c context.Context, req *v1beta1.QueryVoteRequest
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Votes(c context.Context, req *v1beta1.QueryVotesRequest) (*v1beta1.QueryVotesResponse, error) {
|
||||
resp, err := q.keeper.Votes(c, &v1beta2.QueryVotesRequest{
|
||||
resp, err := q.keeper.Votes(c, &v1.QueryVotesRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
Pagination: req.Pagination,
|
||||
})
|
||||
@ -372,7 +372,7 @@ func (q legacyQueryServer) Votes(c context.Context, req *v1beta1.QueryVotesReque
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Params(c context.Context, req *v1beta1.QueryParamsRequest) (*v1beta1.QueryParamsResponse, error) {
|
||||
resp, err := q.keeper.Params(c, &v1beta2.QueryParamsRequest{
|
||||
resp, err := q.keeper.Params(c, &v1.QueryParamsRequest{
|
||||
ParamsType: req.ParamsType,
|
||||
})
|
||||
if err != nil {
|
||||
@ -411,7 +411,7 @@ func (q legacyQueryServer) Params(c context.Context, req *v1beta1.QueryParamsReq
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Deposit(c context.Context, req *v1beta1.QueryDepositRequest) (*v1beta1.QueryDepositResponse, error) {
|
||||
resp, err := q.keeper.Deposit(c, &v1beta2.QueryDepositRequest{
|
||||
resp, err := q.keeper.Deposit(c, &v1.QueryDepositRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
Depositor: req.Depositor,
|
||||
})
|
||||
@ -424,7 +424,7 @@ func (q legacyQueryServer) Deposit(c context.Context, req *v1beta1.QueryDepositR
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) Deposits(c context.Context, req *v1beta1.QueryDepositsRequest) (*v1beta1.QueryDepositsResponse, error) {
|
||||
resp, err := q.keeper.Deposits(c, &v1beta2.QueryDepositsRequest{
|
||||
resp, err := q.keeper.Deposits(c, &v1.QueryDepositsRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
Pagination: req.Pagination,
|
||||
})
|
||||
@ -440,7 +440,7 @@ func (q legacyQueryServer) Deposits(c context.Context, req *v1beta1.QueryDeposit
|
||||
}
|
||||
|
||||
func (q legacyQueryServer) TallyResult(c context.Context, req *v1beta1.QueryTallyResultRequest) (*v1beta1.QueryTallyResultResponse, error) {
|
||||
resp, err := q.keeper.TallyResult(c, &v1beta2.QueryTallyResultRequest{
|
||||
resp, err := q.keeper.TallyResult(c, &v1.QueryTallyResultRequest{
|
||||
ProposalId: req.ProposalId,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
@ -8,16 +8,16 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
v046 "github.com/cosmos/cosmos-sdk/x/gov/migrations/v046"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestGRPCQueryProposal() {
|
||||
app, ctx, queryClient := suite.app, suite.ctx, suite.queryClient
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryProposalRequest
|
||||
expProposal v1beta2.Proposal
|
||||
req *v1.QueryProposalRequest
|
||||
expProposal v1.Proposal
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -28,30 +28,30 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposal() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalRequest{}
|
||||
req = &v1.QueryProposalRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"non existing proposal request",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalRequest{ProposalId: 3}
|
||||
req = &v1.QueryProposalRequest{ProposalId: 3}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalRequest{ProposalId: 0}
|
||||
req = &v1.QueryProposalRequest{ProposalId: 0}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"valid request",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalRequest{ProposalId: 1}
|
||||
req = &v1.QueryProposalRequest{ProposalId: 1}
|
||||
testProposal := v1beta1.NewTextProposal("Proposal", "testing proposal")
|
||||
msgContent, err := v1beta2.NewLegacyContent(testProposal, govAcct.String())
|
||||
msgContent, err := v1.NewLegacyContent(testProposal, govAcct.String())
|
||||
suite.Require().NoError(err)
|
||||
submittedProposal, err := app.GovKeeper.SubmitProposal(ctx, []sdk.Msg{msgContent}, "")
|
||||
suite.Require().NoError(err)
|
||||
@ -125,7 +125,7 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryProposal() {
|
||||
func() {
|
||||
req = &v1beta1.QueryProposalRequest{ProposalId: 1}
|
||||
testProposal := v1beta1.NewTextProposal("Proposal", "testing proposal")
|
||||
msgContent, err := v1beta2.NewLegacyContent(testProposal, govAcct.String())
|
||||
msgContent, err := v1.NewLegacyContent(testProposal, govAcct.String())
|
||||
suite.Require().NoError(err)
|
||||
submittedProposal, err := app.GovKeeper.SubmitProposal(ctx, []sdk.Msg{msgContent}, "")
|
||||
suite.Require().NoError(err)
|
||||
@ -164,11 +164,11 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryProposal() {
|
||||
func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
app, ctx, queryClient, addrs := suite.app, suite.ctx, suite.queryClient, suite.addrs
|
||||
|
||||
testProposals := []*v1beta2.Proposal{}
|
||||
testProposals := []*v1.Proposal{}
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryProposalsRequest
|
||||
expRes *v1beta2.QueryProposalsResponse
|
||||
req *v1.QueryProposalsRequest
|
||||
expRes *v1.QueryProposalsResponse
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -179,7 +179,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
{
|
||||
"empty state request",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalsRequest{}
|
||||
req = &v1.QueryProposalsRequest{}
|
||||
},
|
||||
true,
|
||||
},
|
||||
@ -190,7 +190,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
for i := 0; i < 5; i++ {
|
||||
govAddress := app.GovKeeper.GetGovernanceAccount(suite.ctx).GetAddress()
|
||||
testProposal := []sdk.Msg{
|
||||
v1beta2.NewMsgVote(govAddress, uint64(i), v1beta2.OptionYes, ""),
|
||||
v1.NewMsgVote(govAddress, uint64(i), v1.OptionYes, ""),
|
||||
}
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, testProposal, "")
|
||||
suite.Require().NotEmpty(proposal)
|
||||
@ -198,11 +198,11 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
testProposals = append(testProposals, &proposal)
|
||||
}
|
||||
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
req = &v1.QueryProposalsRequest{
|
||||
Pagination: &query.PageRequest{Limit: 3},
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals[:3],
|
||||
}
|
||||
},
|
||||
@ -211,11 +211,11 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
{
|
||||
"request 2nd page with limit 4",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
req = &v1.QueryProposalsRequest{
|
||||
Pagination: &query.PageRequest{Offset: 3, Limit: 3},
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals[3:],
|
||||
}
|
||||
},
|
||||
@ -224,11 +224,11 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
{
|
||||
"request with limit 2 and count true",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
req = &v1.QueryProposalsRequest{
|
||||
Pagination: &query.PageRequest{Limit: 2, CountTotal: true},
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals[:2],
|
||||
}
|
||||
},
|
||||
@ -237,11 +237,11 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
{
|
||||
"request with filter of status deposit period",
|
||||
func() {
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
ProposalStatus: v1beta2.StatusDepositPeriod,
|
||||
req = &v1.QueryProposalsRequest{
|
||||
ProposalStatus: v1.StatusDepositPeriod,
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals,
|
||||
}
|
||||
},
|
||||
@ -251,14 +251,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
"request with filter of deposit address",
|
||||
func() {
|
||||
depositCoins := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 20)))
|
||||
deposit := v1beta2.NewDeposit(testProposals[0].Id, addrs[0], depositCoins)
|
||||
deposit := v1.NewDeposit(testProposals[0].Id, addrs[0], depositCoins)
|
||||
app.GovKeeper.SetDeposit(ctx, deposit)
|
||||
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
req = &v1.QueryProposalsRequest{
|
||||
Depositor: addrs[0].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals[:1],
|
||||
}
|
||||
},
|
||||
@ -267,15 +267,15 @@ func (suite *KeeperTestSuite) TestGRPCQueryProposals() {
|
||||
{
|
||||
"request with filter of deposit address",
|
||||
func() {
|
||||
testProposals[1].Status = v1beta2.StatusVotingPeriod
|
||||
testProposals[1].Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, *testProposals[1])
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, testProposals[1].Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, testProposals[1].Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), ""))
|
||||
|
||||
req = &v1beta2.QueryProposalsRequest{
|
||||
req = &v1.QueryProposalsRequest{
|
||||
Voter: addrs[0].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryProposalsResponse{
|
||||
expRes = &v1.QueryProposalsResponse{
|
||||
Proposals: testProposals[1:2],
|
||||
}
|
||||
},
|
||||
@ -316,9 +316,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryVote() {
|
||||
app, ctx, queryClient, addrs := suite.app, suite.ctx, suite.queryClient, suite.addrs
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryVoteRequest
|
||||
expRes *v1beta2.QueryVoteResponse
|
||||
proposal v1beta2.Proposal
|
||||
req *v1.QueryVoteRequest
|
||||
expRes *v1.QueryVoteResponse
|
||||
proposal v1.Proposal
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -329,14 +329,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryVote() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVoteRequest{}
|
||||
req = &v1.QueryVoteRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: 0,
|
||||
Voter: addrs[0].String(),
|
||||
}
|
||||
@ -346,7 +346,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryVote() {
|
||||
{
|
||||
"empty voter request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: 1,
|
||||
Voter: "",
|
||||
}
|
||||
@ -356,7 +356,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryVote() {
|
||||
{
|
||||
"non existed proposal",
|
||||
func() {
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: 3,
|
||||
Voter: addrs[0].String(),
|
||||
}
|
||||
@ -370,40 +370,40 @@ func (suite *KeeperTestSuite) TestGRPCQueryVote() {
|
||||
proposal, err = app.GovKeeper.SubmitProposal(ctx, TestProposal, "")
|
||||
suite.Require().NoError(err)
|
||||
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: proposal.Id,
|
||||
Voter: addrs[0].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryVoteResponse{}
|
||||
expRes = &v1.QueryVoteResponse{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"valid request",
|
||||
func() {
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), ""))
|
||||
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: proposal.Id,
|
||||
Voter: addrs[0].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryVoteResponse{Vote: &v1beta2.Vote{ProposalId: proposal.Id, Voter: addrs[0].String(), Options: []*v1beta2.WeightedVoteOption{{Option: v1beta2.OptionAbstain, Weight: sdk.MustNewDecFromStr("1.0").String()}}}}
|
||||
expRes = &v1.QueryVoteResponse{Vote: &v1.Vote{ProposalId: proposal.Id, Voter: addrs[0].String(), Options: []*v1.WeightedVoteOption{{Option: v1.OptionAbstain, Weight: sdk.MustNewDecFromStr("1.0").String()}}}}
|
||||
},
|
||||
true,
|
||||
},
|
||||
{
|
||||
"wrong voter id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVoteRequest{
|
||||
req = &v1.QueryVoteRequest{
|
||||
ProposalId: proposal.Id,
|
||||
Voter: addrs[1].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryVoteResponse{}
|
||||
expRes = &v1.QueryVoteResponse{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
@ -432,10 +432,10 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
addrs := simapp.AddTestAddrsIncremental(app, ctx, 2, sdk.NewInt(30000000))
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryVotesRequest
|
||||
expRes *v1beta2.QueryVotesResponse
|
||||
proposal v1beta2.Proposal
|
||||
votes v1beta2.Votes
|
||||
req *v1.QueryVotesRequest
|
||||
expRes *v1.QueryVotesResponse
|
||||
proposal v1.Proposal
|
||||
votes v1.Votes
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -446,14 +446,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVotesRequest{}
|
||||
req = &v1.QueryVotesRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryVotesRequest{
|
||||
req = &v1.QueryVotesRequest{
|
||||
ProposalId: 0,
|
||||
}
|
||||
},
|
||||
@ -462,7 +462,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
{
|
||||
"non existed proposals",
|
||||
func() {
|
||||
req = &v1beta2.QueryVotesRequest{
|
||||
req = &v1.QueryVotesRequest{
|
||||
ProposalId: 2,
|
||||
}
|
||||
},
|
||||
@ -475,7 +475,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
proposal, err = app.GovKeeper.SubmitProposal(ctx, TestProposal, "")
|
||||
suite.Require().NoError(err)
|
||||
|
||||
req = &v1beta2.QueryVotesRequest{
|
||||
req = &v1.QueryVotesRequest{
|
||||
ProposalId: proposal.Id,
|
||||
}
|
||||
},
|
||||
@ -484,12 +484,12 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
{
|
||||
"request after adding 2 votes",
|
||||
func() {
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
votes = []*v1beta2.Vote{
|
||||
{ProposalId: proposal.Id, Voter: addrs[0].String(), Options: v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain)},
|
||||
{ProposalId: proposal.Id, Voter: addrs[1].String(), Options: v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes)},
|
||||
votes = []*v1.Vote{
|
||||
{ProposalId: proposal.Id, Voter: addrs[0].String(), Options: v1.NewNonSplitVoteOption(v1.OptionAbstain)},
|
||||
{ProposalId: proposal.Id, Voter: addrs[1].String(), Options: v1.NewNonSplitVoteOption(v1.OptionYes)},
|
||||
}
|
||||
accAddr1, err1 := sdk.AccAddressFromBech32(votes[0].Voter)
|
||||
accAddr2, err2 := sdk.AccAddressFromBech32(votes[1].Voter)
|
||||
@ -498,11 +498,11 @@ func (suite *KeeperTestSuite) TestGRPCQueryVotes() {
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr1, votes[0].Options, ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr2, votes[1].Options, ""))
|
||||
|
||||
req = &v1beta2.QueryVotesRequest{
|
||||
req = &v1.QueryVotesRequest{
|
||||
ProposalId: proposal.Id,
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryVotesResponse{
|
||||
expRes = &v1.QueryVotesResponse{
|
||||
Votes: votes,
|
||||
}
|
||||
},
|
||||
@ -535,7 +535,7 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryVotes() {
|
||||
var (
|
||||
req *v1beta1.QueryVotesRequest
|
||||
expRes *v1beta1.QueryVotesResponse
|
||||
proposal v1beta2.Proposal
|
||||
proposal v1.Proposal
|
||||
votes v1beta1.Votes
|
||||
)
|
||||
|
||||
@ -585,7 +585,7 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryVotes() {
|
||||
{
|
||||
"request after adding 2 votes",
|
||||
func() {
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
votes = []v1beta1.Vote{
|
||||
@ -596,8 +596,8 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryVotes() {
|
||||
accAddr2, err2 := sdk.AccAddressFromBech32(votes[1].Voter)
|
||||
suite.Require().NoError(err1)
|
||||
suite.Require().NoError(err2)
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr2, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr1, v1.NewNonSplitVoteOption(v1.OptionAbstain), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, accAddr2, v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
req = &v1beta1.QueryVotesRequest{
|
||||
ProposalId: proposal.Id,
|
||||
@ -632,8 +632,8 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
||||
queryClient := suite.queryClient
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryParamsRequest
|
||||
expRes *v1beta2.QueryParamsResponse
|
||||
req *v1.QueryParamsRequest
|
||||
expRes *v1.QueryParamsResponse
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -644,16 +644,16 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryParamsRequest{}
|
||||
req = &v1.QueryParamsRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"deposit params request",
|
||||
func() {
|
||||
req = &v1beta2.QueryParamsRequest{ParamsType: v1beta2.ParamDeposit}
|
||||
depositParams := v1beta2.DefaultDepositParams()
|
||||
expRes = &v1beta2.QueryParamsResponse{
|
||||
req = &v1.QueryParamsRequest{ParamsType: v1.ParamDeposit}
|
||||
depositParams := v1.DefaultDepositParams()
|
||||
expRes = &v1.QueryParamsResponse{
|
||||
DepositParams: &depositParams,
|
||||
}
|
||||
},
|
||||
@ -662,9 +662,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
||||
{
|
||||
"voting params request",
|
||||
func() {
|
||||
req = &v1beta2.QueryParamsRequest{ParamsType: v1beta2.ParamVoting}
|
||||
votingParams := v1beta2.DefaultVotingParams()
|
||||
expRes = &v1beta2.QueryParamsResponse{
|
||||
req = &v1.QueryParamsRequest{ParamsType: v1.ParamVoting}
|
||||
votingParams := v1.DefaultVotingParams()
|
||||
expRes = &v1.QueryParamsResponse{
|
||||
VotingParams: &votingParams,
|
||||
}
|
||||
},
|
||||
@ -673,9 +673,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
||||
{
|
||||
"tally params request",
|
||||
func() {
|
||||
req = &v1beta2.QueryParamsRequest{ParamsType: v1beta2.ParamTallying}
|
||||
tallyParams := v1beta2.DefaultTallyParams()
|
||||
expRes = &v1beta2.QueryParamsResponse{
|
||||
req = &v1.QueryParamsRequest{ParamsType: v1.ParamTallying}
|
||||
tallyParams := v1.DefaultTallyParams()
|
||||
expRes = &v1.QueryParamsResponse{
|
||||
TallyParams: &tallyParams,
|
||||
}
|
||||
},
|
||||
@ -684,8 +684,8 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
||||
{
|
||||
"invalid request",
|
||||
func() {
|
||||
req = &v1beta2.QueryParamsRequest{ParamsType: "wrongPath"}
|
||||
expRes = &v1beta2.QueryParamsResponse{}
|
||||
req = &v1.QueryParamsRequest{ParamsType: "wrongPath"}
|
||||
expRes = &v1.QueryParamsResponse{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
@ -804,9 +804,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
app, ctx, queryClient, addrs := suite.app, suite.ctx, suite.queryClient, suite.addrs
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryDepositRequest
|
||||
expRes *v1beta2.QueryDepositResponse
|
||||
proposal v1beta2.Proposal
|
||||
req *v1.QueryDepositRequest
|
||||
expRes *v1.QueryDepositResponse
|
||||
proposal v1.Proposal
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -817,14 +817,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositRequest{}
|
||||
req = &v1.QueryDepositRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositRequest{
|
||||
req = &v1.QueryDepositRequest{
|
||||
ProposalId: 0,
|
||||
Depositor: addrs[0].String(),
|
||||
}
|
||||
@ -834,7 +834,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
{
|
||||
"empty deposit address request",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositRequest{
|
||||
req = &v1.QueryDepositRequest{
|
||||
ProposalId: 1,
|
||||
Depositor: "",
|
||||
}
|
||||
@ -844,7 +844,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
{
|
||||
"non existed proposal",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositRequest{
|
||||
req = &v1.QueryDepositRequest{
|
||||
ProposalId: 2,
|
||||
Depositor: addrs[0].String(),
|
||||
}
|
||||
@ -859,7 +859,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
suite.Require().NoError(err)
|
||||
suite.Require().NotNil(proposal)
|
||||
|
||||
req = &v1beta2.QueryDepositRequest{
|
||||
req = &v1.QueryDepositRequest{
|
||||
ProposalId: proposal.Id,
|
||||
Depositor: addrs[0].String(),
|
||||
}
|
||||
@ -870,15 +870,15 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
|
||||
"valid request",
|
||||
func() {
|
||||
depositCoins := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 20)))
|
||||
deposit := v1beta2.NewDeposit(proposal.Id, addrs[0], depositCoins)
|
||||
deposit := v1.NewDeposit(proposal.Id, addrs[0], depositCoins)
|
||||
app.GovKeeper.SetDeposit(ctx, deposit)
|
||||
|
||||
req = &v1beta2.QueryDepositRequest{
|
||||
req = &v1.QueryDepositRequest{
|
||||
ProposalId: proposal.Id,
|
||||
Depositor: addrs[0].String(),
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryDepositResponse{Deposit: &deposit}
|
||||
expRes = &v1.QueryDepositResponse{Deposit: &deposit}
|
||||
},
|
||||
true,
|
||||
},
|
||||
@ -905,9 +905,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposits() {
|
||||
app, ctx, queryClient, addrs := suite.app, suite.ctx, suite.queryClient, suite.addrs
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryDepositsRequest
|
||||
expRes *v1beta2.QueryDepositsResponse
|
||||
proposal v1beta2.Proposal
|
||||
req *v1.QueryDepositsRequest
|
||||
expRes *v1.QueryDepositsResponse
|
||||
proposal v1.Proposal
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -918,14 +918,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposits() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositsRequest{}
|
||||
req = &v1.QueryDepositsRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositsRequest{
|
||||
req = &v1.QueryDepositsRequest{
|
||||
ProposalId: 0,
|
||||
}
|
||||
},
|
||||
@ -934,7 +934,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposits() {
|
||||
{
|
||||
"non existed proposal",
|
||||
func() {
|
||||
req = &v1beta2.QueryDepositsRequest{
|
||||
req = &v1.QueryDepositsRequest{
|
||||
ProposalId: 2,
|
||||
}
|
||||
},
|
||||
@ -947,7 +947,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposits() {
|
||||
proposal, err = app.GovKeeper.SubmitProposal(ctx, TestProposal, "")
|
||||
suite.Require().NoError(err)
|
||||
|
||||
req = &v1beta2.QueryDepositsRequest{
|
||||
req = &v1.QueryDepositsRequest{
|
||||
ProposalId: proposal.Id,
|
||||
}
|
||||
},
|
||||
@ -957,20 +957,20 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposits() {
|
||||
"get deposits with default limit",
|
||||
func() {
|
||||
depositAmount1 := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 20)))
|
||||
deposit1 := v1beta2.NewDeposit(proposal.Id, addrs[0], depositAmount1)
|
||||
deposit1 := v1.NewDeposit(proposal.Id, addrs[0], depositAmount1)
|
||||
app.GovKeeper.SetDeposit(ctx, deposit1)
|
||||
|
||||
depositAmount2 := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 30)))
|
||||
deposit2 := v1beta2.NewDeposit(proposal.Id, addrs[1], depositAmount2)
|
||||
deposit2 := v1.NewDeposit(proposal.Id, addrs[1], depositAmount2)
|
||||
app.GovKeeper.SetDeposit(ctx, deposit2)
|
||||
|
||||
deposits := v1beta2.Deposits{&deposit1, &deposit2}
|
||||
deposits := v1.Deposits{&deposit1, &deposit2}
|
||||
|
||||
req = &v1beta2.QueryDepositsRequest{
|
||||
req = &v1.QueryDepositsRequest{
|
||||
ProposalId: proposal.Id,
|
||||
}
|
||||
|
||||
expRes = &v1beta2.QueryDepositsResponse{
|
||||
expRes = &v1.QueryDepositsResponse{
|
||||
Deposits: deposits,
|
||||
}
|
||||
},
|
||||
@ -1001,9 +1001,9 @@ func (suite *KeeperTestSuite) TestGRPCQueryTally() {
|
||||
addrs, _ := createValidators(suite.T(), ctx, app, []int64{5, 5, 5})
|
||||
|
||||
var (
|
||||
req *v1beta2.QueryTallyResultRequest
|
||||
expRes *v1beta2.QueryTallyResultResponse
|
||||
proposal v1beta2.Proposal
|
||||
req *v1.QueryTallyResultRequest
|
||||
expRes *v1.QueryTallyResultResponse
|
||||
proposal v1.Proposal
|
||||
)
|
||||
|
||||
testCases := []struct {
|
||||
@ -1014,21 +1014,21 @@ func (suite *KeeperTestSuite) TestGRPCQueryTally() {
|
||||
{
|
||||
"empty request",
|
||||
func() {
|
||||
req = &v1beta2.QueryTallyResultRequest{}
|
||||
req = &v1.QueryTallyResultRequest{}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"zero proposal id request",
|
||||
func() {
|
||||
req = &v1beta2.QueryTallyResultRequest{ProposalId: 0}
|
||||
req = &v1.QueryTallyResultRequest{ProposalId: 0}
|
||||
},
|
||||
false,
|
||||
},
|
||||
{
|
||||
"query non existed proposal",
|
||||
func() {
|
||||
req = &v1beta2.QueryTallyResultRequest{ProposalId: 1}
|
||||
req = &v1.QueryTallyResultRequest{ProposalId: 1}
|
||||
},
|
||||
false,
|
||||
},
|
||||
@ -1040,10 +1040,10 @@ func (suite *KeeperTestSuite) TestGRPCQueryTally() {
|
||||
suite.Require().NoError(err)
|
||||
suite.Require().NotNil(proposal)
|
||||
|
||||
req = &v1beta2.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
req = &v1.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
|
||||
tallyResult := v1beta2.EmptyTallyResult()
|
||||
expRes = &v1beta2.QueryTallyResultResponse{
|
||||
tallyResult := v1.EmptyTallyResult()
|
||||
expRes = &v1.QueryTallyResultResponse{
|
||||
Tally: &tallyResult,
|
||||
}
|
||||
},
|
||||
@ -1052,17 +1052,17 @@ func (suite *KeeperTestSuite) TestGRPCQueryTally() {
|
||||
{
|
||||
"request tally after few votes",
|
||||
func() {
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
suite.Require().NoError(app.GovKeeper.AddVote(ctx, proposal.Id, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
req = &v1beta2.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
req = &v1.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
|
||||
expRes = &v1beta2.QueryTallyResultResponse{
|
||||
Tally: &v1beta2.TallyResult{
|
||||
expRes = &v1.QueryTallyResultResponse{
|
||||
Tally: &v1.TallyResult{
|
||||
YesCount: sdk.NewInt(3 * 5 * 1000000).String(),
|
||||
NoCount: "0",
|
||||
AbstainCount: "0",
|
||||
@ -1075,13 +1075,13 @@ func (suite *KeeperTestSuite) TestGRPCQueryTally() {
|
||||
{
|
||||
"request final tally after status changed",
|
||||
func() {
|
||||
proposal.Status = v1beta2.StatusPassed
|
||||
proposal.Status = v1.StatusPassed
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
proposal, _ = app.GovKeeper.GetProposal(ctx, proposal.Id)
|
||||
|
||||
req = &v1beta2.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
req = &v1.QueryTallyResultRequest{ProposalId: proposal.Id}
|
||||
|
||||
expRes = &v1beta2.QueryTallyResultResponse{
|
||||
expRes = &v1.QueryTallyResultResponse{
|
||||
Tally: proposal.FinalTallyResult,
|
||||
}
|
||||
},
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/gov"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
var _ types.GovHooks = &MockGovHooksReceiver{}
|
||||
@ -83,7 +83,7 @@ func TestHooks(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.True(t, govHooksReceiver.AfterProposalDepositValid)
|
||||
|
||||
err = app.GovKeeper.AddVote(ctx, p2.Id, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
err = app.GovKeeper.AddVote(ctx, p2.Id, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
require.NoError(t, err)
|
||||
require.True(t, govHooksReceiver.AfterProposalVoteValid)
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// RegisterInvariants registers all governance invariants
|
||||
@ -28,7 +28,7 @@ func ModuleAccountInvariant(keeper Keeper, bk types.BankKeeper) sdk.Invariant {
|
||||
return func(ctx sdk.Context) (string, bool) {
|
||||
var expectedDeposits sdk.Coins
|
||||
|
||||
keeper.IterateAllDeposits(ctx, func(deposit v1beta2.Deposit) bool {
|
||||
keeper.IterateAllDeposits(ctx, func(deposit v1.Deposit) bool {
|
||||
expectedDeposits = expectedDeposits.Add(deposit.Amount...)
|
||||
return false
|
||||
})
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/middleware"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
// Keeper defines the governance module Keeper
|
||||
@ -150,7 +150,7 @@ func (keeper Keeper) RemoveFromInactiveProposalQueue(ctx sdk.Context, proposalID
|
||||
|
||||
// IterateActiveProposalsQueue iterates over the proposals in the active proposal queue
|
||||
// and performs a callback function
|
||||
func (keeper Keeper) IterateActiveProposalsQueue(ctx sdk.Context, endTime time.Time, cb func(proposal v1beta2.Proposal) (stop bool)) {
|
||||
func (keeper Keeper) IterateActiveProposalsQueue(ctx sdk.Context, endTime time.Time, cb func(proposal v1.Proposal) (stop bool)) {
|
||||
iterator := keeper.ActiveProposalQueueIterator(ctx, endTime)
|
||||
|
||||
defer iterator.Close()
|
||||
@ -169,7 +169,7 @@ func (keeper Keeper) IterateActiveProposalsQueue(ctx sdk.Context, endTime time.T
|
||||
|
||||
// IterateInactiveProposalsQueue iterates over the proposals in the inactive proposal queue
|
||||
// and performs a callback function
|
||||
func (keeper Keeper) IterateInactiveProposalsQueue(ctx sdk.Context, endTime time.Time, cb func(proposal v1beta2.Proposal) (stop bool)) {
|
||||
func (keeper Keeper) IterateInactiveProposalsQueue(ctx sdk.Context, endTime time.Time, cb func(proposal v1.Proposal) (stop bool)) {
|
||||
iterator := keeper.InactiveProposalQueueIterator(ctx, endTime)
|
||||
|
||||
defer iterator.Close()
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
|
||||
)
|
||||
|
||||
@ -22,7 +22,7 @@ type KeeperTestSuite struct {
|
||||
|
||||
app *simapp.SimApp
|
||||
ctx sdk.Context
|
||||
queryClient v1beta2.QueryClient
|
||||
queryClient v1.QueryClient
|
||||
legacyQueryClient v1beta1.QueryClient
|
||||
addrs []sdk.AccAddress
|
||||
}
|
||||
@ -40,10 +40,10 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
suite.NoError(err)
|
||||
|
||||
queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry())
|
||||
v1beta2.RegisterQueryServer(queryHelper, app.GovKeeper)
|
||||
v1.RegisterQueryServer(queryHelper, app.GovKeeper)
|
||||
legacyQueryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry())
|
||||
v1beta1.RegisterQueryServer(legacyQueryHelper, keeper.NewLegacyQueryServer(app.GovKeeper))
|
||||
queryClient := v1beta2.NewQueryClient(queryHelper)
|
||||
queryClient := v1.NewQueryClient(queryHelper)
|
||||
legacyQueryClient := v1beta1.NewQueryClient(legacyQueryHelper)
|
||||
|
||||
suite.app = app
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
type msgServer struct {
|
||||
@ -22,13 +22,13 @@ type msgServer struct {
|
||||
|
||||
// NewMsgServerImpl returns an implementation of the gov MsgServer interface
|
||||
// for the provided Keeper.
|
||||
func NewMsgServerImpl(keeper Keeper) v1beta2.MsgServer {
|
||||
func NewMsgServerImpl(keeper Keeper) v1.MsgServer {
|
||||
return &msgServer{Keeper: keeper}
|
||||
}
|
||||
|
||||
var _ v1beta2.MsgServer = msgServer{}
|
||||
var _ v1.MsgServer = msgServer{}
|
||||
|
||||
func (k msgServer) SubmitProposal(goCtx context.Context, msg *v1beta2.MsgSubmitProposal) (*v1beta2.MsgSubmitProposalResponse, error) {
|
||||
func (k msgServer) SubmitProposal(goCtx context.Context, msg *v1.MsgSubmitProposal) (*v1.MsgSubmitProposalResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
proposalMsgs, err := msg.GetMsgs()
|
||||
@ -76,12 +76,12 @@ func (k msgServer) SubmitProposal(goCtx context.Context, msg *v1beta2.MsgSubmitP
|
||||
ctx.EventManager().EmitEvent(submitEvent)
|
||||
}
|
||||
|
||||
return &v1beta2.MsgSubmitProposalResponse{
|
||||
return &v1.MsgSubmitProposalResponse{
|
||||
ProposalId: proposal.Id,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (k msgServer) ExecLegacyContent(goCtx context.Context, msg *v1beta2.MsgExecLegacyContent) (*v1beta2.MsgExecLegacyContentResponse, error) {
|
||||
func (k msgServer) ExecLegacyContent(goCtx context.Context, msg *v1.MsgExecLegacyContent) (*v1.MsgExecLegacyContentResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
govAcct := k.GetGovernanceAccount(ctx).GetAddress().String()
|
||||
@ -89,7 +89,7 @@ func (k msgServer) ExecLegacyContent(goCtx context.Context, msg *v1beta2.MsgExec
|
||||
return nil, sdkerrors.Wrapf(types.ErrInvalidSigner, "expected %s got %s", govAcct, msg.Authority)
|
||||
}
|
||||
|
||||
content, err := v1beta2.LegacyContentFromMessage(msg)
|
||||
content, err := v1.LegacyContentFromMessage(msg)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrapf(types.ErrInvalidProposalContent, "%+v", err)
|
||||
}
|
||||
@ -104,17 +104,17 @@ func (k msgServer) ExecLegacyContent(goCtx context.Context, msg *v1beta2.MsgExec
|
||||
return nil, sdkerrors.Wrapf(types.ErrInvalidProposalContent, "failed to run legacy handler %s, %+v", content.ProposalRoute(), err)
|
||||
}
|
||||
|
||||
return &v1beta2.MsgExecLegacyContentResponse{}, nil
|
||||
return &v1.MsgExecLegacyContentResponse{}, nil
|
||||
|
||||
}
|
||||
|
||||
func (k msgServer) Vote(goCtx context.Context, msg *v1beta2.MsgVote) (*v1beta2.MsgVoteResponse, error) {
|
||||
func (k msgServer) Vote(goCtx context.Context, msg *v1.MsgVote) (*v1.MsgVoteResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
accAddr, accErr := sdk.AccAddressFromBech32(msg.Voter)
|
||||
if accErr != nil {
|
||||
return nil, accErr
|
||||
}
|
||||
err := k.Keeper.AddVote(ctx, msg.ProposalId, accAddr, v1beta2.NewNonSplitVoteOption(msg.Option), msg.Metadata)
|
||||
err := k.Keeper.AddVote(ctx, msg.ProposalId, accAddr, v1.NewNonSplitVoteOption(msg.Option), msg.Metadata)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -135,10 +135,10 @@ func (k msgServer) Vote(goCtx context.Context, msg *v1beta2.MsgVote) (*v1beta2.M
|
||||
),
|
||||
)
|
||||
|
||||
return &v1beta2.MsgVoteResponse{}, nil
|
||||
return &v1.MsgVoteResponse{}, nil
|
||||
}
|
||||
|
||||
func (k msgServer) VoteWeighted(goCtx context.Context, msg *v1beta2.MsgVoteWeighted) (*v1beta2.MsgVoteWeightedResponse, error) {
|
||||
func (k msgServer) VoteWeighted(goCtx context.Context, msg *v1.MsgVoteWeighted) (*v1.MsgVoteWeightedResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
accAddr, accErr := sdk.AccAddressFromBech32(msg.Voter)
|
||||
if accErr != nil {
|
||||
@ -165,10 +165,10 @@ func (k msgServer) VoteWeighted(goCtx context.Context, msg *v1beta2.MsgVoteWeigh
|
||||
),
|
||||
)
|
||||
|
||||
return &v1beta2.MsgVoteWeightedResponse{}, nil
|
||||
return &v1.MsgVoteWeightedResponse{}, nil
|
||||
}
|
||||
|
||||
func (k msgServer) Deposit(goCtx context.Context, msg *v1beta2.MsgDeposit) (*v1beta2.MsgDepositResponse, error) {
|
||||
func (k msgServer) Deposit(goCtx context.Context, msg *v1.MsgDeposit) (*v1.MsgDepositResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
accAddr, err := sdk.AccAddressFromBech32(msg.Depositor)
|
||||
if err != nil {
|
||||
@ -204,29 +204,29 @@ func (k msgServer) Deposit(goCtx context.Context, msg *v1beta2.MsgDeposit) (*v1b
|
||||
)
|
||||
}
|
||||
|
||||
return &v1beta2.MsgDepositResponse{}, nil
|
||||
return &v1.MsgDepositResponse{}, nil
|
||||
}
|
||||
|
||||
type legacyMsgServer struct {
|
||||
govAcct string
|
||||
server v1beta2.MsgServer
|
||||
server v1.MsgServer
|
||||
}
|
||||
|
||||
// NewLegacyMsgServerImpl returns an implementation of the v1beta1 legacy MsgServer interface. It wraps around
|
||||
// the current MsgServer
|
||||
func NewLegacyMsgServerImpl(govAcct string, v1beta2Server v1beta2.MsgServer) v1beta1.MsgServer {
|
||||
return &legacyMsgServer{govAcct: govAcct, server: v1beta2Server}
|
||||
func NewLegacyMsgServerImpl(govAcct string, v1Server v1.MsgServer) v1beta1.MsgServer {
|
||||
return &legacyMsgServer{govAcct: govAcct, server: v1Server}
|
||||
}
|
||||
|
||||
var _ v1beta1.MsgServer = legacyMsgServer{}
|
||||
|
||||
func (k legacyMsgServer) SubmitProposal(goCtx context.Context, msg *v1beta1.MsgSubmitProposal) (*v1beta1.MsgSubmitProposalResponse, error) {
|
||||
contentMsg, err := v1beta2.NewLegacyContent(msg.GetContent(), k.govAcct)
|
||||
contentMsg, err := v1.NewLegacyContent(msg.GetContent(), k.govAcct)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error converting legacy content into proposal message: %w", err)
|
||||
}
|
||||
|
||||
proposal, err := v1beta2.NewMsgSubmitProposal(
|
||||
proposal, err := v1.NewMsgSubmitProposal(
|
||||
[]sdk.Msg{contentMsg},
|
||||
msg.InitialDeposit,
|
||||
msg.Proposer,
|
||||
@ -245,10 +245,10 @@ func (k legacyMsgServer) SubmitProposal(goCtx context.Context, msg *v1beta1.MsgS
|
||||
}
|
||||
|
||||
func (k legacyMsgServer) Vote(goCtx context.Context, msg *v1beta1.MsgVote) (*v1beta1.MsgVoteResponse, error) {
|
||||
_, err := k.server.Vote(goCtx, &v1beta2.MsgVote{
|
||||
_, err := k.server.Vote(goCtx, &v1.MsgVote{
|
||||
ProposalId: msg.ProposalId,
|
||||
Voter: msg.Voter,
|
||||
Option: v1beta2.VoteOption(msg.Option),
|
||||
Option: v1.VoteOption(msg.Option),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -257,15 +257,15 @@ func (k legacyMsgServer) Vote(goCtx context.Context, msg *v1beta1.MsgVote) (*v1b
|
||||
}
|
||||
|
||||
func (k legacyMsgServer) VoteWeighted(goCtx context.Context, msg *v1beta1.MsgVoteWeighted) (*v1beta1.MsgVoteWeightedResponse, error) {
|
||||
opts := make([]*v1beta2.WeightedVoteOption, len(msg.Options))
|
||||
opts := make([]*v1.WeightedVoteOption, len(msg.Options))
|
||||
for idx, opt := range msg.Options {
|
||||
opts[idx] = &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.VoteOption(opt.Option),
|
||||
opts[idx] = &v1.WeightedVoteOption{
|
||||
Option: v1.VoteOption(opt.Option),
|
||||
Weight: opt.Weight.String(),
|
||||
}
|
||||
}
|
||||
|
||||
_, err := k.server.VoteWeighted(goCtx, &v1beta2.MsgVoteWeighted{
|
||||
_, err := k.server.VoteWeighted(goCtx, &v1.MsgVoteWeighted{
|
||||
ProposalId: msg.ProposalId,
|
||||
Voter: msg.Voter,
|
||||
Options: opts,
|
||||
@ -277,7 +277,7 @@ func (k legacyMsgServer) VoteWeighted(goCtx context.Context, msg *v1beta1.MsgVot
|
||||
}
|
||||
|
||||
func (k legacyMsgServer) Deposit(goCtx context.Context, msg *v1beta1.MsgDeposit) (*v1beta1.MsgDepositResponse, error) {
|
||||
_, err := k.server.Deposit(goCtx, &v1beta2.MsgDeposit{
|
||||
_, err := k.server.Deposit(goCtx, &v1.MsgDeposit{
|
||||
ProposalId: msg.ProposalId,
|
||||
Depositor: msg.Depositor,
|
||||
Amount: msg.Amount,
|
||||
|
||||
@ -2,41 +2,41 @@ package keeper
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// GetDepositParams returns the current DepositParams from the global param store
|
||||
func (keeper Keeper) GetDepositParams(ctx sdk.Context) v1beta2.DepositParams {
|
||||
var depositParams v1beta2.DepositParams
|
||||
keeper.paramSpace.Get(ctx, v1beta2.ParamStoreKeyDepositParams, &depositParams)
|
||||
func (keeper Keeper) GetDepositParams(ctx sdk.Context) v1.DepositParams {
|
||||
var depositParams v1.DepositParams
|
||||
keeper.paramSpace.Get(ctx, v1.ParamStoreKeyDepositParams, &depositParams)
|
||||
return depositParams
|
||||
}
|
||||
|
||||
// GetVotingParams returns the current VotingParams from the global param store
|
||||
func (keeper Keeper) GetVotingParams(ctx sdk.Context) v1beta2.VotingParams {
|
||||
var votingParams v1beta2.VotingParams
|
||||
keeper.paramSpace.Get(ctx, v1beta2.ParamStoreKeyVotingParams, &votingParams)
|
||||
func (keeper Keeper) GetVotingParams(ctx sdk.Context) v1.VotingParams {
|
||||
var votingParams v1.VotingParams
|
||||
keeper.paramSpace.Get(ctx, v1.ParamStoreKeyVotingParams, &votingParams)
|
||||
return votingParams
|
||||
}
|
||||
|
||||
// GetTallyParams returns the current TallyParam from the global param store
|
||||
func (keeper Keeper) GetTallyParams(ctx sdk.Context) v1beta2.TallyParams {
|
||||
var tallyParams v1beta2.TallyParams
|
||||
keeper.paramSpace.Get(ctx, v1beta2.ParamStoreKeyTallyParams, &tallyParams)
|
||||
func (keeper Keeper) GetTallyParams(ctx sdk.Context) v1.TallyParams {
|
||||
var tallyParams v1.TallyParams
|
||||
keeper.paramSpace.Get(ctx, v1.ParamStoreKeyTallyParams, &tallyParams)
|
||||
return tallyParams
|
||||
}
|
||||
|
||||
// SetDepositParams sets DepositParams to the global param store
|
||||
func (keeper Keeper) SetDepositParams(ctx sdk.Context, depositParams v1beta2.DepositParams) {
|
||||
keeper.paramSpace.Set(ctx, v1beta2.ParamStoreKeyDepositParams, &depositParams)
|
||||
func (keeper Keeper) SetDepositParams(ctx sdk.Context, depositParams v1.DepositParams) {
|
||||
keeper.paramSpace.Set(ctx, v1.ParamStoreKeyDepositParams, &depositParams)
|
||||
}
|
||||
|
||||
// SetVotingParams sets VotingParams to the global param store
|
||||
func (keeper Keeper) SetVotingParams(ctx sdk.Context, votingParams v1beta2.VotingParams) {
|
||||
keeper.paramSpace.Set(ctx, v1beta2.ParamStoreKeyVotingParams, &votingParams)
|
||||
func (keeper Keeper) SetVotingParams(ctx sdk.Context, votingParams v1.VotingParams) {
|
||||
keeper.paramSpace.Set(ctx, v1.ParamStoreKeyVotingParams, &votingParams)
|
||||
}
|
||||
|
||||
// SetTallyParams sets TallyParams to the global param store
|
||||
func (keeper Keeper) SetTallyParams(ctx sdk.Context, tallyParams v1beta2.TallyParams) {
|
||||
keeper.paramSpace.Set(ctx, v1beta2.ParamStoreKeyTallyParams, &tallyParams)
|
||||
func (keeper Keeper) SetTallyParams(ctx sdk.Context, tallyParams v1.TallyParams) {
|
||||
keeper.paramSpace.Set(ctx, v1.ParamStoreKeyTallyParams, &tallyParams)
|
||||
}
|
||||
|
||||
@ -7,14 +7,14 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// SubmitProposal create new proposal given an array of messages
|
||||
func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadata string) (v1beta2.Proposal, error) {
|
||||
func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadata string) (v1.Proposal, error) {
|
||||
err := keeper.assertMetadataLength(metadata)
|
||||
if err != nil {
|
||||
return v1beta2.Proposal{}, err
|
||||
return v1.Proposal{}, err
|
||||
}
|
||||
|
||||
// Will hold a comma-separated string of all Msg type URLs.
|
||||
@ -27,23 +27,23 @@ func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadat
|
||||
|
||||
// perform a basic validation of the message
|
||||
if err := msg.ValidateBasic(); err != nil {
|
||||
return v1beta2.Proposal{}, sdkerrors.Wrap(types.ErrInvalidProposalMsg, err.Error())
|
||||
return v1.Proposal{}, sdkerrors.Wrap(types.ErrInvalidProposalMsg, err.Error())
|
||||
}
|
||||
|
||||
signers := msg.GetSigners()
|
||||
if len(signers) != 1 {
|
||||
return v1beta2.Proposal{}, types.ErrInvalidSigner
|
||||
return v1.Proposal{}, types.ErrInvalidSigner
|
||||
}
|
||||
|
||||
// assert that the governance module account is the only signer of the messages
|
||||
if !signers[0].Equals(keeper.GetGovernanceAccount(ctx).GetAddress()) {
|
||||
return v1beta2.Proposal{}, sdkerrors.Wrapf(types.ErrInvalidSigner, signers[0].String())
|
||||
return v1.Proposal{}, sdkerrors.Wrapf(types.ErrInvalidSigner, signers[0].String())
|
||||
}
|
||||
|
||||
// use the msg service router to see that there is a valid route for that message.
|
||||
handler := keeper.router.Handler(msg)
|
||||
if handler == nil {
|
||||
return v1beta2.Proposal{}, sdkerrors.Wrap(types.ErrUnroutableProposalMsg, sdk.MsgTypeURL(msg))
|
||||
return v1.Proposal{}, sdkerrors.Wrap(types.ErrUnroutableProposalMsg, sdk.MsgTypeURL(msg))
|
||||
}
|
||||
|
||||
// Only if it's a MsgExecLegacyContent do we try to execute the
|
||||
@ -51,10 +51,10 @@ func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadat
|
||||
// For other Msgs, we do not verify the proposal messages any further.
|
||||
// They may fail upon execution.
|
||||
// ref: https://github.com/cosmos/cosmos-sdk/pull/10868#discussion_r784872842
|
||||
if msg, ok := msg.(*v1beta2.MsgExecLegacyContent); ok {
|
||||
if msg, ok := msg.(*v1.MsgExecLegacyContent); ok {
|
||||
cacheCtx, _ := ctx.CacheContext()
|
||||
if _, err := handler(cacheCtx, msg); err != nil {
|
||||
return v1beta2.Proposal{}, sdkerrors.Wrap(types.ErrNoProposalHandlerExists, err.Error())
|
||||
return v1.Proposal{}, sdkerrors.Wrap(types.ErrNoProposalHandlerExists, err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,15 +62,15 @@ func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadat
|
||||
|
||||
proposalID, err := keeper.GetProposalID(ctx)
|
||||
if err != nil {
|
||||
return v1beta2.Proposal{}, err
|
||||
return v1.Proposal{}, err
|
||||
}
|
||||
|
||||
submitTime := ctx.BlockHeader().Time
|
||||
depositPeriod := keeper.GetDepositParams(ctx).MaxDepositPeriod
|
||||
|
||||
proposal, err := v1beta2.NewProposal(messages, proposalID, metadata, submitTime, submitTime.Add(*depositPeriod))
|
||||
proposal, err := v1.NewProposal(messages, proposalID, metadata, submitTime, submitTime.Add(*depositPeriod))
|
||||
if err != nil {
|
||||
return v1beta2.Proposal{}, err
|
||||
return v1.Proposal{}, err
|
||||
}
|
||||
|
||||
keeper.SetProposal(ctx, proposal)
|
||||
@ -93,15 +93,15 @@ func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadat
|
||||
|
||||
// GetProposal get proposal from store by ProposalID.
|
||||
// Panics if can't unmarshal the proposal.
|
||||
func (keeper Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (v1beta2.Proposal, bool) {
|
||||
func (keeper Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (v1.Proposal, bool) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
|
||||
bz := store.Get(types.ProposalKey(proposalID))
|
||||
if bz == nil {
|
||||
return v1beta2.Proposal{}, false
|
||||
return v1.Proposal{}, false
|
||||
}
|
||||
|
||||
var proposal v1beta2.Proposal
|
||||
var proposal v1.Proposal
|
||||
if err := keeper.UnmarshalProposal(bz, &proposal); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -111,7 +111,7 @@ func (keeper Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (v1beta2.Pr
|
||||
|
||||
// SetProposal set a proposal to store.
|
||||
// Panics if can't marshal the proposal.
|
||||
func (keeper Keeper) SetProposal(ctx sdk.Context, proposal v1beta2.Proposal) {
|
||||
func (keeper Keeper) SetProposal(ctx sdk.Context, proposal v1.Proposal) {
|
||||
bz, err := keeper.MarshalProposal(proposal)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -142,14 +142,14 @@ func (keeper Keeper) DeleteProposal(ctx sdk.Context, proposalID uint64) {
|
||||
|
||||
// IterateProposals iterates over the all the proposals and performs a callback function.
|
||||
// Panics when the iterator encounters a proposal which can't be unmarshaled.
|
||||
func (keeper Keeper) IterateProposals(ctx sdk.Context, cb func(proposal v1beta2.Proposal) (stop bool)) {
|
||||
func (keeper Keeper) IterateProposals(ctx sdk.Context, cb func(proposal v1.Proposal) (stop bool)) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
|
||||
iterator := sdk.KVStorePrefixIterator(store, types.ProposalsKeyPrefix)
|
||||
defer iterator.Close()
|
||||
|
||||
for ; iterator.Valid(); iterator.Next() {
|
||||
var proposal v1beta2.Proposal
|
||||
var proposal v1.Proposal
|
||||
err := keeper.UnmarshalProposal(iterator.Value(), &proposal)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -162,8 +162,8 @@ func (keeper Keeper) IterateProposals(ctx sdk.Context, cb func(proposal v1beta2.
|
||||
}
|
||||
|
||||
// GetProposals returns all the proposals from store
|
||||
func (keeper Keeper) GetProposals(ctx sdk.Context) (proposals v1beta2.Proposals) {
|
||||
keeper.IterateProposals(ctx, func(proposal v1beta2.Proposal) bool {
|
||||
func (keeper Keeper) GetProposals(ctx sdk.Context) (proposals v1.Proposals) {
|
||||
keeper.IterateProposals(ctx, func(proposal v1.Proposal) bool {
|
||||
proposals = append(proposals, &proposal)
|
||||
return false
|
||||
})
|
||||
@ -179,15 +179,15 @@ func (keeper Keeper) GetProposals(ctx sdk.Context) (proposals v1beta2.Proposals)
|
||||
//
|
||||
// NOTE: If no filters are provided, all proposals will be returned in paginated
|
||||
// form.
|
||||
func (keeper Keeper) GetProposalsFiltered(ctx sdk.Context, params v1beta2.QueryProposalsParams) v1beta2.Proposals {
|
||||
func (keeper Keeper) GetProposalsFiltered(ctx sdk.Context, params v1.QueryProposalsParams) v1.Proposals {
|
||||
proposals := keeper.GetProposals(ctx)
|
||||
filteredProposals := make([]*v1beta2.Proposal, 0, len(proposals))
|
||||
filteredProposals := make([]*v1.Proposal, 0, len(proposals))
|
||||
|
||||
for _, p := range proposals {
|
||||
matchVoter, matchDepositor, matchStatus := true, true, true
|
||||
|
||||
// match status (if supplied/valid)
|
||||
if v1beta2.ValidProposalStatus(params.ProposalStatus) {
|
||||
if v1.ValidProposalStatus(params.ProposalStatus) {
|
||||
matchStatus = p.Status == params.ProposalStatus
|
||||
}
|
||||
|
||||
@ -208,7 +208,7 @@ func (keeper Keeper) GetProposalsFiltered(ctx sdk.Context, params v1beta2.QueryP
|
||||
|
||||
start, end := client.Paginate(len(filteredProposals), params.Page, params.Limit, 100)
|
||||
if start < 0 || end < 0 {
|
||||
filteredProposals = []*v1beta2.Proposal{}
|
||||
filteredProposals = []*v1.Proposal{}
|
||||
} else {
|
||||
filteredProposals = filteredProposals[start:end]
|
||||
}
|
||||
@ -234,20 +234,20 @@ func (keeper Keeper) SetProposalID(ctx sdk.Context, proposalID uint64) {
|
||||
store.Set(types.ProposalIDKey, types.GetProposalIDBytes(proposalID))
|
||||
}
|
||||
|
||||
func (keeper Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal v1beta2.Proposal) {
|
||||
func (keeper Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal v1.Proposal) {
|
||||
startTime := ctx.BlockHeader().Time
|
||||
proposal.VotingStartTime = &startTime
|
||||
votingPeriod := keeper.GetVotingParams(ctx).VotingPeriod
|
||||
endTime := proposal.VotingStartTime.Add(*votingPeriod)
|
||||
proposal.VotingEndTime = &endTime
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
keeper.SetProposal(ctx, proposal)
|
||||
|
||||
keeper.RemoveFromInactiveProposalQueue(ctx, proposal.Id, *proposal.DepositEndTime)
|
||||
keeper.InsertActiveProposalQueue(ctx, proposal.Id, *proposal.VotingEndTime)
|
||||
}
|
||||
|
||||
func (keeper Keeper) MarshalProposal(proposal v1beta2.Proposal) ([]byte, error) {
|
||||
func (keeper Keeper) MarshalProposal(proposal v1.Proposal) ([]byte, error) {
|
||||
bz, err := keeper.cdc.Marshal(&proposal)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -255,7 +255,7 @@ func (keeper Keeper) MarshalProposal(proposal v1beta2.Proposal) ([]byte, error)
|
||||
return bz, nil
|
||||
}
|
||||
|
||||
func (keeper Keeper) UnmarshalProposal(bz []byte, proposal *v1beta2.Proposal) error {
|
||||
func (keeper Keeper) UnmarshalProposal(bz []byte, proposal *v1.Proposal) error {
|
||||
err := keeper.cdc.Unmarshal(bz, proposal)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestGetSetProposal() {
|
||||
@ -79,7 +79,7 @@ func (suite *KeeperTestSuite) TestSubmitProposal() {
|
||||
}
|
||||
|
||||
for i, tc := range testCases {
|
||||
prop, err := v1beta2.NewLegacyContent(tc.content, tc.authority)
|
||||
prop, err := v1.NewLegacyContent(tc.content, tc.authority)
|
||||
suite.Require().NoError(err)
|
||||
_, err = suite.app.GovKeeper.SubmitProposal(suite.ctx, []sdk.Msg{prop}, tc.metadata)
|
||||
suite.Require().True(errors.Is(tc.expectedErr, err), "tc #%d; got: %v, expected: %v", i, err, tc.expectedErr)
|
||||
@ -88,20 +88,20 @@ func (suite *KeeperTestSuite) TestSubmitProposal() {
|
||||
|
||||
func (suite *KeeperTestSuite) TestGetProposalsFiltered() {
|
||||
proposalID := uint64(1)
|
||||
status := []v1beta2.ProposalStatus{v1beta2.StatusDepositPeriod, v1beta2.StatusVotingPeriod}
|
||||
status := []v1.ProposalStatus{v1.StatusDepositPeriod, v1.StatusVotingPeriod}
|
||||
|
||||
addr1 := sdk.AccAddress("foo_________________")
|
||||
|
||||
for _, s := range status {
|
||||
for i := 0; i < 50; i++ {
|
||||
p, err := v1beta2.NewProposal(TestProposal, proposalID, "", time.Now(), time.Now())
|
||||
p, err := v1.NewProposal(TestProposal, proposalID, "", time.Now(), time.Now())
|
||||
suite.Require().NoError(err)
|
||||
|
||||
p.Status = s
|
||||
|
||||
if i%2 == 0 {
|
||||
d := v1beta2.NewDeposit(proposalID, addr1, nil)
|
||||
v := v1beta2.NewVote(proposalID, addr1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
d := v1.NewDeposit(proposalID, addr1, nil)
|
||||
v := v1.NewVote(proposalID, addr1, v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
suite.app.GovKeeper.SetDeposit(suite.ctx, d)
|
||||
suite.app.GovKeeper.SetVote(suite.ctx, v)
|
||||
}
|
||||
@ -112,21 +112,21 @@ func (suite *KeeperTestSuite) TestGetProposalsFiltered() {
|
||||
}
|
||||
|
||||
testCases := []struct {
|
||||
params v1beta2.QueryProposalsParams
|
||||
params v1.QueryProposalsParams
|
||||
expectedNumResults int
|
||||
}{
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusNil, nil, nil), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusDepositPeriod, nil, nil), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusVotingPeriod, nil, nil), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 25, v1beta2.StatusNil, nil, nil), 25},
|
||||
{v1beta2.NewQueryProposalsParams(2, 25, v1beta2.StatusNil, nil, nil), 25},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusRejected, nil, nil), 0},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusNil, addr1, nil), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusNil, nil, addr1), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusNil, addr1, addr1), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusDepositPeriod, addr1, addr1), 25},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusDepositPeriod, nil, nil), 50},
|
||||
{v1beta2.NewQueryProposalsParams(1, 50, v1beta2.StatusVotingPeriod, nil, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusNil, nil, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusDepositPeriod, nil, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusVotingPeriod, nil, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 25, v1.StatusNil, nil, nil), 25},
|
||||
{v1.NewQueryProposalsParams(2, 25, v1.StatusNil, nil, nil), 25},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusRejected, nil, nil), 0},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusNil, addr1, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusNil, nil, addr1), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusNil, addr1, addr1), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusDepositPeriod, addr1, addr1), 25},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusDepositPeriod, nil, nil), 50},
|
||||
{v1.NewQueryProposalsParams(1, 50, v1.StatusVotingPeriod, nil, nil), 50},
|
||||
}
|
||||
|
||||
for i, tc := range testCases {
|
||||
@ -135,7 +135,7 @@ func (suite *KeeperTestSuite) TestGetProposalsFiltered() {
|
||||
suite.Require().Len(proposals, tc.expectedNumResults)
|
||||
|
||||
for _, p := range proposals {
|
||||
if v1beta2.ValidProposalStatus(tc.params.ProposalStatus) {
|
||||
if v1.ValidProposalStatus(tc.params.ProposalStatus) {
|
||||
suite.Require().Equal(tc.params.ProposalStatus, p.Status)
|
||||
}
|
||||
}
|
||||
@ -145,9 +145,9 @@ func (suite *KeeperTestSuite) TestGetProposalsFiltered() {
|
||||
|
||||
func TestMigrateProposalMessages(t *testing.T) {
|
||||
content := v1beta1.NewTextProposal("Test", "description")
|
||||
contentMsg, err := v1beta2.NewLegacyContent(content, sdk.AccAddress("test1").String())
|
||||
contentMsg, err := v1.NewLegacyContent(content, sdk.AccAddress("test1").String())
|
||||
require.NoError(t, err)
|
||||
content, err = v1beta2.LegacyContentFromMessage(contentMsg)
|
||||
content, err = v1.LegacyContentFromMessage(contentMsg)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "Test", content.GetTitle())
|
||||
require.Equal(t, "description", content.GetDescription())
|
||||
|
||||
@ -8,35 +8,35 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// NewQuerier creates a new gov Querier instance
|
||||
func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {
|
||||
return func(ctx sdk.Context, path []string, req abci.RequestQuery) ([]byte, error) {
|
||||
switch path[0] {
|
||||
case v1beta2.QueryParams:
|
||||
case v1.QueryParams:
|
||||
return queryParams(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryProposals:
|
||||
case v1.QueryProposals:
|
||||
return queryProposals(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryProposal:
|
||||
case v1.QueryProposal:
|
||||
return queryProposal(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryDeposits:
|
||||
case v1.QueryDeposits:
|
||||
return queryDeposits(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryDeposit:
|
||||
case v1.QueryDeposit:
|
||||
return queryDeposit(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryVotes:
|
||||
case v1.QueryVotes:
|
||||
return queryVotes(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryVote:
|
||||
case v1.QueryVote:
|
||||
return queryVote(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
case v1beta2.QueryTally:
|
||||
case v1.QueryTally:
|
||||
return queryTally(ctx, path[1:], req, keeper, legacyQuerierCdc)
|
||||
|
||||
default:
|
||||
@ -47,21 +47,21 @@ func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
|
||||
|
||||
func queryParams(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
switch path[0] {
|
||||
case v1beta2.ParamDeposit:
|
||||
case v1.ParamDeposit:
|
||||
bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, keeper.GetDepositParams(ctx))
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())
|
||||
}
|
||||
return bz, nil
|
||||
|
||||
case v1beta2.ParamVoting:
|
||||
case v1.ParamVoting:
|
||||
bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, keeper.GetVotingParams(ctx))
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())
|
||||
}
|
||||
return bz, nil
|
||||
|
||||
case v1beta2.ParamTallying:
|
||||
case v1.ParamTallying:
|
||||
bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, keeper.GetTallyParams(ctx))
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error())
|
||||
@ -75,7 +75,7 @@ func queryParams(ctx sdk.Context, path []string, req abci.RequestQuery, keeper K
|
||||
|
||||
// nolint: unparam
|
||||
func queryProposal(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryProposalParams
|
||||
var params v1.QueryProposalParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -96,7 +96,7 @@ func queryProposal(ctx sdk.Context, path []string, req abci.RequestQuery, keeper
|
||||
|
||||
// nolint: unparam
|
||||
func queryDeposit(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryDepositParams
|
||||
var params v1.QueryDepositParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -113,7 +113,7 @@ func queryDeposit(ctx sdk.Context, path []string, req abci.RequestQuery, keeper
|
||||
|
||||
// nolint: unparam
|
||||
func queryVote(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryVoteParams
|
||||
var params v1.QueryVoteParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -130,7 +130,7 @@ func queryVote(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Kee
|
||||
|
||||
// nolint: unparam
|
||||
func queryDeposits(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryProposalParams
|
||||
var params v1.QueryProposalParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -138,7 +138,7 @@ func queryDeposits(ctx sdk.Context, path []string, req abci.RequestQuery, keeper
|
||||
|
||||
deposits := keeper.GetDeposits(ctx, params.ProposalID)
|
||||
if deposits == nil {
|
||||
deposits = v1beta2.Deposits{}
|
||||
deposits = v1.Deposits{}
|
||||
}
|
||||
|
||||
bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, deposits)
|
||||
@ -151,7 +151,7 @@ func queryDeposits(ctx sdk.Context, path []string, req abci.RequestQuery, keeper
|
||||
|
||||
// nolint: unparam
|
||||
func queryTally(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryProposalParams
|
||||
var params v1.QueryProposalParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -164,13 +164,13 @@ func queryTally(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Ke
|
||||
return nil, sdkerrors.Wrapf(types.ErrUnknownProposal, "%d", proposalID)
|
||||
}
|
||||
|
||||
var tallyResult v1beta2.TallyResult
|
||||
var tallyResult v1.TallyResult
|
||||
|
||||
switch {
|
||||
case proposal.Status == v1beta2.StatusDepositPeriod:
|
||||
tallyResult = v1beta2.EmptyTallyResult()
|
||||
case proposal.Status == v1.StatusDepositPeriod:
|
||||
tallyResult = v1.EmptyTallyResult()
|
||||
|
||||
case proposal.Status == v1beta2.StatusPassed || proposal.Status == v1beta2.StatusRejected:
|
||||
case proposal.Status == v1.StatusPassed || proposal.Status == v1.StatusRejected:
|
||||
tallyResult = *proposal.FinalTallyResult
|
||||
|
||||
default:
|
||||
@ -188,7 +188,7 @@ func queryTally(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Ke
|
||||
|
||||
// nolint: unparam
|
||||
func queryVotes(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryProposalVotesParams
|
||||
var params v1.QueryProposalVotesParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -196,11 +196,11 @@ func queryVotes(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Ke
|
||||
|
||||
votes := keeper.GetVotes(ctx, params.ProposalID)
|
||||
if votes == nil {
|
||||
votes = v1beta2.Votes{}
|
||||
votes = v1.Votes{}
|
||||
} else {
|
||||
start, end := client.Paginate(len(votes), params.Page, params.Limit, 100)
|
||||
if start < 0 || end < 0 {
|
||||
votes = v1beta2.Votes{}
|
||||
votes = v1.Votes{}
|
||||
} else {
|
||||
votes = votes[start:end]
|
||||
}
|
||||
@ -215,7 +215,7 @@ func queryVotes(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Ke
|
||||
}
|
||||
|
||||
func queryProposals(ctx sdk.Context, _ []string, req abci.RequestQuery, keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) {
|
||||
var params v1beta2.QueryProposalsParams
|
||||
var params v1.QueryProposalsParams
|
||||
err := legacyQuerierCdc.UnmarshalJSON(req.Data, ¶ms)
|
||||
if err != nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrJSONUnmarshal, err.Error())
|
||||
@ -223,7 +223,7 @@ func queryProposals(ctx sdk.Context, _ []string, req abci.RequestQuery, keeper K
|
||||
|
||||
proposals := keeper.GetProposalsFiltered(ctx, params)
|
||||
if proposals == nil {
|
||||
proposals = v1beta2.Proposals{}
|
||||
proposals = v1.Proposals{}
|
||||
}
|
||||
|
||||
bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, proposals)
|
||||
|
||||
@ -15,46 +15,46 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
const custom = "custom"
|
||||
|
||||
func getQueriedParams(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier) (v1beta2.DepositParams, v1beta2.VotingParams, v1beta2.TallyParams) {
|
||||
func getQueriedParams(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier) (v1.DepositParams, v1.VotingParams, v1.TallyParams) {
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryParams, v1beta2.ParamDeposit}, "/"),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryParams, v1.ParamDeposit}, "/"),
|
||||
Data: []byte{},
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryParams, v1beta2.ParamDeposit}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryParams, v1.ParamDeposit}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var depositParams v1beta2.DepositParams
|
||||
var depositParams v1.DepositParams
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &depositParams))
|
||||
|
||||
query = abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryParams, v1beta2.ParamVoting}, "/"),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryParams, v1.ParamVoting}, "/"),
|
||||
Data: []byte{},
|
||||
}
|
||||
|
||||
bz, err = querier(ctx, []string{v1beta2.QueryParams, v1beta2.ParamVoting}, query)
|
||||
bz, err = querier(ctx, []string{v1.QueryParams, v1.ParamVoting}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var votingParams v1beta2.VotingParams
|
||||
var votingParams v1.VotingParams
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &votingParams))
|
||||
|
||||
query = abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryParams, v1beta2.ParamTallying}, "/"),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryParams, v1.ParamTallying}, "/"),
|
||||
Data: []byte{},
|
||||
}
|
||||
|
||||
bz, err = querier(ctx, []string{v1beta2.QueryParams, v1beta2.ParamTallying}, query)
|
||||
bz, err = querier(ctx, []string{v1.QueryParams, v1.ParamTallying}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var tallyParams v1beta2.TallyParams
|
||||
var tallyParams v1.TallyParams
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &tallyParams))
|
||||
|
||||
return depositParams, votingParams, tallyParams
|
||||
@ -62,84 +62,84 @@ func getQueriedParams(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, que
|
||||
|
||||
func getQueriedProposals(
|
||||
t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier,
|
||||
depositor, voter sdk.AccAddress, status v1beta2.ProposalStatus, page, limit int,
|
||||
) []*v1beta2.Proposal {
|
||||
depositor, voter sdk.AccAddress, status v1.ProposalStatus, page, limit int,
|
||||
) []*v1.Proposal {
|
||||
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryProposals}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1beta2.NewQueryProposalsParams(page, limit, status, voter, depositor)),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryProposals}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1.NewQueryProposalsParams(page, limit, status, voter, depositor)),
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryProposals}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryProposals}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var proposals v1beta2.Proposals
|
||||
var proposals v1.Proposals
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &proposals))
|
||||
|
||||
return proposals
|
||||
}
|
||||
|
||||
func getQueriedDeposit(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64, depositor sdk.AccAddress) v1beta2.Deposit {
|
||||
func getQueriedDeposit(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64, depositor sdk.AccAddress) v1.Deposit {
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryDeposit}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1beta2.NewQueryDepositParams(proposalID, depositor)),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryDeposit}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1.NewQueryDepositParams(proposalID, depositor)),
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryDeposit}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryDeposit}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var deposit v1beta2.Deposit
|
||||
var deposit v1.Deposit
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &deposit))
|
||||
|
||||
return deposit
|
||||
}
|
||||
|
||||
func getQueriedDeposits(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64) []v1beta2.Deposit {
|
||||
func getQueriedDeposits(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64) []v1.Deposit {
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryDeposits}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1beta2.NewQueryProposalParams(proposalID)),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryDeposits}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1.NewQueryProposalParams(proposalID)),
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryDeposits}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryDeposits}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var deposits []v1beta2.Deposit
|
||||
var deposits []v1.Deposit
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &deposits))
|
||||
|
||||
return deposits
|
||||
}
|
||||
|
||||
func getQueriedVote(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64, voter sdk.AccAddress) v1beta2.Vote {
|
||||
func getQueriedVote(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier, proposalID uint64, voter sdk.AccAddress) v1.Vote {
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryVote}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1beta2.NewQueryVoteParams(proposalID, voter)),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryVote}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1.NewQueryVoteParams(proposalID, voter)),
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryVote}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryVote}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var vote v1beta2.Vote
|
||||
var vote v1.Vote
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &vote))
|
||||
|
||||
return vote
|
||||
}
|
||||
|
||||
func getQueriedVotes(t *testing.T, ctx sdk.Context, cdc *codec.LegacyAmino, querier sdk.Querier,
|
||||
proposalID uint64, page, limit int) []v1beta2.Vote {
|
||||
proposalID uint64, page, limit int) []v1.Vote {
|
||||
query := abci.RequestQuery{
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1beta2.QueryVote}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1beta2.NewQueryProposalVotesParams(proposalID, page, limit)),
|
||||
Path: strings.Join([]string{custom, types.QuerierRoute, v1.QueryVote}, "/"),
|
||||
Data: cdc.MustMarshalJSON(v1.NewQueryProposalVotesParams(proposalID, page, limit)),
|
||||
}
|
||||
|
||||
bz, err := querier(ctx, []string{v1beta2.QueryVotes}, query)
|
||||
bz, err := querier(ctx, []string{v1.QueryVotes}, query)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, bz)
|
||||
|
||||
var votes []v1beta2.Vote
|
||||
var votes []v1.Vote
|
||||
require.NoError(t, cdc.UnmarshalJSON(bz, &votes))
|
||||
|
||||
return votes
|
||||
@ -163,7 +163,7 @@ func TestQueries(t *testing.T) {
|
||||
// TestAddrs[0] proposes (and deposits) proposals #1 and #2
|
||||
proposal1, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
deposit1 := v1beta2.NewDeposit(proposal1.Id, TestAddrs[0], oneCoins)
|
||||
deposit1 := v1.NewDeposit(proposal1.Id, TestAddrs[0], oneCoins)
|
||||
depositer1, err := sdk.AccAddressFromBech32(deposit1.Depositor)
|
||||
require.NoError(t, err)
|
||||
_, err = app.GovKeeper.AddDeposit(ctx, deposit1.ProposalId, depositer1, deposit1.Amount)
|
||||
@ -173,7 +173,7 @@ func TestQueries(t *testing.T) {
|
||||
|
||||
proposal2, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
deposit2 := v1beta2.NewDeposit(proposal2.Id, TestAddrs[0], consCoins)
|
||||
deposit2 := v1.NewDeposit(proposal2.Id, TestAddrs[0], consCoins)
|
||||
depositer2, err := sdk.AccAddressFromBech32(deposit2.Depositor)
|
||||
require.NoError(t, err)
|
||||
_, err = app.GovKeeper.AddDeposit(ctx, deposit2.ProposalId, depositer2, deposit2.Amount)
|
||||
@ -184,7 +184,7 @@ func TestQueries(t *testing.T) {
|
||||
// TestAddrs[1] proposes (and deposits) on proposal #3
|
||||
proposal3, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
deposit3 := v1beta2.NewDeposit(proposal3.Id, TestAddrs[1], oneCoins)
|
||||
deposit3 := v1.NewDeposit(proposal3.Id, TestAddrs[1], oneCoins)
|
||||
depositer3, err := sdk.AccAddressFromBech32(deposit3.Depositor)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -194,26 +194,26 @@ func TestQueries(t *testing.T) {
|
||||
proposal3.TotalDeposit = sdk.NewCoins(proposal3.TotalDeposit...).Add(deposit3.Amount...)
|
||||
|
||||
// TestAddrs[1] deposits on proposals #2 & #3
|
||||
deposit4 := v1beta2.NewDeposit(proposal2.Id, TestAddrs[1], depositParams.MinDeposit)
|
||||
deposit4 := v1.NewDeposit(proposal2.Id, TestAddrs[1], depositParams.MinDeposit)
|
||||
depositer4, err := sdk.AccAddressFromBech32(deposit4.Depositor)
|
||||
require.NoError(t, err)
|
||||
_, err = app.GovKeeper.AddDeposit(ctx, deposit4.ProposalId, depositer4, deposit4.Amount)
|
||||
require.NoError(t, err)
|
||||
|
||||
proposal2.TotalDeposit = sdk.NewCoins(proposal2.TotalDeposit...).Add(deposit4.Amount...)
|
||||
proposal2.Status = v1beta2.StatusVotingPeriod
|
||||
votingEndTime := ctx.BlockTime().Add(v1beta2.DefaultPeriod)
|
||||
proposal2.Status = v1.StatusVotingPeriod
|
||||
votingEndTime := ctx.BlockTime().Add(v1.DefaultPeriod)
|
||||
proposal2.VotingEndTime = &votingEndTime
|
||||
|
||||
deposit5 := v1beta2.NewDeposit(proposal3.Id, TestAddrs[1], depositParams.MinDeposit)
|
||||
deposit5 := v1.NewDeposit(proposal3.Id, TestAddrs[1], depositParams.MinDeposit)
|
||||
depositer5, err := sdk.AccAddressFromBech32(deposit5.Depositor)
|
||||
require.NoError(t, err)
|
||||
_, err = app.GovKeeper.AddDeposit(ctx, deposit5.ProposalId, depositer5, deposit5.Amount)
|
||||
require.NoError(t, err)
|
||||
|
||||
proposal3.TotalDeposit = sdk.NewCoins(proposal3.TotalDeposit...).Add(deposit5.Amount...)
|
||||
proposal3.Status = v1beta2.StatusVotingPeriod
|
||||
votingEndTime = ctx.BlockTime().Add(v1beta2.DefaultPeriod)
|
||||
proposal3.Status = v1.StatusVotingPeriod
|
||||
votingEndTime = ctx.BlockTime().Add(v1.DefaultPeriod)
|
||||
proposal3.VotingEndTime = &votingEndTime
|
||||
// total deposit of TestAddrs[1] on proposal #3 is worth the proposal deposit + individual deposit
|
||||
deposit5.Amount = sdk.NewCoins(deposit5.Amount...).Add(deposit3.Amount...)
|
||||
@ -242,33 +242,33 @@ func TestQueries(t *testing.T) {
|
||||
deposit = getQueriedDeposit(t, ctx, legacyQuerierCdc, querier, proposal3.Id, TestAddrs[1])
|
||||
require.Equal(t, deposit5, deposit)
|
||||
|
||||
// Only proposal #1 should be in v1beta2.Deposit Period
|
||||
proposals := getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1beta2.StatusDepositPeriod, 1, 0)
|
||||
// Only proposal #1 should be in v1.Deposit Period
|
||||
proposals := getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1.StatusDepositPeriod, 1, 0)
|
||||
require.Len(t, proposals, 1)
|
||||
require.Equal(t, proposal1, *proposals[0])
|
||||
|
||||
// Only proposals #2 and #3 should be in Voting Period
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1beta2.StatusVotingPeriod, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1.StatusVotingPeriod, 1, 0)
|
||||
require.Len(t, proposals, 2)
|
||||
checkEqualProposal(t, proposal2, *proposals[0])
|
||||
checkEqualProposal(t, proposal3, *proposals[1])
|
||||
|
||||
// Addrs[0] votes on proposals #2 & #3
|
||||
vote1 := v1beta2.NewVote(proposal2.Id, TestAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
vote2 := v1beta2.NewVote(proposal3.Id, TestAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
vote1 := v1.NewVote(proposal2.Id, TestAddrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
vote2 := v1.NewVote(proposal3.Id, TestAddrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
app.GovKeeper.SetVote(ctx, vote1)
|
||||
app.GovKeeper.SetVote(ctx, vote2)
|
||||
|
||||
// Addrs[1] votes on proposal #3
|
||||
vote3 := v1beta2.NewVote(proposal3.Id, TestAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
vote3 := v1.NewVote(proposal3.Id, TestAddrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
app.GovKeeper.SetVote(ctx, vote3)
|
||||
|
||||
// Test query voted by TestAddrs[0]
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, TestAddrs[0], v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, TestAddrs[0], v1.StatusNil, 1, 0)
|
||||
checkEqualProposal(t, proposal2, *proposals[0])
|
||||
checkEqualProposal(t, proposal3, *proposals[1])
|
||||
|
||||
// Test query votes on v1beta2.Proposal 2
|
||||
// Test query votes on v1.Proposal 2
|
||||
votes := getQueriedVotes(t, ctx, legacyQuerierCdc, querier, proposal2.Id, 1, 0)
|
||||
require.Len(t, votes, 1)
|
||||
checkEqualVotes(t, vote1, votes[0])
|
||||
@ -276,33 +276,33 @@ func TestQueries(t *testing.T) {
|
||||
vote := getQueriedVote(t, ctx, legacyQuerierCdc, querier, proposal2.Id, TestAddrs[0])
|
||||
checkEqualVotes(t, vote1, vote)
|
||||
|
||||
// Test query votes on v1beta2.Proposal 3
|
||||
// Test query votes on v1.Proposal 3
|
||||
votes = getQueriedVotes(t, ctx, legacyQuerierCdc, querier, proposal3.Id, 1, 0)
|
||||
require.Len(t, votes, 2)
|
||||
checkEqualVotes(t, vote2, votes[0])
|
||||
checkEqualVotes(t, vote3, votes[1])
|
||||
|
||||
// Test query all proposals
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, nil, v1.StatusNil, 1, 0)
|
||||
checkEqualProposal(t, proposal1, *proposals[0])
|
||||
checkEqualProposal(t, proposal2, *proposals[1])
|
||||
checkEqualProposal(t, proposal3, *proposals[2])
|
||||
|
||||
// Test query voted by TestAddrs[1]
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, TestAddrs[1], v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, nil, TestAddrs[1], v1.StatusNil, 1, 0)
|
||||
require.Equal(t, proposal3.Id, proposals[0].Id)
|
||||
|
||||
// Test query deposited by TestAddrs[0]
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[0], nil, v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[0], nil, v1.StatusNil, 1, 0)
|
||||
require.Equal(t, proposal1.Id, proposals[0].Id)
|
||||
|
||||
// Test query deposited by addr2
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[1], nil, v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[1], nil, v1.StatusNil, 1, 0)
|
||||
require.Equal(t, proposal2.Id, proposals[0].Id)
|
||||
require.Equal(t, proposal3.Id, proposals[1].Id)
|
||||
|
||||
// Test query voted AND deposited by addr1
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[0], TestAddrs[0], v1beta2.StatusNil, 1, 0)
|
||||
proposals = getQueriedProposals(t, ctx, legacyQuerierCdc, querier, TestAddrs[0], TestAddrs[0], v1.StatusNil, 1, 0)
|
||||
require.Equal(t, proposal2.Id, proposals[0].Id)
|
||||
}
|
||||
|
||||
@ -311,14 +311,14 @@ func TestPaginatedVotesQuery(t *testing.T) {
|
||||
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
|
||||
legacyQuerierCdc := app.LegacyAmino()
|
||||
|
||||
proposal := v1beta2.Proposal{
|
||||
proposal := v1.Proposal{
|
||||
Id: 100,
|
||||
Status: v1beta2.StatusVotingPeriod,
|
||||
Status: v1.StatusVotingPeriod,
|
||||
}
|
||||
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
votes := make([]v1beta2.Vote, 20)
|
||||
votes := make([]v1.Vote, 20)
|
||||
random := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
addrMap := make(map[string]struct{})
|
||||
genAddr := func() string {
|
||||
@ -333,10 +333,10 @@ func TestPaginatedVotesQuery(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for i := range votes {
|
||||
vote := v1beta2.Vote{
|
||||
vote := v1.Vote{
|
||||
ProposalId: proposal.Id,
|
||||
Voter: genAddr(),
|
||||
Options: v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes),
|
||||
Options: v1.NewNonSplitVoteOption(v1.OptionYes),
|
||||
}
|
||||
votes[i] = vote
|
||||
app.GovKeeper.SetVote(ctx, vote)
|
||||
@ -352,7 +352,7 @@ func TestPaginatedVotesQuery(t *testing.T) {
|
||||
description string
|
||||
page int
|
||||
limit int
|
||||
votes []v1beta2.Vote
|
||||
votes []v1.Vote
|
||||
}
|
||||
for _, tc := range []testCase{
|
||||
{
|
||||
@ -393,7 +393,7 @@ func TestPaginatedVotesQuery(t *testing.T) {
|
||||
// When querying, the keeper populates the `vote.Option` field when there's
|
||||
// only 1 vote, this function checks equality of structs while skipping that
|
||||
// field.
|
||||
func checkEqualVotes(t *testing.T, vote1, vote2 v1beta2.Vote) {
|
||||
func checkEqualVotes(t *testing.T, vote1, vote2 v1.Vote) {
|
||||
require.Equal(t, vote1.Options, vote2.Options)
|
||||
require.Equal(t, vote1.Voter, vote2.Voter)
|
||||
require.Equal(t, vote1.ProposalId, vote2.ProposalId)
|
||||
@ -414,7 +414,7 @@ func checkEqualVotes(t *testing.T, vote1, vote2 v1beta2.Vote) {
|
||||
// + ext: (int64) 0,
|
||||
// + loc: (*time.Location)(<nil>)
|
||||
// + }),
|
||||
func checkEqualProposal(t *testing.T, p1, p2 v1beta2.Proposal) {
|
||||
func checkEqualProposal(t *testing.T, p1, p2 v1.Proposal) {
|
||||
require.Equal(t, p1.Id, p2.Id)
|
||||
require.Equal(t, p1.Messages, p2.Messages)
|
||||
require.Equal(t, p1.Status, p2.Status)
|
||||
|
||||
@ -2,7 +2,7 @@ package keeper
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
)
|
||||
|
||||
@ -10,30 +10,30 @@ import (
|
||||
|
||||
// Tally iterates over the votes and updates the tally of a proposal based on the voting power of the
|
||||
// voters
|
||||
func (keeper Keeper) Tally(ctx sdk.Context, proposal v1beta2.Proposal) (passes bool, burnDeposits bool, tallyResults v1beta2.TallyResult) {
|
||||
results := make(map[v1beta2.VoteOption]sdk.Dec)
|
||||
results[v1beta2.OptionYes] = sdk.ZeroDec()
|
||||
results[v1beta2.OptionAbstain] = sdk.ZeroDec()
|
||||
results[v1beta2.OptionNo] = sdk.ZeroDec()
|
||||
results[v1beta2.OptionNoWithVeto] = sdk.ZeroDec()
|
||||
func (keeper Keeper) Tally(ctx sdk.Context, proposal v1.Proposal) (passes bool, burnDeposits bool, tallyResults v1.TallyResult) {
|
||||
results := make(map[v1.VoteOption]sdk.Dec)
|
||||
results[v1.OptionYes] = sdk.ZeroDec()
|
||||
results[v1.OptionAbstain] = sdk.ZeroDec()
|
||||
results[v1.OptionNo] = sdk.ZeroDec()
|
||||
results[v1.OptionNoWithVeto] = sdk.ZeroDec()
|
||||
|
||||
totalVotingPower := sdk.ZeroDec()
|
||||
currValidators := make(map[string]v1beta2.ValidatorGovInfo)
|
||||
currValidators := make(map[string]v1.ValidatorGovInfo)
|
||||
|
||||
// fetch all the bonded validators, insert them into currValidators
|
||||
keeper.sk.IterateBondedValidatorsByPower(ctx, func(index int64, validator stakingtypes.ValidatorI) (stop bool) {
|
||||
currValidators[validator.GetOperator().String()] = v1beta2.NewValidatorGovInfo(
|
||||
currValidators[validator.GetOperator().String()] = v1.NewValidatorGovInfo(
|
||||
validator.GetOperator(),
|
||||
validator.GetBondedTokens(),
|
||||
validator.GetDelegatorShares(),
|
||||
sdk.ZeroDec(),
|
||||
v1beta2.WeightedVoteOptions{},
|
||||
v1.WeightedVoteOptions{},
|
||||
)
|
||||
|
||||
return false
|
||||
})
|
||||
|
||||
keeper.IterateVotes(ctx, proposal.Id, func(vote v1beta2.Vote) bool {
|
||||
keeper.IterateVotes(ctx, proposal.Id, func(vote v1.Vote) bool {
|
||||
// if validator, just record it in the map
|
||||
voter, err := sdk.AccAddressFromBech32(vote.Voter)
|
||||
|
||||
@ -93,7 +93,7 @@ func (keeper Keeper) Tally(ctx sdk.Context, proposal v1beta2.Proposal) (passes b
|
||||
}
|
||||
|
||||
tallyParams := keeper.GetTallyParams(ctx)
|
||||
tallyResults = v1beta2.NewTallyResultFromMap(results)
|
||||
tallyResults = v1.NewTallyResultFromMap(results)
|
||||
|
||||
// TODO: Upgrade the spec to cover all of these cases & remove pseudocode.
|
||||
// If there is no staked coins, the proposal fails
|
||||
@ -109,19 +109,19 @@ func (keeper Keeper) Tally(ctx sdk.Context, proposal v1beta2.Proposal) (passes b
|
||||
}
|
||||
|
||||
// If no one votes (everyone abstains), proposal fails
|
||||
if totalVotingPower.Sub(results[v1beta2.OptionAbstain]).Equal(sdk.ZeroDec()) {
|
||||
if totalVotingPower.Sub(results[v1.OptionAbstain]).Equal(sdk.ZeroDec()) {
|
||||
return false, false, tallyResults
|
||||
}
|
||||
|
||||
// If more than 1/3 of voters veto, proposal fails
|
||||
vetoThreshold, _ := sdk.NewDecFromStr(tallyParams.VetoThreshold)
|
||||
if results[v1beta2.OptionNoWithVeto].Quo(totalVotingPower).GT(vetoThreshold) {
|
||||
if results[v1.OptionNoWithVeto].Quo(totalVotingPower).GT(vetoThreshold) {
|
||||
return false, true, tallyResults
|
||||
}
|
||||
|
||||
// If more than 1/2 of non-abstaining voters vote Yes, proposal passes
|
||||
threshold, _ := sdk.NewDecFromStr(tallyParams.Threshold)
|
||||
if results[v1beta2.OptionYes].Quo(totalVotingPower.Sub(results[v1beta2.OptionAbstain])).GT(threshold) {
|
||||
if results[v1.OptionYes].Quo(totalVotingPower.Sub(results[v1.OptionAbstain])).GT(threshold) {
|
||||
return true, false, tallyResults
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/simapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/staking"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
)
|
||||
@ -23,7 +23,7 @@ func TestTallyNoOneVotes(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
@ -32,7 +32,7 @@ func TestTallyNoOneVotes(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.True(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.True(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyNoQuorum(t *testing.T) {
|
||||
@ -47,10 +47,10 @@ func TestTallyNoQuorum(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
err = app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "")
|
||||
err = app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), "")
|
||||
require.Nil(t, err)
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
@ -70,12 +70,12 @@ func TestTallyOnlyValidatorsAllYes(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -83,7 +83,7 @@ func TestTallyOnlyValidatorsAllYes(t *testing.T) {
|
||||
|
||||
require.True(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyOnlyValidators51No(t *testing.T) {
|
||||
@ -96,11 +96,11 @@ func TestTallyOnlyValidators51No(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -120,11 +120,11 @@ func TestTallyOnlyValidators51Yes(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -132,7 +132,7 @@ func TestTallyOnlyValidators51Yes(t *testing.T) {
|
||||
|
||||
require.True(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyOnlyValidatorsVetoed(t *testing.T) {
|
||||
@ -145,12 +145,12 @@ func TestTallyOnlyValidatorsVetoed(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNoWithVeto), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1.NewNonSplitVoteOption(v1.OptionNoWithVeto), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -158,7 +158,7 @@ func TestTallyOnlyValidatorsVetoed(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.True(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyOnlyValidatorsAbstainPasses(t *testing.T) {
|
||||
@ -171,12 +171,12 @@ func TestTallyOnlyValidatorsAbstainPasses(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -184,7 +184,7 @@ func TestTallyOnlyValidatorsAbstainPasses(t *testing.T) {
|
||||
|
||||
require.True(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyOnlyValidatorsAbstainFails(t *testing.T) {
|
||||
@ -197,12 +197,12 @@ func TestTallyOnlyValidatorsAbstainFails(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddrs[2], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -210,7 +210,7 @@ func TestTallyOnlyValidatorsAbstainFails(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyOnlyValidatorsNonVoter(t *testing.T) {
|
||||
@ -224,11 +224,11 @@ func TestTallyOnlyValidatorsNonVoter(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddr1, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddr2, v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddr1, v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, valAccAddr2, v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -236,7 +236,7 @@ func TestTallyOnlyValidatorsNonVoter(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyDelgatorOverride(t *testing.T) {
|
||||
@ -258,13 +258,13 @@ func TestTallyDelgatorOverride(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[3], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[4], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[3], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[4], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -272,7 +272,7 @@ func TestTallyDelgatorOverride(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyDelgatorInherit(t *testing.T) {
|
||||
@ -294,12 +294,12 @@ func TestTallyDelgatorInherit(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -307,7 +307,7 @@ func TestTallyDelgatorInherit(t *testing.T) {
|
||||
|
||||
require.True(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyDelgatorMultipleOverride(t *testing.T) {
|
||||
@ -333,13 +333,13 @@ func TestTallyDelgatorMultipleOverride(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[3], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[3], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -347,7 +347,7 @@ func TestTallyDelgatorMultipleOverride(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyDelgatorMultipleInherit(t *testing.T) {
|
||||
@ -375,12 +375,12 @@ func TestTallyDelgatorMultipleInherit(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -388,7 +388,7 @@ func TestTallyDelgatorMultipleInherit(t *testing.T) {
|
||||
|
||||
require.False(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyJailedValidator(t *testing.T) {
|
||||
@ -418,12 +418,12 @@ func TestTallyJailedValidator(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -431,7 +431,7 @@ func TestTallyJailedValidator(t *testing.T) {
|
||||
|
||||
require.True(t, passes)
|
||||
require.False(t, burnDeposits)
|
||||
require.False(t, tallyResults.Equals(v1beta2.EmptyTallyResult()))
|
||||
require.False(t, tallyResults.Equals(v1.EmptyTallyResult()))
|
||||
}
|
||||
|
||||
func TestTallyValidatorMultipleDelegations(t *testing.T) {
|
||||
@ -451,12 +451,12 @@ func TestTallyValidatorMultipleDelegations(t *testing.T) {
|
||||
proposal, err := app.GovKeeper.SubmitProposal(ctx, tp, "")
|
||||
require.NoError(t, err)
|
||||
proposalID := proposal.Id
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.NewNonSplitVoteOption(v1.OptionNo), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[2], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
|
||||
proposal, ok := app.GovKeeper.GetProposal(ctx, proposalID)
|
||||
require.True(t, ok)
|
||||
@ -469,7 +469,7 @@ func TestTallyValidatorMultipleDelegations(t *testing.T) {
|
||||
expectedAbstain := app.StakingKeeper.TokensFromConsensusPower(ctx, 0)
|
||||
expectedNo := app.StakingKeeper.TokensFromConsensusPower(ctx, 10)
|
||||
expectedNoWithVeto := app.StakingKeeper.TokensFromConsensusPower(ctx, 0)
|
||||
expectedTallyResult := v1beta2.NewTallyResult(expectedYes, expectedAbstain, expectedNo, expectedNoWithVeto)
|
||||
expectedTallyResult := v1.NewTallyResult(expectedYes, expectedAbstain, expectedNo, expectedNoWithVeto)
|
||||
|
||||
require.True(t, tallyResults.Equals(expectedTallyResult))
|
||||
}
|
||||
|
||||
@ -6,16 +6,16 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// AddVote adds a vote on a specific proposal
|
||||
func (keeper Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress, options v1beta2.WeightedVoteOptions, metadata string) error {
|
||||
func (keeper Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress, options v1.WeightedVoteOptions, metadata string) error {
|
||||
proposal, ok := keeper.GetProposal(ctx, proposalID)
|
||||
if !ok {
|
||||
return sdkerrors.Wrapf(types.ErrUnknownProposal, "%d", proposalID)
|
||||
}
|
||||
if proposal.Status != v1beta2.StatusVotingPeriod {
|
||||
if proposal.Status != v1.StatusVotingPeriod {
|
||||
return sdkerrors.Wrapf(types.ErrInactiveProposal, "%d", proposalID)
|
||||
}
|
||||
err := keeper.assertMetadataLength(metadata)
|
||||
@ -24,12 +24,12 @@ func (keeper Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.A
|
||||
}
|
||||
|
||||
for _, option := range options {
|
||||
if !v1beta2.ValidWeightedVoteOption(*option) {
|
||||
if !v1.ValidWeightedVoteOption(*option) {
|
||||
return sdkerrors.Wrap(types.ErrInvalidVote, option.String())
|
||||
}
|
||||
}
|
||||
|
||||
vote := v1beta2.NewVote(proposalID, voterAddr, options, metadata)
|
||||
vote := v1.NewVote(proposalID, voterAddr, options, metadata)
|
||||
keeper.SetVote(ctx, vote)
|
||||
|
||||
// called after a vote on a proposal is cast
|
||||
@ -47,8 +47,8 @@ func (keeper Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.A
|
||||
}
|
||||
|
||||
// GetAllVotes returns all the votes from the store
|
||||
func (keeper Keeper) GetAllVotes(ctx sdk.Context) (votes v1beta2.Votes) {
|
||||
keeper.IterateAllVotes(ctx, func(vote v1beta2.Vote) bool {
|
||||
func (keeper Keeper) GetAllVotes(ctx sdk.Context) (votes v1.Votes) {
|
||||
keeper.IterateAllVotes(ctx, func(vote v1.Vote) bool {
|
||||
votes = append(votes, &vote)
|
||||
return false
|
||||
})
|
||||
@ -56,8 +56,8 @@ func (keeper Keeper) GetAllVotes(ctx sdk.Context) (votes v1beta2.Votes) {
|
||||
}
|
||||
|
||||
// GetVotes returns all the votes from a proposal
|
||||
func (keeper Keeper) GetVotes(ctx sdk.Context, proposalID uint64) (votes v1beta2.Votes) {
|
||||
keeper.IterateVotes(ctx, proposalID, func(vote v1beta2.Vote) bool {
|
||||
func (keeper Keeper) GetVotes(ctx sdk.Context, proposalID uint64) (votes v1.Votes) {
|
||||
keeper.IterateVotes(ctx, proposalID, func(vote v1.Vote) bool {
|
||||
votes = append(votes, &vote)
|
||||
return false
|
||||
})
|
||||
@ -65,7 +65,7 @@ func (keeper Keeper) GetVotes(ctx sdk.Context, proposalID uint64) (votes v1beta2
|
||||
}
|
||||
|
||||
// GetVote gets the vote from an address on a specific proposal
|
||||
func (keeper Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote v1beta2.Vote, found bool) {
|
||||
func (keeper Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote v1.Vote, found bool) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
bz := store.Get(types.VoteKey(proposalID, voterAddr))
|
||||
if bz == nil {
|
||||
@ -78,7 +78,7 @@ func (keeper Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.A
|
||||
}
|
||||
|
||||
// SetVote sets a Vote to the gov store
|
||||
func (keeper Keeper) SetVote(ctx sdk.Context, vote v1beta2.Vote) {
|
||||
func (keeper Keeper) SetVote(ctx sdk.Context, vote v1.Vote) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
bz := keeper.cdc.MustMarshal(&vote)
|
||||
addr, err := sdk.AccAddressFromBech32(vote.Voter)
|
||||
@ -89,13 +89,13 @@ func (keeper Keeper) SetVote(ctx sdk.Context, vote v1beta2.Vote) {
|
||||
}
|
||||
|
||||
// IterateAllVotes iterates over the all the stored votes and performs a callback function
|
||||
func (keeper Keeper) IterateAllVotes(ctx sdk.Context, cb func(vote v1beta2.Vote) (stop bool)) {
|
||||
func (keeper Keeper) IterateAllVotes(ctx sdk.Context, cb func(vote v1.Vote) (stop bool)) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
iterator := sdk.KVStorePrefixIterator(store, types.VotesKeyPrefix)
|
||||
|
||||
defer iterator.Close()
|
||||
for ; iterator.Valid(); iterator.Next() {
|
||||
var vote v1beta2.Vote
|
||||
var vote v1.Vote
|
||||
keeper.cdc.MustUnmarshal(iterator.Value(), &vote)
|
||||
|
||||
if cb(vote) {
|
||||
@ -105,13 +105,13 @@ func (keeper Keeper) IterateAllVotes(ctx sdk.Context, cb func(vote v1beta2.Vote)
|
||||
}
|
||||
|
||||
// IterateVotes iterates over the all the proposals votes and performs a callback function
|
||||
func (keeper Keeper) IterateVotes(ctx sdk.Context, proposalID uint64, cb func(vote v1beta2.Vote) (stop bool)) {
|
||||
func (keeper Keeper) IterateVotes(ctx sdk.Context, proposalID uint64, cb func(vote v1.Vote) (stop bool)) {
|
||||
store := ctx.KVStore(keeper.storeKey)
|
||||
iterator := sdk.KVStorePrefixIterator(store, types.VotesKey(proposalID))
|
||||
|
||||
defer iterator.Close()
|
||||
for ; iterator.Valid(); iterator.Next() {
|
||||
var vote v1beta2.Vote
|
||||
var vote v1.Vote
|
||||
keeper.cdc.MustUnmarshal(iterator.Value(), &vote)
|
||||
|
||||
if cb(vote) {
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/simapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
func TestVotes(t *testing.T) {
|
||||
@ -23,50 +23,50 @@ func TestVotes(t *testing.T) {
|
||||
proposalID := proposal.Id
|
||||
metadata := "metadata"
|
||||
|
||||
var invalidOption v1beta2.VoteOption = 0x10
|
||||
var invalidOption v1.VoteOption = 0x10
|
||||
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), metadata), "proposal not on voting period")
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, 10, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""), "invalid proposal ID")
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), metadata), "proposal not on voting period")
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, 10, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""), "invalid proposal ID")
|
||||
|
||||
proposal.Status = v1beta2.StatusVotingPeriod
|
||||
proposal.Status = v1.StatusVotingPeriod
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(invalidOption), ""), "invalid option")
|
||||
require.Error(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(invalidOption), ""), "invalid option")
|
||||
|
||||
// Test first vote
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), metadata))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), metadata))
|
||||
vote, found := app.GovKeeper.GetVote(ctx, proposalID, addrs[0])
|
||||
require.True(t, found)
|
||||
require.Equal(t, addrs[0].String(), vote.Voter)
|
||||
require.Equal(t, proposalID, vote.ProposalId)
|
||||
require.True(t, len(vote.Options) == 1)
|
||||
require.Equal(t, v1beta2.OptionAbstain, vote.Options[0].Option)
|
||||
require.Equal(t, v1.OptionAbstain, vote.Options[0].Option)
|
||||
|
||||
// Test change of vote
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), ""))
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), ""))
|
||||
vote, found = app.GovKeeper.GetVote(ctx, proposalID, addrs[0])
|
||||
require.True(t, found)
|
||||
require.Equal(t, addrs[0].String(), vote.Voter)
|
||||
require.Equal(t, proposalID, vote.ProposalId)
|
||||
require.True(t, len(vote.Options) == 1)
|
||||
require.Equal(t, v1beta2.OptionYes, vote.Options[0].Option)
|
||||
require.Equal(t, v1.OptionYes, vote.Options[0].Option)
|
||||
|
||||
// Test second vote
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1beta2.WeightedVoteOptions{
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDecWithPrec(60, 2)),
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionNo, sdk.NewDecWithPrec(30, 2)),
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionAbstain, sdk.NewDecWithPrec(5, 2)),
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionNoWithVeto, sdk.NewDecWithPrec(5, 2)),
|
||||
require.NoError(t, app.GovKeeper.AddVote(ctx, proposalID, addrs[1], v1.WeightedVoteOptions{
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDecWithPrec(60, 2)),
|
||||
v1.NewWeightedVoteOption(v1.OptionNo, sdk.NewDecWithPrec(30, 2)),
|
||||
v1.NewWeightedVoteOption(v1.OptionAbstain, sdk.NewDecWithPrec(5, 2)),
|
||||
v1.NewWeightedVoteOption(v1.OptionNoWithVeto, sdk.NewDecWithPrec(5, 2)),
|
||||
}, ""))
|
||||
vote, found = app.GovKeeper.GetVote(ctx, proposalID, addrs[1])
|
||||
require.True(t, found)
|
||||
require.Equal(t, addrs[1].String(), vote.Voter)
|
||||
require.Equal(t, proposalID, vote.ProposalId)
|
||||
require.True(t, len(vote.Options) == 4)
|
||||
require.Equal(t, v1beta2.OptionYes, vote.Options[0].Option)
|
||||
require.Equal(t, v1beta2.OptionNo, vote.Options[1].Option)
|
||||
require.Equal(t, v1beta2.OptionAbstain, vote.Options[2].Option)
|
||||
require.Equal(t, v1beta2.OptionNoWithVeto, vote.Options[3].Option)
|
||||
require.Equal(t, v1.OptionYes, vote.Options[0].Option)
|
||||
require.Equal(t, v1.OptionNo, vote.Options[1].Option)
|
||||
require.Equal(t, v1.OptionAbstain, vote.Options[2].Option)
|
||||
require.Equal(t, v1.OptionNoWithVeto, vote.Options[3].Option)
|
||||
require.Equal(t, vote.Options[0].Weight, sdk.NewDecWithPrec(60, 2).String())
|
||||
require.Equal(t, vote.Options[1].Weight, sdk.NewDecWithPrec(30, 2).String())
|
||||
require.Equal(t, vote.Options[2].Weight, sdk.NewDecWithPrec(5, 2).String())
|
||||
@ -80,7 +80,7 @@ func TestVotes(t *testing.T) {
|
||||
require.Equal(t, addrs[0].String(), votes[0].Voter)
|
||||
require.Equal(t, proposalID, votes[0].ProposalId)
|
||||
require.True(t, len(votes[0].Options) == 1)
|
||||
require.Equal(t, v1beta2.OptionYes, votes[0].Options[0].Option)
|
||||
require.Equal(t, v1.OptionYes, votes[0].Options[0].Option)
|
||||
require.Equal(t, addrs[1].String(), votes[1].Voter)
|
||||
require.Equal(t, proposalID, votes[1].ProposalId)
|
||||
require.True(t, len(votes[1].Options) == 4)
|
||||
|
||||
@ -7,13 +7,13 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types"
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// ConvertToLegacyProposal takes a new proposal and attempts to convert it to the
|
||||
// legacy proposal format. This conversion is best effort. New proposal types that
|
||||
// don't have a legacy message will return a "nil" content.
|
||||
func ConvertToLegacyProposal(proposal v1beta2.Proposal) (v1beta1.Proposal, error) {
|
||||
func ConvertToLegacyProposal(proposal v1.Proposal) (v1beta1.Proposal, error) {
|
||||
var err error
|
||||
legacyProposal := v1beta1.Proposal{
|
||||
ProposalId: proposal.Id,
|
||||
@ -47,9 +47,9 @@ func ConvertToLegacyProposal(proposal v1beta2.Proposal) (v1beta1.Proposal, error
|
||||
return v1beta1.Proposal{}, err
|
||||
}
|
||||
for _, msg := range msgs {
|
||||
if legacyMsg, ok := msg.(*v1beta2.MsgExecLegacyContent); ok {
|
||||
if legacyMsg, ok := msg.(*v1.MsgExecLegacyContent); ok {
|
||||
// check that the content struct can be unmarshalled
|
||||
_, err := v1beta2.LegacyContentFromMessage(legacyMsg)
|
||||
_, err := v1.LegacyContentFromMessage(legacyMsg)
|
||||
if err != nil {
|
||||
return v1beta1.Proposal{}, err
|
||||
}
|
||||
@ -59,7 +59,7 @@ func ConvertToLegacyProposal(proposal v1beta2.Proposal) (v1beta1.Proposal, error
|
||||
return legacyProposal, nil
|
||||
}
|
||||
|
||||
func ConvertToLegacyTallyResult(tally *v1beta2.TallyResult) (v1beta1.TallyResult, error) {
|
||||
func ConvertToLegacyTallyResult(tally *v1.TallyResult) (v1beta1.TallyResult, error) {
|
||||
yes, ok := types.NewIntFromString(tally.YesCount)
|
||||
if !ok {
|
||||
return v1beta1.TallyResult{}, fmt.Errorf("unable to convert yes tally string (%s) to int", tally.YesCount)
|
||||
@ -85,7 +85,7 @@ func ConvertToLegacyTallyResult(tally *v1beta2.TallyResult) (v1beta1.TallyResult
|
||||
}, nil
|
||||
}
|
||||
|
||||
func ConvertToLegacyVote(vote v1beta2.Vote) (v1beta1.Vote, error) {
|
||||
func ConvertToLegacyVote(vote v1.Vote) (v1beta1.Vote, error) {
|
||||
options, err := ConvertToLegacyVoteOptions(vote.Options)
|
||||
if err != nil {
|
||||
return v1beta1.Vote{}, err
|
||||
@ -97,7 +97,7 @@ func ConvertToLegacyVote(vote v1beta2.Vote) (v1beta1.Vote, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func ConvertToLegacyVoteOptions(voteOptions []*v1beta2.WeightedVoteOption) ([]v1beta1.WeightedVoteOption, error) {
|
||||
func ConvertToLegacyVoteOptions(voteOptions []*v1.WeightedVoteOption) ([]v1beta1.WeightedVoteOption, error) {
|
||||
options := make([]v1beta1.WeightedVoteOption, len(voteOptions))
|
||||
for i, option := range voteOptions {
|
||||
weight, err := types.NewDecFromStr(option.Weight)
|
||||
@ -112,7 +112,7 @@ func ConvertToLegacyVoteOptions(voteOptions []*v1beta2.WeightedVoteOption) ([]v1
|
||||
return options, nil
|
||||
}
|
||||
|
||||
func ConvertToLegacyDeposit(deposit *v1beta2.Deposit) v1beta1.Deposit {
|
||||
func ConvertToLegacyDeposit(deposit *v1.Deposit) v1beta1.Deposit {
|
||||
return v1beta1.Deposit{
|
||||
ProposalId: deposit.ProposalId,
|
||||
Depositor: deposit.Depositor,
|
||||
@ -120,10 +120,10 @@ func ConvertToLegacyDeposit(deposit *v1beta2.Deposit) v1beta1.Deposit {
|
||||
}
|
||||
}
|
||||
|
||||
func convertToNewDeposits(oldDeps v1beta1.Deposits) v1beta2.Deposits {
|
||||
newDeps := make([]*v1beta2.Deposit, len(oldDeps))
|
||||
func convertToNewDeposits(oldDeps v1beta1.Deposits) v1.Deposits {
|
||||
newDeps := make([]*v1.Deposit, len(oldDeps))
|
||||
for i, oldDep := range oldDeps {
|
||||
newDeps[i] = &v1beta2.Deposit{
|
||||
newDeps[i] = &v1.Deposit{
|
||||
ProposalId: oldDep.ProposalId,
|
||||
Depositor: oldDep.Depositor,
|
||||
Amount: oldDep.Amount,
|
||||
@ -133,27 +133,27 @@ func convertToNewDeposits(oldDeps v1beta1.Deposits) v1beta2.Deposits {
|
||||
return newDeps
|
||||
}
|
||||
|
||||
func convertToNewVotes(oldVotes v1beta1.Votes) (v1beta2.Votes, error) {
|
||||
newVotes := make([]*v1beta2.Vote, len(oldVotes))
|
||||
func convertToNewVotes(oldVotes v1beta1.Votes) (v1.Votes, error) {
|
||||
newVotes := make([]*v1.Vote, len(oldVotes))
|
||||
for i, oldVote := range oldVotes {
|
||||
var newWVOs []*v1beta2.WeightedVoteOption
|
||||
var newWVOs []*v1.WeightedVoteOption
|
||||
|
||||
// We deprecated Vote.Option in v043. However, it might still be set.
|
||||
// - if only Options is set, or both Option & Options are set, we read from Options,
|
||||
// - if Options is not set, and Option is set, we read from Option,
|
||||
// - if none are set, we throw error.
|
||||
if oldVote.Options != nil {
|
||||
newWVOs = make([]*v1beta2.WeightedVoteOption, len(oldVote.Options))
|
||||
newWVOs = make([]*v1.WeightedVoteOption, len(oldVote.Options))
|
||||
for j, oldWVO := range oldVote.Options {
|
||||
newWVOs[j] = v1beta2.NewWeightedVoteOption(v1beta2.VoteOption(oldWVO.Option), oldWVO.Weight)
|
||||
newWVOs[j] = v1.NewWeightedVoteOption(v1.VoteOption(oldWVO.Option), oldWVO.Weight)
|
||||
}
|
||||
} else if oldVote.Option != v1beta1.OptionEmpty {
|
||||
newWVOs = v1beta2.NewNonSplitVoteOption(v1beta2.VoteOption(oldVote.Option))
|
||||
newWVOs = v1.NewNonSplitVoteOption(v1.VoteOption(oldVote.Option))
|
||||
} else {
|
||||
return nil, fmt.Errorf("vote does not have neither Options nor Option")
|
||||
}
|
||||
|
||||
newVotes[i] = &v1beta2.Vote{
|
||||
newVotes[i] = &v1.Vote{
|
||||
ProposalId: oldVote.ProposalId,
|
||||
Voter: oldVote.Voter,
|
||||
Options: newWVOs,
|
||||
@ -163,42 +163,42 @@ func convertToNewVotes(oldVotes v1beta1.Votes) (v1beta2.Votes, error) {
|
||||
return newVotes, nil
|
||||
}
|
||||
|
||||
func convertToNewDepParams(oldDepParams v1beta1.DepositParams) v1beta2.DepositParams {
|
||||
return v1beta2.DepositParams{
|
||||
func convertToNewDepParams(oldDepParams v1beta1.DepositParams) v1.DepositParams {
|
||||
return v1.DepositParams{
|
||||
MinDeposit: oldDepParams.MinDeposit,
|
||||
MaxDepositPeriod: &oldDepParams.MaxDepositPeriod,
|
||||
}
|
||||
}
|
||||
|
||||
func convertToNewVotingParams(oldVoteParams v1beta1.VotingParams) v1beta2.VotingParams {
|
||||
return v1beta2.VotingParams{
|
||||
func convertToNewVotingParams(oldVoteParams v1beta1.VotingParams) v1.VotingParams {
|
||||
return v1.VotingParams{
|
||||
VotingPeriod: &oldVoteParams.VotingPeriod,
|
||||
}
|
||||
}
|
||||
|
||||
func convertToNewTallyParams(oldTallyParams v1beta1.TallyParams) v1beta2.TallyParams {
|
||||
return v1beta2.TallyParams{
|
||||
func convertToNewTallyParams(oldTallyParams v1beta1.TallyParams) v1.TallyParams {
|
||||
return v1.TallyParams{
|
||||
Quorum: oldTallyParams.Quorum.String(),
|
||||
Threshold: oldTallyParams.Threshold.String(),
|
||||
VetoThreshold: oldTallyParams.VetoThreshold.String(),
|
||||
}
|
||||
}
|
||||
|
||||
func convertToNewProposal(oldProp v1beta1.Proposal) (v1beta2.Proposal, error) {
|
||||
msg, err := v1beta2.NewLegacyContent(oldProp.GetContent(), authtypes.NewModuleAddress(ModuleName).String())
|
||||
func convertToNewProposal(oldProp v1beta1.Proposal) (v1.Proposal, error) {
|
||||
msg, err := v1.NewLegacyContent(oldProp.GetContent(), authtypes.NewModuleAddress(ModuleName).String())
|
||||
if err != nil {
|
||||
return v1beta2.Proposal{}, err
|
||||
return v1.Proposal{}, err
|
||||
}
|
||||
msgAny, err := codectypes.NewAnyWithValue(msg)
|
||||
if err != nil {
|
||||
return v1beta2.Proposal{}, err
|
||||
return v1.Proposal{}, err
|
||||
}
|
||||
|
||||
return v1beta2.Proposal{
|
||||
return v1.Proposal{
|
||||
Id: oldProp.ProposalId,
|
||||
Messages: []*codectypes.Any{msgAny},
|
||||
Status: v1beta2.ProposalStatus(oldProp.Status),
|
||||
FinalTallyResult: &v1beta2.TallyResult{
|
||||
Status: v1.ProposalStatus(oldProp.Status),
|
||||
FinalTallyResult: &v1.TallyResult{
|
||||
YesCount: oldProp.FinalTallyResult.Yes.String(),
|
||||
NoCount: oldProp.FinalTallyResult.No.String(),
|
||||
AbstainCount: oldProp.FinalTallyResult.Abstain.String(),
|
||||
@ -212,8 +212,8 @@ func convertToNewProposal(oldProp v1beta1.Proposal) (v1beta2.Proposal, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func convertToNewProposals(oldProps v1beta1.Proposals) (v1beta2.Proposals, error) {
|
||||
newProps := make([]*v1beta2.Proposal, len(oldProps))
|
||||
func convertToNewProposals(oldProps v1beta1.Proposals) (v1.Proposals, error) {
|
||||
newProps := make([]*v1.Proposal, len(oldProps))
|
||||
for i, oldProp := range oldProps {
|
||||
p, err := convertToNewProposal(oldProp)
|
||||
if err != nil {
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
package v046
|
||||
|
||||
import (
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
// MigrateJSON accepts exported v0.43 x/gov genesis state and migrates it to
|
||||
// v0.46 x/gov genesis state. The migration includes:
|
||||
//
|
||||
// - Updating everything to v1beta2.
|
||||
// - Updating everything to v1.
|
||||
// - Migrating proposals to be Msg-based.
|
||||
func MigrateJSON(oldState *v1beta1.GenesisState) (*v1beta2.GenesisState, error) {
|
||||
func MigrateJSON(oldState *v1beta1.GenesisState) (*v1.GenesisState, error) {
|
||||
newProps, err := convertToNewProposals(oldState.Proposals)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -22,7 +22,7 @@ func MigrateJSON(oldState *v1beta1.GenesisState) (*v1beta2.GenesisState, error)
|
||||
|
||||
depParams, votingParms, tallyParams := convertToNewDepParams(oldState.DepositParams), convertToNewVotingParams(oldState.VotingParams), convertToNewTallyParams(oldState.TallyParams)
|
||||
|
||||
return &v1beta2.GenesisState{
|
||||
return &v1.GenesisState{
|
||||
StartingProposalId: oldState.StartingProposalId,
|
||||
Deposits: convertToNewDeposits(oldState.Deposits),
|
||||
Votes: newVotes,
|
||||
|
||||
@ -15,8 +15,8 @@ import (
|
||||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
||||
v046 "github.com/cosmos/cosmos-sdk/x/gov/migrations/v046"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
func TestMigrateJSON(t *testing.T) {
|
||||
@ -57,7 +57,7 @@ func TestMigrateJSON(t *testing.T) {
|
||||
// Make sure the migrated proposal's Msg signer is the gov acct.
|
||||
require.Equal(t,
|
||||
authtypes.NewModuleAddress(types.ModuleName).String(),
|
||||
migrated.Proposals[0].Messages[0].GetCachedValue().(*v1beta2.MsgExecLegacyContent).Authority,
|
||||
migrated.Proposals[0].Messages[0].GetCachedValue().(*v1.MsgExecLegacyContent).Authority,
|
||||
)
|
||||
|
||||
bz, err := clientCtx.Codec.MarshalJSON(migrated)
|
||||
@ -95,7 +95,7 @@ func TestMigrateJSON(t *testing.T) {
|
||||
"id": "1",
|
||||
"messages": [
|
||||
{
|
||||
"@type": "/cosmos.gov.v1beta2.MsgExecLegacyContent",
|
||||
"@type": "/cosmos.gov.v1.MsgExecLegacyContent",
|
||||
"authority": "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn",
|
||||
"content": {
|
||||
"@type": "/cosmos.gov.v1beta1.TextProposal",
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
v040gov "github.com/cosmos/cosmos-sdk/x/gov/migrations/v040"
|
||||
v046gov "github.com/cosmos/cosmos-sdk/x/gov/migrations/v046"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
|
||||
)
|
||||
|
||||
@ -43,18 +43,18 @@ func TestMigrateStore(t *testing.T) {
|
||||
err = v046gov.MigrateStore(ctx, govKey, cdc)
|
||||
require.NoError(t, err)
|
||||
|
||||
var newProp1 v1beta2.Proposal
|
||||
var newProp1 v1.Proposal
|
||||
err = cdc.Unmarshal(store.Get(v040gov.ProposalKey(prop1.ProposalId)), &newProp1)
|
||||
require.NoError(t, err)
|
||||
compareProps(t, prop1, newProp1)
|
||||
|
||||
var newProp2 v1beta2.Proposal
|
||||
var newProp2 v1.Proposal
|
||||
err = cdc.Unmarshal(store.Get(v040gov.ProposalKey(prop2.ProposalId)), &newProp2)
|
||||
require.NoError(t, err)
|
||||
compareProps(t, prop2, newProp2)
|
||||
}
|
||||
|
||||
func compareProps(t *testing.T, oldProp v1beta1.Proposal, newProp v1beta2.Proposal) {
|
||||
func compareProps(t *testing.T, oldProp v1beta1.Proposal, newProp v1.Proposal) {
|
||||
require.Equal(t, oldProp.ProposalId, newProp.Id)
|
||||
require.Equal(t, oldProp.TotalDeposit.String(), sdk.Coins(newProp.TotalDeposit).String())
|
||||
require.Equal(t, oldProp.Status.String(), newProp.Status.String())
|
||||
@ -63,7 +63,7 @@ func compareProps(t *testing.T, oldProp v1beta1.Proposal, newProp v1beta2.Propos
|
||||
require.Equal(t, oldProp.FinalTallyResult.NoWithVeto.String(), newProp.FinalTallyResult.NoWithVetoCount)
|
||||
require.Equal(t, oldProp.FinalTallyResult.Abstain.String(), newProp.FinalTallyResult.AbstainCount)
|
||||
|
||||
newContent := newProp.Messages[0].GetCachedValue().(*v1beta2.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content)
|
||||
newContent := newProp.Messages[0].GetCachedValue().(*v1.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content)
|
||||
require.Equal(t, oldProp.Content.GetCachedValue().(v1beta1.Content), newContent)
|
||||
|
||||
// Compare UNIX times, as a simple Equal gives difference between Local and
|
||||
|
||||
@ -24,8 +24,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -55,23 +55,23 @@ func (AppModuleBasic) Name() string {
|
||||
// RegisterLegacyAminoCodec registers the gov module's types for the given codec.
|
||||
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
v1beta1.RegisterLegacyAminoCodec(cdc)
|
||||
v1beta2.RegisterLegacyAminoCodec(cdc)
|
||||
v1.RegisterLegacyAminoCodec(cdc)
|
||||
}
|
||||
|
||||
// DefaultGenesis returns default genesis state as raw bytes for the gov
|
||||
// module.
|
||||
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
|
||||
return cdc.MustMarshalJSON(v1beta2.DefaultGenesisState())
|
||||
return cdc.MustMarshalJSON(v1.DefaultGenesisState())
|
||||
}
|
||||
|
||||
// ValidateGenesis performs genesis state validation for the gov module.
|
||||
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
|
||||
var data v1beta2.GenesisState
|
||||
var data v1.GenesisState
|
||||
if err := cdc.UnmarshalJSON(bz, &data); err != nil {
|
||||
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
|
||||
}
|
||||
|
||||
return v1beta2.ValidateGenesis(&data)
|
||||
return v1.ValidateGenesis(&data)
|
||||
}
|
||||
|
||||
// RegisterRESTRoutes registers the REST routes for the gov module.
|
||||
@ -81,7 +81,7 @@ func (a AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Ro
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the gov module.
|
||||
func (a AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
|
||||
if err := v1beta2.RegisterQueryHandlerClient(context.Background(), mux, v1beta2.NewQueryClient(clientCtx)); err != nil {
|
||||
if err := v1.RegisterQueryHandlerClient(context.Background(), mux, v1.NewQueryClient(clientCtx)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := v1beta1.RegisterQueryHandlerClient(context.Background(), mux, v1beta1.NewQueryClient(clientCtx)); err != nil {
|
||||
@ -111,7 +111,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command {
|
||||
|
||||
// RegisterInterfaces implements InterfaceModule.RegisterInterfaces
|
||||
func (a AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
||||
v1beta2.RegisterInterfaces(registry)
|
||||
v1.RegisterInterfaces(registry)
|
||||
v1beta1.RegisterInterfaces(registry)
|
||||
}
|
||||
|
||||
@ -163,11 +163,11 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
|
||||
func (am AppModule) RegisterServices(cfg module.Configurator) {
|
||||
msgServer := keeper.NewMsgServerImpl(am.keeper)
|
||||
v1beta1.RegisterMsgServer(cfg.MsgServer(), keeper.NewLegacyMsgServerImpl(am.accountKeeper.GetModuleAddress(types.ModuleName).String(), msgServer))
|
||||
v1beta2.RegisterMsgServer(cfg.MsgServer(), msgServer)
|
||||
v1.RegisterMsgServer(cfg.MsgServer(), msgServer)
|
||||
|
||||
legacyQueryServer := keeper.NewLegacyQueryServer(am.keeper)
|
||||
v1beta1.RegisterQueryServer(cfg.QueryServer(), legacyQueryServer)
|
||||
v1beta2.RegisterQueryServer(cfg.QueryServer(), am.keeper)
|
||||
v1.RegisterQueryServer(cfg.QueryServer(), am.keeper)
|
||||
|
||||
m := keeper.NewMigrator(am.keeper)
|
||||
err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2)
|
||||
@ -183,7 +183,7 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
|
||||
// InitGenesis performs genesis initialization for the gov module. It returns
|
||||
// no validator updates.
|
||||
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate {
|
||||
var genesisState v1beta2.GenesisState
|
||||
var genesisState v1.GenesisState
|
||||
cdc.MustUnmarshalJSON(data, &genesisState)
|
||||
InitGenesis(ctx, am.accountKeeper, am.bankKeeper, am.keeper, &genesisState)
|
||||
return []abci.ValidatorUpdate{}
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
"github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// Simulation parameter constants
|
||||
@ -95,11 +95,11 @@ func RandomizedGenState(simState *module.SimulationState) {
|
||||
func(r *rand.Rand) { veto = GenTallyParamsVeto(r) },
|
||||
)
|
||||
|
||||
govGenesis := v1beta2.NewGenesisState(
|
||||
govGenesis := v1.NewGenesisState(
|
||||
startingProposalID,
|
||||
v1beta2.NewDepositParams(minDeposit, depositPeriod),
|
||||
v1beta2.NewVotingParams(votingPeriod),
|
||||
v1beta2.NewTallyParams(quorum, threshold, veto),
|
||||
v1.NewDepositParams(minDeposit, depositPeriod),
|
||||
v1.NewVotingParams(votingPeriod),
|
||||
v1.NewTallyParams(quorum, threshold, veto),
|
||||
)
|
||||
|
||||
bz, err := json.MarshalIndent(&govGenesis, "", " ")
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
// TestRandomizedGenState tests the normal scenario of applying RandomizedGenState.
|
||||
@ -38,7 +38,7 @@ func TestRandomizedGenState(t *testing.T) {
|
||||
|
||||
simulation.RandomizedGenState(&simState)
|
||||
|
||||
var govGenesis v1beta2.GenesisState
|
||||
var govGenesis v1.GenesisState
|
||||
simState.Cdc.MustUnmarshalJSON(simState.GenState[types.ModuleName], &govGenesis)
|
||||
|
||||
dec1, _ := sdk.NewDecFromStr("0.361000000000000000")
|
||||
@ -52,9 +52,9 @@ func TestRandomizedGenState(t *testing.T) {
|
||||
require.Equal(t, dec2.String(), govGenesis.TallyParams.Threshold)
|
||||
require.Equal(t, dec3.String(), govGenesis.TallyParams.VetoThreshold)
|
||||
require.Equal(t, uint64(0x28), govGenesis.StartingProposalId)
|
||||
require.Equal(t, []*v1beta2.Deposit{}, govGenesis.Deposits)
|
||||
require.Equal(t, []*v1beta2.Vote{}, govGenesis.Votes)
|
||||
require.Equal(t, []*v1beta2.Proposal{}, govGenesis.Proposals)
|
||||
require.Equal(t, []*v1.Deposit{}, govGenesis.Deposits)
|
||||
require.Equal(t, []*v1.Vote{}, govGenesis.Votes)
|
||||
require.Equal(t, []*v1.Proposal{}, govGenesis.Proposals)
|
||||
}
|
||||
|
||||
// TestRandomizedGenState tests abnormal scenarios of applying RandomizedGenState.
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/simulation"
|
||||
)
|
||||
|
||||
@ -21,10 +21,10 @@ var initialProposalID = uint64(100000000000000)
|
||||
|
||||
// Governance message types and routes
|
||||
var (
|
||||
TypeMsgDeposit = sdk.MsgTypeURL(&v1beta2.MsgDeposit{})
|
||||
TypeMsgVote = sdk.MsgTypeURL(&v1beta2.MsgVote{})
|
||||
TypeMsgVoteWeighted = sdk.MsgTypeURL(&v1beta2.MsgVoteWeighted{})
|
||||
TypeMsgSubmitProposal = sdk.MsgTypeURL(&v1beta2.MsgSubmitProposal{})
|
||||
TypeMsgDeposit = sdk.MsgTypeURL(&v1.MsgDeposit{})
|
||||
TypeMsgVote = sdk.MsgTypeURL(&v1.MsgVote{})
|
||||
TypeMsgVoteWeighted = sdk.MsgTypeURL(&v1.MsgVoteWeighted{})
|
||||
TypeMsgSubmitProposal = sdk.MsgTypeURL(&v1.MsgSubmitProposal{})
|
||||
)
|
||||
|
||||
// Simulation operation weights constants
|
||||
@ -147,12 +147,12 @@ func SimulateMsgSubmitProposal(
|
||||
}
|
||||
|
||||
macc := k.GetGovernanceAccount(ctx)
|
||||
contentMsg, err := v1beta2.NewLegacyContent(content, macc.GetAddress().String())
|
||||
contentMsg, err := v1.NewLegacyContent(content, macc.GetAddress().String())
|
||||
if err != nil {
|
||||
return simtypes.NoOpMsg(types.ModuleName, TypeMsgSubmitProposal, "error converting legacy content into proposal message"), nil, err
|
||||
}
|
||||
|
||||
msg, err := v1beta2.NewMsgSubmitProposal([]sdk.Msg{contentMsg}, deposit, simAccount.Address.String(), "")
|
||||
msg, err := v1.NewMsgSubmitProposal([]sdk.Msg{contentMsg}, deposit, simAccount.Address.String(), "")
|
||||
if err != nil {
|
||||
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unable to generate a submit proposal msg"), nil, err
|
||||
}
|
||||
@ -229,7 +229,7 @@ func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Ke
|
||||
accs []simtypes.Account, chainID string,
|
||||
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
|
||||
simAccount, _ := simtypes.RandomAcc(r, accs)
|
||||
proposalID, ok := randomProposalID(r, k, ctx, v1beta2.StatusDepositPeriod)
|
||||
proposalID, ok := randomProposalID(r, k, ctx, v1.StatusDepositPeriod)
|
||||
if !ok {
|
||||
return simtypes.NoOpMsg(types.ModuleName, TypeMsgDeposit, "unable to generate proposalID"), nil, nil
|
||||
}
|
||||
@ -242,7 +242,7 @@ func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Ke
|
||||
return simtypes.NoOpMsg(types.ModuleName, TypeMsgDeposit, "unable to generate deposit"), nil, err
|
||||
}
|
||||
|
||||
msg := v1beta2.NewMsgDeposit(simAccount.Address, proposalID, deposit)
|
||||
msg := v1.NewMsgDeposit(simAccount.Address, proposalID, deposit)
|
||||
|
||||
account := ak.GetAccount(ctx, simAccount.Address)
|
||||
spendable := bk.SpendableCoins(ctx, account.GetAddress())
|
||||
@ -292,7 +292,7 @@ func operationSimulateMsgVote(ak types.AccountKeeper, bk types.BankKeeper, k kee
|
||||
switch {
|
||||
case proposalIDInt < 0:
|
||||
var ok bool
|
||||
proposalID, ok = randomProposalID(r, k, ctx, v1beta2.StatusVotingPeriod)
|
||||
proposalID, ok = randomProposalID(r, k, ctx, v1.StatusVotingPeriod)
|
||||
if !ok {
|
||||
return simtypes.NoOpMsg(types.ModuleName, TypeMsgVote, "unable to generate proposalID"), nil, nil
|
||||
}
|
||||
@ -301,7 +301,7 @@ func operationSimulateMsgVote(ak types.AccountKeeper, bk types.BankKeeper, k kee
|
||||
}
|
||||
|
||||
option := randomVotingOption(r)
|
||||
msg := v1beta2.NewMsgVote(simAccount.Address, proposalID, option, "")
|
||||
msg := v1.NewMsgVote(simAccount.Address, proposalID, option, "")
|
||||
|
||||
account := ak.GetAccount(ctx, simAccount.Address)
|
||||
spendable := bk.SpendableCoins(ctx, account.GetAddress())
|
||||
@ -345,7 +345,7 @@ func operationSimulateMsgVoteWeighted(ak types.AccountKeeper, bk types.BankKeepe
|
||||
switch {
|
||||
case proposalIDInt < 0:
|
||||
var ok bool
|
||||
proposalID, ok = randomProposalID(r, k, ctx, v1beta2.StatusVotingPeriod)
|
||||
proposalID, ok = randomProposalID(r, k, ctx, v1.StatusVotingPeriod)
|
||||
if !ok {
|
||||
return simtypes.NoOpMsg(types.ModuleName, TypeMsgVoteWeighted, "unable to generate proposalID"), nil, nil
|
||||
}
|
||||
@ -354,7 +354,7 @@ func operationSimulateMsgVoteWeighted(ak types.AccountKeeper, bk types.BankKeepe
|
||||
}
|
||||
|
||||
options := randomWeightedVotingOptions(r)
|
||||
msg := v1beta2.NewMsgVoteWeighted(simAccount.Address, proposalID, options, "")
|
||||
msg := v1.NewMsgVoteWeighted(simAccount.Address, proposalID, options, "")
|
||||
|
||||
account := ak.GetAccount(ctx, simAccount.Address)
|
||||
spendable := bk.SpendableCoins(ctx, account.GetAddress())
|
||||
@ -419,7 +419,7 @@ func randomDeposit(r *rand.Rand, ctx sdk.Context,
|
||||
// that matches a given Status.
|
||||
// It does not provide a default ID.
|
||||
func randomProposalID(r *rand.Rand, k keeper.Keeper,
|
||||
ctx sdk.Context, status v1beta2.ProposalStatus) (proposalID uint64, found bool) {
|
||||
ctx sdk.Context, status v1.ProposalStatus) (proposalID uint64, found bool) {
|
||||
proposalID, _ = k.GetProposalID(ctx)
|
||||
|
||||
switch {
|
||||
@ -434,7 +434,7 @@ func randomProposalID(r *rand.Rand, k keeper.Keeper,
|
||||
}
|
||||
|
||||
proposal, ok := k.GetProposal(ctx, proposalID)
|
||||
if !ok || v1beta2.ProposalStatus(proposal.Status) != status {
|
||||
if !ok || v1.ProposalStatus(proposal.Status) != status {
|
||||
return proposalID, false
|
||||
}
|
||||
|
||||
@ -442,49 +442,49 @@ func randomProposalID(r *rand.Rand, k keeper.Keeper,
|
||||
}
|
||||
|
||||
// Pick a random voting option
|
||||
func randomVotingOption(r *rand.Rand) v1beta2.VoteOption {
|
||||
func randomVotingOption(r *rand.Rand) v1.VoteOption {
|
||||
switch r.Intn(4) {
|
||||
case 0:
|
||||
return v1beta2.OptionYes
|
||||
return v1.OptionYes
|
||||
case 1:
|
||||
return v1beta2.OptionAbstain
|
||||
return v1.OptionAbstain
|
||||
case 2:
|
||||
return v1beta2.OptionNo
|
||||
return v1.OptionNo
|
||||
case 3:
|
||||
return v1beta2.OptionNoWithVeto
|
||||
return v1.OptionNoWithVeto
|
||||
default:
|
||||
panic("invalid vote option")
|
||||
}
|
||||
}
|
||||
|
||||
// Pick a random weighted voting options
|
||||
func randomWeightedVotingOptions(r *rand.Rand) v1beta2.WeightedVoteOptions {
|
||||
func randomWeightedVotingOptions(r *rand.Rand) v1.WeightedVoteOptions {
|
||||
w1 := r.Intn(100 + 1)
|
||||
w2 := r.Intn(100 - w1 + 1)
|
||||
w3 := r.Intn(100 - w1 - w2 + 1)
|
||||
w4 := 100 - w1 - w2 - w3
|
||||
weightedVoteOptions := v1beta2.WeightedVoteOptions{}
|
||||
weightedVoteOptions := v1.WeightedVoteOptions{}
|
||||
if w1 > 0 {
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.OptionYes,
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1.WeightedVoteOption{
|
||||
Option: v1.OptionYes,
|
||||
Weight: sdk.NewDecWithPrec(int64(w1), 2).String(),
|
||||
})
|
||||
}
|
||||
if w2 > 0 {
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.OptionAbstain,
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1.WeightedVoteOption{
|
||||
Option: v1.OptionAbstain,
|
||||
Weight: sdk.NewDecWithPrec(int64(w2), 2).String(),
|
||||
})
|
||||
}
|
||||
if w3 > 0 {
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.OptionNo,
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1.WeightedVoteOption{
|
||||
Option: v1.OptionNo,
|
||||
Weight: sdk.NewDecWithPrec(int64(w3), 2).String(),
|
||||
})
|
||||
}
|
||||
if w4 > 0 {
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1beta2.WeightedVoteOption{
|
||||
Option: v1beta2.OptionNoWithVeto,
|
||||
weightedVoteOptions = append(weightedVoteOptions, &v1.WeightedVoteOption{
|
||||
Option: v1.OptionNoWithVeto,
|
||||
Weight: sdk.NewDecWithPrec(int64(w4), 2).String(),
|
||||
})
|
||||
}
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/bank/testutil"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/simulation"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
|
||||
)
|
||||
|
||||
@ -116,7 +116,7 @@ func TestSimulateMsgSubmitProposal(t *testing.T) {
|
||||
operationMsg, _, err := op(r, app.BaseApp, ctx, accounts, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
var msg v1beta2.MsgSubmitProposal
|
||||
var msg v1.MsgSubmitProposal
|
||||
err = legacy.Cdc.UnmarshalJSON(operationMsg.Msg, &msg)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -124,8 +124,8 @@ func TestSimulateMsgSubmitProposal(t *testing.T) {
|
||||
require.Equal(t, "cosmos1p8wcgrjr4pjju90xg6u9cgq55dxwq8j7u4x9a0", msg.Proposer)
|
||||
require.NotEqual(t, len(msg.InitialDeposit), 0)
|
||||
require.Equal(t, "2686011stake", msg.InitialDeposit[0].String())
|
||||
require.Equal(t, "title-3: ZBSpYuLyYggwexjxusrBqDOTtGTOWeLrQKjLxzIivHSlcxgdXhhuTSkuxKGLwQvuyNhYFmBZHeAerqyNEUzXPFGkqEGqiQWIXnku", msg.Messages[0].GetCachedValue().(*v1beta2.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetTitle())
|
||||
require.Equal(t, "description-3: NJWzHdBNpAXKJPHWQdrGYcAHSctgVl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qEuQsAFoxWrzRnTVjStPadhsESlERnKhpEPsfDxNvxqcOyIulaCkmPdambLHvGhTZzysvqFauEgkFRItPfvisehFmoBhQqmkfbHVsgfHXDPJVyhwPllQpuYLRYvGodxKjkarnSNgsXoKEMlaSKxKdcVgvOkuLcfLFfdtXGTclqfPOfeoVLbqcjcXCUEBgAGplrkgsmIEhWRZLlGPGCwKWRaCKMkBHTAcypUrYjWwCLtOPVygMwMANGoQwFnCqFrUGMCRZUGJKTZIGPyldsifauoMnJPLTcDHmilcmahlqOELaAUYDBuzsVywnDQfwRLGIWozYaOAilMBcObErwgTDNGWnwQMUgFFSKtPDMEoEQCTKVREqrXZSGLqwTMcxHfWotDllNkIJPMbXzjDVjPOOjCFuIvTyhXKLyhUScOXvYthRXpPfKwMhptXaxIxgqBoUqzrWbaoLTVpQoottZyPFfNOoMioXHRuFwMRYUiKvcWPkrayyTLOCFJlAyslDameIuqVAuxErqFPEWIScKpBORIuZqoXlZuTvAjEdlEWDODFRregDTqGNoFBIHxvimmIZwLfFyKUfEWAnNBdtdzDmTPXtpHRGdIbuucfTjOygZsTxPjfweXhSUkMhPjMaxKlMIJMOXcnQfyzeOcbWwNbeH", msg.Messages[0].GetCachedValue().(*v1beta2.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetDescription())
|
||||
require.Equal(t, "title-3: ZBSpYuLyYggwexjxusrBqDOTtGTOWeLrQKjLxzIivHSlcxgdXhhuTSkuxKGLwQvuyNhYFmBZHeAerqyNEUzXPFGkqEGqiQWIXnku", msg.Messages[0].GetCachedValue().(*v1.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetTitle())
|
||||
require.Equal(t, "description-3: NJWzHdBNpAXKJPHWQdrGYcAHSctgVlqwqHoLfHsXUdStwfefwzqLuKEhmMyYLdbZrcPgYqjNHxPexsruwEGStAneKbWkQDDIlCWBLSiAASNhZqNFlPtfqPJoxKsgMdzjWqLWdqKQuJqWPMvwPQWZUtVMOTMYKJbfdlZs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laSKxKdcVgvOkuLcfLFfdtXGTclqfPOfeoVLbqcjcXCUEBgAGplrkgsmIEhWRZLlGPGCwKWRaCKMkBHTAcypUrYjWwCLtOPVygMwMANGoQwFnCqFrUGMCRZUGJKTZIGPyldsifauoMnJPLTcDHmilcmahlqOELaAUYDBuzsVywnDQfwRLGIWozYaOAilMBcObErwgTDNGWnwQMUgFFSKtPDMEoEQCTKVREqrXZSGLqwTMcxHfWotDllNkIJPMbXzjDVjPOOjCFuIvTyhXKLyhUScOXvYthRXpPfKwMhptXaxIxgqBoUqzrWbaoLTVpQoottZyPFfNOoMioXHRuFwMRYUiKvcWPkrayyTLOCFJlAyslDameIuqVAuxErqFPEWIScKpBORIuZqoXlZuTvAjEdlEWDODFRregDTqGNoFBIHxvimmIZwLfFyKUfEWAnNBdtdzDmTPXtpHRGdIbuucfTjOygZsTxPjfweXhSUkMhPjMaxKlMIJMOXcnQfyzeOcbWwNbeH", msg.Messages[0].GetCachedValue().(*v1.MsgExecLegacyContent).Content.GetCachedValue().(v1beta1.Content).GetDescription())
|
||||
require.Equal(t, "gov", msg.Route())
|
||||
require.Equal(t, simulation.TypeMsgSubmitProposal, msg.Type())
|
||||
}
|
||||
@ -144,13 +144,13 @@ func TestSimulateMsgDeposit(t *testing.T) {
|
||||
|
||||
// setup a proposal
|
||||
content := v1beta1.NewTextProposal("Test", "description")
|
||||
contentMsg, err := v1beta2.NewLegacyContent(content, app.GovKeeper.GetGovernanceAccount(ctx).GetAddress().String())
|
||||
contentMsg, err := v1.NewLegacyContent(content, app.GovKeeper.GetGovernanceAccount(ctx).GetAddress().String())
|
||||
require.NoError(t, err)
|
||||
|
||||
submitTime := ctx.BlockHeader().Time
|
||||
depositPeriod := app.GovKeeper.GetDepositParams(ctx).MaxDepositPeriod
|
||||
|
||||
proposal, err := v1beta2.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
proposal, err := v1.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
require.NoError(t, err)
|
||||
|
||||
app.GovKeeper.SetProposal(ctx, proposal)
|
||||
@ -163,7 +163,7 @@ func TestSimulateMsgDeposit(t *testing.T) {
|
||||
operationMsg, _, err := op(r, app.BaseApp, ctx, accounts, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
var msg v1beta2.MsgDeposit
|
||||
var msg v1.MsgDeposit
|
||||
err = legacy.Cdc.UnmarshalJSON(operationMsg.Msg, &msg)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -190,13 +190,13 @@ func TestSimulateMsgVote(t *testing.T) {
|
||||
|
||||
// setup a proposal
|
||||
govAcc := app.GovKeeper.GetGovernanceAccount(ctx).GetAddress().String()
|
||||
contentMsg, err := v1beta2.NewLegacyContent(v1beta1.NewTextProposal("Test", "description"), govAcc)
|
||||
contentMsg, err := v1.NewLegacyContent(v1beta1.NewTextProposal("Test", "description"), govAcc)
|
||||
require.NoError(t, err)
|
||||
|
||||
submitTime := ctx.BlockHeader().Time
|
||||
depositPeriod := app.GovKeeper.GetDepositParams(ctx).MaxDepositPeriod
|
||||
|
||||
proposal, err := v1beta2.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
proposal, err := v1.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
require.NoError(t, err)
|
||||
|
||||
app.GovKeeper.ActivateVotingPeriod(ctx, proposal)
|
||||
@ -209,13 +209,13 @@ func TestSimulateMsgVote(t *testing.T) {
|
||||
operationMsg, _, err := op(r, app.BaseApp, ctx, accounts, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
var msg v1beta2.MsgVote
|
||||
var msg v1.MsgVote
|
||||
legacy.Cdc.UnmarshalJSON(operationMsg.Msg, &msg)
|
||||
|
||||
require.True(t, operationMsg.OK)
|
||||
require.Equal(t, uint64(1), msg.ProposalId)
|
||||
require.Equal(t, "cosmos1ghekyjucln7y67ntx7cf27m9dpuxxemn4c8g4r", msg.Voter)
|
||||
require.Equal(t, v1beta2.OptionYes, msg.Option)
|
||||
require.Equal(t, v1.OptionYes, msg.Option)
|
||||
require.Equal(t, "gov", msg.Route())
|
||||
require.Equal(t, simulation.TypeMsgVote, msg.Type())
|
||||
}
|
||||
@ -234,12 +234,12 @@ func TestSimulateMsgVoteWeighted(t *testing.T) {
|
||||
|
||||
// setup a proposal
|
||||
govAcc := app.GovKeeper.GetGovernanceAccount(ctx).GetAddress().String()
|
||||
contentMsg, err := v1beta2.NewLegacyContent(v1beta1.NewTextProposal("Test", "description"), govAcc)
|
||||
contentMsg, err := v1.NewLegacyContent(v1beta1.NewTextProposal("Test", "description"), govAcc)
|
||||
require.NoError(t, err)
|
||||
submitTime := ctx.BlockHeader().Time
|
||||
depositPeriod := app.GovKeeper.GetDepositParams(ctx).MaxDepositPeriod
|
||||
|
||||
proposal, err := v1beta2.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
proposal, err := v1.NewProposal([]sdk.Msg{contentMsg}, 1, "", submitTime, submitTime.Add(*depositPeriod))
|
||||
require.NoError(t, err)
|
||||
|
||||
app.GovKeeper.ActivateVotingPeriod(ctx, proposal)
|
||||
@ -252,7 +252,7 @@ func TestSimulateMsgVoteWeighted(t *testing.T) {
|
||||
operationMsg, _, err := op(r, app.BaseApp, ctx, accounts, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
var msg v1beta2.MsgVoteWeighted
|
||||
var msg v1.MsgVoteWeighted
|
||||
legacy.Cdc.UnmarshalJSON(operationMsg.Msg, &msg)
|
||||
|
||||
require.True(t, operationMsg.OK)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
@ -11,11 +11,11 @@ import (
|
||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||
// governance module.
|
||||
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
cdc.RegisterConcrete(&MsgSubmitProposal{}, "cosmos-sdk/v1beta2/MsgSubmitProposal", nil)
|
||||
cdc.RegisterConcrete(&MsgDeposit{}, "cosmos-sdk/v1beta2/MsgDeposit", nil)
|
||||
cdc.RegisterConcrete(&MsgVote{}, "cosmos-sdk/v1beta2/MsgVote", nil)
|
||||
cdc.RegisterConcrete(&MsgVoteWeighted{}, "cosmos-sdk/v1beta2/MsgVoteWeighted", nil)
|
||||
cdc.RegisterConcrete(&MsgExecLegacyContent{}, "cosmos-sdk/v1beta2/MsgExecLegacyContent", nil)
|
||||
cdc.RegisterConcrete(&MsgSubmitProposal{}, "cosmos-sdk/v1/MsgSubmitProposal", nil)
|
||||
cdc.RegisterConcrete(&MsgDeposit{}, "cosmos-sdk/v1/MsgDeposit", nil)
|
||||
cdc.RegisterConcrete(&MsgVote{}, "cosmos-sdk/v1/MsgVote", nil)
|
||||
cdc.RegisterConcrete(&MsgVoteWeighted{}, "cosmos-sdk/v1/MsgVoteWeighted", nil)
|
||||
cdc.RegisterConcrete(&MsgExecLegacyContent{}, "cosmos-sdk/v1/MsgExecLegacyContent", nil)
|
||||
}
|
||||
|
||||
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/gov/v1beta2/genesis.proto
|
||||
// source: cosmos/gov/v1/genesis.proto
|
||||
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@ -44,7 +44,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} }
|
||||
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenesisState) ProtoMessage() {}
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7915ab39bb5aa171, []int{0}
|
||||
return fileDescriptor_ef7cfd15e3ded621, []int{0}
|
||||
}
|
||||
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -123,35 +123,35 @@ func (m *GenesisState) GetTallyParams() *TallyParams {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenesisState)(nil), "cosmos.gov.v1beta2.GenesisState")
|
||||
proto.RegisterType((*GenesisState)(nil), "cosmos.gov.v1.GenesisState")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1beta2/genesis.proto", fileDescriptor_7915ab39bb5aa171) }
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1/genesis.proto", fileDescriptor_ef7cfd15e3ded621) }
|
||||
|
||||
var fileDescriptor_7915ab39bb5aa171 = []byte{
|
||||
// 345 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbb, 0x4e, 0xc3, 0x30,
|
||||
0x14, 0x86, 0x1b, 0x7a, 0x01, 0xdc, 0x96, 0xc1, 0x62, 0x88, 0xa0, 0x0a, 0x81, 0xa9, 0x0b, 0x4e,
|
||||
0x29, 0x03, 0x12, 0x63, 0x05, 0xe2, 0x32, 0x55, 0x01, 0x31, 0xb0, 0x54, 0x6e, 0x63, 0x85, 0x88,
|
||||
0xb6, 0x27, 0x8a, 0x0f, 0x16, 0x7d, 0x0b, 0x9e, 0x87, 0x27, 0x60, 0xec, 0xc8, 0x88, 0x9a, 0x17,
|
||||
0x41, 0xb5, 0x13, 0x5a, 0x89, 0xc0, 0x14, 0x1d, 0xf9, 0xfb, 0xbf, 0xfc, 0xb2, 0x0f, 0x71, 0x47,
|
||||
0x20, 0x27, 0x20, 0xbd, 0x10, 0x94, 0xa7, 0x4e, 0x86, 0x02, 0x79, 0xd7, 0x0b, 0xc5, 0x54, 0xc8,
|
||||
0x48, 0xb2, 0x38, 0x01, 0x04, 0x4a, 0x0d, 0xc1, 0x42, 0x50, 0x2c, 0x23, 0xf6, 0x5a, 0x45, 0x29,
|
||||
0x50, 0x26, 0x71, 0xf4, 0x5e, 0x26, 0x8d, 0x2b, 0xe3, 0xb8, 0x43, 0x8e, 0x82, 0x76, 0xc8, 0xae,
|
||||
0x44, 0x9e, 0x60, 0x34, 0x0d, 0x07, 0x71, 0x02, 0x31, 0x48, 0x3e, 0x1e, 0x44, 0x81, 0x6d, 0xb9,
|
||||
0x56, 0xbb, 0xe2, 0xd3, 0xfc, 0xac, 0x9f, 0x1d, 0xdd, 0x04, 0xf4, 0x8c, 0x6c, 0x05, 0x22, 0x06,
|
||||
0x19, 0xa1, 0xb4, 0x37, 0xdc, 0x72, 0xbb, 0xde, 0xdd, 0x67, 0xbf, 0x7b, 0xb0, 0x0b, 0xc3, 0xf8,
|
||||
0x3f, 0x30, 0x65, 0xa4, 0xaa, 0x00, 0x85, 0xb4, 0xcb, 0x3a, 0x65, 0x17, 0xa5, 0x1e, 0x00, 0x85,
|
||||
0x6f, 0x30, 0x7a, 0x4e, 0xb6, 0xf3, 0x46, 0xd2, 0xae, 0xe8, 0x4c, 0xab, 0x28, 0x93, 0x77, 0xf3,
|
||||
0x57, 0x38, 0xbd, 0x26, 0x3b, 0xd9, 0x7f, 0x07, 0x31, 0x4f, 0xf8, 0x44, 0xda, 0x55, 0xd7, 0x6a,
|
||||
0xd7, 0xbb, 0x87, 0xff, 0x54, 0xed, 0x6b, 0xd0, 0x6f, 0x06, 0xeb, 0x23, 0xbd, 0x24, 0x4d, 0x05,
|
||||
0xe6, 0x7a, 0x8c, 0xa8, 0xa6, 0x45, 0xee, 0x1f, 0xed, 0x97, 0x77, 0x65, 0x3c, 0x0d, 0xb5, 0x36,
|
||||
0xd1, 0x1e, 0x69, 0x20, 0x1f, 0x8f, 0x67, 0xb9, 0x65, 0x53, 0x5b, 0x0e, 0x8a, 0x2c, 0xf7, 0x4b,
|
||||
0x2e, 0x93, 0xd4, 0x71, 0x35, 0xf4, 0x6e, 0x3f, 0x16, 0x8e, 0x35, 0x5f, 0x38, 0xd6, 0xd7, 0xc2,
|
||||
0xb1, 0xde, 0x52, 0xa7, 0x34, 0x4f, 0x9d, 0xd2, 0x67, 0xea, 0x94, 0x1e, 0x3b, 0x61, 0x84, 0x4f,
|
||||
0x2f, 0x43, 0x36, 0x82, 0x89, 0x97, 0xbd, 0xbf, 0xf9, 0x1c, 0xcb, 0xe0, 0xd9, 0x7b, 0xd5, 0xcb,
|
||||
0x80, 0xb3, 0x58, 0xc8, 0x7c, 0x25, 0x86, 0x35, 0xbd, 0x0f, 0xa7, 0xdf, 0x01, 0x00, 0x00, 0xff,
|
||||
0xff, 0xb6, 0x88, 0x7e, 0xc1, 0x65, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_ef7cfd15e3ded621 = []byte{
|
||||
// 341 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcd, 0x4e, 0xc2, 0x40,
|
||||
0x14, 0x85, 0xa9, 0xfc, 0xa8, 0x03, 0xb8, 0x18, 0x8d, 0x34, 0x60, 0x1a, 0xe2, 0x0a, 0x63, 0x6c,
|
||||
0x05, 0xe3, 0xd2, 0xc4, 0xf8, 0x13, 0xe3, 0x8e, 0x54, 0xe3, 0xc2, 0x0d, 0x29, 0x74, 0x52, 0x1b,
|
||||
0x81, 0xdb, 0xf4, 0x5e, 0x27, 0xf2, 0x16, 0x3e, 0x80, 0x0f, 0xe4, 0x92, 0xa5, 0x4b, 0x03, 0x2f,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 0x33, 0x4a,
|
||||
0x2a, 0xa3, 0xf1, 0xb7, 0xee, 0x62, 0x25, 0x3a, 0xa2, 0x22, 0x57, 0x26, 0x7e, 0xc6, 0x2a, 0xe4,
|
||||
0x0d, 0x87, 0x93, 0x34, 0x60, 0x5d, 0x05, 0xd4, 0x33, 0x01, 0xf7, 0x0b, 0x24, 0xf1, 0x97, 0x69,
|
||||
0x39, 0x5c, 0x5c, 0x7f, 0xcc, 0x2c, 0x63, 0x3a, 0xb3, 0x8c, 0xaf, 0x99, 0x65, 0xbc, 0xcd, 0xad,
|
||||
0xdc, 0x74, 0x6e, 0xe5, 0x3e, 0xe7, 0x56, 0xee, 0xf1, 0x30, 0x08, 0xe9, 0xe9, 0xa5, 0x6f, 0x0f,
|
||||
0x60, 0xe4, 0x24, 0xc7, 0xd5, 0xcf, 0x11, 0xfa, 0xcf, 0xce, 0xab, 0xba, 0x34, 0x4d, 0x22, 0x81,
|
||||
0x8e, 0x6c, 0xf7, 0x4b, 0xea, 0xd8, 0x27, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xec, 0x74,
|
||||
0x03, 0x33, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,16 +1,16 @@
|
||||
package v1beta2_test
|
||||
package v1_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestEmptyGenesis(t *testing.T) {
|
||||
state1 := v1beta2.GenesisState{}
|
||||
state1 := v1.GenesisState{}
|
||||
require.True(t, state1.Empty())
|
||||
|
||||
state2 := v1beta2.DefaultGenesisState()
|
||||
state2 := v1.DefaultGenesisState()
|
||||
require.False(t, state2.Empty())
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/gov/v1beta2/gov.proto
|
||||
// source: cosmos/gov/v1/gov.proto
|
||||
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@ -68,7 +68,7 @@ func (x VoteOption) String() string {
|
||||
}
|
||||
|
||||
func (VoteOption) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{0}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{0}
|
||||
}
|
||||
|
||||
// ProposalStatus enumerates the valid statuses of a proposal.
|
||||
@ -117,12 +117,12 @@ func (x ProposalStatus) String() string {
|
||||
}
|
||||
|
||||
func (ProposalStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{1}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{1}
|
||||
}
|
||||
|
||||
// WeightedVoteOption defines a unit of vote for vote split.
|
||||
type WeightedVoteOption struct {
|
||||
Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta2.VoteOption" json:"option,omitempty"`
|
||||
Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"`
|
||||
Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ func (m *WeightedVoteOption) Reset() { *m = WeightedVoteOption{} }
|
||||
func (m *WeightedVoteOption) String() string { return proto.CompactTextString(m) }
|
||||
func (*WeightedVoteOption) ProtoMessage() {}
|
||||
func (*WeightedVoteOption) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{0}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{0}
|
||||
}
|
||||
func (m *WeightedVoteOption) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -185,7 +185,7 @@ func (m *Deposit) Reset() { *m = Deposit{} }
|
||||
func (m *Deposit) String() string { return proto.CompactTextString(m) }
|
||||
func (*Deposit) ProtoMessage() {}
|
||||
func (*Deposit) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{1}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{1}
|
||||
}
|
||||
func (m *Deposit) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -239,7 +239,7 @@ func (m *Deposit) GetAmount() []types.Coin {
|
||||
type Proposal struct {
|
||||
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Messages []*types1.Any `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
|
||||
Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta2.ProposalStatus" json:"status,omitempty"`
|
||||
Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1.ProposalStatus" json:"status,omitempty"`
|
||||
// final_tally_result is the final tally result of the proposal. When
|
||||
// querying a proposal via gRPC, this field is not populated until the
|
||||
// proposal's voting period has ended.
|
||||
@ -257,7 +257,7 @@ func (m *Proposal) Reset() { *m = Proposal{} }
|
||||
func (m *Proposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*Proposal) ProtoMessage() {}
|
||||
func (*Proposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{2}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{2}
|
||||
}
|
||||
func (m *Proposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -368,7 +368,7 @@ func (m *TallyResult) Reset() { *m = TallyResult{} }
|
||||
func (m *TallyResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*TallyResult) ProtoMessage() {}
|
||||
func (*TallyResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{3}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{3}
|
||||
}
|
||||
func (m *TallyResult) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -439,7 +439,7 @@ func (m *Vote) Reset() { *m = Vote{} }
|
||||
func (m *Vote) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vote) ProtoMessage() {}
|
||||
func (*Vote) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{4}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{4}
|
||||
}
|
||||
func (m *Vote) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -509,7 +509,7 @@ func (m *DepositParams) Reset() { *m = DepositParams{} }
|
||||
func (m *DepositParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*DepositParams) ProtoMessage() {}
|
||||
func (*DepositParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{5}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{5}
|
||||
}
|
||||
func (m *DepositParams) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -562,7 +562,7 @@ func (m *VotingParams) Reset() { *m = VotingParams{} }
|
||||
func (m *VotingParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*VotingParams) ProtoMessage() {}
|
||||
func (*VotingParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{6}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{6}
|
||||
}
|
||||
func (m *VotingParams) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -614,7 +614,7 @@ func (m *TallyParams) Reset() { *m = TallyParams{} }
|
||||
func (m *TallyParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*TallyParams) ProtoMessage() {}
|
||||
func (*TallyParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5abf7b8852811c49, []int{7}
|
||||
return fileDescriptor_e05cb1c0d030febb, []int{7}
|
||||
}
|
||||
func (m *TallyParams) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -665,92 +665,91 @@ func (m *TallyParams) GetVetoThreshold() string {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cosmos.gov.v1beta2.VoteOption", VoteOption_name, VoteOption_value)
|
||||
proto.RegisterEnum("cosmos.gov.v1beta2.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
||||
proto.RegisterType((*WeightedVoteOption)(nil), "cosmos.gov.v1beta2.WeightedVoteOption")
|
||||
proto.RegisterType((*Deposit)(nil), "cosmos.gov.v1beta2.Deposit")
|
||||
proto.RegisterType((*Proposal)(nil), "cosmos.gov.v1beta2.Proposal")
|
||||
proto.RegisterType((*TallyResult)(nil), "cosmos.gov.v1beta2.TallyResult")
|
||||
proto.RegisterType((*Vote)(nil), "cosmos.gov.v1beta2.Vote")
|
||||
proto.RegisterType((*DepositParams)(nil), "cosmos.gov.v1beta2.DepositParams")
|
||||
proto.RegisterType((*VotingParams)(nil), "cosmos.gov.v1beta2.VotingParams")
|
||||
proto.RegisterType((*TallyParams)(nil), "cosmos.gov.v1beta2.TallyParams")
|
||||
proto.RegisterEnum("cosmos.gov.v1.VoteOption", VoteOption_name, VoteOption_value)
|
||||
proto.RegisterEnum("cosmos.gov.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
||||
proto.RegisterType((*WeightedVoteOption)(nil), "cosmos.gov.v1.WeightedVoteOption")
|
||||
proto.RegisterType((*Deposit)(nil), "cosmos.gov.v1.Deposit")
|
||||
proto.RegisterType((*Proposal)(nil), "cosmos.gov.v1.Proposal")
|
||||
proto.RegisterType((*TallyResult)(nil), "cosmos.gov.v1.TallyResult")
|
||||
proto.RegisterType((*Vote)(nil), "cosmos.gov.v1.Vote")
|
||||
proto.RegisterType((*DepositParams)(nil), "cosmos.gov.v1.DepositParams")
|
||||
proto.RegisterType((*VotingParams)(nil), "cosmos.gov.v1.VotingParams")
|
||||
proto.RegisterType((*TallyParams)(nil), "cosmos.gov.v1.TallyParams")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1beta2/gov.proto", fileDescriptor_5abf7b8852811c49) }
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1/gov.proto", fileDescriptor_e05cb1c0d030febb) }
|
||||
|
||||
var fileDescriptor_5abf7b8852811c49 = []byte{
|
||||
// 1108 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x41, 0x53, 0xdb, 0x46,
|
||||
0x14, 0x46, 0xb6, 0x30, 0xe6, 0x19, 0x8c, 0xba, 0xd0, 0x46, 0x10, 0x62, 0x53, 0x4f, 0x9b, 0xa1,
|
||||
0xb4, 0xd8, 0x81, 0xcc, 0xa4, 0x33, 0xe9, 0xa5, 0x36, 0x56, 0x1a, 0x33, 0x14, 0xbb, 0x92, 0x62,
|
||||
0x26, 0xbd, 0x68, 0x64, 0xb4, 0xb1, 0x35, 0xb5, 0xb4, 0xae, 0x76, 0x4d, 0xf0, 0x4f, 0xe8, 0x2d,
|
||||
0xc7, 0xce, 0xf4, 0x6f, 0xe4, 0xd6, 0x3f, 0x90, 0x53, 0x27, 0x93, 0x4b, 0xdb, 0x8b, 0x9b, 0xc2,
|
||||
0x8d, 0x5f, 0x91, 0xd1, 0x6a, 0x85, 0x8d, 0x71, 0x06, 0x4e, 0x96, 0xdf, 0xfb, 0xbe, 0xef, 0xbd,
|
||||
0xb7, 0xfb, 0xed, 0x4a, 0xb0, 0x7e, 0x4c, 0xa8, 0x47, 0x68, 0xa9, 0x4d, 0x4e, 0x4a, 0x27, 0x3b,
|
||||
0x2d, 0xcc, 0xec, 0xdd, 0xf0, 0xb9, 0xd8, 0x0b, 0x08, 0x23, 0x08, 0x45, 0xd9, 0x62, 0x18, 0x11,
|
||||
0xd9, 0xb5, 0x9c, 0x60, 0xb4, 0x6c, 0x8a, 0x05, 0x65, 0xa7, 0x74, 0x4c, 0x5c, 0x3f, 0xe2, 0xac,
|
||||
0xad, 0xb4, 0x49, 0x9b, 0xf0, 0xc7, 0x52, 0xf8, 0x24, 0xa2, 0xf9, 0x36, 0x21, 0xed, 0x2e, 0x2e,
|
||||
0xf1, 0x7f, 0xad, 0xfe, 0x8b, 0x12, 0x73, 0x3d, 0x4c, 0x99, 0xed, 0xf5, 0x04, 0x60, 0x75, 0x12,
|
||||
0x60, 0xfb, 0x03, 0x91, 0xca, 0x4d, 0xa6, 0x9c, 0x7e, 0x60, 0x33, 0x97, 0xc4, 0x15, 0x57, 0xa3,
|
||||
0x8e, 0xac, 0xa8, 0xa8, 0x68, 0x99, 0xff, 0x29, 0x30, 0x40, 0x47, 0xd8, 0x6d, 0x77, 0x18, 0x76,
|
||||
0x9a, 0x84, 0xe1, 0x7a, 0x2f, 0xa4, 0xa1, 0x47, 0x90, 0x22, 0xfc, 0x49, 0x95, 0x36, 0xa4, 0xcd,
|
||||
0xec, 0x6e, 0xae, 0x78, 0x7d, 0xce, 0xe2, 0x08, 0xaf, 0x0b, 0x34, 0xba, 0x0f, 0xa9, 0x97, 0x5c,
|
||||
0x4d, 0x4d, 0x6c, 0x48, 0x9b, 0xf3, 0x95, 0xec, 0xbb, 0xd7, 0xdb, 0x20, 0xa8, 0x55, 0x7c, 0xac,
|
||||
0x8b, 0x6c, 0xe1, 0x0f, 0x09, 0xe6, 0xaa, 0xb8, 0x47, 0xa8, 0xcb, 0x50, 0x1e, 0x32, 0xbd, 0x80,
|
||||
0xf4, 0x08, 0xb5, 0xbb, 0x96, 0xeb, 0xf0, 0x82, 0xb2, 0x0e, 0x71, 0xa8, 0xe6, 0xa0, 0x47, 0x30,
|
||||
0xef, 0x44, 0x58, 0x12, 0x08, 0x5d, 0xf5, 0xdd, 0xeb, 0xed, 0x15, 0xa1, 0x5b, 0x76, 0x9c, 0x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 0xb0, 0xef,
|
||||
0x44, 0x3a, 0xa9, 0x5b, 0xea, 0x64, 0x05, 0x53, 0xf3, 0x1d, 0xae, 0x55, 0x85, 0x45, 0x46, 0x98,
|
||||
0xdd, 0xb5, 0x44, 0x5c, 0x9d, 0xbb, 0xdd, 0x46, 0x2d, 0x70, 0x56, 0x6c, 0xa0, 0x03, 0xf8, 0xe4,
|
||||
0x84, 0x30, 0xd7, 0x6f, 0x5b, 0x94, 0xd9, 0x81, 0x18, 0x2d, 0x7d, 0xcb, 0x96, 0x96, 0x22, 0xaa,
|
||||
0x11, 0x32, 0x79, 0x4f, 0x4f, 0x41, 0x84, 0x46, 0xe3, 0xcd, 0xdf, 0x52, 0x6b, 0x31, 0x22, 0xc6,
|
||||
0xd3, 0xad, 0x85, 0x4e, 0x61, 0xb6, 0x63, 0x33, 0x5b, 0x85, 0xd0, 0xb6, 0xfa, 0xe5, 0xff, 0xc2,
|
||||
0xdf, 0x12, 0x64, 0xc6, 0x37, 0xe6, 0x6b, 0x98, 0x1f, 0x60, 0x6a, 0x1d, 0x73, 0xbb, 0x4a, 0xd7,
|
||||
0xce, 0x4e, 0xcd, 0x67, 0x7a, 0x7a, 0x80, 0xe9, 0x5e, 0x98, 0x47, 0x0f, 0x61, 0xd1, 0x6e, 0x51,
|
||||
0x66, 0xbb, 0xbe, 0x20, 0x24, 0xa6, 0x12, 0x16, 0x04, 0x28, 0x22, 0x7d, 0x05, 0x69, 0x9f, 0x08,
|
||||
0x7c, 0x72, 0x2a, 0x7e, 0xce, 0x27, 0x11, 0xf4, 0x3b, 0x40, 0x3e, 0xb1, 0x5e, 0xba, 0xac, 0x63,
|
||||
0x9d, 0x60, 0x16, 0x93, 0xe4, 0xa9, 0xa4, 0x25, 0x9f, 0x1c, 0xb9, 0xac, 0xd3, 0xc4, 0x2c, 0x22,
|
||||
0x17, 0xfe, 0x94, 0x40, 0x0e, 0x6f, 0x86, 0x9b, 0xcf, 0x75, 0x11, 0x66, 0x4f, 0x08,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8, 0x43, 0x0c, 0x49, 0xa0, 0x35, 0xf8, 0x6c, 0x12,
|
||||
0xd2, 0x28, 0x1b, 0x86, 0x56, 0x8d, 0x9a, 0x9e, 0xcc, 0xe9, 0xda, 0xbe, 0xb6, 0x67, 0x6a, 0x55,
|
||||
0x45, 0x9e, 0xc6, 0x7c, 0x52, 0xae, 0x1d, 0x68, 0x55, 0x65, 0xb6, 0xb2, 0xff, 0xe6, 0x2c, 0x27,
|
||||
0xbd, 0x3d, 0xcb, 0x49, 0xef, 0xcf, 0x72, 0xd2, 0xab, 0xf3, 0xdc, 0xcc, 0xdb, 0xf3, 0xdc, 0xcc,
|
||||
0x3f, 0xe7, 0xb9, 0x99, 0x9f, 0x1f, 0xb4, 0x5d, 0xd6, 0xe9, 0xb7, 0x8a, 0xc7, 0xc4, 0x13, 0x1f,
|
||||
0x2d, 0xe2, 0x67, 0x9b, 0x3a, 0xbf, 0x94, 0x4e, 0xf9, 0x27, 0x19, 0x1b, 0xf4, 0x30, 0x8d, 0x3f,
|
||||
0xcc, 0x5a, 0x29, 0xee, 0xd9, 0x87, 0x1f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x23, 0xf2, 0x27,
|
||||
0xb5, 0x09, 0x00, 0x00,
|
||||
var fileDescriptor_e05cb1c0d030febb = []byte{
|
||||
// 1104 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x4f, 0x53, 0xdb, 0x46,
|
||||
0x14, 0x47, 0xb6, 0x30, 0xe6, 0x19, 0x1b, 0x75, 0xa1, 0x45, 0x90, 0x60, 0x13, 0x4f, 0xdb, 0xa1,
|
||||
0xa4, 0xd8, 0x25, 0x99, 0xb6, 0x33, 0xcd, 0xc9, 0xc6, 0x4a, 0x31, 0xc3, 0x60, 0x57, 0x52, 0xcc,
|
||||
0xa4, 0x17, 0x8d, 0x8c, 0x14, 0x5b, 0x53, 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, 0x92, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *WeightedVoteOption) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2_test
|
||||
package v1_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
@ -7,7 +7,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -26,10 +26,10 @@ func init() {
|
||||
|
||||
func TestMsgDepositGetSignBytes(t *testing.T) {
|
||||
addr := sdk.AccAddress("addr1")
|
||||
msg := v1beta2.NewMsgDeposit(addr, 0, coinsPos)
|
||||
msg := v1.NewMsgDeposit(addr, 0, coinsPos)
|
||||
res := msg.GetSignBytes()
|
||||
|
||||
expected := `{"type":"cosmos-sdk/v1beta2/MsgDeposit","value":{"amount":[{"amount":"1000","denom":"stake"}],"depositor":"cosmos1v9jxgu33kfsgr5","proposal_id":"0"}}`
|
||||
expected := `{"type":"cosmos-sdk/v1/MsgDeposit","value":{"amount":[{"amount":"1000","denom":"stake"}],"depositor":"cosmos1v9jxgu33kfsgr5","proposal_id":"0"}}`
|
||||
require.Equal(t, expected, string(res))
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ func TestMsgDeposit(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, tc := range tests {
|
||||
msg := v1beta2.NewMsgDeposit(tc.depositorAddr, tc.proposalID, tc.depositAmount)
|
||||
msg := v1.NewMsgDeposit(tc.depositorAddr, tc.proposalID, tc.depositAmount)
|
||||
if tc.expectPass {
|
||||
require.NoError(t, msg.ValidateBasic(), "test: %v", i)
|
||||
} else {
|
||||
@ -63,20 +63,20 @@ func TestMsgVote(t *testing.T) {
|
||||
tests := []struct {
|
||||
proposalID uint64
|
||||
voterAddr sdk.AccAddress
|
||||
option v1beta2.VoteOption
|
||||
option v1.VoteOption
|
||||
metadata string
|
||||
expectPass bool
|
||||
}{
|
||||
{0, addrs[0], v1beta2.OptionYes, metadata, true},
|
||||
{0, sdk.AccAddress{}, v1beta2.OptionYes, "", false},
|
||||
{0, addrs[0], v1beta2.OptionNo, metadata, true},
|
||||
{0, addrs[0], v1beta2.OptionNoWithVeto, "", true},
|
||||
{0, addrs[0], v1beta2.OptionAbstain, "", true},
|
||||
{0, addrs[0], v1beta2.VoteOption(0x13), "", false},
|
||||
{0, addrs[0], v1.OptionYes, metadata, true},
|
||||
{0, sdk.AccAddress{}, v1.OptionYes, "", false},
|
||||
{0, addrs[0], v1.OptionNo, metadata, true},
|
||||
{0, addrs[0], v1.OptionNoWithVeto, "", true},
|
||||
{0, addrs[0], v1.OptionAbstain, "", true},
|
||||
{0, addrs[0], v1.VoteOption(0x13), "", false},
|
||||
}
|
||||
|
||||
for i, tc := range tests {
|
||||
msg := v1beta2.NewMsgVote(tc.voterAddr, tc.proposalID, tc.option, tc.metadata)
|
||||
msg := v1.NewMsgVote(tc.voterAddr, tc.proposalID, tc.option, tc.metadata)
|
||||
if tc.expectPass {
|
||||
require.Nil(t, msg.ValidateBasic(), "test: %v", i)
|
||||
} else {
|
||||
@ -91,38 +91,38 @@ func TestMsgVoteWeighted(t *testing.T) {
|
||||
tests := []struct {
|
||||
proposalID uint64
|
||||
voterAddr sdk.AccAddress
|
||||
options v1beta2.WeightedVoteOptions
|
||||
options v1.WeightedVoteOptions
|
||||
metadata string
|
||||
expectPass bool
|
||||
}{
|
||||
{0, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), metadata, true},
|
||||
{0, sdk.AccAddress{}, v1beta2.NewNonSplitVoteOption(v1beta2.OptionYes), "", false},
|
||||
{0, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNo), "", true},
|
||||
{0, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionNoWithVeto), "", true},
|
||||
{0, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.OptionAbstain), "", true},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{ // weight sum > 1
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDec(1)),
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionAbstain, sdk.NewDec(1)),
|
||||
{0, addrs[0], v1.NewNonSplitVoteOption(v1.OptionYes), metadata, true},
|
||||
{0, sdk.AccAddress{}, v1.NewNonSplitVoteOption(v1.OptionYes), "", false},
|
||||
{0, addrs[0], v1.NewNonSplitVoteOption(v1.OptionNo), "", true},
|
||||
{0, addrs[0], v1.NewNonSplitVoteOption(v1.OptionNoWithVeto), "", true},
|
||||
{0, addrs[0], v1.NewNonSplitVoteOption(v1.OptionAbstain), "", true},
|
||||
{0, addrs[0], v1.WeightedVoteOptions{ // weight sum > 1
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDec(1)),
|
||||
v1.NewWeightedVoteOption(v1.OptionAbstain, sdk.NewDec(1)),
|
||||
}, "", false},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{ // duplicate option
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
{0, addrs[0], v1.WeightedVoteOptions{ // duplicate option
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
}, "", false},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{ // zero weight
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDec(0)),
|
||||
{0, addrs[0], v1.WeightedVoteOptions{ // zero weight
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDec(0)),
|
||||
}, "", false},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{ // negative weight
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDec(-1)),
|
||||
{0, addrs[0], v1.WeightedVoteOptions{ // negative weight
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDec(-1)),
|
||||
}, "", false},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{}, "", false},
|
||||
{0, addrs[0], v1beta2.NewNonSplitVoteOption(v1beta2.VoteOption(0x13)), "", false},
|
||||
{0, addrs[0], v1beta2.WeightedVoteOptions{ // weight sum <1
|
||||
v1beta2.NewWeightedVoteOption(v1beta2.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
{0, addrs[0], v1.WeightedVoteOptions{}, "", false},
|
||||
{0, addrs[0], v1.NewNonSplitVoteOption(v1.VoteOption(0x13)), "", false},
|
||||
{0, addrs[0], v1.WeightedVoteOptions{ // weight sum <1
|
||||
v1.NewWeightedVoteOption(v1.OptionYes, sdk.NewDecWithPrec(5, 1)),
|
||||
}, "", false},
|
||||
}
|
||||
|
||||
for i, tc := range tests {
|
||||
msg := v1beta2.NewMsgVoteWeighted(tc.voterAddr, tc.proposalID, tc.options, tc.metadata)
|
||||
msg := v1.NewMsgVoteWeighted(tc.voterAddr, tc.proposalID, tc.options, tc.metadata)
|
||||
if tc.expectPass {
|
||||
require.Nil(t, msg.ValidateBasic(), "test: %v", i)
|
||||
} else {
|
||||
@ -134,10 +134,10 @@ func TestMsgVoteWeighted(t *testing.T) {
|
||||
func TestMsgSubmitProposal_ValidateBasic(t *testing.T) {
|
||||
metadata := "metadata"
|
||||
// Valid msg
|
||||
msg1, err := v1beta2.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), addrs[0].String())
|
||||
msg1, err := v1.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), addrs[0].String())
|
||||
require.NoError(t, err)
|
||||
// Invalid msg
|
||||
msg2, err := v1beta2.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), "foo")
|
||||
msg2, err := v1.NewLegacyContent(v1beta1.NewTextProposal("Title", "description"), "foo")
|
||||
require.NoError(t, err)
|
||||
|
||||
tests := []struct {
|
||||
@ -157,7 +157,7 @@ func TestMsgSubmitProposal_ValidateBasic(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range tests {
|
||||
msg, err := v1beta2.NewMsgSubmitProposal(tc.messages, tc.initialDeposit, tc.proposer, tc.metadata)
|
||||
msg, err := v1.NewMsgSubmitProposal(tc.messages, tc.initialDeposit, tc.proposer, tc.metadata)
|
||||
require.NoError(t, err)
|
||||
if tc.expErr {
|
||||
require.Error(t, msg.ValidateBasic(), "test: %s", tc.name)
|
||||
@ -169,13 +169,13 @@ func TestMsgSubmitProposal_ValidateBasic(t *testing.T) {
|
||||
|
||||
// this tests that Amino JSON MsgSubmitProposal.GetSignBytes() still works with Content as Any using the ModuleCdc
|
||||
func TestMsgSubmitProposal_GetSignBytes(t *testing.T) {
|
||||
proposal := []sdk.Msg{v1beta2.NewMsgVote(addrs[0], 1, v1beta2.OptionYes, "")}
|
||||
msg, err := v1beta2.NewMsgSubmitProposal(proposal, sdk.NewCoins(), sdk.AccAddress{}.String(), "")
|
||||
proposal := []sdk.Msg{v1.NewMsgVote(addrs[0], 1, v1.OptionYes, "")}
|
||||
msg, err := v1.NewMsgSubmitProposal(proposal, sdk.NewCoins(), sdk.AccAddress{}.String(), "")
|
||||
require.NoError(t, err)
|
||||
var bz []byte
|
||||
require.NotPanics(t, func() {
|
||||
bz = msg.GetSignBytes()
|
||||
})
|
||||
require.Equal(t, "{\"type\":\"cosmos-sdk/v1beta2/MsgSubmitProposal\",\"value\":{\"initial_deposit\":[],\"messages\":[{\"type\":\"cosmos-sdk/v1beta2/MsgVote\",\"value\":{\"option\":1,\"proposal_id\":\"1\",\"voter\":\"cosmos1w3jhxap3gempvr\"}}]}}",
|
||||
require.Equal(t, "{\"type\":\"cosmos-sdk/v1/MsgSubmitProposal\",\"value\":{\"initial_deposit\":[],\"messages\":[{\"type\":\"cosmos-sdk/v1/MsgVote\",\"value\":{\"option\":1,\"proposal_id\":\"1\",\"voter\":\"cosmos1w3jhxap3gempvr\"}}]}}",
|
||||
string(bz))
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2_test
|
||||
package v1_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -9,13 +9,13 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
)
|
||||
|
||||
func TestProposalStatus_Format(t *testing.T) {
|
||||
statusDepositPeriod, _ := v1beta2.ProposalStatusFromString("PROPOSAL_STATUS_DEPOSIT_PERIOD")
|
||||
statusDepositPeriod, _ := v1.ProposalStatusFromString("PROPOSAL_STATUS_DEPOSIT_PERIOD")
|
||||
tests := []struct {
|
||||
pt v1beta2.ProposalStatus
|
||||
pt v1.ProposalStatus
|
||||
sprintFArgs string
|
||||
expectedStringOutput string
|
||||
}{
|
||||
@ -35,9 +35,9 @@ func TestNestedAnys(t *testing.T) {
|
||||
// TODO https://github.com/cosmos/cosmos-sdk/issues/10965
|
||||
t.Skip()
|
||||
testProposal := v1beta1.NewTextProposal("Proposal", "testing proposal")
|
||||
msgContent, err := v1beta2.NewLegacyContent(testProposal, "cosmos1govacct")
|
||||
msgContent, err := v1.NewLegacyContent(testProposal, "cosmos1govacct")
|
||||
require.NoError(t, err)
|
||||
proposal, err := v1beta2.NewProposal([]sdk.Msg{msgContent}, 1, "", time.Now(), time.Now())
|
||||
proposal, err := v1.NewProposal([]sdk.Msg{msgContent}, 1, "", time.Now(), time.Now())
|
||||
require.NoError(t, err)
|
||||
|
||||
require.Equal(t, "TODO Fix panic here", proposal.String())
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/gov/v1beta2/query.proto
|
||||
// source: cosmos/gov/v1/query.proto
|
||||
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -40,7 +40,7 @@ func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} }
|
||||
func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalRequest) ProtoMessage() {}
|
||||
func (*QueryProposalRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{0}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{0}
|
||||
}
|
||||
func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -85,7 +85,7 @@ func (m *QueryProposalResponse) Reset() { *m = QueryProposalResponse{} }
|
||||
func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalResponse) ProtoMessage() {}
|
||||
func (*QueryProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{1}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{1}
|
||||
}
|
||||
func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -124,7 +124,7 @@ func (m *QueryProposalResponse) GetProposal() *Proposal {
|
||||
// QueryProposalsRequest is the request type for the Query/Proposals RPC method.
|
||||
type QueryProposalsRequest struct {
|
||||
// proposal_status defines the status of the proposals.
|
||||
ProposalStatus ProposalStatus `protobuf:"varint,1,opt,name=proposal_status,json=proposalStatus,proto3,enum=cosmos.gov.v1beta2.ProposalStatus" json:"proposal_status,omitempty"`
|
||||
ProposalStatus ProposalStatus `protobuf:"varint,1,opt,name=proposal_status,json=proposalStatus,proto3,enum=cosmos.gov.v1.ProposalStatus" json:"proposal_status,omitempty"`
|
||||
// voter defines the voter address for the proposals.
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// depositor defines the deposit addresses from the proposals.
|
||||
@ -137,7 +137,7 @@ func (m *QueryProposalsRequest) Reset() { *m = QueryProposalsRequest{} }
|
||||
func (m *QueryProposalsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalsRequest) ProtoMessage() {}
|
||||
func (*QueryProposalsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{2}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{2}
|
||||
}
|
||||
func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -206,7 +206,7 @@ func (m *QueryProposalsResponse) Reset() { *m = QueryProposalsResponse{}
|
||||
func (m *QueryProposalsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalsResponse) ProtoMessage() {}
|
||||
func (*QueryProposalsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{3}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{3}
|
||||
}
|
||||
func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -261,7 +261,7 @@ func (m *QueryVoteRequest) Reset() { *m = QueryVoteRequest{} }
|
||||
func (m *QueryVoteRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVoteRequest) ProtoMessage() {}
|
||||
func (*QueryVoteRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{4}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{4}
|
||||
}
|
||||
func (m *QueryVoteRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -314,7 +314,7 @@ func (m *QueryVoteResponse) Reset() { *m = QueryVoteResponse{} }
|
||||
func (m *QueryVoteResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVoteResponse) ProtoMessage() {}
|
||||
func (*QueryVoteResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{5}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{5}
|
||||
}
|
||||
func (m *QueryVoteResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -362,7 +362,7 @@ func (m *QueryVotesRequest) Reset() { *m = QueryVotesRequest{} }
|
||||
func (m *QueryVotesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesRequest) ProtoMessage() {}
|
||||
func (*QueryVotesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{6}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{6}
|
||||
}
|
||||
func (m *QueryVotesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -417,7 +417,7 @@ func (m *QueryVotesResponse) Reset() { *m = QueryVotesResponse{} }
|
||||
func (m *QueryVotesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesResponse) ProtoMessage() {}
|
||||
func (*QueryVotesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{7}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{7}
|
||||
}
|
||||
func (m *QueryVotesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -471,7 +471,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
|
||||
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryParamsRequest) ProtoMessage() {}
|
||||
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{8}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{8}
|
||||
}
|
||||
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -521,7 +521,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
||||
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryParamsResponse) ProtoMessage() {}
|
||||
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{9}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{9}
|
||||
}
|
||||
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -583,7 +583,7 @@ func (m *QueryDepositRequest) Reset() { *m = QueryDepositRequest{} }
|
||||
func (m *QueryDepositRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDepositRequest) ProtoMessage() {}
|
||||
func (*QueryDepositRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{10}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{10}
|
||||
}
|
||||
func (m *QueryDepositRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -636,7 +636,7 @@ func (m *QueryDepositResponse) Reset() { *m = QueryDepositResponse{} }
|
||||
func (m *QueryDepositResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDepositResponse) ProtoMessage() {}
|
||||
func (*QueryDepositResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{11}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{11}
|
||||
}
|
||||
func (m *QueryDepositResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -684,7 +684,7 @@ func (m *QueryDepositsRequest) Reset() { *m = QueryDepositsRequest{} }
|
||||
func (m *QueryDepositsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDepositsRequest) ProtoMessage() {}
|
||||
func (*QueryDepositsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{12}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{12}
|
||||
}
|
||||
func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -738,7 +738,7 @@ func (m *QueryDepositsResponse) Reset() { *m = QueryDepositsResponse{} }
|
||||
func (m *QueryDepositsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDepositsResponse) ProtoMessage() {}
|
||||
func (*QueryDepositsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{13}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{13}
|
||||
}
|
||||
func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -791,7 +791,7 @@ func (m *QueryTallyResultRequest) Reset() { *m = QueryTallyResultRequest
|
||||
func (m *QueryTallyResultRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTallyResultRequest) ProtoMessage() {}
|
||||
func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{14}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{14}
|
||||
}
|
||||
func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -837,7 +837,7 @@ func (m *QueryTallyResultResponse) Reset() { *m = QueryTallyResultRespon
|
||||
func (m *QueryTallyResultResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTallyResultResponse) ProtoMessage() {}
|
||||
func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3efdc0c4615c3665, []int{15}
|
||||
return fileDescriptor_46a436d1109b50d0, []int{15}
|
||||
}
|
||||
func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -874,88 +874,88 @@ func (m *QueryTallyResultResponse) GetTally() *TallyResult {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryProposalRequest)(nil), "cosmos.gov.v1beta2.QueryProposalRequest")
|
||||
proto.RegisterType((*QueryProposalResponse)(nil), "cosmos.gov.v1beta2.QueryProposalResponse")
|
||||
proto.RegisterType((*QueryProposalsRequest)(nil), "cosmos.gov.v1beta2.QueryProposalsRequest")
|
||||
proto.RegisterType((*QueryProposalsResponse)(nil), "cosmos.gov.v1beta2.QueryProposalsResponse")
|
||||
proto.RegisterType((*QueryVoteRequest)(nil), "cosmos.gov.v1beta2.QueryVoteRequest")
|
||||
proto.RegisterType((*QueryVoteResponse)(nil), "cosmos.gov.v1beta2.QueryVoteResponse")
|
||||
proto.RegisterType((*QueryVotesRequest)(nil), "cosmos.gov.v1beta2.QueryVotesRequest")
|
||||
proto.RegisterType((*QueryVotesResponse)(nil), "cosmos.gov.v1beta2.QueryVotesResponse")
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.gov.v1beta2.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.gov.v1beta2.QueryParamsResponse")
|
||||
proto.RegisterType((*QueryDepositRequest)(nil), "cosmos.gov.v1beta2.QueryDepositRequest")
|
||||
proto.RegisterType((*QueryDepositResponse)(nil), "cosmos.gov.v1beta2.QueryDepositResponse")
|
||||
proto.RegisterType((*QueryDepositsRequest)(nil), "cosmos.gov.v1beta2.QueryDepositsRequest")
|
||||
proto.RegisterType((*QueryDepositsResponse)(nil), "cosmos.gov.v1beta2.QueryDepositsResponse")
|
||||
proto.RegisterType((*QueryTallyResultRequest)(nil), "cosmos.gov.v1beta2.QueryTallyResultRequest")
|
||||
proto.RegisterType((*QueryTallyResultResponse)(nil), "cosmos.gov.v1beta2.QueryTallyResultResponse")
|
||||
proto.RegisterType((*QueryProposalRequest)(nil), "cosmos.gov.v1.QueryProposalRequest")
|
||||
proto.RegisterType((*QueryProposalResponse)(nil), "cosmos.gov.v1.QueryProposalResponse")
|
||||
proto.RegisterType((*QueryProposalsRequest)(nil), "cosmos.gov.v1.QueryProposalsRequest")
|
||||
proto.RegisterType((*QueryProposalsResponse)(nil), "cosmos.gov.v1.QueryProposalsResponse")
|
||||
proto.RegisterType((*QueryVoteRequest)(nil), "cosmos.gov.v1.QueryVoteRequest")
|
||||
proto.RegisterType((*QueryVoteResponse)(nil), "cosmos.gov.v1.QueryVoteResponse")
|
||||
proto.RegisterType((*QueryVotesRequest)(nil), "cosmos.gov.v1.QueryVotesRequest")
|
||||
proto.RegisterType((*QueryVotesResponse)(nil), "cosmos.gov.v1.QueryVotesResponse")
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.gov.v1.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.gov.v1.QueryParamsResponse")
|
||||
proto.RegisterType((*QueryDepositRequest)(nil), "cosmos.gov.v1.QueryDepositRequest")
|
||||
proto.RegisterType((*QueryDepositResponse)(nil), "cosmos.gov.v1.QueryDepositResponse")
|
||||
proto.RegisterType((*QueryDepositsRequest)(nil), "cosmos.gov.v1.QueryDepositsRequest")
|
||||
proto.RegisterType((*QueryDepositsResponse)(nil), "cosmos.gov.v1.QueryDepositsResponse")
|
||||
proto.RegisterType((*QueryTallyResultRequest)(nil), "cosmos.gov.v1.QueryTallyResultRequest")
|
||||
proto.RegisterType((*QueryTallyResultResponse)(nil), "cosmos.gov.v1.QueryTallyResultResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1beta2/query.proto", fileDescriptor_3efdc0c4615c3665) }
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1/query.proto", fileDescriptor_46a436d1109b50d0) }
|
||||
|
||||
var fileDescriptor_3efdc0c4615c3665 = []byte{
|
||||
// 955 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4f, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xcf, 0x38, 0x49, 0x1b, 0xbf, 0xb4, 0x01, 0x1e, 0x05, 0x8c, 0x29, 0x4e, 0x58, 0xd1, 0xd6,
|
||||
0xa4, 0xcd, 0x6e, 0x93, 0xd0, 0x96, 0x16, 0x0e, 0x24, 0x82, 0x52, 0x40, 0x48, 0xa9, 0x5b, 0x71,
|
||||
0xe0, 0x12, 0x6d, 0xe2, 0xd5, 0xb2, 0xc2, 0xd9, 0xd9, 0xee, 0x8c, 0x2d, 0xa2, 0x10, 0x21, 0x71,
|
||||
0x43, 0x08, 0x09, 0x44, 0x85, 0xc4, 0xa1, 0x27, 0x24, 0x3e, 0x01, 0x1f, 0x82, 0x63, 0x05, 0x1c,
|
||||
0x38, 0xa2, 0x84, 0x13, 0x9f, 0x02, 0xed, 0xcc, 0x9b, 0xf5, 0x6e, 0xb2, 0xf6, 0xda, 0xa5, 0xea,
|
||||
0x29, 0x9a, 0x99, 0xdf, 0x7b, 0xef, 0xf7, 0xfe, 0xec, 0xef, 0xc5, 0xd0, 0xd8, 0xe6, 0x62, 0x87,
|
||||
0x0b, 0xc7, 0xe7, 0x3d, 0xa7, 0xb7, 0xbc, 0xe5, 0x49, 0x77, 0xc5, 0xb9, 0xd7, 0xf5, 0xe2, 0x5d,
|
||||
0x3b, 0x8a, 0x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||||
0x97, 0xb5, 0x76, 0x3b, 0xf6, 0x84, 0xb8, 0x23, 0xe3, 0x20, 0xf4, 0x5b, 0x1a, 0x86, 0x57, 0xa1,
|
||||
0xda, 0xf6, 0x22, 0x2e, 0x02, 0xc9, 0xe3, 0xda, 0x64, 0x89, 0x4d, 0x1f, 0x8a, 0x37, 0x01, 0xfa,
|
||||
0x5d, 0xac, 0x4d, 0xa9, 0x52, 0x9c, 0x37, 0x7c, 0x93, 0x96, 0xdb, 0x7a, 0x3e, 0xa8, 0xe5, 0xf6,
|
||||
0x86, 0xeb, 0x7b, 0x94, 0x70, 0x2b, 0x63, 0x69, 0x3d, 0x60, 0xf0, 0xfc, 0xd1, 0xb2, 0x50, 0xad,
|
||||
0x6f, 0x40, 0xd5, 0x24, 0x97, 0x54, 0x64, 0xb2, 0xb4, 0xd8, 0x7d, 0x38, 0xbe, 0x97, 0xa3, 0x57,
|
||||
0x51, 0xf4, 0x2e, 0x94, 0xd2, 0xd3, 0x81, 0x73, 0xfc, 0xb6, 0xe1, 0x69, 0x45, 0xef, 0x63, 0x2e,
|
||||
0xbd, 0x51, 0xc7, 0x67, 0xdc, 0x26, 0x58, 0x6b, 0xf0, 0x4c, 0x26, 0x08, 0xa5, 0x7f, 0x09, 0xa6,
|
||||
0x92, 0x57, 0x1a, 0xb3, 0x5a, 0x51, 0xe6, 0x0a, 0xaf, 0x50, 0xd6, 0x17, 0x19, 0x17, 0x62, 0x64,
|
||||
0xa2, 0x37, 0x0b, 0xca, 0xf4, 0x28, 0x5d, 0xfc, 0x96, 0x01, 0x66, 0xc3, 0x53, 0x0a, 0x54, 0x07,
|
||||
0xd3, 0xbd, 0xc1, 0x39, 0x68, 0xd8, 0xe3, 0xeb, 0xda, 0x15, 0xa2, 0xb3, 0xe1, 0xc6, 0xee, 0x4e,
|
||||
0xae, 0x1c, 0xea, 0x62, 0x53, 0xee, 0x46, 0xba, 0xb0, 0xd5, 0xc4, 0x2c, 0xb9, 0xba, 0xbb, 0x1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, 0x32, 0xe2, 0xe2,
|
||||
0xec, 0xa5, 0x52, 0xbc, 0x8f, 0x0f, 0x18, 0xcc, 0x18, 0xd9, 0xc2, 0x52, 0x02, 0xa2, 0xfc, 0x33,
|
||||
0x3c, 0xaa, 0x81, 0xd6, 0x5b, 0x8a, 0xeb, 0x55, 0x7c, 0xfd, 0x51, 0xb8, 0xe2, 0xcf, 0x0c, 0x66,
|
||||
0x33, 0x3a, 0x82, 0x17, 0x07, 0x06, 0x3e, 0xae, 0x70, 0xf5, 0x4b, 0xa3, 0x81, 0xff, 0xcf, 0xf0,
|
||||
0x29, 0x59, 0x5b, 0xff, 0xe0, 0xb7, 0x83, 0x06, 0x7b, 0x78, 0xd0, 0x60, 0x7f, 0x1f, 0x34, 0xd8,
|
||||
0x77, 0x87, 0x8d, 0x89, 0x87, 0x87, 0x8d, 0x89, 0xbf, 0x0e, 0x1b, 0x13, 0x9f, 0x5c, 0xf6, 0x03,
|
||||
0xf9, 0x69, 0x77, 0xcb, 0xde, 0xe6, 0x3b, 0xc6, 0xad, 0xfe, 0xb3, 0x24, 0xda, 0x9f, 0x39, 0x9f,
|
||||
0xab, 0x18, 0xc9, 0xc8, 0x08, 0x13, 0x69, 0xeb, 0x84, 0xfa, 0xc5, 0xb2, 0xfa, 0x5f, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0xb2, 0x31, 0x71, 0x47, 0x6a, 0x0d, 0x00, 0x00,
|
||||
var fileDescriptor_46a436d1109b50d0 = []byte{
|
||||
// 945 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0xdc, 0x44,
|
||||
0x14, 0xcd, 0x6c, 0x92, 0x76, 0xf7, 0xa6, 0x09, 0x70, 0x5b, 0x9a, 0xc5, 0x94, 0x6d, 0x70, 0x68,
|
||||
0x12, 0x28, 0xf5, 0xb0, 0xe9, 0x97, 0x04, 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0, 0xae, 0xb3, 0x05, 0xb6, 0x32, 0xd5, 0x82, 0xe4, 0xd1, 0xc7,
|
||||
0x6d, 0xfb, 0x13, 0x78, 0xb1, 0x10, 0x28, 0x23, 0x11, 0x4a, 0x0f, 0xaf, 0x42, 0x35, 0x81, 0xe9,
|
||||
0xb0, 0x99, 0xd5, 0x79, 0x27, 0x57, 0xb1, 0x93, 0x86, 0xa4, 0x40, 0xfb, 0xc7, 0x4a, 0x81, 0x4e,
|
||||
0x26, 0x42, 0xd6, 0xe0, 0xb9, 0x54, 0x88, 0x54, 0xae, 0xea, 0x49, 0xcd, 0x3a, 0xb7, 0xfa, 0xca,
|
||||
0x10, 0xd6, 0x7b, 0x1a, 0xd4, 0x9a, 0x8b, 0x72, 0x67, 0x74, 0x60, 0xba, 0x2f, 0x94, 0xd7, 0xad,
|
||||
0x57, 0x16, 0xd8, 0x4a, 0xed, 0x4e, 0xfd, 0x8f, 0xdf, 0xae, 0x9c, 0x23, 0x82, 0xf7, 0xda, 0xed,
|
||||
0xae, 0x27, 0xe5, 0x3d, 0xd5, 0x0d, 0x42, 0xbf, 0x65, 0x60, 0x78, 0x03, 0x6a, 0x6d, 0x2f, 0x12,
|
||||
0x32, 0x50, 0xa2, 0x5b, 0x9f, 0x3c, 0x22, 0x66, 0x00, 0xc5, 0x35, 0x80, 0xc1, 0xd8, 0xea, 0x53,
|
||||
0xba, 0x01, 0x4b, 0x89, 0xd4, 0x78, 0xc6, 0x8e, 0xd9, 0x05, 0x9a, 0xb1, 0xb3, 0xee, 0xfa, 0x1e,
|
||||
0xd5, 0xda, 0xca, 0x44, 0xda, 0xbf, 0x32, 0x38, 0x5f, 0xec, 0x08, 0x75, 0xf8, 0x3a, 0xd4, 0x92,
|
||||
0xe2, 0xe2, 0x66, 0x4c, 0x8e, 0x6a, 0xf1, 0x00, 0x89, 0x1f, 0xe6, 0x94, 0x55, 0xb4, 0xb2, 0xe5,
|
||||
0x23, 0x95, 0x99, 0x9c, 0x39, 0x69,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0x30, 0x9a,
|
||||
0x3f, 0x57, 0x64, 0xfb, 0x4b, 0xfe, 0x95, 0xa6, 0x8f, 0xb7, 0x40, 0xc6, 0x3f, 0x2e, 0x4e, 0xe9,
|
||||
0xff, 0xfd, 0xaf, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xce, 0x57, 0x85, 0xcf, 0xa5, 0x0c, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -998,7 +998,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
||||
|
||||
func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
|
||||
out := new(QueryProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Proposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Proposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1007,7 +1007,7 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op
|
||||
|
||||
func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) {
|
||||
out := new(QueryProposalsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Proposals", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Proposals", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1016,7 +1016,7 @@ func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest,
|
||||
|
||||
func (c *queryClient) Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error) {
|
||||
out := new(QueryVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1025,7 +1025,7 @@ func (c *queryClient) Vote(ctx context.Context, in *QueryVoteRequest, opts ...gr
|
||||
|
||||
func (c *queryClient) Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error) {
|
||||
out := new(QueryVotesResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Votes", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Votes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1034,7 +1034,7 @@ func (c *queryClient) Votes(ctx context.Context, in *QueryVotesRequest, opts ...
|
||||
|
||||
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
||||
out := new(QueryParamsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Params", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Params", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1043,7 +1043,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
||||
|
||||
func (c *queryClient) Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) {
|
||||
out := new(QueryDepositResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Deposit", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Deposit", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1052,7 +1052,7 @@ func (c *queryClient) Deposit(ctx context.Context, in *QueryDepositRequest, opts
|
||||
|
||||
func (c *queryClient) Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) {
|
||||
out := new(QueryDepositsResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/Deposits", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/Deposits", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1061,7 +1061,7 @@ func (c *queryClient) Deposits(ctx context.Context, in *QueryDepositsRequest, op
|
||||
|
||||
func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
|
||||
out := new(QueryTallyResultResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Query/TallyResult", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Query/TallyResult", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1131,7 +1131,7 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Proposal",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Proposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
|
||||
@ -1149,7 +1149,7 @@ func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Proposals",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Proposals",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest))
|
||||
@ -1167,7 +1167,7 @@ func _Query_Vote_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Vote",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Vote(ctx, req.(*QueryVoteRequest))
|
||||
@ -1185,7 +1185,7 @@ func _Query_Votes_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Votes",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Votes",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Votes(ctx, req.(*QueryVotesRequest))
|
||||
@ -1203,7 +1203,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Params",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Params",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
||||
@ -1221,7 +1221,7 @@ func _Query_Deposit_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Deposit",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Deposit",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Deposit(ctx, req.(*QueryDepositRequest))
|
||||
@ -1239,7 +1239,7 @@ func _Query_Deposits_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/Deposits",
|
||||
FullMethod: "/cosmos.gov.v1.Query/Deposits",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Deposits(ctx, req.(*QueryDepositsRequest))
|
||||
@ -1257,7 +1257,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Query/TallyResult",
|
||||
FullMethod: "/cosmos.gov.v1.Query/TallyResult",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
|
||||
@ -1266,7 +1266,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.gov.v1beta2.Query",
|
||||
ServiceName: "cosmos.gov.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -1303,7 +1303,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/gov/v1beta2/query.proto",
|
||||
Metadata: "cosmos/gov/v1/query.proto",
|
||||
}
|
||||
|
||||
func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,12 +1,12 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: cosmos/gov/v1beta2/query.proto
|
||||
// source: cosmos/gov/v1/query.proto
|
||||
|
||||
/*
|
||||
Package v1beta2 is a reverse proxy.
|
||||
Package v1 is a reverse proxy.
|
||||
|
||||
It translates gRPC into RESTful JSON APIs.
|
||||
*/
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
@ -896,21 +896,21 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "gov", "v1beta2", "proposals"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "gov", "v1", "proposals"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Vote_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id", "votes", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Vote_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id", "votes", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Votes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id", "votes"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Votes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id", "votes"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "gov", "v1beta2", "params", "params_type"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "gov", "v1", "params", "params_type"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Deposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id", "deposits", "depositor"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Deposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id", "deposits", "depositor"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Deposits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id", "deposits"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Deposits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id", "deposits"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_TallyResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1beta2", "proposals", "proposal_id", "tally"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_TallyResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "gov", "v1", "proposals", "proposal_id", "tally"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/gov/v1beta2/tx.proto
|
||||
// source: cosmos/gov/v1/tx.proto
|
||||
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -46,7 +46,7 @@ func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} }
|
||||
func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitProposal) ProtoMessage() {}
|
||||
func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{0}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{0}
|
||||
}
|
||||
func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -112,7 +112,7 @@ func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResp
|
||||
func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitProposalResponse) ProtoMessage() {}
|
||||
func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{1}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{1}
|
||||
}
|
||||
func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -161,7 +161,7 @@ func (m *MsgExecLegacyContent) Reset() { *m = MsgExecLegacyContent{} }
|
||||
func (m *MsgExecLegacyContent) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgExecLegacyContent) ProtoMessage() {}
|
||||
func (*MsgExecLegacyContent) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{2}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{2}
|
||||
}
|
||||
func (m *MsgExecLegacyContent) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -212,7 +212,7 @@ func (m *MsgExecLegacyContentResponse) Reset() { *m = MsgExecLegacyConte
|
||||
func (m *MsgExecLegacyContentResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgExecLegacyContentResponse) ProtoMessage() {}
|
||||
func (*MsgExecLegacyContentResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{3}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{3}
|
||||
}
|
||||
func (m *MsgExecLegacyContentResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -245,7 +245,7 @@ var xxx_messageInfo_MsgExecLegacyContentResponse proto.InternalMessageInfo
|
||||
type MsgVote struct {
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta2.VoteOption" json:"option,omitempty"`
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"`
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
@ -253,7 +253,7 @@ func (m *MsgVote) Reset() { *m = MsgVote{} }
|
||||
func (m *MsgVote) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVote) ProtoMessage() {}
|
||||
func (*MsgVote) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{4}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{4}
|
||||
}
|
||||
func (m *MsgVote) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -318,7 +318,7 @@ func (m *MsgVoteResponse) Reset() { *m = MsgVoteResponse{} }
|
||||
func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVoteResponse) ProtoMessage() {}
|
||||
func (*MsgVoteResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{5}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{5}
|
||||
}
|
||||
func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -359,7 +359,7 @@ func (m *MsgVoteWeighted) Reset() { *m = MsgVoteWeighted{} }
|
||||
func (m *MsgVoteWeighted) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVoteWeighted) ProtoMessage() {}
|
||||
func (*MsgVoteWeighted) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{6}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{6}
|
||||
}
|
||||
func (m *MsgVoteWeighted) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -424,7 +424,7 @@ func (m *MsgVoteWeightedResponse) Reset() { *m = MsgVoteWeightedResponse
|
||||
func (m *MsgVoteWeightedResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVoteWeightedResponse) ProtoMessage() {}
|
||||
func (*MsgVoteWeightedResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{7}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{7}
|
||||
}
|
||||
func (m *MsgVoteWeightedResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -464,7 +464,7 @@ func (m *MsgDeposit) Reset() { *m = MsgDeposit{} }
|
||||
func (m *MsgDeposit) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDeposit) ProtoMessage() {}
|
||||
func (*MsgDeposit) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{8}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{8}
|
||||
}
|
||||
func (m *MsgDeposit) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -522,7 +522,7 @@ func (m *MsgDepositResponse) Reset() { *m = MsgDepositResponse{} }
|
||||
func (m *MsgDepositResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDepositResponse) ProtoMessage() {}
|
||||
func (*MsgDepositResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4214261f6b3f9ed4, []int{9}
|
||||
return fileDescriptor_9ff8f4a63b6fc9a9, []int{9}
|
||||
}
|
||||
func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -552,68 +552,68 @@ func (m *MsgDepositResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.gov.v1beta2.MsgSubmitProposal")
|
||||
proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.gov.v1beta2.MsgSubmitProposalResponse")
|
||||
proto.RegisterType((*MsgExecLegacyContent)(nil), "cosmos.gov.v1beta2.MsgExecLegacyContent")
|
||||
proto.RegisterType((*MsgExecLegacyContentResponse)(nil), "cosmos.gov.v1beta2.MsgExecLegacyContentResponse")
|
||||
proto.RegisterType((*MsgVote)(nil), "cosmos.gov.v1beta2.MsgVote")
|
||||
proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.gov.v1beta2.MsgVoteResponse")
|
||||
proto.RegisterType((*MsgVoteWeighted)(nil), "cosmos.gov.v1beta2.MsgVoteWeighted")
|
||||
proto.RegisterType((*MsgVoteWeightedResponse)(nil), "cosmos.gov.v1beta2.MsgVoteWeightedResponse")
|
||||
proto.RegisterType((*MsgDeposit)(nil), "cosmos.gov.v1beta2.MsgDeposit")
|
||||
proto.RegisterType((*MsgDepositResponse)(nil), "cosmos.gov.v1beta2.MsgDepositResponse")
|
||||
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.gov.v1.MsgSubmitProposal")
|
||||
proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.gov.v1.MsgSubmitProposalResponse")
|
||||
proto.RegisterType((*MsgExecLegacyContent)(nil), "cosmos.gov.v1.MsgExecLegacyContent")
|
||||
proto.RegisterType((*MsgExecLegacyContentResponse)(nil), "cosmos.gov.v1.MsgExecLegacyContentResponse")
|
||||
proto.RegisterType((*MsgVote)(nil), "cosmos.gov.v1.MsgVote")
|
||||
proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.gov.v1.MsgVoteResponse")
|
||||
proto.RegisterType((*MsgVoteWeighted)(nil), "cosmos.gov.v1.MsgVoteWeighted")
|
||||
proto.RegisterType((*MsgVoteWeightedResponse)(nil), "cosmos.gov.v1.MsgVoteWeightedResponse")
|
||||
proto.RegisterType((*MsgDeposit)(nil), "cosmos.gov.v1.MsgDeposit")
|
||||
proto.RegisterType((*MsgDepositResponse)(nil), "cosmos.gov.v1.MsgDepositResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1beta2/tx.proto", fileDescriptor_4214261f6b3f9ed4) }
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1/tx.proto", fileDescriptor_9ff8f4a63b6fc9a9) }
|
||||
|
||||
var fileDescriptor_4214261f6b3f9ed4 = []byte{
|
||||
// 735 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x6f, 0xd3, 0x4e,
|
||||
0x10, 0x8d, 0x9b, 0xfc, 0x9a, 0x76, 0xfa, 0x23, 0x55, 0x57, 0x91, 0xea, 0xb8, 0x95, 0x5b, 0x19,
|
||||
0x51, 0x45, 0xa0, 0xd8, 0x49, 0x40, 0x45, 0x2a, 0x1c, 0x68, 0x0a, 0x52, 0x41, 0x44, 0x80, 0x2b,
|
||||
0x81, 0xc4, 0xa5, 0x38, 0xf1, 0x76, 0x6b, 0xd1, 0x78, 0x2d, 0xef, 0x26, 0x6a, 0x8e, 0xf0, 0x09,
|
||||
0xf8, 0x28, 0x1c, 0x7a, 0xe7, 0x5a, 0xc1, 0xa5, 0xe2, 0xc4, 0xa5, 0x15, 0x6a, 0x0f, 0x48, 0x9c,
|
||||
0xf8, 0x08, 0xc8, 0xf6, 0xda, 0x09, 0xcd, 0x9f, 0x86, 0x0b, 0x27, 0x7b, 0xe7, 0xbd, 0x37, 0x3b,
|
||||
0x6f, 0xbc, 0xe3, 0x85, 0xa5, 0x26, 0x65, 0x2d, 0xca, 0x0c, 0x42, 0x3b, 0x46, 0xa7, 0xd2, 0xc0,
|
||||
0xdc, 0xaa, 0x1a, 0xfc, 0x50, 0xf7, 0x7c, 0xca, 0x29, 0x42, 0x11, 0xa8, 0x13, 0xda, 0xd1, 0x05,
|
||||
0xa8, 0xa8, 0x42, 0xd0, 0xb0, 0x18, 0x16, 0x8a, 0x8a, 0xd1, 0xa4, 0x8e, 0x1b, 0x69, 0x94, 0xe5,
|
||||
0x21, 0x09, 0x03, 0x7d, 0x84, 0xe6, 0x09, 0x25, 0x34, 0x7c, 0x35, 0x82, 0x37, 0x11, 0x2d, 0x44,
|
||||
0x9a, 0xdd, 0x08, 0x10, 0x9b, 0x0a, 0x88, 0x50, 0x4a, 0x0e, 0xb0, 0x11, 0xae, 0x1a, 0xed, 0x3d,
|
||||
0xc3, 0x72, 0xbb, 0x02, 0x5a, 0x14, 0x3b, 0xb5, 0x18, 0x31, 0x3a, 0x95, 0xe0, 0x11, 0x01, 0xda,
|
||||
0x2f, 0x09, 0x16, 0xea, 0x8c, 0xec, 0xb4, 0x1b, 0x2d, 0x87, 0x3f, 0xf7, 0xa9, 0x47, 0x99, 0x75,
|
||||
0x80, 0xca, 0x30, 0xd3, 0xc2, 0x8c, 0x59, 0x04, 0x33, 0x59, 0x5a, 0x4d, 0x17, 0xe7, 0xaa, 0x79,
|
||||
0x3d, 0x4a, 0xae, 0xc7, 0xc9, 0xf5, 0x4d, 0xb7, 0x6b, 0x26, 0x2c, 0xb4, 0x0d, 0xf3, 0x8e, 0xeb,
|
||||
0x70, 0xc7, 0x3a, 0xd8, 0xb5, 0xb1, 0x47, 0x99, 0xc3, 0xe5, 0xa9, 0x50, 0x58, 0xd0, 0x45, 0x8d,
|
||||
0x41, 0x13, 0x44, 0x67, 0x2a, 0xfa, 0x16, 0x75, 0xdc, 0x5a, 0xe6, 0xf8, 0x6c, 0x25, 0x65, 0xe6,
|
||||
0x84, 0xee, 0x61, 0x24, 0x43, 0x77, 0x60, 0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 0xfb, 0x51, 0x1d, 0x63, 0xba, 0x1f, 0xd1, 0xd0, 0x3a, 0x4c, 0x53,
|
||||
0x8f, 0x3b, 0xd4, 0x0d, 0x3f, 0x57, 0xae, 0xaa, 0xea, 0x83, 0xa3, 0xa0, 0x07, 0xb5, 0x3c, 0x0b,
|
||||
0x59, 0xa6, 0x60, 0x8f, 0xfd, 0x64, 0x10, 0x38, 0x8e, 0xf2, 0x6b, 0x0b, 0x30, 0x2f, 0xcc, 0x24,
|
||||
0x06, 0x4f, 0xa5, 0x24, 0xf6, 0x0a, 0x3b, 0x64, 0x9f, 0x63, 0xfb, 0x1f, 0x18, 0x7d, 0x00, 0xd9,
|
||||
0xa8, 0x74, 0x26, 0xa7, 0xc3, 0xb3, 0xbd, 0x36, 0xcc, 0x69, 0x5c, 0x50, 0x9f, 0xe3, 0x58, 0x36,
|
||||
0xb1, 0xe5, 0x02, 0x2c, 0x5e, 0xb2, 0x97, 0x58, 0xff, 0x24, 0x01, 0xd4, 0x19, 0x89, 0xa7, 0xe5,
|
||||
0xef, 0x5d, 0xaf, 0xc3, 0xac, 0x98, 0x50, 0x7a, 0xb5, 0xf3, 0x1e, 0x15, 0xdd, 0x85, 0x69, 0xab,
|
||||
0x45, 0xdb, 0x2e, 0x17, 0xe6, 0xaf, 0x1c, 0x6c, 0x41, 0x17, 0xa7, 0x37, 0x49, 0xa4, 0xe5, 0x01,
|
||||
0xf5, 0x0c, 0xc4, 0xbe, 0xaa, 0xa7, 0x69, 0x48, 0xd7, 0x19, 0x41, 0x7b, 0x90, 0xbb, 0xf4, 0x33,
|
||||
0xba, 0x31, 0xac, 0xcb, 0x03, 0x13, 0xac, 0x94, 0x26, 0xa2, 0x25, 0x83, 0x4e, 0x61, 0x61, 0x70,
|
||||
0x86, 0x8b, 0x23, 0x72, 0x0c, 0x30, 0x95, 0xf2, 0xa4, 0xcc, 0x64, 0xc3, 0x6d, 0xc8, 0x84, 0x03,
|
||||
0xb9, 0x34, 0x42, 0x19, 0x80, 0xca, 0xf5, 0x31, 0x60, 0x92, 0xe9, 0x0d, 0xfc, 0xff, 0xc7, 0xc9,
|
||||
0x1f, 0x27, 0x8a, 0x49, 0xca, 0xad, 0x09, 0x48, 0xc9, 0x0e, 0x2f, 0x20, 0x1b, 0x1f, 0x30, 0x75,
|
||||
0x84, 0x4e, 0xe0, 0xca, 0xda, 0x78, 0x3c, 0x4e, 0x59, 0x7b, 0x72, 0x7c, 0xae, 0x4a, 0x27, 0xe7,
|
||||
0xaa, 0xf4, 0xfd, 0x5c, 0x95, 0x3e, 0x5c, 0xa8, 0xa9, 0x93, 0x0b, 0x35, 0xf5, 0xed, 0x42, 0x4d,
|
||||
0xbd, 0x2e, 0x13, 0x87, 0xef, 0xb7, 0x1b, 0x7a, 0x93, 0xb6, 0xc4, 0x7d, 0x26, 0x1e, 0x25, 0x66,
|
||||
0xbf, 0x35, 0x0e, 0xc3, 0xdb, 0x91, 0x77, 0x3d, 0xcc, 0xe2, 0x3b, 0xb2, 0x31, 0x1d, 0xfe, 0x51,
|
||||
0x6f, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xc6, 0x08, 0x2b, 0x91, 0x07, 0x00, 0x00,
|
||||
var fileDescriptor_9ff8f4a63b6fc9a9 = []byte{
|
||||
// 734 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcf, 0x6a, 0xdb, 0x4a,
|
||||
0x14, 0xc6, 0xad, 0xd8, 0x37, 0x4e, 0x4e, 0x6e, 0x1c, 0x32, 0x98, 0x44, 0x16, 0x41, 0x71, 0x7c,
|
||||
0xe1, 0x62, 0x6e, 0x88, 0x14, 0xe7, 0x96, 0x16, 0x92, 0x52, 0x88, 0xd3, 0xd0, 0x16, 0x6a, 0x5a,
|
||||
0x14, 0x48, 0xa1, 0x14, 0x82, 0x6c, 0x4d, 0x27, 0xa2, 0x91, 0x46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2, 0xd0, 0xe5, 0x7d, 0x75, 0x24, 0xee, 0x7f, 0x10, 0x58, 0x2d,
|
||||
0x45, 0x00, 0x83, 0xf7, 0x9a, 0x0e, 0x73, 0x97, 0xb5, 0x90, 0x40, 0xd4, 0x3e, 0x2b, 0x50, 0x6c,
|
||||
0x31, 0xb2, 0x4d, 0x39, 0x46, 0xcb, 0x97, 0x00, 0x35, 0xa7, 0x7e, 0x9c, 0xcc, 0x9f, 0x0f, 0x9f,
|
||||
0x27, 0x44, 0x06, 0xfc, 0xd5, 0xa3, 0x1c, 0x87, 0xa2, 0x8f, 0x6b, 0xbe, 0xbe, 0x90, 0xa1, 0x06,
|
||||
0x8c, 0xd2, 0x80, 0xbb, 0xd4, 0x8f, 0xb7, 0xab, 0x34, 0xd8, 0x71, 0x31, 0x00, 0x46, 0xd4, 0xc6,
|
||||
0xb3, 0x58, 0x60, 0x49, 0xe1, 0xb5, 0xbb, 0x05, 0x11, 0xac, 0x28, 0x5d, 0x9b, 0x86, 0x29, 0xc9,
|
||||
0x91, 0xb2, 0x1d, 0x2b, 0x69, 0xec, 0x05, 0x76, 0xc9, 0x2e, 0xc7, 0xce, 0x1f, 0x60, 0x5c, 0x83,
|
||||
0xa2, 0x68, 0x9d, 0xa9, 0xf9, 0xf8, 0x58, 0x2f, 0x0c, 0x41, 0x26, 0xbd, 0x9c, 0x83, 0x4d, 0x1c,
|
||||
0xb7, 0xa6, 0xad, 0xc0, 0xec, 0x10, 0x59, 0x4a, 0xfd, 0x49, 0x01, 0x68, 0x31, 0x92, 0xcc, 0xc8,
|
||||
0xef, 0x03, 0xdf, 0x85, 0x71, 0x39, 0x97, 0xf4, 0x66, 0xe8, 0x81, 0x14, 0xdd, 0x83, 0x51, 0xdb,
|
||||
0xa3, 0x5d, 0x9f, 0x4b, 0xee, 0x1b, 0xc7, 0x59, 0xca, 0xe5, 0x99, 0x4d, 0x0b, 0xd5, 0xca, 0x80,
|
||||
0x06, 0x00, 0x09, 0xd7, 0xca, 0x87, 0x3c, 0xe4, 0x5b, 0x8c, 0xa0, 0x57, 0x50, 0x1a, 0xfa, 0x0b,
|
||||
0xaa, 0x0e, 0x7d, 0xe0, 0xcc, 0xc8, 0x6a, 0xf5, 0x9b, 0x14, 0xe9, 0x50, 0x63, 0x98, 0xce, 0xce,
|
||||
0xeb, 0x3f, 0x59, 0x7b, 0x46, 0xa4, 0x2d, 0xde, 0x42, 0x94, 0x2e, 0xf3, 0x00, 0x0a, 0xf1, 0xc8,
|
||||
0xcd, 0x64, 0x4d, 0x51, 0x5c, 0xd3, 0x2f, 0x8f, 0xa7, 0xfe, 0x6d, 0xf8, 0xfb, 0xc2, 0xb1, 0xbe,
|
||||
0x42, 0x9f, 0xe4, 0xb5, 0x7f, 0xaf, 0xcf, 0xa7, 0x75, 0x1f, 0x41, 0x31, 0x39, 0x38, 0x95, 0xac,
|
||||
0x45, 0xa6, 0xb4, 0x85, 0x2b, 0x53, 0x49, 0xa1, 0xe6, 0xe6, 0xe1, 0xa9, 0xae, 0x1c, 0x9d, 0xea,
|
||||
0xca, 0xb7, 0x53, 0x5d, 0x79, 0x7f, 0xa6, 0xe7, 0x8e, 0xce, 0xf4, 0xdc, 0xf1, 0x99, 0x9e, 0x7b,
|
||||
0xb9, 0x48, 0x5c, 0xbe, 0xdb, 0x6d, 0x1b, 0x1d, 0xea, 0xc9, 0x3b, 0x49, 0xfe, 0x2c, 0x31, 0xe7,
|
||||
0x8d, 0xb9, 0x1f, 0x5f, 0x6e, 0xbc, 0x1f, 0x60, 0x16, 0xdd, 0x80, 0xa3, 0xf1, 0x1f, 0xe2, 0xff,
|
||||
0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb7, 0xdb, 0x52, 0x42, 0x41, 0x07, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -651,7 +651,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
||||
|
||||
func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
|
||||
out := new(MsgSubmitProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/SubmitProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/SubmitProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -660,7 +660,7 @@ func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, o
|
||||
|
||||
func (c *msgClient) ExecLegacyContent(ctx context.Context, in *MsgExecLegacyContent, opts ...grpc.CallOption) (*MsgExecLegacyContentResponse, error) {
|
||||
out := new(MsgExecLegacyContentResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/ExecLegacyContent", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/ExecLegacyContent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -669,7 +669,7 @@ func (c *msgClient) ExecLegacyContent(ctx context.Context, in *MsgExecLegacyCont
|
||||
|
||||
func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
|
||||
out := new(MsgVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -678,7 +678,7 @@ func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error) {
|
||||
out := new(MsgVoteWeightedResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/VoteWeighted", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/VoteWeighted", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -687,7 +687,7 @@ func (c *msgClient) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts
|
||||
|
||||
func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) {
|
||||
out := new(MsgDepositResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta2.Msg/Deposit", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.gov.v1.Msg/Deposit", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -743,7 +743,7 @@ func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/SubmitProposal",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/SubmitProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
|
||||
@ -761,7 +761,7 @@ func _Msg_ExecLegacyContent_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/ExecLegacyContent",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/ExecLegacyContent",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ExecLegacyContent(ctx, req.(*MsgExecLegacyContent))
|
||||
@ -779,7 +779,7 @@ func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/Vote",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
|
||||
@ -797,7 +797,7 @@ func _Msg_VoteWeighted_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/VoteWeighted",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/VoteWeighted",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).VoteWeighted(ctx, req.(*MsgVoteWeighted))
|
||||
@ -815,7 +815,7 @@ func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.gov.v1beta2.Msg/Deposit",
|
||||
FullMethod: "/cosmos.gov.v1.Msg/Deposit",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit))
|
||||
@ -824,7 +824,7 @@ func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
|
||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.gov.v1beta2.Msg",
|
||||
ServiceName: "cosmos.gov.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -849,7 +849,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/gov/v1beta2/tx.proto",
|
||||
Metadata: "cosmos/gov/v1/tx.proto",
|
||||
}
|
||||
|
||||
func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,4 +1,4 @@
|
||||
package v1beta2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -290,7 +290,7 @@ If group-policy-as-admin flag is set to true, the admin of the newly created gro
|
||||
|
||||
Example:
|
||||
$ %s tx group create-group-with-policy [admin] [group-metadata] [group-policy-metadata] [members-json-file] \
|
||||
'{"@type":"/cosmos.group.v1beta1.ThresholdDecisionPolicy", "threshold":"1", "timeout":"1s"}'
|
||||
'{"@type":"/cosmos.group.v1.ThresholdDecisionPolicy", "threshold":"1", "timeout":"1s"}'
|
||||
|
||||
where members.json contains:
|
||||
|
||||
@ -378,10 +378,10 @@ Note, the '--from' flag is ignored as it is implied from [admin].
|
||||
|
||||
Example:
|
||||
$ %s tx group create-group-policy [admin] [group-id] [metadata] \
|
||||
'{"@type":"/cosmos.group.v1beta1.ThresholdDecisionPolicy", "threshold":"1", "timeout":"1s"}'
|
||||
'{"@type":"/cosmos.group.v1.ThresholdDecisionPolicy", "threshold":"1", "timeout":"1s"}'
|
||||
|
||||
Here, we can use percentage decision policy when needed, where 0 < percentage <= 1.
|
||||
Ex: '{"@type":"/cosmos.group.v1beta1.PercentageDecisionPolicy", "percentage":"0.5", "timeout":"1s"}'
|
||||
Ex: '{"@type":"/cosmos.group.v1.PercentageDecisionPolicy", "percentage":"0.5", "timeout":"1s"}'
|
||||
`,
|
||||
version.AppName,
|
||||
),
|
||||
|
||||
@ -124,7 +124,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
val.Address.String(),
|
||||
"1",
|
||||
validMetadata,
|
||||
fmt.Sprintf("{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"%d\", \"windows\":{\"voting_period\":\"30000s\"}}", threshold),
|
||||
fmt.Sprintf("{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"%d\", \"windows\":{\"voting_period\":\"30000s\"}}", threshold),
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -144,7 +144,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
|
||||
val.Address.String(),
|
||||
"1",
|
||||
validMetadata,
|
||||
fmt.Sprintf("{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"%f\", \"windows\":{\"voting_period\":\"30000s\"}}", percentage),
|
||||
fmt.Sprintf("{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"%f\", \"windows\":{\"voting_period\":\"30000s\"}}", percentage),
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -763,7 +763,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
validMembersFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -781,7 +781,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
validMembersFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, true),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -799,7 +799,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
validMembersFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeLegacyAminoJSON),
|
||||
},
|
||||
@ -818,7 +818,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
strings.Repeat("a", 256),
|
||||
validMetadata,
|
||||
validMembersFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -836,7 +836,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
strings.Repeat("a", 256),
|
||||
validMembersFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -854,7 +854,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
invalidMembersAddressFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -872,7 +872,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
invalidMembersWeightFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -890,7 +890,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupWithPolicy() {
|
||||
validMetadata,
|
||||
validMetadata,
|
||||
invalidMembersMetadataFile.Name(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%v", client.FlagGroupPolicyAsAdmin, false),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -949,7 +949,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -965,7 +965,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -981,7 +981,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeLegacyAminoJSON),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -998,7 +998,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
wrongAdmin.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1014,7 +1014,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
strings.Repeat("a", 500),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1030,7 +1030,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
"10",
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1046,7 +1046,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"-0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"-0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1062,7 +1062,7 @@ func (s *IntegrationTestSuite) TestTxCreateGroupPolicy() {
|
||||
val.Address.String(),
|
||||
fmt.Sprintf("%v", groupID),
|
||||
validMetadata,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"2\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"2\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1222,7 +1222,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1237,7 +1237,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"0.5\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"0.5\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1252,7 +1252,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"50000s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"50000s\"}}",
|
||||
fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeLegacyAminoJSON),
|
||||
},
|
||||
commonFlags...,
|
||||
@ -1268,7 +1268,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
newAdmin.String(),
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1283,7 +1283,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
newAdmin.String(),
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"1\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1298,7 +1298,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"-0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"-0.5\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -1313,7 +1313,7 @@ func (s *IntegrationTestSuite) TestTxUpdateGroupPolicyDecisionPolicy() {
|
||||
[]string{
|
||||
groupPolicy.Admin,
|
||||
groupPolicy.Address,
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.PercentageDecisionPolicy\", \"percentage\":\"2\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.PercentageDecisionPolicy\", \"percentage\":\"2\", \"windows\":{\"voting_period\":\"40000s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
@ -2199,7 +2199,7 @@ func (s *IntegrationTestSuite) TestTxLeaveGroup() {
|
||||
val.Address.String(),
|
||||
groupID,
|
||||
"AQ==",
|
||||
"{\"@type\":\"/cosmos.group.v1beta1.ThresholdDecisionPolicy\", \"threshold\":\"3\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
"{\"@type\":\"/cosmos.group.v1.ThresholdDecisionPolicy\", \"threshold\":\"3\", \"windows\":{\"voting_period\":\"1s\"}}",
|
||||
},
|
||||
commonFlags...,
|
||||
),
|
||||
|
||||
@ -52,7 +52,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
|
||||
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
||||
|
||||
registry.RegisterInterface(
|
||||
"cosmos.group.v1beta1.DecisionPolicy",
|
||||
"cosmos.group.v1.DecisionPolicy",
|
||||
(*DecisionPolicy)(nil),
|
||||
&ThresholdDecisionPolicy{},
|
||||
&PercentageDecisionPolicy{},
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/events.proto
|
||||
// source: cosmos/group/v1/events.proto
|
||||
|
||||
package group
|
||||
|
||||
@ -33,7 +33,7 @@ func (m *EventCreateGroup) Reset() { *m = EventCreateGroup{} }
|
||||
func (m *EventCreateGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventCreateGroup) ProtoMessage() {}
|
||||
func (*EventCreateGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{0}
|
||||
return fileDescriptor_e8d753981546f032, []int{0}
|
||||
}
|
||||
func (m *EventCreateGroup) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -79,7 +79,7 @@ func (m *EventUpdateGroup) Reset() { *m = EventUpdateGroup{} }
|
||||
func (m *EventUpdateGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventUpdateGroup) ProtoMessage() {}
|
||||
func (*EventUpdateGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{1}
|
||||
return fileDescriptor_e8d753981546f032, []int{1}
|
||||
}
|
||||
func (m *EventUpdateGroup) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -125,7 +125,7 @@ func (m *EventCreateGroupPolicy) Reset() { *m = EventCreateGroupPolicy{}
|
||||
func (m *EventCreateGroupPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventCreateGroupPolicy) ProtoMessage() {}
|
||||
func (*EventCreateGroupPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{2}
|
||||
return fileDescriptor_e8d753981546f032, []int{2}
|
||||
}
|
||||
func (m *EventCreateGroupPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -171,7 +171,7 @@ func (m *EventUpdateGroupPolicy) Reset() { *m = EventUpdateGroupPolicy{}
|
||||
func (m *EventUpdateGroupPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventUpdateGroupPolicy) ProtoMessage() {}
|
||||
func (*EventUpdateGroupPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{3}
|
||||
return fileDescriptor_e8d753981546f032, []int{3}
|
||||
}
|
||||
func (m *EventUpdateGroupPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -217,7 +217,7 @@ func (m *EventSubmitProposal) Reset() { *m = EventSubmitProposal{} }
|
||||
func (m *EventSubmitProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventSubmitProposal) ProtoMessage() {}
|
||||
func (*EventSubmitProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{4}
|
||||
return fileDescriptor_e8d753981546f032, []int{4}
|
||||
}
|
||||
func (m *EventSubmitProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -263,7 +263,7 @@ func (m *EventWithdrawProposal) Reset() { *m = EventWithdrawProposal{} }
|
||||
func (m *EventWithdrawProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventWithdrawProposal) ProtoMessage() {}
|
||||
func (*EventWithdrawProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{5}
|
||||
return fileDescriptor_e8d753981546f032, []int{5}
|
||||
}
|
||||
func (m *EventWithdrawProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -309,7 +309,7 @@ func (m *EventVote) Reset() { *m = EventVote{} }
|
||||
func (m *EventVote) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventVote) ProtoMessage() {}
|
||||
func (*EventVote) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{6}
|
||||
return fileDescriptor_e8d753981546f032, []int{6}
|
||||
}
|
||||
func (m *EventVote) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -355,7 +355,7 @@ func (m *EventExec) Reset() { *m = EventExec{} }
|
||||
func (m *EventExec) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventExec) ProtoMessage() {}
|
||||
func (*EventExec) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{7}
|
||||
return fileDescriptor_e8d753981546f032, []int{7}
|
||||
}
|
||||
func (m *EventExec) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -403,7 +403,7 @@ func (m *EventLeaveGroup) Reset() { *m = EventLeaveGroup{} }
|
||||
func (m *EventLeaveGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*EventLeaveGroup) ProtoMessage() {}
|
||||
func (*EventLeaveGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7879e051fb126fc0, []int{8}
|
||||
return fileDescriptor_e8d753981546f032, []int{8}
|
||||
}
|
||||
func (m *EventLeaveGroup) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -447,41 +447,41 @@ func (m *EventLeaveGroup) GetAddress() string {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*EventCreateGroup)(nil), "cosmos.group.v1beta1.EventCreateGroup")
|
||||
proto.RegisterType((*EventUpdateGroup)(nil), "cosmos.group.v1beta1.EventUpdateGroup")
|
||||
proto.RegisterType((*EventCreateGroupPolicy)(nil), "cosmos.group.v1beta1.EventCreateGroupPolicy")
|
||||
proto.RegisterType((*EventUpdateGroupPolicy)(nil), "cosmos.group.v1beta1.EventUpdateGroupPolicy")
|
||||
proto.RegisterType((*EventSubmitProposal)(nil), "cosmos.group.v1beta1.EventSubmitProposal")
|
||||
proto.RegisterType((*EventWithdrawProposal)(nil), "cosmos.group.v1beta1.EventWithdrawProposal")
|
||||
proto.RegisterType((*EventVote)(nil), "cosmos.group.v1beta1.EventVote")
|
||||
proto.RegisterType((*EventExec)(nil), "cosmos.group.v1beta1.EventExec")
|
||||
proto.RegisterType((*EventLeaveGroup)(nil), "cosmos.group.v1beta1.EventLeaveGroup")
|
||||
proto.RegisterType((*EventCreateGroup)(nil), "cosmos.group.v1.EventCreateGroup")
|
||||
proto.RegisterType((*EventUpdateGroup)(nil), "cosmos.group.v1.EventUpdateGroup")
|
||||
proto.RegisterType((*EventCreateGroupPolicy)(nil), "cosmos.group.v1.EventCreateGroupPolicy")
|
||||
proto.RegisterType((*EventUpdateGroupPolicy)(nil), "cosmos.group.v1.EventUpdateGroupPolicy")
|
||||
proto.RegisterType((*EventSubmitProposal)(nil), "cosmos.group.v1.EventSubmitProposal")
|
||||
proto.RegisterType((*EventWithdrawProposal)(nil), "cosmos.group.v1.EventWithdrawProposal")
|
||||
proto.RegisterType((*EventVote)(nil), "cosmos.group.v1.EventVote")
|
||||
proto.RegisterType((*EventExec)(nil), "cosmos.group.v1.EventExec")
|
||||
proto.RegisterType((*EventLeaveGroup)(nil), "cosmos.group.v1.EventLeaveGroup")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/group/v1beta1/events.proto", fileDescriptor_7879e051fb126fc0) }
|
||||
func init() { proto.RegisterFile("cosmos/group/v1/events.proto", fileDescriptor_e8d753981546f032) }
|
||||
|
||||
var fileDescriptor_7879e051fb126fc0 = []byte{
|
||||
// 319 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x2f, 0xca, 0x2f, 0x2d, 0xd0, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34,
|
||||
0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x81,
|
||||
0x28, 0xd1, 0x03, 0x2b, 0xd1, 0x83, 0x2a, 0x91, 0x92, 0x84, 0x88, 0xc6, 0x83, 0xd5, 0xe8, 0x43,
|
||||
0x95, 0x80, 0x39, 0x4a, 0xba, 0x5c, 0x02, 0xae, 0x20, 0x03, 0x9c, 0x8b, 0x52, 0x13, 0x4b, 0x52,
|
||||
0xdd, 0x41, 0xda, 0x84, 0x24, 0xb9, 0x38, 0xc0, 0xfa, 0xe3, 0x33, 0x53, 0x24, 0x18, 0x15, 0x18,
|
||||
0x35, 0x58, 0x82, 0xd8, 0xc1, 0x7c, 0xcf, 0x14, 0xb8, 0xf2, 0xd0, 0x82, 0x14, 0x62, 0x94, 0xfb,
|
||||
0x70, 0x89, 0xa1, 0x9b, 0x1e, 0x90, 0x9f, 0x93, 0x99, 0x5c, 0x29, 0x64, 0xc4, 0xc5, 0x9e, 0x98,
|
||||
0x92, 0x52, 0x94, 0x5a, 0x5c, 0x0c, 0xd6, 0xc3, 0xe9, 0x24, 0x71, 0x69, 0x8b, 0x2e, 0xcc, 0xf5,
|
||||
0x8e, 0x10, 0x99, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0xf4, 0x20, 0x98, 0x42, 0xb8, 0x69, 0x48, 0x96,
|
||||
0x53, 0x60, 0x9a, 0x19, 0x97, 0x30, 0xd8, 0xb4, 0xe0, 0xd2, 0xa4, 0xdc, 0xcc, 0x92, 0x80, 0xa2,
|
||||
0xfc, 0x82, 0xfc, 0xe2, 0xc4, 0x1c, 0x21, 0x79, 0x2e, 0xee, 0x02, 0x28, 0x1b, 0xe1, 0x21, 0x2e,
|
||||
0x98, 0x90, 0x67, 0x8a, 0x92, 0x05, 0x97, 0x28, 0x58, 0x5f, 0x78, 0x66, 0x49, 0x46, 0x4a, 0x51,
|
||||
0x62, 0x39, 0xf1, 0x3a, 0x75, 0xb8, 0x38, 0xc1, 0x3a, 0xc3, 0xf2, 0x4b, 0x52, 0x89, 0x57, 0xed,
|
||||
0x5a, 0x91, 0x9a, 0x4c, 0x58, 0x75, 0x02, 0x17, 0x3f, 0x58, 0xb5, 0x4f, 0x6a, 0x62, 0x19, 0xc1,
|
||||
0x78, 0x41, 0x0e, 0x2f, 0x26, 0x22, 0xc3, 0xcb, 0xc9, 0xee, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f,
|
||||
0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b,
|
||||
0x8f, 0xe5, 0x18, 0xa2, 0x54, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xa1,
|
||||
0x89, 0x0b, 0x4a, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0x57, 0x40, 0xd2, 0x6b, 0x12, 0x1b, 0x38, 0xc1,
|
||||
0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xfb, 0x10, 0x68, 0xc6, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_e8d753981546f032 = []byte{
|
||||
// 314 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x2f, 0xca, 0x2f, 0x2d, 0xd0, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd,
|
||||
0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0xc8, 0xea, 0x81, 0x65, 0xf5,
|
||||
0xca, 0x0c, 0xa5, 0x24, 0x21, 0x02, 0xf1, 0x60, 0x69, 0x7d, 0xa8, 0x2c, 0x98, 0xa3, 0xa4, 0xcb,
|
||||
0x25, 0xe0, 0x0a, 0xd2, 0xeb, 0x5c, 0x94, 0x9a, 0x58, 0x92, 0xea, 0x0e, 0xd2, 0x21, 0x24, 0xc9,
|
||||
0xc5, 0x01, 0xd6, 0x1a, 0x9f, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x12, 0xc4, 0x0e, 0xe6,
|
||||
0x7b, 0xa6, 0xc0, 0x95, 0x87, 0x16, 0xa4, 0x10, 0xa3, 0xdc, 0x87, 0x4b, 0x0c, 0xdd, 0xf4, 0x80,
|
||||
0xfc, 0x9c, 0xcc, 0xe4, 0x4a, 0x21, 0x23, 0x2e,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, 0x93, 0xd8, 0xc0, 0x09, 0xce, 0x18, 0x10, 0x00, 0x00,
|
||||
0xff, 0xff, 0xa2, 0x42, 0x09, 0x69, 0xbc, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *EventCreateGroup) Marshal() (dAtA []byte, err error) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/genesis.proto
|
||||
// source: cosmos/group/v1/genesis.proto
|
||||
|
||||
package group
|
||||
|
||||
@ -49,7 +49,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} }
|
||||
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenesisState) ProtoMessage() {}
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7eedba45e0e08e2c, []int{0}
|
||||
return fileDescriptor_cc6105fe3ef99f06, []int{0}
|
||||
}
|
||||
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -135,37 +135,35 @@ func (m *GenesisState) GetVotes() []*Vote {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenesisState)(nil), "cosmos.group.v1beta1.GenesisState")
|
||||
proto.RegisterType((*GenesisState)(nil), "cosmos.group.v1.GenesisState")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cosmos/group/v1beta1/genesis.proto", fileDescriptor_7eedba45e0e08e2c)
|
||||
}
|
||||
func init() { proto.RegisterFile("cosmos/group/v1/genesis.proto", fileDescriptor_cc6105fe3ef99f06) }
|
||||
|
||||
var fileDescriptor_7eedba45e0e08e2c = []byte{
|
||||
// 346 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbf, 0x4e, 0x3a, 0x41,
|
||||
0x10, 0xc7, 0xb9, 0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6, 0x40, 0xde, 0x66, 0x7b, 0x66, 0x8e, 0x92, 0xa3, 0x70, 0x38, 0xa7, 0x25, 0x73, 0xb4,
|
||||
0x64, 0x8d, 0xfa, 0x3d, 0x6a, 0xaf, 0x57, 0xbd, 0x63, 0xb5, 0x3f, 0x64, 0x08, 0x68, 0xe7, 0x49,
|
||||
0x79, 0xbc, 0x43, 0x69, 0xd2, 0xb4, 0x78, 0x75, 0x3b, 0x2e, 0x04, 0xe4, 0x4d, 0x56, 0x51, 0xb1,
|
||||
0x54, 0x12, 0x07, 0x23, 0x72, 0x16, 0xc8, 0x59, 0xde, 0xf4, 0xd6, 0xc2, 0x4b, 0x56, 0xda, 0x94,
|
||||
0x68, 0xff, 0x27, 0x97, 0x48, 0x77, 0xf5, 0x12, 0xcc, 0xdb, 0x06, 0xf8, 0x29, 0xcb, 0xcf, 0xa4,
|
||||
0x06, 0xb4, 0x8b, 0x94, 0xac, 0xa7, 0x27, 0x1f, 0xa4, 0x06, 0xcf, 0x80, 0xd7, 0x57, 0x5f, 0x4b,
|
||||
0x61, 0x2d, 0x96, 0xc2, 0xfa, 0x59, 0x0a, 0xeb, 0x63, 0x25, 0x32, 0x8b, 0x95, 0xc8, 0x7c, 0xaf,
|
||||
0x44, 0xe6, 0xf1, 0x28, 0x08, 0xf5, 0xeb, 0xd4, 0x77, 0x86, 0x32, 0x72, 0x93, 0x03, 0x30, 0xcf,
|
||||
0x09, 0x3e, 0xbf, 0xb9, 0xef, 0xe6, 0x1a, 0xfc, 0x02, 0x1d, 0xc0, 0xf9, 0x6f, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0x87, 0x02, 0xbb, 0xdc, 0x5e, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_cc6105fe3ef99f06 = []byte{
|
||||
// 341 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcf, 0x4e, 0xfa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, 0x41, 0xb2, 0x21,
|
||||
0xf6, 0x75, 0x8b, 0x10, 0x87, 0xfe, 0x60, 0xc6, 0xa3, 0x65, 0x78, 0xb4, 0x0a, 0xd7, 0x3b, 0x5c,
|
||||
0x5e, 0x0d, 0xd8, 0x16, 0x95, 0x3f, 0xa4, 0x0f, 0x64, 0x66, 0xd9, 0x56, 0xdf, 0x6d, 0xd3, 0x41,
|
||||
0x1e, 0xb7, 0x9c, 0x74, 0xf2, 0x81, 0xe4, 0x89, 0x28, 0x85, 0x11, 0x86, 0x48, 0xbd, 0x21, 0xeb,
|
||||
0x72, 0xac, 0x2b, 0xae, 0x6b, 0x2b, 0xd7, 0x95, 0x28, 0xac, 0x9f, 0x64, 0xfe, 0x67, 0xcd, 0xe1,
|
||||
0x96, 0xa6, 0x13, 0x13, 0x6e, 0xc2, 0xca, 0x73, 0x91, 0x9d, 0xa2, 0x02, 0x32, 0xf3, 0x1c, 0x3a,
|
||||
0xd8, 0x0a, 0x3d, 0xa0, 0x02, 0x57, 0x33, 0xb7, 0xd7, 0x5f, 0x0b, 0xcb, 0x98, 0x2f, 0x2c, 0xe3,
|
||||
0x67, 0x61, 0x19, 0x1f, 0x4b, 0x2b, 0x35, 0x5f, 0x5a, 0xa9, 0xef, 0xa5, 0x95, 0x7a, 0x3c, 0xf3,
|
||||
0x7c, 0xf5, 0x3a, 0xe9, 0xdb, 0x03, 0x0c, 0x9c, 0x78, 0xc5, 0xfa, 0xb8, 0xa0, 0xe7, 0x37, 0xe7,
|
||||
0x5d, 0xef, 0xbb, 0x9f, 0xe3, 0x3d, 0x5f, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x99, 0x5b, 0x30,
|
||||
0xc4, 0x36, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/query.proto
|
||||
// source: cosmos/group/v1/query.proto
|
||||
|
||||
package group
|
||||
|
||||
@ -41,7 +41,7 @@ func (m *QueryGroupInfoRequest) Reset() { *m = QueryGroupInfoRequest{} }
|
||||
func (m *QueryGroupInfoRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupInfoRequest) ProtoMessage() {}
|
||||
func (*QueryGroupInfoRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{0}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{0}
|
||||
}
|
||||
func (m *QueryGroupInfoRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -87,7 +87,7 @@ func (m *QueryGroupInfoResponse) Reset() { *m = QueryGroupInfoResponse{}
|
||||
func (m *QueryGroupInfoResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupInfoResponse) ProtoMessage() {}
|
||||
func (*QueryGroupInfoResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{1}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{1}
|
||||
}
|
||||
func (m *QueryGroupInfoResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -133,7 +133,7 @@ func (m *QueryGroupPolicyInfoRequest) Reset() { *m = QueryGroupPolicyInf
|
||||
func (m *QueryGroupPolicyInfoRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPolicyInfoRequest) ProtoMessage() {}
|
||||
func (*QueryGroupPolicyInfoRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{2}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{2}
|
||||
}
|
||||
func (m *QueryGroupPolicyInfoRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -179,7 +179,7 @@ func (m *QueryGroupPolicyInfoResponse) Reset() { *m = QueryGroupPolicyIn
|
||||
func (m *QueryGroupPolicyInfoResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPolicyInfoResponse) ProtoMessage() {}
|
||||
func (*QueryGroupPolicyInfoResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{3}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{3}
|
||||
}
|
||||
func (m *QueryGroupPolicyInfoResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -227,7 +227,7 @@ func (m *QueryGroupMembersRequest) Reset() { *m = QueryGroupMembersReque
|
||||
func (m *QueryGroupMembersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupMembersRequest) ProtoMessage() {}
|
||||
func (*QueryGroupMembersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{4}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{4}
|
||||
}
|
||||
func (m *QueryGroupMembersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -282,7 +282,7 @@ func (m *QueryGroupMembersResponse) Reset() { *m = QueryGroupMembersResp
|
||||
func (m *QueryGroupMembersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupMembersResponse) ProtoMessage() {}
|
||||
func (*QueryGroupMembersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{5}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{5}
|
||||
}
|
||||
func (m *QueryGroupMembersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -337,7 +337,7 @@ func (m *QueryGroupsByAdminRequest) Reset() { *m = QueryGroupsByAdminReq
|
||||
func (m *QueryGroupsByAdminRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupsByAdminRequest) ProtoMessage() {}
|
||||
func (*QueryGroupsByAdminRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{6}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{6}
|
||||
}
|
||||
func (m *QueryGroupsByAdminRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -392,7 +392,7 @@ func (m *QueryGroupsByAdminResponse) Reset() { *m = QueryGroupsByAdminRe
|
||||
func (m *QueryGroupsByAdminResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupsByAdminResponse) ProtoMessage() {}
|
||||
func (*QueryGroupsByAdminResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{7}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{7}
|
||||
}
|
||||
func (m *QueryGroupsByAdminResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -447,7 +447,7 @@ func (m *QueryGroupPoliciesByGroupRequest) Reset() { *m = QueryGroupPoli
|
||||
func (m *QueryGroupPoliciesByGroupRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPoliciesByGroupRequest) ProtoMessage() {}
|
||||
func (*QueryGroupPoliciesByGroupRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{8}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{8}
|
||||
}
|
||||
func (m *QueryGroupPoliciesByGroupRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -502,7 +502,7 @@ func (m *QueryGroupPoliciesByGroupResponse) Reset() { *m = QueryGroupPol
|
||||
func (m *QueryGroupPoliciesByGroupResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPoliciesByGroupResponse) ProtoMessage() {}
|
||||
func (*QueryGroupPoliciesByGroupResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{9}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{9}
|
||||
}
|
||||
func (m *QueryGroupPoliciesByGroupResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -557,7 +557,7 @@ func (m *QueryGroupPoliciesByAdminRequest) Reset() { *m = QueryGroupPoli
|
||||
func (m *QueryGroupPoliciesByAdminRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPoliciesByAdminRequest) ProtoMessage() {}
|
||||
func (*QueryGroupPoliciesByAdminRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{10}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{10}
|
||||
}
|
||||
func (m *QueryGroupPoliciesByAdminRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -612,7 +612,7 @@ func (m *QueryGroupPoliciesByAdminResponse) Reset() { *m = QueryGroupPol
|
||||
func (m *QueryGroupPoliciesByAdminResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupPoliciesByAdminResponse) ProtoMessage() {}
|
||||
func (*QueryGroupPoliciesByAdminResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{11}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{11}
|
||||
}
|
||||
func (m *QueryGroupPoliciesByAdminResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -665,7 +665,7 @@ func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} }
|
||||
func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalRequest) ProtoMessage() {}
|
||||
func (*QueryProposalRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{12}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{12}
|
||||
}
|
||||
func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -711,7 +711,7 @@ func (m *QueryProposalResponse) Reset() { *m = QueryProposalResponse{} }
|
||||
func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalResponse) ProtoMessage() {}
|
||||
func (*QueryProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{13}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{13}
|
||||
}
|
||||
func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -759,7 +759,7 @@ func (m *QueryProposalsByGroupPolicyRequest) Reset() { *m = QueryProposa
|
||||
func (m *QueryProposalsByGroupPolicyRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalsByGroupPolicyRequest) ProtoMessage() {}
|
||||
func (*QueryProposalsByGroupPolicyRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{14}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{14}
|
||||
}
|
||||
func (m *QueryProposalsByGroupPolicyRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -814,7 +814,7 @@ func (m *QueryProposalsByGroupPolicyResponse) Reset() { *m = QueryPropos
|
||||
func (m *QueryProposalsByGroupPolicyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryProposalsByGroupPolicyResponse) ProtoMessage() {}
|
||||
func (*QueryProposalsByGroupPolicyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{15}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{15}
|
||||
}
|
||||
func (m *QueryProposalsByGroupPolicyResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -869,7 +869,7 @@ func (m *QueryVoteByProposalVoterRequest) Reset() { *m = QueryVoteByProp
|
||||
func (m *QueryVoteByProposalVoterRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVoteByProposalVoterRequest) ProtoMessage() {}
|
||||
func (*QueryVoteByProposalVoterRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{16}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{16}
|
||||
}
|
||||
func (m *QueryVoteByProposalVoterRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -922,7 +922,7 @@ func (m *QueryVoteByProposalVoterResponse) Reset() { *m = QueryVoteByPro
|
||||
func (m *QueryVoteByProposalVoterResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVoteByProposalVoterResponse) ProtoMessage() {}
|
||||
func (*QueryVoteByProposalVoterResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{17}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{17}
|
||||
}
|
||||
func (m *QueryVoteByProposalVoterResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -970,7 +970,7 @@ func (m *QueryVotesByProposalRequest) Reset() { *m = QueryVotesByProposa
|
||||
func (m *QueryVotesByProposalRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesByProposalRequest) ProtoMessage() {}
|
||||
func (*QueryVotesByProposalRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{18}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{18}
|
||||
}
|
||||
func (m *QueryVotesByProposalRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1025,7 +1025,7 @@ func (m *QueryVotesByProposalResponse) Reset() { *m = QueryVotesByPropos
|
||||
func (m *QueryVotesByProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesByProposalResponse) ProtoMessage() {}
|
||||
func (*QueryVotesByProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{19}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{19}
|
||||
}
|
||||
func (m *QueryVotesByProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1080,7 +1080,7 @@ func (m *QueryVotesByVoterRequest) Reset() { *m = QueryVotesByVoterReque
|
||||
func (m *QueryVotesByVoterRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesByVoterRequest) ProtoMessage() {}
|
||||
func (*QueryVotesByVoterRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{20}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{20}
|
||||
}
|
||||
func (m *QueryVotesByVoterRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1135,7 +1135,7 @@ func (m *QueryVotesByVoterResponse) Reset() { *m = QueryVotesByVoterResp
|
||||
func (m *QueryVotesByVoterResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryVotesByVoterResponse) ProtoMessage() {}
|
||||
func (*QueryVotesByVoterResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{21}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{21}
|
||||
}
|
||||
func (m *QueryVotesByVoterResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1190,7 +1190,7 @@ func (m *QueryGroupsByMemberRequest) Reset() { *m = QueryGroupsByMemberR
|
||||
func (m *QueryGroupsByMemberRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupsByMemberRequest) ProtoMessage() {}
|
||||
func (*QueryGroupsByMemberRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{22}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{22}
|
||||
}
|
||||
func (m *QueryGroupsByMemberRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1245,7 +1245,7 @@ func (m *QueryGroupsByMemberResponse) Reset() { *m = QueryGroupsByMember
|
||||
func (m *QueryGroupsByMemberResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryGroupsByMemberResponse) ProtoMessage() {}
|
||||
func (*QueryGroupsByMemberResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{23}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{23}
|
||||
}
|
||||
func (m *QueryGroupsByMemberResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1298,7 +1298,7 @@ func (m *QueryTallyResultRequest) Reset() { *m = QueryTallyResultRequest
|
||||
func (m *QueryTallyResultRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTallyResultRequest) ProtoMessage() {}
|
||||
func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{24}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{24}
|
||||
}
|
||||
func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1344,7 +1344,7 @@ func (m *QueryTallyResultResponse) Reset() { *m = QueryTallyResultRespon
|
||||
func (m *QueryTallyResultResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTallyResultResponse) ProtoMessage() {}
|
||||
func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ae47912b18757b1a, []int{25}
|
||||
return fileDescriptor_0fcf9f1d74302290, []int{25}
|
||||
}
|
||||
func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1381,117 +1381,117 @@ func (m *QueryTallyResultResponse) GetTally() TallyResult {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryGroupInfoRequest)(nil), "cosmos.group.v1beta1.QueryGroupInfoRequest")
|
||||
proto.RegisterType((*QueryGroupInfoResponse)(nil), "cosmos.group.v1beta1.QueryGroupInfoResponse")
|
||||
proto.RegisterType((*QueryGroupPolicyInfoRequest)(nil), "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest")
|
||||
proto.RegisterType((*QueryGroupPolicyInfoResponse)(nil), "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse")
|
||||
proto.RegisterType((*QueryGroupMembersRequest)(nil), "cosmos.group.v1beta1.QueryGroupMembersRequest")
|
||||
proto.RegisterType((*QueryGroupMembersResponse)(nil), "cosmos.group.v1beta1.QueryGroupMembersResponse")
|
||||
proto.RegisterType((*QueryGroupsByAdminRequest)(nil), "cosmos.group.v1beta1.QueryGroupsByAdminRequest")
|
||||
proto.RegisterType((*QueryGroupsByAdminResponse)(nil), "cosmos.group.v1beta1.QueryGroupsByAdminResponse")
|
||||
proto.RegisterType((*QueryGroupPoliciesByGroupRequest)(nil), "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest")
|
||||
proto.RegisterType((*QueryGroupPoliciesByGroupResponse)(nil), "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse")
|
||||
proto.RegisterType((*QueryGroupPoliciesByAdminRequest)(nil), "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest")
|
||||
proto.RegisterType((*QueryGroupPoliciesByAdminResponse)(nil), "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse")
|
||||
proto.RegisterType((*QueryProposalRequest)(nil), "cosmos.group.v1beta1.QueryProposalRequest")
|
||||
proto.RegisterType((*QueryProposalResponse)(nil), "cosmos.group.v1beta1.QueryProposalResponse")
|
||||
proto.RegisterType((*QueryProposalsByGroupPolicyRequest)(nil), "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest")
|
||||
proto.RegisterType((*QueryProposalsByGroupPolicyResponse)(nil), "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse")
|
||||
proto.RegisterType((*QueryVoteByProposalVoterRequest)(nil), "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest")
|
||||
proto.RegisterType((*QueryVoteByProposalVoterResponse)(nil), "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse")
|
||||
proto.RegisterType((*QueryVotesByProposalRequest)(nil), "cosmos.group.v1beta1.QueryVotesByProposalRequest")
|
||||
proto.RegisterType((*QueryVotesByProposalResponse)(nil), "cosmos.group.v1beta1.QueryVotesByProposalResponse")
|
||||
proto.RegisterType((*QueryVotesByVoterRequest)(nil), "cosmos.group.v1beta1.QueryVotesByVoterRequest")
|
||||
proto.RegisterType((*QueryVotesByVoterResponse)(nil), "cosmos.group.v1beta1.QueryVotesByVoterResponse")
|
||||
proto.RegisterType((*QueryGroupsByMemberRequest)(nil), "cosmos.group.v1beta1.QueryGroupsByMemberRequest")
|
||||
proto.RegisterType((*QueryGroupsByMemberResponse)(nil), "cosmos.group.v1beta1.QueryGroupsByMemberResponse")
|
||||
proto.RegisterType((*QueryTallyResultRequest)(nil), "cosmos.group.v1beta1.QueryTallyResultRequest")
|
||||
proto.RegisterType((*QueryTallyResultResponse)(nil), "cosmos.group.v1beta1.QueryTallyResultResponse")
|
||||
proto.RegisterType((*QueryGroupInfoRequest)(nil), "cosmos.group.v1.QueryGroupInfoRequest")
|
||||
proto.RegisterType((*QueryGroupInfoResponse)(nil), "cosmos.group.v1.QueryGroupInfoResponse")
|
||||
proto.RegisterType((*QueryGroupPolicyInfoRequest)(nil), "cosmos.group.v1.QueryGroupPolicyInfoRequest")
|
||||
proto.RegisterType((*QueryGroupPolicyInfoResponse)(nil), "cosmos.group.v1.QueryGroupPolicyInfoResponse")
|
||||
proto.RegisterType((*QueryGroupMembersRequest)(nil), "cosmos.group.v1.QueryGroupMembersRequest")
|
||||
proto.RegisterType((*QueryGroupMembersResponse)(nil), "cosmos.group.v1.QueryGroupMembersResponse")
|
||||
proto.RegisterType((*QueryGroupsByAdminRequest)(nil), "cosmos.group.v1.QueryGroupsByAdminRequest")
|
||||
proto.RegisterType((*QueryGroupsByAdminResponse)(nil), "cosmos.group.v1.QueryGroupsByAdminResponse")
|
||||
proto.RegisterType((*QueryGroupPoliciesByGroupRequest)(nil), "cosmos.group.v1.QueryGroupPoliciesByGroupRequest")
|
||||
proto.RegisterType((*QueryGroupPoliciesByGroupResponse)(nil), "cosmos.group.v1.QueryGroupPoliciesByGroupResponse")
|
||||
proto.RegisterType((*QueryGroupPoliciesByAdminRequest)(nil), "cosmos.group.v1.QueryGroupPoliciesByAdminRequest")
|
||||
proto.RegisterType((*QueryGroupPoliciesByAdminResponse)(nil), "cosmos.group.v1.QueryGroupPoliciesByAdminResponse")
|
||||
proto.RegisterType((*QueryProposalRequest)(nil), "cosmos.group.v1.QueryProposalRequest")
|
||||
proto.RegisterType((*QueryProposalResponse)(nil), "cosmos.group.v1.QueryProposalResponse")
|
||||
proto.RegisterType((*QueryProposalsByGroupPolicyRequest)(nil), "cosmos.group.v1.QueryProposalsByGroupPolicyRequest")
|
||||
proto.RegisterType((*QueryProposalsByGroupPolicyResponse)(nil), "cosmos.group.v1.QueryProposalsByGroupPolicyResponse")
|
||||
proto.RegisterType((*QueryVoteByProposalVoterRequest)(nil), "cosmos.group.v1.QueryVoteByProposalVoterRequest")
|
||||
proto.RegisterType((*QueryVoteByProposalVoterResponse)(nil), "cosmos.group.v1.QueryVoteByProposalVoterResponse")
|
||||
proto.RegisterType((*QueryVotesByProposalRequest)(nil), "cosmos.group.v1.QueryVotesByProposalRequest")
|
||||
proto.RegisterType((*QueryVotesByProposalResponse)(nil), "cosmos.group.v1.QueryVotesByProposalResponse")
|
||||
proto.RegisterType((*QueryVotesByVoterRequest)(nil), "cosmos.group.v1.QueryVotesByVoterRequest")
|
||||
proto.RegisterType((*QueryVotesByVoterResponse)(nil), "cosmos.group.v1.QueryVotesByVoterResponse")
|
||||
proto.RegisterType((*QueryGroupsByMemberRequest)(nil), "cosmos.group.v1.QueryGroupsByMemberRequest")
|
||||
proto.RegisterType((*QueryGroupsByMemberResponse)(nil), "cosmos.group.v1.QueryGroupsByMemberResponse")
|
||||
proto.RegisterType((*QueryTallyResultRequest)(nil), "cosmos.group.v1.QueryTallyResultRequest")
|
||||
proto.RegisterType((*QueryTallyResultResponse)(nil), "cosmos.group.v1.QueryTallyResultResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/group/v1beta1/query.proto", fileDescriptor_ae47912b18757b1a) }
|
||||
func init() { proto.RegisterFile("cosmos/group/v1/query.proto", fileDescriptor_0fcf9f1d74302290) }
|
||||
|
||||
var fileDescriptor_ae47912b18757b1a = []byte{
|
||||
// 1252 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdd, 0x6b, 0x1c, 0x55,
|
||||
0x14, 0xcf, 0xad, 0x49, 0x93, 0x9c, 0xf4, 0x03, 0xae, 0xb1, 0x26, 0x63, 0xd9, 0xa4, 0xe3, 0x57,
|
||||
0x69, 0x9a, 0x99, 0x64, 0x63, 0xbe, 0xad, 0x98, 0x45, 0x2c, 0x11, 0x0b, 0xe9, 0x56, 0x84, 0xfa,
|
||||
0x12, 0x66, 0xb3, 0x93, 0x71, 0x70, 0x77, 0xee, 0x76, 0x67, 0x52, 0x5c, 0xc2, 0xbe, 0x08, 0xfa,
|
||||
0x2c, 0x16, 0xc4, 0x2a, 0xf8, 0xf1, 0x20, 0x52, 0x10, 0x7c, 0x50, 0x10, 0xfc, 0x03, 0x24, 0xbe,
|
||||
0x05, 0x7d, 0xf1, 0x49, 0x24, 0xf1, 0x0f, 0x91, 0xb9, 0xf7, 0xdc, 0xdd, 0x99, 0xcd, 0xdd, 0x99,
|
||||
0x59, 0x5d, 0x34, 0x4f, 0xed, 0xdc, 0x3d, 0xe7, 0x9e, 0xdf, 0xf9, 0x9d, 0x73, 0xcf, 0xfd, 0xdd,
|
||||
0xc0, 0xf4, 0x0e, 0xf3, 0xab, 0xcc, 0x37, 0x9d, 0x3a, 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0xb6, 0xef, 0xf3, 0x6d, 0x47, 0x0b, 0x13, 0xbf, 0xfe, 0x30,
|
||||
0x2b, 0x99, 0xde, 0x10, 0xbf, 0xdc, 0x09, 0xea, 0xae, 0xe7, 0x14, 0xa5, 0xa1, 0x7e, 0x17, 0x2e,
|
||||
0xab, 0xb7, 0x44, 0x9c, 0xab, 0x31, 0x9c, 0xcf, 0x26, 0xe0, 0x8c, 0x38, 0x0b, 0xb4, 0x4d, 0x98,
|
||||
0x68, 0x6f, 0x7d, 0xcb, 0xae, 0x96, 0xec, 0xba, 0x9f, 0xce, 0x19, 0x7d, 0x15, 0xa0, 0x5d, 0x96,
|
||||
0x89, 0x33, 0x3c, 0xee, 0x73, 0x32, 0x6e, 0x58, 0x43, 0x43, 0x34, 0x92, 0x0c, 0xbe, 0x65, 0x39,
|
||||
0x36, 0x6e, 0x5b, 0x8c, 0x78, 0xea, 0x5f, 0x11, 0x98, 0x54, 0xc4, 0xc7, 0xbc, 0xd6, 0x61, 0xb8,
|
||||
0x2a, 0x96, 0x26, 0xc8, 0xf4, 0x63, 0x57, 0xc7, 0xf2, 0x57, 0x12, 0x52, 0x13, 0xce, 0x45, 0xe9,
|
||||
0x41, 0x6f, 0x2a, 0x20, 0x3e, 0x9f, 0x0a, 0x51, 0x44, 0x8e, 0x61, 0x7c, 0x10, 0xc3, 0xe8, 0x17,
|
||||
0x1a, 0x1b, 0xe5, 0xaa, 0xeb, 0x49, 0x92, 0x0c, 0x18, 0xb2, 0xc2, 0xef, 0xd4, 0x6a, 0x0a, 0xb3,
|
||||
0xbe, 0x31, 0xf7, 0x39, 0x01, 0x4d, 0x85, 0x0a, 0xa9, 0x5b, 0x86, 0xb3, 0x9c, 0x23, 0xc9, 0x5c,
|
||||
0x6a, 0xf3, 0xa2, 0x79, 0xff, 0x68, 0x7b, 0x9f, 0xc0, 0x74, 0x47, 0xd7, 0xba, 0xb6, 0x5f, 0x10,
|
||||
0x9f, 0xff, 0x61, 0x8b, 0xfd, 0x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2, 0xd2, 0x8c,
|
||||
0xac, 0xe6, 0x08, 0x74, 0x9d, 0x03, 0x5d, 0xa4, 0x0b, 0x29, 0x07, 0xb3, 0xa3, 0x83, 0xb9, 0x94,
|
||||
0x2a, 0xbc, 0x74, 0x70, 0x94, 0x23, 0x87, 0x47, 0x39, 0xf2, 0xe7, 0x51, 0x8e, 0x7c, 0x78, 0x9c,
|
||||
0x1b, 0x38, 0x3c, 0xce, 0x0d, 0xfc, 0x7e, 0x9c, 0x1b, 0x78, 0xeb, 0x19, 0xc7, 0x0d, 0xde, 0xde,
|
||||
0x2b, 0x19, 0x3b, 0xac, 0x2a, 0x37, 0x16, 0xff, 0xcc, 0xfa, 0xe5, 0x77, 0xcc, 0x77, 0x45, 0x94,
|
||||
0xd2, 0x59, 0xfe, 0xa7, 0xe8, 0x85, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xf2, 0x99, 0x66,
|
||||
0x61, 0x17, 0x00, 0x00,
|
||||
var fileDescriptor_0fcf9f1d74302290 = []byte{
|
||||
// 1249 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0xcf, 0x6f, 0xdc, 0x44,
|
||||
0x14, 0xc7, 0x33, 0x25, 0x69, 0x92, 0x97, 0xb6, 0x11, 0x43, 0x5a, 0x12, 0x37, 0xda, 0x04, 0x03,
|
||||
0xf9, 0x1d, 0x3b, 0xbb, 0x49, 0xd3, 0x8a, 0x9f, 0xea, 0x4a, 0x10, 0x72, 0x28, 0x4a, 0x97, 0x88,
|
||||
0x03, 0x97, 0xc8, 0x9b, 0x75, 0x8c, 0xc5, 0xae, 0x67, 0xbb, 0x76, 0x22, 0x56, 0xd1, 0x5e, 0x90,
|
||||
0xca, 0x01, 0x71, 0x00, 0x8a, 0x50, 0x89, 0x38, 0xf4, 0x80, 0x04, 0x7f, 0x00, 0x08, 0x89, 0x5b,
|
||||
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 0xce, 0x2c,
|
||||
0x5b, 0xa7, 0x0a, 0x0c, 0x9a, 0xd6, 0x01, 0xe3, 0x09, 0x63, 0x05, 0x49, 0x09, 0xa9, 0xa0, 0x74,
|
||||
0x32, 0x78, 0x9c, 0x7c, 0x17, 0xae, 0x77, 0x56, 0xda, 0x61, 0x55, 0x73, 0xbf, 0xe9, 0x67, 0x28,
|
||||
0xc0, 0xb0, 0x56, 0xa9, 0x34, 0x74, 0xdb, 0xe6, 0x2b, 0x8e, 0x16, 0x27, 0x7f, 0xfb, 0x69, 0x75,
|
||||
0x02, 0x17, 0xbd, 0x2d, 0xee, 0xbc, 0xe7, 0x34, 0x4c, 0xcb, 0x28, 0x79, 0x81, 0xf2, 0x2e, 0x4c,
|
||||
0xc7, 0x2f, 0x89, 0x88, 0x1b, 0x01, 0xc4, 0xd9, 0x78, 0x44, 0x5f, 0x9e, 0x00, 0x6d, 0xc1, 0x64,
|
||||
0x67, 0xd5, 0x3b, 0x7a, 0xad, 0xac, 0x37, 0xec, 0xee, 0x4a, 0xd1, 0xb7, 0x01, 0x3a, 0xcd, 0x98,
|
||||
0xbc, 0xc0, 0x4b, 0xce, 0x79, 0x25, 0xdd, 0xce, 0x29, 0x62, 0x68, 0xb0, 0x73, 0xca, 0x8e, 0x66,
|
||||
0xe8, 0xb8, 0x6c, 0xc9, 0x97, 0x29, 0x7f, 0x47, 0x60, 0x2a, 0xa6, 0x3e, 0x6e, 0x69, 0x13, 0x86,
|
||||
0x6b, 0xe2, 0xd2, 0x24, 0x99, 0x7d, 0x66, 0x61, 0xac, 0x30, 0x1d, 0xbf, 0x2b, 0x91, 0x57, 0xf2,
|
||||
0x82, 0xe9, 0x56, 0x0c, 0xdd, 0x7c, 0x57, 0x3a, 0x51, 0x34, 0x80, 0xf7, 0x20, 0x80, 0x67, 0x17,
|
||||
0x9b, 0xb7, 0x2b, 0x35, 0xd3, 0xf2, 0xf4, 0x51, 0x60, 0x48, 0x73, 0x7f, 0x77, 0xed, 0xa1, 0x08,
|
||||
0xeb, 0x9b, 0x68, 0xdf, 0x12, 0x90, 0xe2, 0xa8, 0x50, 0xb5, 0x02, 0x5c, 0xe4, 0xf2, 0x78, 0xa2,
|
||||
0xa5, 0x4d, 0x2b, 0x46, 0xf6, 0x4f, 0xb1, 0xfb, 0x04, 0x66, 0x43, 0x63, 0x6a, 0xea, 0x76, 0x51,
|
||||
0xfc, 0xfc, 0x0f, 0x07, 0xeb, 0x67, 0x02, 0x2f, 0xa4, 0x70, 0xa0, 0x54, 0x5b, 0x70, 0x45, 0x80,
|
||||
0xd4, 0x31, 0x00, 0x25, 0xeb, 0xfe, 0xf4, 0x5c, 0x36, 0xfc, 0xeb, 0xf6, 0x4f, 0xbf, 0x93, 0x04,
|
||||
0xfd, 0xce, 0xc5, 0xe0, 0x25, 0x89, 0x1a, 0x9c, 0xbf, 0xf3, 0x27, 0xea, 0x4d, 0x98, 0xe0, 0xd8,
|
||||
0x3b, 0x0d, 0x56, 0x67, 0xb6, 0x56, 0xf5, 0x74, 0x9c, 0x81, 0xb1, 0x3a, 0x5e, 0xea, 0x8c, 0x22,
|
||||
0x78, 0x97, 0xb6, 0x2b, 0xf2, 0xbb, 0xf8, 0x12, 0xe9, 0x24, 0xe2, 0x1e, 0x6f, 0xc0, 0x88, 0x17,
|
||||
0x86, 0x07, 0xee, 0x54, 0x64, 0x77, 0xed, 0xa4, 0x76, 0xa8, 0xfc, 0x88, 0x80, 0x1c, 0x58, 0xd0,
|
||||
0x9b, 0x48, 0x21, 0xc2, 0xbf, 0x78, 0x3d, 0xf4, 0xad, 0xc7, 0x3f, 0x10, 0x78, 0x31, 0x15, 0x11,
|
||||
0x15, 0xb8, 0x09, 0xa3, 0xde, 0xb6, 0xbc, 0x06, 0xa7, 0x48, 0xd0, 0x89, 0xed, 0x5f, 0x57, 0x1b,
|
||||
0x30, 0xc3, 0x41, 0xdf, 0x67, 0x8e, 0x5e, 0x6c, 0xe3, 0xba, 0xbf, 0x1a, 0x59, 0x1b, 0xec, 0x3e,
|
||||
0x49, 0x47, 0x6e, 0x02, 0xe7, 0x48, 0x7d, 0x92, 0x78, 0x98, 0x7c, 0x07, 0x9f, 0xce, 0xd8, 0x9a,
|
||||
0xa8, 0xcc, 0x22, 0x0c, 0xba, 0xc1, 0x38, 0x17, 0x57, 0x23, 0xa2, 0xb8, 0xd1, 0x25, 0x1e, 0x22,
|
||||
0x7f, 0x4a, 0xd0, 0x27, 0xb8, 0xd7, 0xec, 0x62, 0xcf, 0x03, 0xda, 0xb7, 0xae, 0x7f, 0x4d, 0xd0,
|
||||
0x5d, 0x44, 0x40, 0x70, 0x53, 0xcb, 0x42, 0x28, 0xaf, 0xd5, 0x09, 0xbb, 0x12, 0x31, 0xfd, 0x6b,
|
||||
0xf1, 0x57, 0x04, 0xed, 0x09, 0x62, 0x05, 0x9a, 0xdb, 0xee, 0x1d, 0xc9, 0xd4, 0xbb, 0xbe, 0x69,
|
||||
0xf5, 0xa5, 0x67, 0x0a, 0x82, 0x50, 0xff, 0xab, 0x50, 0x0f, 0xc3, 0x96, 0x00, 0x2d, 0xd1, 0x39,
|
||||
0x38, 0x50, 0x4e, 0x88, 0xdf, 0x0b, 0xfb, 0xd0, 0xce, 0x83, 0x5d, 0x79, 0x05, 0x9e, 0xe7, 0x6c,
|
||||
0xbb, 0x5a, 0xb5, 0xea, 0x9e, 0x6d, 0x87, 0x55, 0x27, 0xf3, 0xcb, 0x61, 0x17, 0x67, 0x33, 0x90,
|
||||
0x8b, 0x9b, 0xba, 0x05, 0x43, 0x8e, 0x7b, 0x19, 0x0f, 0x81, 0xa8, 0x6f, 0xf5, 0x25, 0x15, 0x07,
|
||||
0x9f, 0xfc, 0x39, 0x33, 0x50, 0x12, 0x09, 0x85, 0xfb, 0xcf, 0xc2, 0x10, 0x5f, 0x96, 0x7e, 0x4e,
|
||||
0x60, 0xb4, 0xbd, 0x75, 0x3a, 0x17, 0x59, 0x22, 0xf6, 0xf3, 0x46, 0x9a, 0xef, 0x1a,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xf0, 0x05, 0xba, 0x96,
|
||||
0x01, 0x3e, 0x28, 0xfb, 0x67, 0x04, 0x46, 0xbc, 0x97, 0x2d, 0x7d, 0x39, 0xbe, 0x74, 0xc8, 0x15,
|
||||
0x48, 0x73, 0xdd, 0xc2, 0x90, 0x4a, 0xe5, 0x54, 0x8b, 0x74, 0x3e, 0x42, 0xe5, 0x9d, 0x62, 0xea,
|
||||
0xb1, 0xef, 0x88, 0x6b, 0xd1, 0xc7, 0x04, 0xae, 0xc5, 0xdb, 0x3e, 0xba, 0x9e, 0x5e, 0x33, 0xd6,
|
||||
0xc7, 0x4a, 0x1b, 0xbd, 0x25, 0x21, 0xf6, 0x6b, 0x1c, 0x7b, 0x93, 0x6e, 0x24, 0x62, 0x77, 0x86,
|
||||
0x00, 0x0f, 0x01, 0xdf, 0xf3, 0xff, 0x98, 0xc0, 0x73, 0x31, 0xee, 0x8c, 0xae, 0xc5, 0xb3, 0x24,
|
||||
0x9b, 0x47, 0x29, 0xdf, 0x43, 0x06, 0xa2, 0xbf, 0xc5, 0xd1, 0xdf, 0xa4, 0xaf, 0x47, 0xd0, 0xdd,
|
||||
0xf7, 0xbd, 0x4b, 0xdd, 0xd6, 0x9b, 0x7b, 0x92, 0xa0, 0xfe, 0xea, 0x31, 0xbf, 0xd8, 0xa2, 0x3f,
|
||||
0x12, 0x18, 0x0f, 0x19, 0xb1, 0xa4, 0xa3, 0x36, 0xde, 0x38, 0x26, 0x1d, 0xb5, 0x09, 0xee, 0x2e,
|
||||
0x65, 0x7e, 0xb9, 0x4f, 0xf1, 0x83, 0x87, 0x46, 0xe6, 0x1b, 0x02, 0x97, 0xfc, 0x3e, 0x28, 0xe9,
|
||||
0xb8, 0x8d, 0x31, 0x70, 0x49, 0xc7, 0x6d, 0x9c, 0xad, 0x4a, 0x99, 0xe5, 0x36, 0x21, 0x2a, 0x8a,
|
||||
0x1a, 0x3e, 0x22, 0x70, 0x25, 0xe8, 0x38, 0x68, 0x97, 0x13, 0x34, 0x60, 0x99, 0xa4, 0x95, 0x6c,
|
||||
0xc1, 0x88, 0xb7, 0xce, 0xf1, 0x56, 0xe9, 0x72, 0xca, 0x79, 0x2b, 0xde, 0x08, 0xbe, 0x51, 0x3d,
|
||||
0x21, 0x30, 0xe6, 0xf3, 0x01, 0x74, 0x21, 0xbe, 0x64, 0xd4, 0x9b, 0x48, 0x8b, 0x19, 0x22, 0x91,
|
||||
0x6c, 0x93, 0x93, 0xad, 0x51, 0x25, 0xf9, 0x69, 0x0a, 0x4d, 0x21, 0xf7, 0x21, 0xc5, 0x37, 0x9e,
|
||||
0x9c, 0xe6, 0xc8, 0xd3, 0xd3, 0x1c, 0xf9, 0xeb, 0x34, 0x47, 0xbe, 0x38, 0xcb, 0x0d, 0x3c, 0x3d,
|
||||
0xcb, 0x0d, 0xfc, 0x71, 0x96, 0x1b, 0xf8, 0xe0, 0x25, 0xc3, 0x74, 0x3e, 0x3c, 0x2c, 0x2b, 0xfb,
|
||||
0xac, 0xe6, 0xad, 0x29, 0xfe, 0x59, 0xb5, 0x2b, 0x1f, 0xa9, 0x1f, 0x8b, 0x02, 0xe5, 0x8b, 0xfc,
|
||||
0xcf, 0xb0, 0xeb, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x11, 0xfe, 0x04, 0xa9, 0x4e, 0x16, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1544,7 +1544,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
||||
|
||||
func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) {
|
||||
out := new(QueryGroupInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupInfo", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1553,7 +1553,7 @@ func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest,
|
||||
|
||||
func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error) {
|
||||
out := new(QueryGroupPolicyInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPolicyInfo", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPolicyInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1562,7 +1562,7 @@ func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyI
|
||||
|
||||
func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) {
|
||||
out := new(QueryGroupMembersResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupMembers", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupMembers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1571,7 +1571,7 @@ func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersReq
|
||||
|
||||
func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) {
|
||||
out := new(QueryGroupsByAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupsByAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1580,7 +1580,7 @@ func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminR
|
||||
|
||||
func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error) {
|
||||
out := new(QueryGroupPoliciesByGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPoliciesByGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1589,7 +1589,7 @@ func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPo
|
||||
|
||||
func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error) {
|
||||
out := new(QueryGroupPoliciesByAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupPoliciesByAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1598,7 +1598,7 @@ func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPo
|
||||
|
||||
func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
|
||||
out := new(QueryProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/Proposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/Proposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1607,7 +1607,7 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op
|
||||
|
||||
func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error) {
|
||||
out := new(QueryProposalsByGroupPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/ProposalsByGroupPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/ProposalsByGroupPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1616,7 +1616,7 @@ func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryPropo
|
||||
|
||||
func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error) {
|
||||
out := new(QueryVoteByProposalVoterResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VoteByProposalVoter", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VoteByProposalVoter", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1625,7 +1625,7 @@ func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByPr
|
||||
|
||||
func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error) {
|
||||
out := new(QueryVotesByProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VotesByProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1634,7 +1634,7 @@ func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByPropo
|
||||
|
||||
func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error) {
|
||||
out := new(QueryVotesByVoterResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/VotesByVoter", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByVoter", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1643,7 +1643,7 @@ func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterReq
|
||||
|
||||
func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error) {
|
||||
out := new(QueryGroupsByMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/GroupsByMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByMember", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1652,7 +1652,7 @@ func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMembe
|
||||
|
||||
func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
|
||||
out := new(QueryTallyResultResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Query/TallyResult", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/TallyResult", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1747,7 +1747,7 @@ func _Query_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupInfo",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupInfo(ctx, req.(*QueryGroupInfoRequest))
|
||||
@ -1765,7 +1765,7 @@ func _Query_GroupPolicyInfo_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPolicyInfo",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPolicyInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPolicyInfo(ctx, req.(*QueryGroupPolicyInfoRequest))
|
||||
@ -1783,7 +1783,7 @@ func _Query_GroupMembers_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupMembers",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupMembers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupMembers(ctx, req.(*QueryGroupMembersRequest))
|
||||
@ -1801,7 +1801,7 @@ func _Query_GroupsByAdmin_Handler(srv interface{}, ctx context.Context, dec func
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupsByAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupsByAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupsByAdmin(ctx, req.(*QueryGroupsByAdminRequest))
|
||||
@ -1819,7 +1819,7 @@ func _Query_GroupPoliciesByGroup_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPoliciesByGroup",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPoliciesByGroup(ctx, req.(*QueryGroupPoliciesByGroupRequest))
|
||||
@ -1837,7 +1837,7 @@ func _Query_GroupPoliciesByAdmin_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupPoliciesByAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupPoliciesByAdmin(ctx, req.(*QueryGroupPoliciesByAdminRequest))
|
||||
@ -1855,7 +1855,7 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/Proposal",
|
||||
FullMethod: "/cosmos.group.v1.Query/Proposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
|
||||
@ -1873,7 +1873,7 @@ func _Query_ProposalsByGroupPolicy_Handler(srv interface{}, ctx context.Context,
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/ProposalsByGroupPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Query/ProposalsByGroupPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).ProposalsByGroupPolicy(ctx, req.(*QueryProposalsByGroupPolicyRequest))
|
||||
@ -1891,7 +1891,7 @@ func _Query_VoteByProposalVoter_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VoteByProposalVoter",
|
||||
FullMethod: "/cosmos.group.v1.Query/VoteByProposalVoter",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VoteByProposalVoter(ctx, req.(*QueryVoteByProposalVoterRequest))
|
||||
@ -1909,7 +1909,7 @@ func _Query_VotesByProposal_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VotesByProposal",
|
||||
FullMethod: "/cosmos.group.v1.Query/VotesByProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VotesByProposal(ctx, req.(*QueryVotesByProposalRequest))
|
||||
@ -1927,7 +1927,7 @@ func _Query_VotesByVoter_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/VotesByVoter",
|
||||
FullMethod: "/cosmos.group.v1.Query/VotesByVoter",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).VotesByVoter(ctx, req.(*QueryVotesByVoterRequest))
|
||||
@ -1945,7 +1945,7 @@ func _Query_GroupsByMember_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/GroupsByMember",
|
||||
FullMethod: "/cosmos.group.v1.Query/GroupsByMember",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).GroupsByMember(ctx, req.(*QueryGroupsByMemberRequest))
|
||||
@ -1963,7 +1963,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Query/TallyResult",
|
||||
FullMethod: "/cosmos.group.v1.Query/TallyResult",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
|
||||
@ -1972,7 +1972,7 @@ func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.group.v1beta1.Query",
|
||||
ServiceName: "cosmos.group.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -2029,7 +2029,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/group/v1beta1/query.proto",
|
||||
Metadata: "cosmos/group/v1/query.proto",
|
||||
}
|
||||
|
||||
func (m *QueryGroupInfoRequest) Marshal() (dAtA []byte, err error) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/query.proto
|
||||
// source: cosmos/group/v1/query.proto
|
||||
|
||||
/*
|
||||
Package group is a reverse proxy.
|
||||
@ -1470,31 +1470,31 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_GroupInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "group_info", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "group_info", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupPolicyInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "group_policy_info", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupPolicyInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "group_policy_info", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "group_members", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "group_members", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupsByAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "groups_by_admin", "admin"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupsByAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "groups_by_admin", "admin"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupPoliciesByGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "group_policies_by_group", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupPoliciesByGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "group_policies_by_group", "group_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupPoliciesByAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "group_policies_by_admin", "admin"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupPoliciesByAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "group_policies_by_admin", "admin"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "proposal", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "proposal", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_ProposalsByGroupPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "proposals_by_group_policy", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_ProposalsByGroupPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "proposals_by_group_policy", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_VoteByProposalVoter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"cosmos", "group", "v1beta1", "vote_by_proposal_voter", "proposal_id", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_VoteByProposalVoter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"cosmos", "group", "v1", "vote_by_proposal_voter", "proposal_id", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_VotesByProposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "votes_by_proposal", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_VotesByProposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "votes_by_proposal", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_VotesByVoter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "votes_by_voter", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_VotesByVoter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "votes_by_voter", "voter"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_GroupsByMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1beta1", "groups_by_member", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_GroupsByMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cosmos", "group", "v1", "groups_by_member", "address"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
|
||||
pattern_Query_TallyResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "group", "v1beta1", "proposals", "proposal_id", "tally"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_TallyResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cosmos", "group", "v1", "proposals", "proposal_id", "tally"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
345
x/group/tx.pb.go
345
x/group/tx.pb.go
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/tx.proto
|
||||
// source: cosmos/group/v1/tx.proto
|
||||
|
||||
package group
|
||||
|
||||
@ -60,7 +60,7 @@ func (x Exec) String() string {
|
||||
}
|
||||
|
||||
func (Exec) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{0}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{0}
|
||||
}
|
||||
|
||||
// MsgCreateGroup is the Msg/CreateGroup request type.
|
||||
@ -77,7 +77,7 @@ func (m *MsgCreateGroup) Reset() { *m = MsgCreateGroup{} }
|
||||
func (m *MsgCreateGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroup) ProtoMessage() {}
|
||||
func (*MsgCreateGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{0}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{0}
|
||||
}
|
||||
func (m *MsgCreateGroup) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -137,7 +137,7 @@ func (m *MsgCreateGroupResponse) Reset() { *m = MsgCreateGroupResponse{}
|
||||
func (m *MsgCreateGroupResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroupResponse) ProtoMessage() {}
|
||||
func (*MsgCreateGroupResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{1}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{1}
|
||||
}
|
||||
func (m *MsgCreateGroupResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -188,7 +188,7 @@ func (m *MsgUpdateGroupMembers) Reset() { *m = MsgUpdateGroupMembers{} }
|
||||
func (m *MsgUpdateGroupMembers) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupMembers) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupMembers) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{2}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{2}
|
||||
}
|
||||
func (m *MsgUpdateGroupMembers) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -246,7 +246,7 @@ func (m *MsgUpdateGroupMembersResponse) Reset() { *m = MsgUpdateGroupMem
|
||||
func (m *MsgUpdateGroupMembersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupMembersResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupMembersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{3}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{3}
|
||||
}
|
||||
func (m *MsgUpdateGroupMembersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -289,7 +289,7 @@ func (m *MsgUpdateGroupAdmin) Reset() { *m = MsgUpdateGroupAdmin{} }
|
||||
func (m *MsgUpdateGroupAdmin) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupAdmin) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupAdmin) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{4}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{4}
|
||||
}
|
||||
func (m *MsgUpdateGroupAdmin) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -347,7 +347,7 @@ func (m *MsgUpdateGroupAdminResponse) Reset() { *m = MsgUpdateGroupAdmin
|
||||
func (m *MsgUpdateGroupAdminResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupAdminResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupAdminResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{5}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{5}
|
||||
}
|
||||
func (m *MsgUpdateGroupAdminResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -390,7 +390,7 @@ func (m *MsgUpdateGroupMetadata) Reset() { *m = MsgUpdateGroupMetadata{}
|
||||
func (m *MsgUpdateGroupMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupMetadata) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{6}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{6}
|
||||
}
|
||||
func (m *MsgUpdateGroupMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -448,7 +448,7 @@ func (m *MsgUpdateGroupMetadataResponse) Reset() { *m = MsgUpdateGroupMe
|
||||
func (m *MsgUpdateGroupMetadataResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupMetadataResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupMetadataResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{7}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{7}
|
||||
}
|
||||
func (m *MsgUpdateGroupMetadataResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -493,7 +493,7 @@ func (m *MsgCreateGroupPolicy) Reset() { *m = MsgCreateGroupPolicy{} }
|
||||
func (m *MsgCreateGroupPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroupPolicy) ProtoMessage() {}
|
||||
func (*MsgCreateGroupPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{8}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{8}
|
||||
}
|
||||
func (m *MsgCreateGroupPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -532,7 +532,7 @@ func (m *MsgCreateGroupPolicyResponse) Reset() { *m = MsgCreateGroupPoli
|
||||
func (m *MsgCreateGroupPolicyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroupPolicyResponse) ProtoMessage() {}
|
||||
func (*MsgCreateGroupPolicyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{9}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{9}
|
||||
}
|
||||
func (m *MsgCreateGroupPolicyResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -582,7 +582,7 @@ func (m *MsgUpdateGroupPolicyAdmin) Reset() { *m = MsgUpdateGroupPolicyA
|
||||
func (m *MsgUpdateGroupPolicyAdmin) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupPolicyAdmin) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyAdmin) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{10}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{10}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyAdmin) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -652,7 +652,7 @@ func (m *MsgCreateGroupWithPolicy) Reset() { *m = MsgCreateGroupWithPoli
|
||||
func (m *MsgCreateGroupWithPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroupWithPolicy) ProtoMessage() {}
|
||||
func (*MsgCreateGroupWithPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{11}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{11}
|
||||
}
|
||||
func (m *MsgCreateGroupWithPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -693,7 +693,7 @@ func (m *MsgCreateGroupWithPolicyResponse) Reset() { *m = MsgCreateGroup
|
||||
func (m *MsgCreateGroupWithPolicyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateGroupWithPolicyResponse) ProtoMessage() {}
|
||||
func (*MsgCreateGroupWithPolicyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{12}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{12}
|
||||
}
|
||||
func (m *MsgCreateGroupWithPolicyResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -744,7 +744,7 @@ func (m *MsgUpdateGroupPolicyAdminResponse) Reset() { *m = MsgUpdateGrou
|
||||
func (m *MsgUpdateGroupPolicyAdminResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupPolicyAdminResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyAdminResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{13}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{13}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyAdminResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -787,7 +787,7 @@ func (m *MsgUpdateGroupPolicyDecisionPolicy) Reset() { *m = MsgUpdateGro
|
||||
func (m *MsgUpdateGroupPolicyDecisionPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyDecisionPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{14}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{14}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyDecisionPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -828,7 +828,7 @@ func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) String() string {
|
||||
}
|
||||
func (*MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyDecisionPolicyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{15}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{15}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyDecisionPolicyResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -871,7 +871,7 @@ func (m *MsgUpdateGroupPolicyMetadata) Reset() { *m = MsgUpdateGroupPoli
|
||||
func (m *MsgUpdateGroupPolicyMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupPolicyMetadata) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{16}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{16}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -929,7 +929,7 @@ func (m *MsgUpdateGroupPolicyMetadataResponse) Reset() { *m = MsgUpdateG
|
||||
func (m *MsgUpdateGroupPolicyMetadataResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateGroupPolicyMetadataResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateGroupPolicyMetadataResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{17}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{17}
|
||||
}
|
||||
func (m *MsgUpdateGroupPolicyMetadataResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -972,14 +972,14 @@ type MsgSubmitProposal struct {
|
||||
// exec defines the mode of execution of the proposal,
|
||||
// whether it should be executed immediately on creation or not.
|
||||
// If so, proposers signatures are considered as Yes votes.
|
||||
Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1beta1.Exec" json:"exec,omitempty"`
|
||||
Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} }
|
||||
func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitProposal) ProtoMessage() {}
|
||||
func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{18}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{18}
|
||||
}
|
||||
func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1018,7 +1018,7 @@ func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResp
|
||||
func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitProposalResponse) ProtoMessage() {}
|
||||
func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{19}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{19}
|
||||
}
|
||||
func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1066,7 +1066,7 @@ func (m *MsgWithdrawProposal) Reset() { *m = MsgWithdrawProposal{} }
|
||||
func (m *MsgWithdrawProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgWithdrawProposal) ProtoMessage() {}
|
||||
func (*MsgWithdrawProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{20}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{20}
|
||||
}
|
||||
func (m *MsgWithdrawProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1117,7 +1117,7 @@ func (m *MsgWithdrawProposalResponse) Reset() { *m = MsgWithdrawProposal
|
||||
func (m *MsgWithdrawProposalResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgWithdrawProposalResponse) ProtoMessage() {}
|
||||
func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{21}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{21}
|
||||
}
|
||||
func (m *MsgWithdrawProposalResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1153,19 +1153,19 @@ type MsgVote struct {
|
||||
// voter is the voter account address.
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// option is the voter's choice on the proposal.
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1beta1.VoteOption" json:"option,omitempty"`
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the vote.
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// exec defines whether the proposal should be executed
|
||||
// immediately after voting or not.
|
||||
Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1beta1.Exec" json:"exec,omitempty"`
|
||||
Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgVote) Reset() { *m = MsgVote{} }
|
||||
func (m *MsgVote) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVote) ProtoMessage() {}
|
||||
func (*MsgVote) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{22}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{22}
|
||||
}
|
||||
func (m *MsgVote) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1237,7 +1237,7 @@ func (m *MsgVoteResponse) Reset() { *m = MsgVoteResponse{} }
|
||||
func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVoteResponse) ProtoMessage() {}
|
||||
func (*MsgVoteResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{23}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{23}
|
||||
}
|
||||
func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1278,7 +1278,7 @@ func (m *MsgExec) Reset() { *m = MsgExec{} }
|
||||
func (m *MsgExec) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgExec) ProtoMessage() {}
|
||||
func (*MsgExec) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{24}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{24}
|
||||
}
|
||||
func (m *MsgExec) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1329,7 +1329,7 @@ func (m *MsgExecResponse) Reset() { *m = MsgExecResponse{} }
|
||||
func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgExecResponse) ProtoMessage() {}
|
||||
func (*MsgExecResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{25}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{25}
|
||||
}
|
||||
func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1370,7 +1370,7 @@ func (m *MsgLeaveGroup) Reset() { *m = MsgLeaveGroup{} }
|
||||
func (m *MsgLeaveGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgLeaveGroup) ProtoMessage() {}
|
||||
func (*MsgLeaveGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{26}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{26}
|
||||
}
|
||||
func (m *MsgLeaveGroup) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1421,7 +1421,7 @@ func (m *MsgLeaveGroupResponse) Reset() { *m = MsgLeaveGroupResponse{} }
|
||||
func (m *MsgLeaveGroupResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgLeaveGroupResponse) ProtoMessage() {}
|
||||
func (*MsgLeaveGroupResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_da0de9d603d844fb, []int{27}
|
||||
return fileDescriptor_6b8d3d629f136420, []int{27}
|
||||
}
|
||||
func (m *MsgLeaveGroupResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -1451,119 +1451,118 @@ func (m *MsgLeaveGroupResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_MsgLeaveGroupResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cosmos.group.v1beta1.Exec", Exec_name, Exec_value)
|
||||
proto.RegisterType((*MsgCreateGroup)(nil), "cosmos.group.v1beta1.MsgCreateGroup")
|
||||
proto.RegisterType((*MsgCreateGroupResponse)(nil), "cosmos.group.v1beta1.MsgCreateGroupResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupMembers)(nil), "cosmos.group.v1beta1.MsgUpdateGroupMembers")
|
||||
proto.RegisterType((*MsgUpdateGroupMembersResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupMembersResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupAdmin)(nil), "cosmos.group.v1beta1.MsgUpdateGroupAdmin")
|
||||
proto.RegisterType((*MsgUpdateGroupAdminResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupAdminResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupMetadata)(nil), "cosmos.group.v1beta1.MsgUpdateGroupMetadata")
|
||||
proto.RegisterType((*MsgUpdateGroupMetadataResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupMetadataResponse")
|
||||
proto.RegisterType((*MsgCreateGroupPolicy)(nil), "cosmos.group.v1beta1.MsgCreateGroupPolicy")
|
||||
proto.RegisterType((*MsgCreateGroupPolicyResponse)(nil), "cosmos.group.v1beta1.MsgCreateGroupPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyAdmin)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyAdmin")
|
||||
proto.RegisterType((*MsgCreateGroupWithPolicy)(nil), "cosmos.group.v1beta1.MsgCreateGroupWithPolicy")
|
||||
proto.RegisterType((*MsgCreateGroupWithPolicyResponse)(nil), "cosmos.group.v1beta1.MsgCreateGroupWithPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyAdminResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyAdminResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicy)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyDecisionPolicy")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicyResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyDecisionPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyMetadata)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyMetadata")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyMetadataResponse)(nil), "cosmos.group.v1beta1.MsgUpdateGroupPolicyMetadataResponse")
|
||||
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.group.v1beta1.MsgSubmitProposal")
|
||||
proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.group.v1beta1.MsgSubmitProposalResponse")
|
||||
proto.RegisterType((*MsgWithdrawProposal)(nil), "cosmos.group.v1beta1.MsgWithdrawProposal")
|
||||
proto.RegisterType((*MsgWithdrawProposalResponse)(nil), "cosmos.group.v1beta1.MsgWithdrawProposalResponse")
|
||||
proto.RegisterType((*MsgVote)(nil), "cosmos.group.v1beta1.MsgVote")
|
||||
proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.group.v1beta1.MsgVoteResponse")
|
||||
proto.RegisterType((*MsgExec)(nil), "cosmos.group.v1beta1.MsgExec")
|
||||
proto.RegisterType((*MsgExecResponse)(nil), "cosmos.group.v1beta1.MsgExecResponse")
|
||||
proto.RegisterType((*MsgLeaveGroup)(nil), "cosmos.group.v1beta1.MsgLeaveGroup")
|
||||
proto.RegisterType((*MsgLeaveGroupResponse)(nil), "cosmos.group.v1beta1.MsgLeaveGroupResponse")
|
||||
proto.RegisterEnum("cosmos.group.v1.Exec", Exec_name, Exec_value)
|
||||
proto.RegisterType((*MsgCreateGroup)(nil), "cosmos.group.v1.MsgCreateGroup")
|
||||
proto.RegisterType((*MsgCreateGroupResponse)(nil), "cosmos.group.v1.MsgCreateGroupResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupMembers)(nil), "cosmos.group.v1.MsgUpdateGroupMembers")
|
||||
proto.RegisterType((*MsgUpdateGroupMembersResponse)(nil), "cosmos.group.v1.MsgUpdateGroupMembersResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupAdmin)(nil), "cosmos.group.v1.MsgUpdateGroupAdmin")
|
||||
proto.RegisterType((*MsgUpdateGroupAdminResponse)(nil), "cosmos.group.v1.MsgUpdateGroupAdminResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupMetadata)(nil), "cosmos.group.v1.MsgUpdateGroupMetadata")
|
||||
proto.RegisterType((*MsgUpdateGroupMetadataResponse)(nil), "cosmos.group.v1.MsgUpdateGroupMetadataResponse")
|
||||
proto.RegisterType((*MsgCreateGroupPolicy)(nil), "cosmos.group.v1.MsgCreateGroupPolicy")
|
||||
proto.RegisterType((*MsgCreateGroupPolicyResponse)(nil), "cosmos.group.v1.MsgCreateGroupPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyAdmin)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyAdmin")
|
||||
proto.RegisterType((*MsgCreateGroupWithPolicy)(nil), "cosmos.group.v1.MsgCreateGroupWithPolicy")
|
||||
proto.RegisterType((*MsgCreateGroupWithPolicyResponse)(nil), "cosmos.group.v1.MsgCreateGroupWithPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyAdminResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicy)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyDecisionPolicyResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyMetadata)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyMetadata")
|
||||
proto.RegisterType((*MsgUpdateGroupPolicyMetadataResponse)(nil), "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse")
|
||||
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.group.v1.MsgSubmitProposal")
|
||||
proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.group.v1.MsgSubmitProposalResponse")
|
||||
proto.RegisterType((*MsgWithdrawProposal)(nil), "cosmos.group.v1.MsgWithdrawProposal")
|
||||
proto.RegisterType((*MsgWithdrawProposalResponse)(nil), "cosmos.group.v1.MsgWithdrawProposalResponse")
|
||||
proto.RegisterType((*MsgVote)(nil), "cosmos.group.v1.MsgVote")
|
||||
proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.group.v1.MsgVoteResponse")
|
||||
proto.RegisterType((*MsgExec)(nil), "cosmos.group.v1.MsgExec")
|
||||
proto.RegisterType((*MsgExecResponse)(nil), "cosmos.group.v1.MsgExecResponse")
|
||||
proto.RegisterType((*MsgLeaveGroup)(nil), "cosmos.group.v1.MsgLeaveGroup")
|
||||
proto.RegisterType((*MsgLeaveGroupResponse)(nil), "cosmos.group.v1.MsgLeaveGroupResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/group/v1beta1/tx.proto", fileDescriptor_da0de9d603d844fb) }
|
||||
func init() { proto.RegisterFile("cosmos/group/v1/tx.proto", fileDescriptor_6b8d3d629f136420) }
|
||||
|
||||
var fileDescriptor_da0de9d603d844fb = []byte{
|
||||
// 1244 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xf7, 0xc4, 0x6e, 0x3e, 0x5e, 0x12, 0x37, 0xd9, 0x38, 0xad, 0xb3, 0x24, 0x8e, 0x71, 0x53,
|
||||
0x08, 0x69, 0xb2, 0xdb, 0x38, 0x7c, 0x54, 0x56, 0x85, 0x48, 0xd2, 0x80, 0x82, 0x6a, 0x08, 0x1b,
|
||||
0xca, 0xd7, 0x01, 0x6b, 0xed, 0x1d, 0xb6, 0x5b, 0x62, 0xef, 0xca, 0xb3, 0xf9, 0x3a, 0x21, 0xf5,
|
||||
0x04, 0xea, 0x85, 0x7f, 0x00, 0x09, 0x09, 0x89, 0x03, 0x27, 0x0e, 0xbd, 0x70, 0xe5, 0x54, 0x71,
|
||||
0x8a, 0x38, 0x71, 0x42, 0x55, 0x72, 0xe0, 0x00, 0x12, 0x47, 0xae, 0x68, 0x67, 0x76, 0xc7, 0xbb,
|
||||
0xce, 0xae, 0xbd, 0x76, 0xa3, 0x9e, 0x92, 0xd9, 0xf7, 0x7b, 0xef, 0xfd, 0xde, 0xc7, 0xbc, 0x99,
|
||||
0x31, 0xcc, 0xd5, 0x4c, 0x52, 0x37, 0x89, 0xac, 0x37, 0xcd, 0x7d, 0x4b, 0x3e, 0x58, 0xad, 0x62,
|
||||
0x5b, 0x5d, 0x95, 0xed, 0x23, 0xc9, 0x6a, 0x9a, 0xb6, 0x29, 0x64, 0x98, 0x58, 0xa2, 0x62, 0xc9,
|
||||
0x15, 0x8b, 0x19, 0xdd, 0xd4, 0x4d, 0x0a, 0x90, 0x9d, 0xff, 0x18, 0x56, 0x9c, 0x61, 0xd8, 0x0a,
|
||||
0x13, 0xb8, 0x8a, 0xae, 0x48, 0x37, 0x4d, 0x7d, 0x0f, 0xcb, 0x74, 0x55, 0xdd, 0xff, 0x42, 0x56,
|
||||
0x1b, 0xc7, 0xae, 0x28, 0x1f, 0x4e, 0xe0, 0xd8, 0xc2, 0x9e, 0xf2, 0x55, 0x17, 0x51, 0x27, 0xba,
|
||||
0x7c, 0xb0, 0xea, 0xfc, 0x61, 0x82, 0xc2, 0x8f, 0x08, 0xd2, 0x65, 0xa2, 0x6f, 0x36, 0xb1, 0x6a,
|
||||
0xe3, 0x77, 0x1c, 0x7d, 0x41, 0x82, 0x4b, 0xaa, 0x56, 0x37, 0x1a, 0x59, 0x94, 0x47, 0x8b, 0x23,
|
||||
0x1b, 0xd9, 0xdf, 0x1f, 0xaf, 0x78, 0x21, 0xac, 0x6b, 0x5a, 0x13, 0x13, 0xb2, 0x6b, 0x37, 0x8d,
|
||||
0x86, 0xae, 0x30, 0x98, 0x70, 0x1b, 0x86, 0xea, 0xb8, 0x5e, 0xc5, 0x4d, 0x92, 0x1d, 0xc8, 0x27,
|
||||
0x17, 0x47, 0x8b, 0xb3, 0x52, 0x58, 0xc4, 0x52, 0x99, 0x82, 0x36, 0x52, 0x4f, 0xfe, 0x9c, 0x4f,
|
||||
0x28, 0x9e, 0x8a, 0x20, 0xc2, 0x70, 0x1d, 0xdb, 0xaa, 0xa6, 0xda, 0x6a, 0x36, 0xe9, 0x38, 0x54,
|
||||
0xf8, 0xba, 0x04, 0x0f, 0xff, 0xfa, 0x79, 0x89, 0x79, 0x29, 0xac, 0xc1, 0x95, 0x20, 0x4f, 0x05,
|
||||
0x13, 0xcb, 0x6c, 0x10, 0x2c, 0xcc, 0xc0, 0x30, 0x75, 0x54, 0x31, 0x34, 0x4a, 0x39, 0xa5, 0x0c,
|
||||
0xd1, 0xf5, 0xb6, 0x56, 0xf8, 0x05, 0xc1, 0x74, 0x99, 0xe8, 0xf7, 0x2c, 0xcd, 0xd3, 0x2a, 0xbb,
|
||||
0x6e, 0x7b, 0x0d, 0xd2, 0xef, 0x64, 0x20, 0xe0, 0x44, 0xd8, 0x86, 0x34, 0x0b, 0xa6, 0xb2, 0x4f,
|
||||
0xfd, 0x90, 0x6c, 0x32, 0x76, 0x1a, 0xc6, 0x99, 0x26, 0x23, 0x48, 0x02, 0x01, 0xcf, 0xc3, 0x5c,
|
||||
0x28, 0x75, 0x2f, 0xee, 0xc2, 0x0f, 0x08, 0xa6, 0x82, 0x88, 0x75, 0x4a, 0xf5, 0x02, 0x43, 0x7b,
|
||||
0x0d, 0x46, 0x1a, 0xf8, 0xb0, 0xc2, 0xcc, 0x25, 0xbb, 0x98, 0x1b, 0x6e, 0xe0, 0x43, 0xca, 0x20,
|
||||
0x10, 0xc6, 0x1c, 0xbc, 0x10, 0x42, 0x92, 0x07, 0xf1, 0x08, 0xd1, 0xba, 0x06, 0xc2, 0x64, 0xd5,
|
||||
0xbf, 0xc8, 0x38, 0xe2, 0x36, 0x59, 0x1e, 0x72, 0xe1, 0x64, 0x38, 0xdf, 0xa7, 0x08, 0x32, 0xc1,
|
||||
0x3e, 0xdc, 0x31, 0xf7, 0x8c, 0xda, 0xf1, 0x73, 0x62, 0x2b, 0x7c, 0x00, 0x97, 0x35, 0x5c, 0x33,
|
||||
0x88, 0x61, 0x36, 0x2a, 0x16, 0xf5, 0x9c, 0x4d, 0xe5, 0xd1, 0xe2, 0x68, 0x31, 0x23, 0xb1, 0xf9,
|
||||
0x20, 0x79, 0xf3, 0x41, 0x5a, 0x6f, 0x1c, 0x6f, 0x08, 0xbf, 0x3d, 0x5e, 0x49, 0xdf, 0x71, 0x15,
|
||||
0x18, 0x53, 0x25, 0xad, 0x05, 0xd6, 0xa5, 0xf4, 0xd7, 0xdf, 0xcf, 0x27, 0x7c, 0x49, 0x50, 0x60,
|
||||
0x36, 0x2c, 0x42, 0xbe, 0xdf, 0x8a, 0x30, 0xa4, 0xb2, 0x88, 0xba, 0xc6, 0xea, 0x01, 0x0b, 0xbf,
|
||||
0x22, 0x98, 0x09, 0x66, 0x96, 0x19, 0xed, 0xaf, 0x63, 0x7d, 0x0c, 0x06, 0x62, 0x32, 0xb8, 0x88,
|
||||
0x56, 0xfe, 0x77, 0x00, 0xb2, 0xc1, 0xcc, 0x7c, 0x6c, 0xd8, 0xf7, 0xfb, 0xac, 0xff, 0xb3, 0x4d,
|
||||
0xcd, 0xeb, 0x90, 0x66, 0xdd, 0xd3, 0xd6, 0x28, 0xe3, 0x7a, 0x60, 0x0b, 0x15, 0x61, 0x9a, 0xc1,
|
||||
0x58, 0xab, 0xb4, 0xd0, 0x29, 0x8a, 0x9e, 0xd2, 0x5b, 0x95, 0xe0, 0x3a, 0xab, 0x6d, 0x3a, 0x2a,
|
||||
0x71, 0x93, 0x76, 0x29, 0x8f, 0x16, 0x87, 0x15, 0xc1, 0xa7, 0xb3, 0x4e, 0x58, 0xfd, 0x42, 0x9a,
|
||||
0x72, 0xf0, 0x19, 0x9b, 0x32, 0xe5, 0x34, 0x65, 0xe1, 0x1b, 0x04, 0xf9, 0xa8, 0x8c, 0xc7, 0x98,
|
||||
0xff, 0xc2, 0xbb, 0x90, 0x09, 0xc6, 0x12, 0xb3, 0x6b, 0x02, 0x41, 0xba, 0x2d, 0x7c, 0x0d, 0x5e,
|
||||
0x8c, 0xec, 0x60, 0x3e, 0x1e, 0xfe, 0x46, 0x50, 0x08, 0x43, 0x05, 0xa3, 0x7d, 0x2e, 0x0d, 0x1f,
|
||||
0x52, 0x94, 0xe4, 0x05, 0x4f, 0x8a, 0x65, 0x58, 0xea, 0x1e, 0x2c, 0xcf, 0xcd, 0x4f, 0x88, 0x0e,
|
||||
0x96, 0x73, 0xf0, 0xbe, 0x07, 0x7e, 0x3f, 0x59, 0x89, 0x7b, 0x12, 0xbc, 0x04, 0x0b, 0x9d, 0xb8,
|
||||
0xf2, 0xa0, 0xfe, 0x43, 0x30, 0x59, 0x26, 0xfa, 0xee, 0x7e, 0xb5, 0x6e, 0xd8, 0x3b, 0x4d, 0xd3,
|
||||
0x32, 0x89, 0xba, 0xd7, 0xcf, 0x88, 0x14, 0x66, 0x61, 0xc4, 0xa2, 0xfa, 0xde, 0x48, 0x18, 0x51,
|
||||
0x5a, 0x1f, 0x3a, 0x9e, 0x09, 0x37, 0x1d, 0x19, 0x21, 0xaa, 0x8e, 0x49, 0x36, 0x45, 0x67, 0x49,
|
||||
0x68, 0x89, 0x15, 0x8e, 0x12, 0x24, 0x48, 0xe1, 0x23, 0x5c, 0xa3, 0x5b, 0x3a, 0x5d, 0x14, 0xc3,
|
||||
0x27, 0xcf, 0xd6, 0x11, 0xae, 0x29, 0x14, 0x57, 0x12, 0xbc, 0xc2, 0xb7, 0x18, 0x15, 0x6e, 0xd3,
|
||||
0x89, 0x1e, 0x0c, 0x9c, 0xef, 0xc9, 0x79, 0x18, 0xb5, 0xdc, 0x6f, 0xad, 0x6d, 0x09, 0xde, 0xa7,
|
||||
0x6d, 0xad, 0xf0, 0x80, 0xde, 0x5d, 0x9c, 0xdd, 0xac, 0x35, 0xd5, 0x43, 0x9e, 0xb8, 0x6e, 0x7a,
|
||||
0xfd, 0xd4, 0xdc, 0xbd, 0x82, 0xb4, 0xfb, 0xe2, 0x25, 0xfc, 0x07, 0xc1, 0x50, 0x99, 0xe8, 0x1f,
|
||||
0x99, 0x76, 0x77, 0xde, 0x4e, 0x8f, 0x1e, 0x98, 0x36, 0x6e, 0x76, 0xf5, 0xce, 0x60, 0xc2, 0x2d,
|
||||
0x18, 0x34, 0x2d, 0xdb, 0x30, 0xd9, 0x99, 0x93, 0x2e, 0xe6, 0xc3, 0x73, 0xed, 0x38, 0x7f, 0x9f,
|
||||
0xe2, 0x14, 0x17, 0x1f, 0xa8, 0x78, 0xaa, 0xad, 0xe2, 0xbd, 0xd6, 0x8f, 0x75, 0x36, 0x65, 0x54,
|
||||
0x98, 0x84, 0xcb, 0x6e, 0xb4, 0x3c, 0x03, 0x06, 0x4d, 0x80, 0x83, 0xef, 0x9e, 0x80, 0x9b, 0x30,
|
||||
0x48, 0x0c, 0xbd, 0x11, 0x23, 0x03, 0x2e, 0xae, 0x34, 0xea, 0x38, 0x77, 0x17, 0xae, 0x77, 0x4a,
|
||||
0xcd, 0xf3, 0xbe, 0x07, 0xe3, 0x65, 0xa2, 0xdf, 0xc5, 0xea, 0x81, 0xfb, 0x00, 0xe9, 0x67, 0xf7,
|
||||
0x44, 0x5f, 0xa7, 0x4a, 0x63, 0x8e, 0x7f, 0xde, 0x0c, 0x57, 0xe9,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 0x6a, 0x8a, 0x6f, 0xf5, 0xab, 0xc9, 0xf9, 0x3d,
|
||||
0x42, 0x30, 0x13, 0x7d, 0x65, 0x29, 0xc6, 0xb7, 0xcf, 0x5b, 0xb4, 0xd4, 0xbb, 0x0e, 0x67, 0xf3,
|
||||
0x00, 0xd2, 0x6d, 0x57, 0x8d, 0x97, 0x23, 0xad, 0x05, 0x81, 0xa2, 0x1c, 0x13, 0xe8, 0x9f, 0x00,
|
||||
0xe7, 0xce, 0xe7, 0xe8, 0x09, 0xd0, 0x0e, 0xed, 0x30, 0x01, 0xa2, 0x4e, 0x62, 0xe1, 0x2e, 0xa4,
|
||||
0xe8, 0x29, 0x3c, 0x17, 0xa9, 0xea, 0x88, 0xc5, 0xeb, 0x1d, 0xc5, 0x7e, 0x6b, 0x74, 0xa0, 0x47,
|
||||
0x5b, 0x73, 0xc4, 0x1d, 0xac, 0xf9, 0x4f, 0x29, 0xe1, 0x73, 0x00, 0xdf, 0x11, 0x75, 0x2d, 0x52,
|
||||
0xa9, 0x05, 0x12, 0x6f, 0xc4, 0x00, 0x79, 0xf6, 0x37, 0xde, 0x7c, 0x72, 0x9a, 0x43, 0x27, 0xa7,
|
||||
0x39, 0xf4, 0xf4, 0x34, 0x87, 0xbe, 0x3d, 0xcb, 0x25, 0x4e, 0xce, 0x72, 0x89, 0x3f, 0xce, 0x72,
|
||||
0x89, 0xcf, 0x16, 0x74, 0xc3, 0xbe, 0xbf, 0x5f, 0x95, 0x6a, 0x66, 0xdd, 0xfd, 0x45, 0xd0, 0xfd,
|
||||
0xb3, 0x42, 0xb4, 0x2f, 0xe5, 0x23, 0xf6, 0xab, 0x5f, 0x75, 0x90, 0x5e, 0xf5, 0xd6, 0xfe, 0x0f,
|
||||
0x00, 0x00, 0xff, 0xff, 0x07, 0xa9, 0xb6, 0xce, 0x8d, 0x14, 0x00, 0x00,
|
||||
var fileDescriptor_6b8d3d629f136420 = []byte{
|
||||
// 1232 bytes of a gzipped FileDescriptorProto
|
||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4b, 0xc6, 0xc9, 0xc0,
|
||||
0x38, 0x53, 0x62, 0xb1, 0x91, 0x00, 0xd7, 0x02, 0xdc, 0x0a, 0x8d, 0xda, 0xa3, 0x2c, 0xfd, 0x88,
|
||||
0x60, 0x3a, 0x88, 0x58, 0xa7, 0x51, 0x5e, 0x21, 0xab, 0x07, 0x30, 0xd6, 0xd4, 0x8f, 0x6a, 0xcc,
|
||||
0x5c, 0x32, 0xc2, 0xdc, 0x68, 0x53, 0x3f, 0xa2, 0x11, 0x04, 0x68, 0xdc, 0x82, 0xf9, 0x90, 0x20,
|
||||
0x39, 0x89, 0x6f, 0x10, 0x2d, 0x69, 0x80, 0x26, 0x2b, 0xfc, 0x55, 0xf2, 0x88, 0xdb, 0x5f, 0x45,
|
||||
0xc8, 0x87, 0x07, 0xc3, 0xe3, 0x7d, 0x81, 0x20, 0x1b, 0x6c, 0xc1, 0x5d, 0x7c, 0x60, 0xd6, 0x4f,
|
||||
0x5e, 0x52, 0xb4, 0xc2, 0x07, 0x30, 0xa1, 0xe9, 0x75, 0x93, 0x98, 0xb8, 0x59, 0xb3, 0xa8, 0xe7,
|
||||
0x5c, 0xaa, 0x88, 0x96, 0xd2, 0x95, 0xac, 0xcc, 0x06, 0x82, 0xec, 0x0d, 0x04, 0x79, 0xbd, 0x79,
|
||||
0xb2, 0x21, 0xfc, 0x76, 0xba, 0x9c, 0xd9, 0x72, 0x15, 0x58, 0xa4, 0x4a, 0x46, 0x0b, 0x3c, 0xaf,
|
||||
0x65, 0xbe, 0xfa, 0xbe, 0x90, 0xf0, 0x25, 0x41, 0x81, 0x9b, 0x61, 0x0c, 0xf9, 0x51, 0xab, 0xc0,
|
||||
0x88, 0xca, 0x18, 0x45, 0x72, 0xf5, 0x80, 0xd2, 0x2f, 0x08, 0xe6, 0x82, 0x99, 0x65, 0x46, 0x07,
|
||||
0xeb, 0x58, 0x5f, 0x04, 0x43, 0x31, 0x23, 0xb8, 0x8a, 0x56, 0xfe, 0x7b, 0x08,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00, 0x00, 0x00, 0xff, 0xff, 0x28, 0x4b, 0x31, 0x90, 0xd3, 0x13, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1618,7 +1617,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
||||
|
||||
func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error) {
|
||||
out := new(MsgCreateGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1627,7 +1626,7 @@ func (c *msgClient) CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ..
|
||||
|
||||
func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error) {
|
||||
out := new(MsgUpdateGroupMembersResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupMembers", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMembers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1636,7 +1635,7 @@ func (c *msgClient) UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMe
|
||||
|
||||
func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error) {
|
||||
out := new(MsgUpdateGroupAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1645,7 +1644,7 @@ func (c *msgClient) UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmi
|
||||
|
||||
func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error) {
|
||||
out := new(MsgUpdateGroupMetadataResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupMetadata", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupMetadata", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1654,7 +1653,7 @@ func (c *msgClient) UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupM
|
||||
|
||||
func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error) {
|
||||
out := new(MsgCreateGroupPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroupPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1663,7 +1662,7 @@ func (c *msgClient) CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPol
|
||||
|
||||
func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error) {
|
||||
out := new(MsgCreateGroupWithPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/CreateGroupWithPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/CreateGroupWithPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1672,7 +1671,7 @@ func (c *msgClient) CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGrou
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyAdminResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyAdmin", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1681,7 +1680,7 @@ func (c *msgClient) UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGro
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyDecisionPolicyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyDecisionPolicy", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1690,7 +1689,7 @@ func (c *msgClient) UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *Msg
|
||||
|
||||
func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error) {
|
||||
out := new(MsgUpdateGroupPolicyMetadataResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyMetadata", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1699,7 +1698,7 @@ func (c *msgClient) UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdate
|
||||
|
||||
func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
|
||||
out := new(MsgSubmitProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/SubmitProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/SubmitProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1708,7 +1707,7 @@ func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, o
|
||||
|
||||
func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) {
|
||||
out := new(MsgWithdrawProposalResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/WithdrawProposal", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/WithdrawProposal", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1717,7 +1716,7 @@ func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposa
|
||||
|
||||
func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
|
||||
out := new(MsgVoteResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/Vote", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Vote", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1726,7 +1725,7 @@ func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) {
|
||||
out := new(MsgExecResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/Exec", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/Exec", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1735,7 +1734,7 @@ func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOpti
|
||||
|
||||
func (c *msgClient) LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error) {
|
||||
out := new(MsgLeaveGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1beta1.Msg/LeaveGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.group.v1.Msg/LeaveGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1835,7 +1834,7 @@ func _Msg_CreateGroup_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroup",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroup(ctx, req.(*MsgCreateGroup))
|
||||
@ -1853,7 +1852,7 @@ func _Msg_UpdateGroupMembers_Handler(srv interface{}, ctx context.Context, dec f
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupMembers",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMembers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupMembers(ctx, req.(*MsgUpdateGroupMembers))
|
||||
@ -1871,7 +1870,7 @@ func _Msg_UpdateGroupAdmin_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupAdmin(ctx, req.(*MsgUpdateGroupAdmin))
|
||||
@ -1889,7 +1888,7 @@ func _Msg_UpdateGroupMetadata_Handler(srv interface{}, ctx context.Context, dec
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupMetadata",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupMetadata",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupMetadata(ctx, req.(*MsgUpdateGroupMetadata))
|
||||
@ -1907,7 +1906,7 @@ func _Msg_CreateGroupPolicy_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroupPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroupPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroupPolicy(ctx, req.(*MsgCreateGroupPolicy))
|
||||
@ -1925,7 +1924,7 @@ func _Msg_CreateGroupWithPolicy_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/CreateGroupWithPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/CreateGroupWithPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).CreateGroupWithPolicy(ctx, req.(*MsgCreateGroupWithPolicy))
|
||||
@ -1943,7 +1942,7 @@ func _Msg_UpdateGroupPolicyAdmin_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyAdmin",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyAdmin(ctx, req.(*MsgUpdateGroupPolicyAdmin))
|
||||
@ -1961,7 +1960,7 @@ func _Msg_UpdateGroupPolicyDecisionPolicy_Handler(srv interface{}, ctx context.C
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyDecisionPolicy",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyDecisionPolicy(ctx, req.(*MsgUpdateGroupPolicyDecisionPolicy))
|
||||
@ -1979,7 +1978,7 @@ func _Msg_UpdateGroupPolicyMetadata_Handler(srv interface{}, ctx context.Context
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/UpdateGroupPolicyMetadata",
|
||||
FullMethod: "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateGroupPolicyMetadata(ctx, req.(*MsgUpdateGroupPolicyMetadata))
|
||||
@ -1997,7 +1996,7 @@ func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/SubmitProposal",
|
||||
FullMethod: "/cosmos.group.v1.Msg/SubmitProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
|
||||
@ -2015,7 +2014,7 @@ func _Msg_WithdrawProposal_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/WithdrawProposal",
|
||||
FullMethod: "/cosmos.group.v1.Msg/WithdrawProposal",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).WithdrawProposal(ctx, req.(*MsgWithdrawProposal))
|
||||
@ -2033,7 +2032,7 @@ func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/Vote",
|
||||
FullMethod: "/cosmos.group.v1.Msg/Vote",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
|
||||
@ -2051,7 +2050,7 @@ func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/Exec",
|
||||
FullMethod: "/cosmos.group.v1.Msg/Exec",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).Exec(ctx, req.(*MsgExec))
|
||||
@ -2069,7 +2068,7 @@ func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos.group.v1beta1.Msg/LeaveGroup",
|
||||
FullMethod: "/cosmos.group.v1.Msg/LeaveGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).LeaveGroup(ctx, req.(*MsgLeaveGroup))
|
||||
@ -2078,7 +2077,7 @@ func _Msg_LeaveGroup_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
|
||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.group.v1beta1.Msg",
|
||||
ServiceName: "cosmos.group.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -2139,7 +2138,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/group/v1beta1/tx.proto",
|
||||
Metadata: "cosmos/group/v1/tx.proto",
|
||||
}
|
||||
|
||||
func (m *MsgCreateGroup) Marshal() (dAtA []byte, err error) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: cosmos/group/v1beta1/types.proto
|
||||
// source: cosmos/group/v1/types.proto
|
||||
|
||||
package group
|
||||
|
||||
@ -67,7 +67,7 @@ func (x VoteOption) String() string {
|
||||
}
|
||||
|
||||
func (VoteOption) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{0}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{0}
|
||||
}
|
||||
|
||||
// ProposalStatus defines proposal statuses.
|
||||
@ -108,7 +108,7 @@ func (x ProposalStatus) String() string {
|
||||
}
|
||||
|
||||
func (ProposalStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{1}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{1}
|
||||
}
|
||||
|
||||
// ProposalResult defines types of proposal results.
|
||||
@ -144,7 +144,7 @@ func (x ProposalResult) String() string {
|
||||
}
|
||||
|
||||
func (ProposalResult) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{2}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{2}
|
||||
}
|
||||
|
||||
// ProposalExecutorResult defines types of proposal executor results.
|
||||
@ -180,7 +180,7 @@ func (x ProposalExecutorResult) String() string {
|
||||
}
|
||||
|
||||
func (ProposalExecutorResult) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{3}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{3}
|
||||
}
|
||||
|
||||
// Member represents a group member with an account address,
|
||||
@ -200,7 +200,7 @@ func (m *Member) Reset() { *m = Member{} }
|
||||
func (m *Member) String() string { return proto.CompactTextString(m) }
|
||||
func (*Member) ProtoMessage() {}
|
||||
func (*Member) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{0}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{0}
|
||||
}
|
||||
func (m *Member) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -267,7 +267,7 @@ func (m *Members) Reset() { *m = Members{} }
|
||||
func (m *Members) String() string { return proto.CompactTextString(m) }
|
||||
func (*Members) ProtoMessage() {}
|
||||
func (*Members) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{1}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{1}
|
||||
}
|
||||
func (m *Members) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -315,7 +315,7 @@ func (m *ThresholdDecisionPolicy) Reset() { *m = ThresholdDecisionPolicy
|
||||
func (m *ThresholdDecisionPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*ThresholdDecisionPolicy) ProtoMessage() {}
|
||||
func (*ThresholdDecisionPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{2}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{2}
|
||||
}
|
||||
func (m *ThresholdDecisionPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -370,7 +370,7 @@ func (m *PercentageDecisionPolicy) Reset() { *m = PercentageDecisionPoli
|
||||
func (m *PercentageDecisionPolicy) String() string { return proto.CompactTextString(m) }
|
||||
func (*PercentageDecisionPolicy) ProtoMessage() {}
|
||||
func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{3}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{3}
|
||||
}
|
||||
func (m *PercentageDecisionPolicy) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -436,7 +436,7 @@ func (m *DecisionPolicyWindows) Reset() { *m = DecisionPolicyWindows{} }
|
||||
func (m *DecisionPolicyWindows) String() string { return proto.CompactTextString(m) }
|
||||
func (*DecisionPolicyWindows) ProtoMessage() {}
|
||||
func (*DecisionPolicyWindows) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{4}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{4}
|
||||
}
|
||||
func (m *DecisionPolicyWindows) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -502,7 +502,7 @@ func (m *GroupInfo) Reset() { *m = GroupInfo{} }
|
||||
func (m *GroupInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*GroupInfo) ProtoMessage() {}
|
||||
func (*GroupInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{5}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{5}
|
||||
}
|
||||
func (m *GroupInfo) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -585,7 +585,7 @@ func (m *GroupMember) Reset() { *m = GroupMember{} }
|
||||
func (m *GroupMember) String() string { return proto.CompactTextString(m) }
|
||||
func (*GroupMember) ProtoMessage() {}
|
||||
func (*GroupMember) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{6}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{6}
|
||||
}
|
||||
func (m *GroupMember) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -651,7 +651,7 @@ func (m *GroupPolicyInfo) Reset() { *m = GroupPolicyInfo{} }
|
||||
func (m *GroupPolicyInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*GroupPolicyInfo) ProtoMessage() {}
|
||||
func (*GroupPolicyInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{7}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{7}
|
||||
}
|
||||
func (m *GroupPolicyInfo) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -702,10 +702,10 @@ type Proposal struct {
|
||||
// When a decision policy is changed, existing proposals from previous policy versions will become invalid.
|
||||
GroupPolicyVersion uint64 `protobuf:"varint,7,opt,name=group_policy_version,json=groupPolicyVersion,proto3" json:"group_policy_version,omitempty"`
|
||||
// status represents the high level position in the life cycle of the proposal. Initial value is Submitted.
|
||||
Status ProposalStatus `protobuf:"varint,8,opt,name=status,proto3,enum=cosmos.group.v1beta1.ProposalStatus" json:"status,omitempty"`
|
||||
Status ProposalStatus `protobuf:"varint,8,opt,name=status,proto3,enum=cosmos.group.v1.ProposalStatus" json:"status,omitempty"`
|
||||
// result is the final result based on the votes and election rule. Initial value is unfinalized.
|
||||
// The result is persisted so that clients can always rely on this state and not have to replicate the logic.
|
||||
Result ProposalResult `protobuf:"varint,9,opt,name=result,proto3,enum=cosmos.group.v1beta1.ProposalResult" json:"result,omitempty"`
|
||||
Result ProposalResult `protobuf:"varint,9,opt,name=result,proto3,enum=cosmos.group.v1.ProposalResult" json:"result,omitempty"`
|
||||
// final_tally_result contains the sums of all weighted votes for this
|
||||
// proposal for each vote option, after tallying. When querying a proposal
|
||||
// via gRPC, this field is not populated until the proposal's voting period
|
||||
@ -718,7 +718,7 @@ type Proposal struct {
|
||||
// as `status` and `result` fields will be accordingly updated.
|
||||
VotingPeriodEnd time.Time `protobuf:"bytes,11,opt,name=voting_period_end,json=votingPeriodEnd,proto3,stdtime" json:"voting_period_end"`
|
||||
// executor_result is the final result based on the votes and election rule. Initial value is NotRun.
|
||||
ExecutorResult ProposalExecutorResult `protobuf:"varint,12,opt,name=executor_result,json=executorResult,proto3,enum=cosmos.group.v1beta1.ProposalExecutorResult" json:"executor_result,omitempty"`
|
||||
ExecutorResult ProposalExecutorResult `protobuf:"varint,12,opt,name=executor_result,json=executorResult,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"executor_result,omitempty"`
|
||||
// messages is a list of Msgs that will be executed if the proposal passes.
|
||||
Messages []*types.Any `protobuf:"bytes,13,rep,name=messages,proto3" json:"messages,omitempty"`
|
||||
}
|
||||
@ -727,7 +727,7 @@ func (m *Proposal) Reset() { *m = Proposal{} }
|
||||
func (m *Proposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*Proposal) ProtoMessage() {}
|
||||
func (*Proposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{8}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{8}
|
||||
}
|
||||
func (m *Proposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -772,7 +772,7 @@ func (m *TallyResult) Reset() { *m = TallyResult{} }
|
||||
func (m *TallyResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*TallyResult) ProtoMessage() {}
|
||||
func (*TallyResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{9}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{9}
|
||||
}
|
||||
func (m *TallyResult) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -808,7 +808,7 @@ type Vote struct {
|
||||
// voter is the account address of the voter.
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// option is the voter's choice on the proposal.
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1beta1.VoteOption" json:"option,omitempty"`
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the vote.
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// submit_time is the timestamp when the vote was submitted.
|
||||
@ -819,7 +819,7 @@ func (m *Vote) Reset() { *m = Vote{} }
|
||||
func (m *Vote) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vote) ProtoMessage() {}
|
||||
func (*Vote) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e091dfce5c49c8b6, []int{10}
|
||||
return fileDescriptor_f5bddd15d7a54a9d, []int{10}
|
||||
}
|
||||
func (m *Vote) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -884,111 +884,111 @@ func (m *Vote) GetSubmitTime() time.Time {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cosmos.group.v1beta1.VoteOption", VoteOption_name, VoteOption_value)
|
||||
proto.RegisterEnum("cosmos.group.v1beta1.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
||||
proto.RegisterEnum("cosmos.group.v1beta1.ProposalResult", ProposalResult_name, ProposalResult_value)
|
||||
proto.RegisterEnum("cosmos.group.v1beta1.ProposalExecutorResult", ProposalExecutorResult_name, ProposalExecutorResult_value)
|
||||
proto.RegisterType((*Member)(nil), "cosmos.group.v1beta1.Member")
|
||||
proto.RegisterType((*Members)(nil), "cosmos.group.v1beta1.Members")
|
||||
proto.RegisterType((*ThresholdDecisionPolicy)(nil), "cosmos.group.v1beta1.ThresholdDecisionPolicy")
|
||||
proto.RegisterType((*PercentageDecisionPolicy)(nil), "cosmos.group.v1beta1.PercentageDecisionPolicy")
|
||||
proto.RegisterType((*DecisionPolicyWindows)(nil), "cosmos.group.v1beta1.DecisionPolicyWindows")
|
||||
proto.RegisterType((*GroupInfo)(nil), "cosmos.group.v1beta1.GroupInfo")
|
||||
proto.RegisterType((*GroupMember)(nil), "cosmos.group.v1beta1.GroupMember")
|
||||
proto.RegisterType((*GroupPolicyInfo)(nil), "cosmos.group.v1beta1.GroupPolicyInfo")
|
||||
proto.RegisterType((*Proposal)(nil), "cosmos.group.v1beta1.Proposal")
|
||||
proto.RegisterType((*TallyResult)(nil), "cosmos.group.v1beta1.TallyResult")
|
||||
proto.RegisterType((*Vote)(nil), "cosmos.group.v1beta1.Vote")
|
||||
proto.RegisterEnum("cosmos.group.v1.VoteOption", VoteOption_name, VoteOption_value)
|
||||
proto.RegisterEnum("cosmos.group.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
||||
proto.RegisterEnum("cosmos.group.v1.ProposalResult", ProposalResult_name, ProposalResult_value)
|
||||
proto.RegisterEnum("cosmos.group.v1.ProposalExecutorResult", ProposalExecutorResult_name, ProposalExecutorResult_value)
|
||||
proto.RegisterType((*Member)(nil), "cosmos.group.v1.Member")
|
||||
proto.RegisterType((*Members)(nil), "cosmos.group.v1.Members")
|
||||
proto.RegisterType((*ThresholdDecisionPolicy)(nil), "cosmos.group.v1.ThresholdDecisionPolicy")
|
||||
proto.RegisterType((*PercentageDecisionPolicy)(nil), "cosmos.group.v1.PercentageDecisionPolicy")
|
||||
proto.RegisterType((*DecisionPolicyWindows)(nil), "cosmos.group.v1.DecisionPolicyWindows")
|
||||
proto.RegisterType((*GroupInfo)(nil), "cosmos.group.v1.GroupInfo")
|
||||
proto.RegisterType((*GroupMember)(nil), "cosmos.group.v1.GroupMember")
|
||||
proto.RegisterType((*GroupPolicyInfo)(nil), "cosmos.group.v1.GroupPolicyInfo")
|
||||
proto.RegisterType((*Proposal)(nil), "cosmos.group.v1.Proposal")
|
||||
proto.RegisterType((*TallyResult)(nil), "cosmos.group.v1.TallyResult")
|
||||
proto.RegisterType((*Vote)(nil), "cosmos.group.v1.Vote")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cosmos/group/v1beta1/types.proto", fileDescriptor_e091dfce5c49c8b6) }
|
||||
func init() { proto.RegisterFile("cosmos/group/v1/types.proto", fileDescriptor_f5bddd15d7a54a9d) }
|
||||
|
||||
var fileDescriptor_e091dfce5c49c8b6 = []byte{
|
||||
// 1344 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4d, 0x6f, 0x1b, 0x45,
|
||||
0x18, 0xf6, 0x3a, 0x8e, 0x3f, 0x5e, 0xa7, 0x8e, 0x99, 0x86, 0x76, 0x93, 0x06, 0xdb, 0x35, 0x39,
|
||||
0x44, 0x2d, 0xb5, 0x5b, 0x83, 0x10, 0xaa, 0x2a, 0x90, 0xed, 0x6c, 0x5b, 0xa3, 0xd4, 0x36, 0xbb,
|
||||
0xeb, 0x04, 0x7a, 0x60, 0xb5, 0xf6, 0x4e, 0x9d, 0x15, 0xf6, 0x8e, 0xb5, 0x3b, 0x4e, 0xea, 0x7f,
|
||||
0xd0, 0x1b, 0x15, 0x02, 0x89, 0x0b, 0x52, 0x25, 0xee, 0x48, 0x48, 0x3d, 0x20, 0x7e, 0x41, 0xc5,
|
||||
0xa9, 0xe2, 0xc4, 0x09, 0x50, 0x7b, 0x29, 0xf7, 0xfe, 0x00, 0xb4, 0x33, 0xb3, 0x8e, 0xed, 0xba,
|
||||
0x56, 0x52, 0xc1, 0xa9, 0x99, 0x79, 0x9f, 0xe7, 0x9d, 0xe7, 0xfd, 0xdc, 0x1a, 0x72, 0x1d, 0xe2,
|
||||
0xf5, 0x89, 0x57, 0xec, 0xba, 0x64, 0x38, 0x28, 0x1e, 0x5e, 0x6b, 0x63, 0x6a, 0x5e, 0x2b, 0xd2,
|
||||
0xd1, 0x00, 0x7b, 0x85, 0x81, 0x4b, 0x28, 0x41, 0x6b, 0x1c, 0x51, 0x60, 0x88, 0x82, 0x40, 0x6c,
|
||||
0xac, 0x75, 0x49, 0x97, 0x30, 0x40, 0xd1, 0xff, 0x8b, 0x63, 0x37, 0x32, 0x5d, 0x42, 0xba, 0x3d,
|
||||
0x5c, 0x64, 0xa7, 0xf6, 0xf0, 0x5e, 0xd1, 0x1a, 0xba, 0x26, 0xb5, 0x89, 0x23, 0xec, 0xd9, 0x59,
|
||||
0x3b, 0xb5, 0xfb, 0xd8, 0xa3, 0x66, 0x7f, 0x20, 0x00, 0xeb, 0xfc, 0x31, 0x83, 0x7b, 0x16, 0x2f,
|
||||
0x0b, 0xd3, 0x2c, 0xd7, 0x74, 0x46, 0xdc, 0x94, 0xff, 0x59, 0x82, 0xe8, 0x1d, 0xdc, 0x6f, 0x63,
|
||||
0x17, 0x95, 0x20, 0x66, 0x5a, 0x96, 0x8b, 0x3d, 0x4f, 0x96, 0x72, 0xd2, 0x76, 0xa2, 0x22, 0xff,
|
||||
0xfe, 0xf8, 0x4a, 0x10, 0x42, 0x99, 0x5b, 0x34, 0xea, 0xda, 0x4e, 0x57, 0x0d, 0x80, 0xe8, 0x1c,
|
||||
0x44, 0x8f, 0xb0, 0xdd, 0x3d, 0xa0, 0x72, 0xd8, 0x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 0xfa, 0x45, 0x82, 0xb7, 0xe7, 0xd2, 0xd0, 0x6d, 0x38,
|
||||
0x73, 0x48, 0xa8, 0xed, 0x74, 0x8d, 0x01, 0x76, 0x6d, 0xc2, 0xd3, 0x95, 0x2c, 0xad, 0xbf, 0x52,
|
||||
0xd5, 0x1d, 0xd1, 0xd2, 0xbc, 0xa8, 0xdf, 0xfb, 0x45, 0x5d, 0xe1, 0xcc, 0x26, 0x23, 0xa2, 0x16,
|
||||
0xac, 0xf5, 0x6d, 0xc7, 0xc0, 0xf7, 0x71, 0x67, 0xe8, 0x03, 0x03, 0x87, 0xe1, 0x93, 0x3b, 0x44,
|
||||
0x7d, 0xdb, 0x51, 0x02, 0x3e, 0x77, 0x9b, 0xff, 0x47, 0x82, 0xc4, 0x2d, 0x3f, 0xfe, 0x9a, 0x73,
|
||||
0x8f, 0xa0, 0x14, 0x84, 0x6d, 0xae, 0x31, 0xa2, 0x86, 0x6d, 0x0b, 0x15, 0x60, 0xd9, 0xb4, 0xfa,
|
||||
0xb6, 0xc3, 0x5b, 0x78, 0x41, 0xd7, 0x73, 0xd8, 0xc2, 0xde, 0x96, 0x21, 0x76, 0x88, 0x5d, 0x3f,
|
||||
0x45, 0xac, 0xb5, 0x23, 0x6a, 0x70, 0x44, 0x17, 0x61, 0x85, 0x12, 0x6a, 0xf6, 0x0c, 0x31, 0x2f,
|
||||
0xcb, 0x8c, 0x99, 0x64, 0x77, 0xfb, 0x7c, 0x68, 0xaa, 0x00, 0x1d, 0x17, 0x9b, 0x94, 0x8f, 0x46,
|
||||
0xf4, 0x14, 0xa3, 0x91, 0x10, 0xbc, 0x32, 0xcd, 0x7f, 0x09, 0x49, 0x16, 0xaa, 0x18, 0xea, 0x75,
|
||||
0x88, 0xb3, 0xca, 0x1b, 0xe3, 0x90, 0x63, 0xec, 0x5c, 0xb3, 0xd0, 0x07, 0x10, 0xe5, 0x83, 0x20,
|
||||
0xd2, 0xbb, 0x70, 0x74, 0x54, 0x81, 0xcd,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0xcf, 0x33,
|
||||
0xa1, 0x3f, 0x9e, 0x67, 0x42, 0x77, 0xb7, 0xba, 0x36, 0x3d, 0x18, 0xb6, 0x0b, 0x1d, 0xd2, 0x17,
|
||||
0x3f, 0x87, 0xc4, 0x3f, 0x57, 0x3c, 0xeb, 0xab, 0xe2, 0x7d, 0xfe, 0xbb, 0xad, 0x1d, 0x65, 0x03,
|
||||
0xf0, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x5a, 0xf3, 0xf9, 0xce, 0x0d, 0x00, 0x00,
|
||||
var fileDescriptor_f5bddd15d7a54a9d = []byte{
|
||||
// 1340 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xf7, 0x3a, 0x8e, 0x3f, 0x9e, 0x53, 0xdb, 0x4c, 0x43, 0xb3, 0xf9, 0xc0, 0x0e, 0xa6, 0x82,
|
||||
0xa8, 0xa8, 0x76, 0xeb, 0x4a, 0x54, 0xea, 0x01, 0xb0, 0x9d, 0x2d, 0x35, 0x4a, 0x6d, 0xb3, 0xbb,
|
||||
0x4e, 0x68, 0x2f, 0xab, 0x8d, 0x77, 0xea, 0xac, 0xb0, 0x77, 0xac, 0xdd, 0x71, 0x52, 0xff, 0x07,
|
||||
0xbd, 0x20, 0x7a, 0xe0, 0xc0, 0x05, 0xa9, 0x12, 0x77, 0x24, 0xa4, 0x1e, 0x10, 0x7f, 0x41, 0xc5,
|
||||
0xa9, 0xe2, 0xc4, 0x09, 0xaa, 0xf6, 0x52, 0x4e, 0xfc, 0x0b, 0x68, 0x67, 0x66, 0x1d, 0x7f, 0xc5,
|
||||
0xb4, 0x15, 0x9c, 0xe2, 0x79, 0xef, 0xf7, 0xde, 0xfc, 0xde, 0xe7, 0x64, 0x61, 0xb3, 0x4d, 0xbc,
|
||||
0x1e, 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f, 0x62, 0x11, 0xd9, 0x5e, 0x9d,
|
||||
0xc9, 0x76, 0xd9, 0x19, 0x56, 0xe6, 0x4c, 0x83, 0x9a, 0xb2, 0x26, 0x67, 0x72, 0xb2, 0x76, 0xb1,
|
||||
0x37, 0xaa, 0xdd, 0x8d, 0xf8, 0x83, 0x47, 0xb9, 0xd0, 0xcb, 0x47, 0x39, 0x29, 0xff, 0x6c, 0x19,
|
||||
0xe2, 0x4d, 0x97, 0xf4, 0x89, 0x67, 0x76, 0x67, 0x1a, 0x76, 0x2c, 0xe7, 0xe1, 0x57, 0xcd, 0xf9,
|
||||
0xa2, 0xa6, 0xfd, 0x08, 0x12, 0x7d, 0x76, 0x97, 0xbf, 0x37, 0x23, 0xdb, 0x4b, 0x0b, 0x3d, 0x9e,
|
||||
0x42, 0x91, 0x02, 0x49, 0x6f, 0x70, 0xd8, 0xb3, 0xa9, 0xe1, 0x3f, 0x3e, 0x2c, 0xc9, 0xaf, 0x1a,
|
||||
0x34, 0x70, 0x43, 0x5f, 0x85, 0xde, 0x83, 0x73, 0xbc, 0x1d, 0x82, 0x6a, 0x45, 0x59, 0xa4, 0x2b,
|
||||
0x4c, 0xb8, 0x2f, 0x4a, 0x76, 0x05, 0x56, 0x39, 0x88, 0xd7, 0x6b, 0x84, 0x8d, 0x31, 0x2c, 0xea,
|
||||
0x9c, 0xb6, 0x65, 0x60, 0x71, 0x1d, 0xa2, 0x1e, 0x35, 0xe9, 0xc0, 0x93, 0xe3, 0xdb, 0xd2, 0x4e,
|
||||
0xaa, 0x94, 0x9b, 0x69, 0xef, 0x20, 0xc1, 0x1a, 0x83, 0xa9, 0x02, 0xee, 0x1b, 0xba, 0xd8, 0x1b,
|
||||
0x74, 0xa9, 0x9c, 0xf8, 0x17, 0x43, 0x95, 0xc1, 0x54, 0x01, 0x47, 0x4d, 0x40, 0xf7, 0x6c, 0xc7,
|
||||
0xec, 0x1a, 0xd4, 0xec, 0x76, 0x87, 0x86, 0x70, 0x02, 0x2c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x1d, 0x13, 0x2a, 0xf6, 0xe8, 0xc2, 0xa5, 0xc5,
|
||||
0x60, 0xe8, 0x1a, 0x44, 0x49, 0xdf, 0x7f, 0x9e, 0x18, 0xcb, 0x54, 0x69, 0x73, 0x26, 0xf5, 0xfe,
|
||||
0xbd, 0x0d, 0x06, 0x51, 0x05, 0x74, 0xe1, 0xa6, 0xfb, 0x6f, 0x06, 0xf1, 0xd2, 0x37, 0x12, 0xc0,
|
||||
0xe9, 0xcd, 0x68, 0x13, 0xd6, 0xf6, 0x1b, 0xba, 0x62, 0x34, 0x9a, 0x7a, 0xad, 0x51, 0x37, 0x5a,
|
||||
0x75, 0xad, 0xa9, 0x54, 0x6b, 0x37, 0x6b, 0xca, 0x6e, 0x26, 0x84, 0xce, 0x43, 0x7a, 0x5c, 0x79,
|
||||
0x47, 0xd1, 0x32, 0x12, 0x5a, 0x83, 0xf3, 0xe3, 0xc2, 0x72, 0x45, 0xd3, 0xcb, 0xb5, 0x7a, 0x26,
|
||||
0x8c, 0x10, 0xa4, 0xc6, 0x15, 0xf5, 0x46, 0x66, 0x09, 0x6d, 0x81, 0x3c, 0x29, 0x33, 0x0e, 0x6a,
|
||||
0xfa, 0x2d, 0x63, 0x5f, 0xd1, 0x1b, 0x99, 0xc8, 0x46, 0xe4, 0xc1, 0x0f, 0xd9, 0xd0, 0xa5, 0x1f,
|
||||
0x25, 0x48, 0x4d, 0x4e, 0x29, 0xca, 0xc1, 0x66, 0x53, 0x6d, 0x34, 0x1b, 0x5a, 0x79, 0xcf, 0xd0,
|
||||
0xf4, 0xb2, 0xde, 0xd2, 0xa6, 0x98, 0xbd, 0x03, 0xeb, 0xd3, 0x00, 0xad, 0x55, 0xb9, 0x5d, 0xd3,
|
||||
0x75, 0x65, 0x37, 0x23, 0xa1, 0x0d, 0xb8, 0x30, 0xad, 0xae, 0xee, 0x35, 0x34, 0x65, 0x37, 0x13,
|
||||
0xf6, 0x23, 0x9e, 0xd6, 0x95, 0x2b, 0x0d, 0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x1f, 0xf6, 0x78, 0x70, 0x97, 0x0d, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *GroupPolicyInfo) Equal(that interface{}) bool {
|
||||
|
||||
@ -10,8 +10,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/simapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
|
||||
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
||||
govv1beta2 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta2"
|
||||
"github.com/cosmos/cosmos-sdk/x/params"
|
||||
"github.com/cosmos/cosmos-sdk/x/params/types/proposal"
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
@ -65,13 +65,13 @@ func (suite *HandlerTestSuite) TestProposalHandler() {
|
||||
"omit empty fields",
|
||||
testProposal(proposal.ParamChange{
|
||||
Subspace: govtypes.ModuleName,
|
||||
Key: string(govv1beta2.ParamStoreKeyDepositParams),
|
||||
Key: string(govv1.ParamStoreKeyDepositParams),
|
||||
Value: `{"min_deposit": [{"denom": "uatom","amount": "64000000"}], "max_deposit_period": "172800000000000"}`,
|
||||
}),
|
||||
func() {
|
||||
depositParams := suite.app.GovKeeper.GetDepositParams(suite.ctx)
|
||||
defaultPeriod := govv1beta2.DefaultPeriod
|
||||
suite.Require().Equal(govv1beta2.DepositParams{
|
||||
defaultPeriod := govv1.DefaultPeriod
|
||||
suite.Require().Equal(govv1.DepositParams{
|
||||
MinDeposit: sdk.NewCoins(sdk.NewCoin("uatom", sdk.NewInt(64000000))),
|
||||
MaxDepositPeriod: &defaultPeriod,
|
||||
}, depositParams)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user