Fix and updates gov proto types
This commit is contained in:
parent
81735debe5
commit
8f131e2e0c
|
@ -12,7 +12,6 @@ import (
|
||||||
proto "github.com/gogo/protobuf/proto"
|
proto "github.com/gogo/protobuf/proto"
|
||||||
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
||||||
_ "github.com/golang/protobuf/ptypes/timestamp"
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
||||||
_ "github.com/regen-network/cosmos-proto"
|
|
||||||
io "io"
|
io "io"
|
||||||
math "math"
|
math "math"
|
||||||
math_bits "math/bits"
|
math_bits "math/bits"
|
||||||
|
@ -291,15 +290,18 @@ func (m *Deposit) XXX_DiscardUnknown() {
|
||||||
|
|
||||||
var xxx_messageInfo_Deposit proto.InternalMessageInfo
|
var xxx_messageInfo_Deposit proto.InternalMessageInfo
|
||||||
|
|
||||||
|
// ProposalBase defines the core field members of a governance proposal. It includes
|
||||||
|
// all static fields (i.e fields excluding the dynamic Content). A full proposal
|
||||||
|
// extends the ProposalBase with Content.
|
||||||
type ProposalBase struct {
|
type ProposalBase struct {
|
||||||
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"`
|
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"id" yaml:"id"`
|
||||||
Status ProposalStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos_sdk.x.gov.v1.ProposalStatus" json:"status,omitempty"`
|
Status ProposalStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos_sdk.x.gov.v1.ProposalStatus" json:"status,omitempty" yaml:"proposal_status"`
|
||||||
FinalTallyResult TallyResult `protobuf:"bytes,3,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"`
|
FinalTallyResult TallyResult `protobuf:"bytes,3,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result" yaml:"final_tally_result"`
|
||||||
SubmitTime time.Time `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"`
|
SubmitTime time.Time `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" yaml:"submit_time"`
|
||||||
DepositEndTime time.Time `protobuf:"bytes,5,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time"`
|
DepositEndTime time.Time `protobuf:"bytes,5,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time" yaml:"deposit_end_time"`
|
||||||
TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"`
|
TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit" yaml:"total_deposit"`
|
||||||
VotingStartTime time.Time `protobuf:"bytes,7,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time"`
|
VotingStartTime time.Time `protobuf:"bytes,7,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time" yaml:"voting_start_time"`
|
||||||
VotingEndTime time.Time `protobuf:"bytes,8,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time"`
|
VotingEndTime time.Time `protobuf:"bytes,8,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time" yaml:"voting_end_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ProposalBase) Reset() { *m = ProposalBase{} }
|
func (m *ProposalBase) Reset() { *m = ProposalBase{} }
|
||||||
|
@ -375,6 +377,8 @@ func (m *TallyResult) XXX_DiscardUnknown() {
|
||||||
|
|
||||||
var xxx_messageInfo_TallyResult proto.InternalMessageInfo
|
var xxx_messageInfo_TallyResult proto.InternalMessageInfo
|
||||||
|
|
||||||
|
// Vote defines a vote on a governance proposal. A vote corresponds to a proposal
|
||||||
|
// ID, the voter, and the vote option.
|
||||||
type Vote struct {
|
type Vote struct {
|
||||||
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"`
|
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"`
|
||||||
Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"`
|
Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"`
|
||||||
|
@ -413,114 +417,6 @@ func (m *Vote) XXX_DiscardUnknown() {
|
||||||
|
|
||||||
var xxx_messageInfo_Vote proto.InternalMessageInfo
|
var xxx_messageInfo_Vote proto.InternalMessageInfo
|
||||||
|
|
||||||
type BasicProposal struct {
|
|
||||||
*ProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base,omitempty"`
|
|
||||||
Content *BasicContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicProposal) Reset() { *m = BasicProposal{} }
|
|
||||||
func (*BasicProposal) ProtoMessage() {}
|
|
||||||
func (*BasicProposal) Descriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_a5ae5e91b5b3fb03, []int{8}
|
|
||||||
}
|
|
||||||
func (m *BasicProposal) XXX_Unmarshal(b []byte) error {
|
|
||||||
return m.Unmarshal(b)
|
|
||||||
}
|
|
||||||
func (m *BasicProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
||||||
if deterministic {
|
|
||||||
return xxx_messageInfo_BasicProposal.Marshal(b, m, deterministic)
|
|
||||||
} else {
|
|
||||||
b = b[:cap(b)]
|
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return b[:n], nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func (m *BasicProposal) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_BasicProposal.Merge(m, src)
|
|
||||||
}
|
|
||||||
func (m *BasicProposal) XXX_Size() int {
|
|
||||||
return m.Size()
|
|
||||||
}
|
|
||||||
func (m *BasicProposal) XXX_DiscardUnknown() {
|
|
||||||
xxx_messageInfo_BasicProposal.DiscardUnknown(m)
|
|
||||||
}
|
|
||||||
|
|
||||||
var xxx_messageInfo_BasicProposal proto.InternalMessageInfo
|
|
||||||
|
|
||||||
type BasicContent struct {
|
|
||||||
// Types that are valid to be assigned to Sum:
|
|
||||||
// *BasicContent_Text
|
|
||||||
Sum isBasicContent_Sum `protobuf_oneof:"sum"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) Reset() { *m = BasicContent{} }
|
|
||||||
func (*BasicContent) ProtoMessage() {}
|
|
||||||
func (*BasicContent) Descriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_a5ae5e91b5b3fb03, []int{9}
|
|
||||||
}
|
|
||||||
func (m *BasicContent) XXX_Unmarshal(b []byte) error {
|
|
||||||
return m.Unmarshal(b)
|
|
||||||
}
|
|
||||||
func (m *BasicContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
||||||
if deterministic {
|
|
||||||
return xxx_messageInfo_BasicContent.Marshal(b, m, deterministic)
|
|
||||||
} else {
|
|
||||||
b = b[:cap(b)]
|
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return b[:n], nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func (m *BasicContent) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_BasicContent.Merge(m, src)
|
|
||||||
}
|
|
||||||
func (m *BasicContent) XXX_Size() int {
|
|
||||||
return m.Size()
|
|
||||||
}
|
|
||||||
func (m *BasicContent) XXX_DiscardUnknown() {
|
|
||||||
xxx_messageInfo_BasicContent.DiscardUnknown(m)
|
|
||||||
}
|
|
||||||
|
|
||||||
var xxx_messageInfo_BasicContent proto.InternalMessageInfo
|
|
||||||
|
|
||||||
type isBasicContent_Sum interface {
|
|
||||||
isBasicContent_Sum()
|
|
||||||
MarshalTo([]byte) (int, error)
|
|
||||||
Size() int
|
|
||||||
}
|
|
||||||
|
|
||||||
type BasicContent_Text struct {
|
|
||||||
Text *TextProposal `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*BasicContent_Text) isBasicContent_Sum() {}
|
|
||||||
|
|
||||||
func (m *BasicContent) GetSum() isBasicContent_Sum {
|
|
||||||
if m != nil {
|
|
||||||
return m.Sum
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) GetText() *TextProposal {
|
|
||||||
if x, ok := m.GetSum().(*BasicContent_Text); ok {
|
|
||||||
return x.Text
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
||||||
func (*BasicContent) XXX_OneofWrappers() []interface{} {
|
|
||||||
return []interface{}{
|
|
||||||
(*BasicContent_Text)(nil),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterEnum("cosmos_sdk.x.gov.v1.VoteOption", VoteOption_name, VoteOption_value)
|
proto.RegisterEnum("cosmos_sdk.x.gov.v1.VoteOption", VoteOption_name, VoteOption_value)
|
||||||
proto.RegisterEnum("cosmos_sdk.x.gov.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
proto.RegisterEnum("cosmos_sdk.x.gov.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value)
|
||||||
|
@ -532,90 +428,86 @@ func init() {
|
||||||
proto.RegisterType((*ProposalBase)(nil), "cosmos_sdk.x.gov.v1.ProposalBase")
|
proto.RegisterType((*ProposalBase)(nil), "cosmos_sdk.x.gov.v1.ProposalBase")
|
||||||
proto.RegisterType((*TallyResult)(nil), "cosmos_sdk.x.gov.v1.TallyResult")
|
proto.RegisterType((*TallyResult)(nil), "cosmos_sdk.x.gov.v1.TallyResult")
|
||||||
proto.RegisterType((*Vote)(nil), "cosmos_sdk.x.gov.v1.Vote")
|
proto.RegisterType((*Vote)(nil), "cosmos_sdk.x.gov.v1.Vote")
|
||||||
proto.RegisterType((*BasicProposal)(nil), "cosmos_sdk.x.gov.v1.BasicProposal")
|
|
||||||
proto.RegisterType((*BasicContent)(nil), "cosmos_sdk.x.gov.v1.BasicContent")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("x/gov/types/types.proto", fileDescriptor_a5ae5e91b5b3fb03) }
|
func init() { proto.RegisterFile("x/gov/types/types.proto", fileDescriptor_a5ae5e91b5b3fb03) }
|
||||||
|
|
||||||
var fileDescriptor_a5ae5e91b5b3fb03 = []byte{
|
var fileDescriptor_a5ae5e91b5b3fb03 = []byte{
|
||||||
// 1208 bytes of a gzipped FileDescriptorProto
|
// 1181 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xcf, 0x8b, 0xdb, 0x46,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xc1, 0x6f, 0xd3, 0x56,
|
||||||
0x1b, 0x96, 0x6c, 0xef, 0x7a, 0xf3, 0xfa, 0x47, 0x94, 0xd9, 0x7c, 0xc9, 0x22, 0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, 0x4e, 0xd7, 0xa6,
|
0x3d, 0xd8, 0x04, 0xaf, 0x15, 0xa7, 0xea, 0xe2, 0xae, 0xf3, 0x3c, 0xdb, 0x00, 0x45, 0x51, 0x4d,
|
||||||
0x4e, 0xb7, 0xbb, 0x63, 0x0f, 0x3c, 0x32, 0xec, 0x52, 0x36, 0x24, 0xb9, 0x55, 0xed, 0x40, 0xa1,
|
0x06, 0x07, 0x3f, 0x05, 0xf0, 0xba, 0x1f, 0xda, 0x81, 0x45, 0xec, 0x20, 0x18, 0x59, 0x7d, 0x17,
|
||||||
0x56, 0x08, 0xb4, 0x18, 0xce, 0xc8, 0x84, 0x66, 0x58, 0x12, 0x53, 0x48, 0xac, 0x87, 0x9d, 0x11,
|
0x0f, 0x02, 0x12, 0x4f, 0x4f, 0x7e, 0x5d, 0xd9, 0x97, 0xa4, 0x1d, 0x25, 0x9a, 0x71, 0x9e, 0x7e,
|
||||||
0x16, 0x91, 0x76, 0x18, 0xa0, 0x4b, 0x19, 0x26, 0x27, 0xeb, 0x3c, 0x5d, 0xf5, 0x38, 0x5d, 0xf5,
|
0x8c, 0xf9, 0xdb, 0x9b, 0x94, 0x65, 0x2f, 0x92, 0x6a, 0x0a, 0x71, 0x30, 0x55, 0x04, 0x3f, 0x02,
|
||||||
0x56, 0x9c, 0xae, 0xc6, 0x42, 0x28, 0x74, 0xe7, 0xb1, 0x2a, 0x5a, 0xc0, 0x89, 0xe1, 0x16, 0xaa,
|
0x79, 0x1c, 0x1b, 0xab, 0x15, 0xd9, 0x6e, 0x69, 0x2e, 0xe6, 0x12, 0x35, 0xea, 0xc9, 0x5a, 0xe2,
|
||||||
0x81, 0x14, 0xdd, 0x8e, 0xed, 0x05, 0x2e, 0xd7, 0x9a, 0x9b, 0x41, 0xab, 0x18, 0xb1, 0xcd, 0xc0,
|
0xc9, 0x5a, 0x3b, 0xf1, 0x64, 0x5d, 0x62, 0x2c, 0x6c, 0x52, 0x52, 0xc5, 0xea, 0xed, 0x47, 0x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0x07,
|
||||||
0x67, 0xff, 0x79, 0xc8, 0x6c, 0x3a, 0x84, 0x47, 0x7f, 0x6e, 0xf5, 0x9d, 0x57, 0xc6, 0x4c, 0x18,
|
0xc9, 0x84, 0x08, 0x7a, 0xa0, 0x10, 0x22, 0xeb, 0x33, 0x9f, 0x6c, 0x5b, 0x43, 0x97, 0xa0, 0xf8,
|
||||||
0x70, 0x46, 0xe6, 0xe1, 0x54, 0x15, 0x2d, 0x46, 0x42, 0xe7, 0x21, 0xdb, 0xc6, 0x01, 0xf5, 0x02,
|
0x26, 0x2c, 0xe9, 0xc6, 0xc1, 0x90, 0x9e, 0x4e, 0xe5, 0x15, 0x2a, 0x6c, 0x1a, 0x4b, 0x35, 0x41,
|
||||||
0xca, 0x5a, 0x7a, 0x19, 0x9f, 0x9d, 0x78, 0x81, 0x03, 0xad, 0x98, 0x51, 0xb2, 0x21, 0x9f, 0xdc,
|
0x88, 0xae, 0xfa, 0x64, 0x7b, 0x33, 0xfa, 0xf8, 0x89, 0x07, 0x73, 0xf1, 0xf3, 0xf5, 0x0f, 0x59,
|
||||||
0x40, 0xe7, 0x20, 0x43, 0xbd, 0x6d, 0xfa, 0xca, 0x4a, 0x92, 0x9f, 0xad, 0xcb, 0x82, 0xc5, 0x08,
|
0xf2, 0x7f, 0xfe, 0x5e, 0x9d, 0xfa, 0x8e, 0x07, 0x60, 0x37, 0x0c, 0x45, 0x30, 0x6f, 0x6c, 0x34,
|
||||||
0x6b, 0x87, 0xc3, 0xbf, 0x66, 0x7e, 0xfa, 0xe1, 0x74, 0x36, 0x52, 0x32, 0xe6, 0x20, 0x4d, 0x86,
|
0xdb, 0xd7, 0x04, 0x4e, 0x3c, 0x34, 0x9e, 0x28, 0x79, 0x1a, 0x36, 0xba, 0x3d, 0x32, 0x82, 0x47,
|
||||||
0xbd, 0x93, 0xdf, 0x89, 0x00, 0x7b, 0x1e, 0x20, 0x19, 0xe6, 0xcc, 0xf5, 0x46, 0xeb, 0xba, 0x24,
|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
0xbb, 0x8a, 0x78, 0xe7, 0xa9, 0x22, 0x3c, 0x7c, 0xaa, 0x08, 0x8f, 0x9e, 0x2a, 0xc2, 0xc7, 0xaf,
|
0x0a, 0x00, 0x00, 0xff, 0xff, 0x48, 0xe7, 0x6e, 0x7f, 0x21, 0x0c, 0x00, 0x00,
|
||||||
0x4e, 0xea, 0xc4, 0xff, 0x1b, 0x9b, 0xf3, 0x2c, 0x28, 0xcf, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff,
|
|
||||||
0xaa, 0x0c, 0xd1, 0xcc, 0x85, 0x0c, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProposalBaseFace interface {
|
type ProposalBaseFace interface {
|
||||||
|
@ -683,29 +575,6 @@ func NewProposalBaseFromFace(that ProposalBaseFace) *ProposalBase {
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *BasicContent) GetContent() Content {
|
|
||||||
if x := this.GetText(); x != nil {
|
|
||||||
return x
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (this *BasicContent) SetContent(value Content) error {
|
|
||||||
if value == nil {
|
|
||||||
this.Sum = nil
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
switch vt := value.(type) {
|
|
||||||
case *TextProposal:
|
|
||||||
this.Sum = &BasicContent_Text{vt}
|
|
||||||
return nil
|
|
||||||
case TextProposal:
|
|
||||||
this.Sum = &BasicContent_Text{&vt}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return fmt.Errorf("can't encode value of type %T as message BasicContent", value)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *MsgSubmitProposalBase) Marshal() (dAtA []byte, err error) {
|
func (m *MsgSubmitProposalBase) Marshal() (dAtA []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
dAtA = make([]byte, size)
|
dAtA = make([]byte, size)
|
||||||
|
@ -1117,106 +986,6 @@ func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *BasicProposal) Marshal() (dAtA []byte, err error) {
|
|
||||||
size := m.Size()
|
|
||||||
dAtA = make([]byte, size)
|
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return dAtA[:n], nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicProposal) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
_ = i
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Content != nil {
|
|
||||||
{
|
|
||||||
size, err := m.Content.MarshalToSizedBuffer(dAtA[:i])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
i -= size
|
|
||||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
|
||||||
}
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x12
|
|
||||||
}
|
|
||||||
if m.ProposalBase != nil {
|
|
||||||
{
|
|
||||||
size, err := m.ProposalBase.MarshalToSizedBuffer(dAtA[:i])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
i -= size
|
|
||||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
|
||||||
}
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0xa
|
|
||||||
}
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) Marshal() (dAtA []byte, err error) {
|
|
||||||
size := m.Size()
|
|
||||||
dAtA = make([]byte, size)
|
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return dAtA[:n], nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
_ = i
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Sum != nil {
|
|
||||||
{
|
|
||||||
size := m.Sum.Size()
|
|
||||||
i -= size
|
|
||||||
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent_Text) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
if m.Text != nil {
|
|
||||||
{
|
|
||||||
size, err := m.Text.MarshalToSizedBuffer(dAtA[:i])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
i -= size
|
|
||||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
|
||||||
}
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0xa
|
|
||||||
}
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||||
offset -= sovTypes(v)
|
offset -= sovTypes(v)
|
||||||
base := offset
|
base := offset
|
||||||
|
@ -1394,48 +1163,6 @@ func (m *Vote) Size() (n int) {
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *BasicProposal) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.ProposalBase != nil {
|
|
||||||
l = m.ProposalBase.Size()
|
|
||||||
n += 1 + l + sovTypes(uint64(l))
|
|
||||||
}
|
|
||||||
if m.Content != nil {
|
|
||||||
l = m.Content.Size()
|
|
||||||
n += 1 + l + sovTypes(uint64(l))
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Sum != nil {
|
|
||||||
n += m.Sum.Size()
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *BasicContent_Text) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Text != nil {
|
|
||||||
l = m.Text.Size()
|
|
||||||
n += 1 + l + sovTypes(uint64(l))
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func sovTypes(x uint64) (n int) {
|
func sovTypes(x uint64) (n int) {
|
||||||
return (math_bits.Len64(x|1) + 6) / 7
|
return (math_bits.Len64(x|1) + 6) / 7
|
||||||
}
|
}
|
||||||
|
@ -1458,26 +1185,6 @@ func (this *MsgSubmitProposalBase) String() string {
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
func (this *BasicContent) String() string {
|
|
||||||
if this == nil {
|
|
||||||
return "nil"
|
|
||||||
}
|
|
||||||
s := strings.Join([]string{`&BasicContent{`,
|
|
||||||
`Sum:` + fmt.Sprintf("%v", this.Sum) + `,`,
|
|
||||||
`}`,
|
|
||||||
}, "")
|
|
||||||
return s
|
|
||||||
}
|
|
||||||
func (this *BasicContent_Text) String() string {
|
|
||||||
if this == nil {
|
|
||||||
return "nil"
|
|
||||||
}
|
|
||||||
s := strings.Join([]string{`&BasicContent_Text{`,
|
|
||||||
`Text:` + strings.Replace(fmt.Sprintf("%v", this.Text), "TextProposal", "TextProposal", 1) + `,`,
|
|
||||||
`}`,
|
|
||||||
}, "")
|
|
||||||
return s
|
|
||||||
}
|
|
||||||
func valueToStringTypes(v interface{}) string {
|
func valueToStringTypes(v interface{}) string {
|
||||||
rv := reflect.ValueOf(v)
|
rv := reflect.ValueOf(v)
|
||||||
if rv.IsNil() {
|
if rv.IsNil() {
|
||||||
|
@ -2452,7 +2159,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType)
|
||||||
}
|
}
|
||||||
var byteLen int
|
var stringLen uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
if shift >= 64 {
|
if shift >= 64 {
|
||||||
return ErrIntOverflowTypes
|
return ErrIntOverflowTypes
|
||||||
|
@ -2462,15 +2169,16 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
b := dAtA[iNdEx]
|
b := dAtA[iNdEx]
|
||||||
iNdEx++
|
iNdEx++
|
||||||
byteLen |= int(b&0x7F) << shift
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
if b < 0x80 {
|
if b < 0x80 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if byteLen < 0 {
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
postIndex := iNdEx + byteLen
|
postIndex := iNdEx + intStringLen
|
||||||
if postIndex < 0 {
|
if postIndex < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
|
@ -2485,7 +2193,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Abstain", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Abstain", wireType)
|
||||||
}
|
}
|
||||||
var byteLen int
|
var stringLen uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
if shift >= 64 {
|
if shift >= 64 {
|
||||||
return ErrIntOverflowTypes
|
return ErrIntOverflowTypes
|
||||||
|
@ -2495,15 +2203,16 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
b := dAtA[iNdEx]
|
b := dAtA[iNdEx]
|
||||||
iNdEx++
|
iNdEx++
|
||||||
byteLen |= int(b&0x7F) << shift
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
if b < 0x80 {
|
if b < 0x80 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if byteLen < 0 {
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
postIndex := iNdEx + byteLen
|
postIndex := iNdEx + intStringLen
|
||||||
if postIndex < 0 {
|
if postIndex < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
|
@ -2518,7 +2227,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field No", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field No", wireType)
|
||||||
}
|
}
|
||||||
var byteLen int
|
var stringLen uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
if shift >= 64 {
|
if shift >= 64 {
|
||||||
return ErrIntOverflowTypes
|
return ErrIntOverflowTypes
|
||||||
|
@ -2528,15 +2237,16 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
b := dAtA[iNdEx]
|
b := dAtA[iNdEx]
|
||||||
iNdEx++
|
iNdEx++
|
||||||
byteLen |= int(b&0x7F) << shift
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
if b < 0x80 {
|
if b < 0x80 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if byteLen < 0 {
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
postIndex := iNdEx + byteLen
|
postIndex := iNdEx + intStringLen
|
||||||
if postIndex < 0 {
|
if postIndex < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
|
@ -2551,7 +2261,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field NoWithVeto", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field NoWithVeto", wireType)
|
||||||
}
|
}
|
||||||
var byteLen int
|
var stringLen uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
if shift >= 64 {
|
if shift >= 64 {
|
||||||
return ErrIntOverflowTypes
|
return ErrIntOverflowTypes
|
||||||
|
@ -2561,15 +2271,16 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
b := dAtA[iNdEx]
|
b := dAtA[iNdEx]
|
||||||
iNdEx++
|
iNdEx++
|
||||||
byteLen |= int(b&0x7F) << shift
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
if b < 0x80 {
|
if b < 0x80 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if byteLen < 0 {
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
postIndex := iNdEx + byteLen
|
postIndex := iNdEx + intStringLen
|
||||||
if postIndex < 0 {
|
if postIndex < 0 {
|
||||||
return ErrInvalidLengthTypes
|
return ErrInvalidLengthTypes
|
||||||
}
|
}
|
||||||
|
@ -2729,219 +2440,6 @@ func (m *Vote) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *BasicProposal) Unmarshal(dAtA []byte) error {
|
|
||||||
l := len(dAtA)
|
|
||||||
iNdEx := 0
|
|
||||||
for iNdEx < l {
|
|
||||||
preIndex := iNdEx
|
|
||||||
var wire uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowTypes
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
wire |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fieldNum := int32(wire >> 3)
|
|
||||||
wireType := int(wire & 0x7)
|
|
||||||
if wireType == 4 {
|
|
||||||
return fmt.Errorf("proto: BasicProposal: wiretype end group for non-group")
|
|
||||||
}
|
|
||||||
if fieldNum <= 0 {
|
|
||||||
return fmt.Errorf("proto: BasicProposal: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
||||||
}
|
|
||||||
switch fieldNum {
|
|
||||||
case 1:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field ProposalBase", wireType)
|
|
||||||
}
|
|
||||||
var msglen int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowTypes
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
msglen |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if msglen < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + msglen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
if m.ProposalBase == nil {
|
|
||||||
m.ProposalBase = &ProposalBase{}
|
|
||||||
}
|
|
||||||
if err := m.ProposalBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 2:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
|
|
||||||
}
|
|
||||||
var msglen int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowTypes
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
msglen |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if msglen < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + msglen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
if m.Content == nil {
|
|
||||||
m.Content = &BasicContent{}
|
|
||||||
}
|
|
||||||
if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
iNdEx = postIndex
|
|
||||||
default:
|
|
||||||
iNdEx = preIndex
|
|
||||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if skippy < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
iNdEx += skippy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if iNdEx > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (m *BasicContent) Unmarshal(dAtA []byte) error {
|
|
||||||
l := len(dAtA)
|
|
||||||
iNdEx := 0
|
|
||||||
for iNdEx < l {
|
|
||||||
preIndex := iNdEx
|
|
||||||
var wire uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowTypes
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
wire |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fieldNum := int32(wire >> 3)
|
|
||||||
wireType := int(wire & 0x7)
|
|
||||||
if wireType == 4 {
|
|
||||||
return fmt.Errorf("proto: BasicContent: wiretype end group for non-group")
|
|
||||||
}
|
|
||||||
if fieldNum <= 0 {
|
|
||||||
return fmt.Errorf("proto: BasicContent: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
||||||
}
|
|
||||||
switch fieldNum {
|
|
||||||
case 1:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
|
|
||||||
}
|
|
||||||
var msglen int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowTypes
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
msglen |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if msglen < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + msglen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
v := &TextProposal{}
|
|
||||||
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
m.Sum = &BasicContent_Text{v}
|
|
||||||
iNdEx = postIndex
|
|
||||||
default:
|
|
||||||
iNdEx = preIndex
|
|
||||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if skippy < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) < 0 {
|
|
||||||
return ErrInvalidLengthTypes
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
iNdEx += skippy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if iNdEx > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func skipTypes(dAtA []byte) (n int, err error) {
|
func skipTypes(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
|
|
@ -3,7 +3,7 @@ package cosmos_sdk.x.gov.v1;
|
||||||
|
|
||||||
import "types/types.proto";
|
import "types/types.proto";
|
||||||
import "third_party/proto/gogoproto/gogo.proto";
|
import "third_party/proto/gogoproto/gogo.proto";
|
||||||
import "third_party/proto/cosmos-proto/cosmos.proto";
|
// import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
|
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
|
||||||
|
@ -13,20 +13,25 @@ option (gogoproto.goproto_getters_all) = false;
|
||||||
|
|
||||||
message MsgSubmitProposalBase {
|
message MsgSubmitProposalBase {
|
||||||
option (gogoproto.stringer) = true;
|
option (gogoproto.stringer) = true;
|
||||||
repeated cosmos_sdk.v1.Coin intial_deposit = 1 [(gogoproto.nullable) = false
|
|
||||||
,(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
repeated cosmos_sdk.v1.Coin intial_deposit = 1 [
|
||||||
,(gogoproto.moretags) = "yaml:\"initial_deposit\""];
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
|
(gogoproto.moretags) = "yaml:\"initial_deposit\""
|
||||||
|
];
|
||||||
bytes proposer = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
bytes proposer = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgDeposit defines a message to submit a deposit to an existing proposal
|
// MsgDeposit defines a message to submit a deposit to an existing proposal
|
||||||
message MsgDeposit {
|
message MsgDeposit {
|
||||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"
|
uint64 proposal_id = 1 [
|
||||||
,(gogoproto.moretags) = "yaml:\"proposal_id\""
|
(gogoproto.customname) = "ProposalID",
|
||||||
,(gogoproto.jsontag) = "proposal_id"];
|
(gogoproto.moretags) = "yaml:\"proposal_id\"",
|
||||||
|
(gogoproto.jsontag) = "proposal_id"
|
||||||
|
];
|
||||||
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||||
repeated cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false,
|
repeated cosmos_sdk.v1.Coin amount = 3
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// VoteOption defines a vote option
|
// VoteOption defines a vote option
|
||||||
|
@ -34,6 +39,7 @@ enum VoteOption {
|
||||||
option (gogoproto.enum_stringer) = false;
|
option (gogoproto.enum_stringer) = false;
|
||||||
option (gogoproto.goproto_enum_stringer) = false;
|
option (gogoproto.goproto_enum_stringer) = false;
|
||||||
option (gogoproto.goproto_enum_prefix) = false;
|
option (gogoproto.goproto_enum_prefix) = false;
|
||||||
|
|
||||||
EMPTY = 0 [(gogoproto.enumvalue_customname) = "OptionEmpty"];
|
EMPTY = 0 [(gogoproto.enumvalue_customname) = "OptionEmpty"];
|
||||||
YES = 1 [(gogoproto.enumvalue_customname) = "OptionYes"];
|
YES = 1 [(gogoproto.enumvalue_customname) = "OptionYes"];
|
||||||
ABSTAIN = 2 [(gogoproto.enumvalue_customname) = "OptionAbstain"];
|
ABSTAIN = 2 [(gogoproto.enumvalue_customname) = "OptionAbstain"];
|
||||||
|
@ -43,9 +49,11 @@ enum VoteOption {
|
||||||
|
|
||||||
// MsgVote defines a message to cast a vote
|
// MsgVote defines a message to cast a vote
|
||||||
message MsgVote {
|
message MsgVote {
|
||||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"
|
uint64 proposal_id = 1 [
|
||||||
,(gogoproto.moretags) = "yaml:\"proposal_id\""
|
(gogoproto.customname) = "ProposalID",
|
||||||
,(gogoproto.jsontag) = "proposal_id"];
|
(gogoproto.moretags) = "yaml:\"proposal_id\"",
|
||||||
|
(gogoproto.jsontag) = "proposal_id"
|
||||||
|
];
|
||||||
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||||
VoteOption option = 3;
|
VoteOption option = 3;
|
||||||
}
|
}
|
||||||
|
@ -59,35 +67,37 @@ message TextProposal {
|
||||||
|
|
||||||
// Deposit defines an amount deposited by an account address to an active proposal
|
// Deposit defines an amount deposited by an account address to an active proposal
|
||||||
message Deposit {
|
message Deposit {
|
||||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"
|
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID", (gogoproto.moretags) = "yaml:\"proposal_id\""];
|
||||||
,(gogoproto.moretags) = "yaml:\"proposal_id\""];
|
|
||||||
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||||
repeated cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
repeated cosmos_sdk.v1.Coin amount = 3
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ProposalBase defines the core field members of a governance proposal. It includes
|
||||||
|
// all static fields (i.e fields excluding the dynamic Content). A full proposal
|
||||||
|
// extends the ProposalBase with Content.
|
||||||
message ProposalBase {
|
message ProposalBase {
|
||||||
option (gogoproto.goproto_stringer) = true;
|
option (gogoproto.goproto_stringer) = true;
|
||||||
option (gogoproto.face) = true;
|
option (gogoproto.face) = true;
|
||||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"
|
|
||||||
,(gogoproto.moretags) = "yaml:\"id\""];
|
uint64 proposal_id = 1
|
||||||
|
[(gogoproto.customname) = "ProposalID", (gogoproto.jsontag) = "id", (gogoproto.moretags) = "yaml:\"id\""];
|
||||||
ProposalStatus status = 2 [(gogoproto.moretags) = "yaml:\"proposal_status\""];
|
ProposalStatus status = 2 [(gogoproto.moretags) = "yaml:\"proposal_status\""];
|
||||||
TallyResult final_tally_result = 3 [(gogoproto.nullable) = false
|
TallyResult final_tally_result = 3
|
||||||
,(gogoproto.moretags) = "yaml:\"final_tally_result\""];
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"final_tally_result\""];
|
||||||
google.protobuf.Timestamp submit_time = 4 [(gogoproto.stdtime) = true
|
google.protobuf.Timestamp submit_time = 4
|
||||||
,(gogoproto.nullable) = false
|
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"submit_time\""];
|
||||||
,(gogoproto.moretags) = "yaml:\"submit_time\""];
|
google.protobuf.Timestamp deposit_end_time = 5
|
||||||
google.protobuf.Timestamp deposit_end_time = 5 [(gogoproto.stdtime) = true
|
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""];
|
||||||
,(gogoproto.nullable) = false
|
repeated cosmos_sdk.v1.Coin total_deposit = 6 [
|
||||||
,(gogoproto.moretags) = "yaml:\"deposit_end_time\""];
|
(gogoproto.nullable) = false,
|
||||||
repeated cosmos_sdk.v1.Coin total_deposit = 6 [(gogoproto.nullable) = false
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
,(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
(gogoproto.moretags) = "yaml:\"total_deposit\""
|
||||||
,(gogoproto.moretags) = "yaml:\"total_deposit\""];
|
];
|
||||||
google.protobuf.Timestamp voting_start_time = 7 [(gogoproto.stdtime) = true
|
google.protobuf.Timestamp voting_start_time = 7
|
||||||
,(gogoproto.nullable) = false
|
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_start_time\""];
|
||||||
,(gogoproto.moretags) = "yaml:\"voting_start_time\""];
|
google.protobuf.Timestamp voting_end_time = 8
|
||||||
google.protobuf.Timestamp voting_end_time = 8 [(gogoproto.stdtime) = true
|
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_end_time\""];
|
||||||
,(gogoproto.nullable) = false
|
|
||||||
,(gogoproto.moretags) = "yaml:\"voting_end_time\""];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProposalStatus is a type alias that represents a proposal status as a byte
|
// ProposalStatus is a type alias that represents a proposal status as a byte
|
||||||
|
@ -95,6 +105,7 @@ enum ProposalStatus {
|
||||||
option (gogoproto.enum_stringer) = false;
|
option (gogoproto.enum_stringer) = false;
|
||||||
option (gogoproto.goproto_enum_stringer) = false;
|
option (gogoproto.goproto_enum_stringer) = false;
|
||||||
option (gogoproto.goproto_enum_prefix) = false;
|
option (gogoproto.goproto_enum_prefix) = false;
|
||||||
|
|
||||||
NIL = 0 [(gogoproto.enumvalue_customname) = "StatusNil"];
|
NIL = 0 [(gogoproto.enumvalue_customname) = "StatusNil"];
|
||||||
DEPOSIT_PERIOD = 1 [(gogoproto.enumvalue_customname) = "StatusDepositPeriod"];
|
DEPOSIT_PERIOD = 1 [(gogoproto.enumvalue_customname) = "StatusDepositPeriod"];
|
||||||
VOTING_PERIOD = 2 [(gogoproto.enumvalue_customname) = "StatusVotingPeriod"];
|
VOTING_PERIOD = 2 [(gogoproto.enumvalue_customname) = "StatusVotingPeriod"];
|
||||||
|
@ -105,29 +116,33 @@ enum ProposalStatus {
|
||||||
|
|
||||||
// TallyResult defines a standard tally for a proposal
|
// TallyResult defines a standard tally for a proposal
|
||||||
message TallyResult {
|
message TallyResult {
|
||||||
bytes yes = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
string yes = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
||||||
bytes abstain = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
string abstain = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
||||||
bytes no = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
string no = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
|
||||||
bytes no_with_veto = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false
|
string no_with_veto = 4 [
|
||||||
,(gogoproto.moretags) = "yaml:\"no_with_veto\""];
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.moretags) = "yaml:\"no_with_veto\""
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vote defines a vote on a governance proposal. A vote corresponds to a proposal
|
||||||
|
// ID, the voter, and the vote option.
|
||||||
message Vote {
|
message Vote {
|
||||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"
|
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID", (gogoproto.moretags) = "yaml:\"proposal_id\""];
|
||||||
,(gogoproto.moretags) = "yaml:\"proposal_id\""];
|
|
||||||
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||||
VoteOption option = 3;
|
VoteOption option = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message BasicProposal {
|
// message BasicProposal {
|
||||||
ProposalBase base = 1 [(gogoproto.embed) = true];
|
// ProposalBase base = 1 [(gogoproto.embed) = true];
|
||||||
BasicContent content = 2;
|
// BasicContent content = 2;
|
||||||
}
|
// }
|
||||||
|
|
||||||
message BasicContent {
|
// message BasicContent {
|
||||||
option (cosmos_proto.interface_type) = "Content";
|
// option (cosmos_proto.interface_type) = "Content";
|
||||||
option (gogoproto.stringer) = true;
|
// option (gogoproto.stringer) = true;
|
||||||
oneof sum {
|
// oneof sum {
|
||||||
TextProposal text = 1;
|
// TextProposal text = 1;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
Loading…
Reference in New Issue