From 3bc80ed5657f02a9d3377cb1159582f78dc92703 Mon Sep 17 00:00:00 2001 From: PaddyMc Date: Thu, 23 Nov 2023 21:34:33 +0000 Subject: [PATCH] chore: add missing proto fields to gov v1 --- proto/cosmos/gov/v1/gov.proto | 15 ++ x/gov/types/v1/gov.pb.go | 289 ++++++++++++++++++++++++---------- 2 files changed, 218 insertions(+), 86 deletions(-) diff --git a/proto/cosmos/gov/v1/gov.proto b/proto/cosmos/gov/v1/gov.proto index 2efd068ac758..db8c0b3754d9 100644 --- a/proto/cosmos/gov/v1/gov.proto +++ b/proto/cosmos/gov/v1/gov.proto @@ -166,6 +166,21 @@ message DepositParams { // months. google.protobuf.Duration max_deposit_period = 2 [(gogoproto.stdduration) = true, (gogoproto.jsontag) = "max_deposit_period,omitempty"]; + + // Minimum expedited deposit for a proposal to enter voting period. + repeated cosmos.base.v1beta1.Coin min_expedited_deposit = 3 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.moretags) = "yaml:\"min_expedited_deposit\"", + (gogoproto.jsontag) = "min_expedited_deposit,omitempty" + ]; + + // The ratio representing the proportion of the deposit value that must be paid at proposal submission. + string min_initial_deposit_ratio = 4 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.jsontag) = "min_initial_deposit_ratio,omitempty" + ]; } // VotingParams defines the params for voting on governance proposals. diff --git a/x/gov/types/v1/gov.pb.go b/x/gov/types/v1/gov.pb.go index 0312e32938d3..f34cd599ac98 100644 --- a/x/gov/types/v1/gov.pb.go +++ b/x/gov/types/v1/gov.pb.go @@ -7,6 +7,7 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types1 "github.com/cosmos/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" @@ -570,6 +571,10 @@ type DepositParams struct { // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. MaxDepositPeriod *time.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty"` + // Minimum expedited deposit for a proposal to enter voting period. + MinExpeditedDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=min_expedited_deposit,json=minExpeditedDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_expedited_deposit,omitempty" yaml:"min_expedited_deposit"` + // The ratio representing the proportion of the deposit value that must be paid at proposal submission. + MinInitialDepositRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=min_initial_deposit_ratio,json=minInitialDepositRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_initial_deposit_ratio,omitempty"` } func (m *DepositParams) Reset() { *m = DepositParams{} } @@ -619,6 +624,13 @@ func (m *DepositParams) GetMaxDepositPeriod() *time.Duration { return nil } +func (m *DepositParams) GetMinExpeditedDeposit() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.MinExpeditedDeposit + } + return nil +} + // VotingParams defines the params for voting on governance proposals. // // Deprecated: Do not use. @@ -915,92 +927,97 @@ func init() { func init() { proto.RegisterFile("cosmos/gov/v1/gov.proto", fileDescriptor_e05cb1c0d030febb) } var fileDescriptor_e05cb1c0d030febb = []byte{ - // 1348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xd3, 0x46, - 0x14, 0x8f, 0x6c, 0xc7, 0x71, 0x9e, 0x63, 0xc7, 0x2c, 0x81, 0x28, 0x81, 0xd8, 0xc1, 0xc3, 0x30, - 0x29, 0x7f, 0xec, 0x06, 0x4a, 0x0f, 0xa5, 0x33, 0x1d, 0x27, 0x16, 0x45, 0x0c, 0xc4, 0xae, 0x6c, - 0x1c, 0xe8, 0x45, 0x23, 0x47, 0x8b, 0xb3, 0x53, 0x4b, 0xeb, 0x4a, 0x6b, 0x13, 0x7f, 0x84, 0xde, - 0x38, 0xf6, 0xd4, 0xe9, 0xb1, 0xc7, 0x1e, 0x98, 0x7e, 0x81, 0x5e, 0x38, 0x75, 0x18, 0x2e, 0xed, - 0xa5, 0xd0, 0x81, 0x43, 0x67, 0xf8, 0x14, 0x9d, 0x5d, 0xad, 0x2c, 0xc7, 0x71, 0x27, 0x09, 0x97, - 0xc4, 0x7a, 0xef, 0xf7, 0x7b, 0xef, 0xed, 0xfb, 0xb7, 0x12, 0x2c, 0xef, 0x51, 0xdf, 0xa1, 0x7e, - 0xb9, 0x43, 0x07, 0xe5, 0xc1, 0x26, 0xff, 0x57, 0xea, 0x79, 0x94, 0x51, 0x94, 0x09, 0x14, 0x25, - 0x2e, 0x19, 0x6c, 0xae, 0xe6, 0x25, 0xae, 0x6d, 0xf9, 0xb8, 0x3c, 0xd8, 0x6c, 0x63, 0x66, 0x6d, - 0x96, 0xf7, 0x28, 0x71, 0x03, 0xf8, 0xea, 0x52, 0x87, 0x76, 0xa8, 0xf8, 0x59, 0xe6, 0xbf, 0xa4, - 0xb4, 0xd0, 0xa1, 0xb4, 0xd3, 0xc5, 0x65, 0xf1, 0xd4, 0xee, 0x3f, 0x2d, 0x33, 0xe2, 0x60, 0x9f, - 0x59, 0x4e, 0x4f, 0x02, 0x56, 0x26, 0x01, 0x96, 0x3b, 0x94, 0xaa, 0xfc, 0xa4, 0xca, 0xee, 0x7b, - 0x16, 0x23, 0x34, 0xf4, 0xb8, 0x12, 0x44, 0x64, 0x06, 0x4e, 0x65, 0xb4, 0x81, 0xea, 0x8c, 0xe5, - 0x10, 0x97, 0x96, 0xc5, 0xdf, 0x40, 0x54, 0xa4, 0x80, 0x76, 0x31, 0xe9, 0xec, 0x33, 0x6c, 0xb7, - 0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0x6e, 0x43, 0xd2, 0x67, 0x16, 0xeb, 0xfb, 0x6a, 0x5c, - 0x24, 0x73, 0x6d, 0x22, 0x99, 0xa1, 0xab, 0x86, 0x00, 0x19, 0x12, 0x8c, 0xee, 0x01, 0x7a, 0x4a, - 0x5c, 0xab, 0x6b, 0x32, 0xab, 0xdb, 0x1d, 0x9a, 0x1e, 0xf6, 0xfb, 0x5d, 0xa6, 0x26, 0xd6, 0x95, - 0x8d, 0xf4, 0xcd, 0xd5, 0x09, 0x13, 0x4d, 0x0e, 0x31, 0x04, 0xc2, 0xc8, 0x09, 0xd6, 0x98, 0x04, - 0x55, 0x20, 0xed, 0xf7, 0xdb, 0x0e, 0x61, 0x26, 0x6f, 0x33, 0x75, 0x56, 0x9a, 0x98, 0x8c, 0xba, - 0x19, 0xf6, 0xe0, 0x56, 0xe2, 0xf9, 0xdb, 0x82, 0x62, 0x40, 0x40, 0xe2, 0x62, 0x74, 0x1f, 0x72, - 0x32, 0xbb, 0x26, 0x76, 0xed, 0xc0, 0x4e, 0xf2, 0x84, 0x76, 0xb2, 0x92, 0xa9, 0xb9, 0xb6, 0xb0, - 0xa5, 0x43, 0x86, 0x51, 0x66, 0x75, 0x4d, 0x29, 0x57, 0xe7, 0x4e, 0x51, 0xa3, 0x05, 0x41, 0x0d, - 0x1b, 0xe8, 0x01, 0x9c, 0x19, 0x50, 0x46, 0xdc, 0x8e, 0xe9, 0x33, 0xcb, 0x93, 0xe7, 0x4b, 0x9d, - 0x30, 0xae, 0xc5, 0x80, 0xda, 0xe0, 0x4c, 0x11, 0xd8, 0x3d, 0x90, 0xa2, 0xe8, 0x8c, 0xf3, 0x27, - 0xb4, 0x95, 0x09, 0x88, 0xe1, 0x11, 0x57, 0x79, 0x93, 0x30, 0xcb, 0xb6, 0x98, 0xa5, 0x02, 0x6f, - 0x5b, 0x63, 0xf4, 0x8c, 0x96, 0x60, 0x96, 0x11, 0xd6, 0xc5, 0x6a, 0x5a, 0x28, 0x82, 0x07, 0x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xca, 0x07, 0xe2, 0x03, 0x89, 0x0d, 0x7b, 0xd8, 0xe7, - 0x5f, 0x3f, 0x49, 0x31, 0x01, 0xb7, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x09, 0x89, 0x48, - 0x3e, 0x0d, 0x00, 0x00, + // 1440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x73, 0xd3, 0xc6, + 0x17, 0x8f, 0x6c, 0xc7, 0x71, 0x9e, 0x63, 0xc7, 0x6c, 0x02, 0x51, 0x42, 0x62, 0x07, 0x7f, 0x19, + 0x26, 0x5f, 0x7e, 0xd8, 0x0d, 0x94, 0x1e, 0xa0, 0x33, 0x1d, 0x27, 0x16, 0xc5, 0x0c, 0xc4, 0xae, + 0x6c, 0x12, 0xe8, 0x45, 0xa3, 0x44, 0x8b, 0xb3, 0x53, 0x4b, 0xeb, 0x4a, 0xeb, 0x10, 0xff, 0x09, + 0xbd, 0x71, 0xec, 0xa9, 0xd3, 0x63, 0xa7, 0xa7, 0x1e, 0x68, 0xff, 0x80, 0xf6, 0xc2, 0xa9, 0xc3, + 0x70, 0x69, 0xa7, 0x87, 0xd0, 0x81, 0x43, 0x67, 0x38, 0xf6, 0x2f, 0xe8, 0xec, 0x6a, 0x65, 0x39, + 0x8e, 0x43, 0x1c, 0x2e, 0x89, 0xf4, 0xde, 0xe7, 0xf3, 0xf6, 0xed, 0xfb, 0x29, 0xc3, 0xdc, 0x0e, + 0xf5, 0x6c, 0xea, 0x15, 0x9b, 0x74, 0xaf, 0xb8, 0xb7, 0xca, 0xff, 0x15, 0xda, 0x2e, 0x65, 0x14, + 0xa5, 0x7c, 0x45, 0x81, 0x4b, 0xf6, 0x56, 0x17, 0xb2, 0x12, 0xb7, 0x6d, 0x7a, 0xb8, 0xb8, 0xb7, + 0xba, 0x8d, 0x99, 0xb9, 0x5a, 0xdc, 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x32, 0x35, 0xc7, 0x12, 0xb6, 0x2a, 0x90, 0x62, 0x94, 0x99, 0x2d, 0x43, 0xca, 0xd5, 0x89, 0x53, + 0xe4, 0x68, 0x4a, 0x50, 0x83, 0x02, 0xba, 0x0f, 0x67, 0xf6, 0x28, 0x23, 0x4e, 0xd3, 0xf0, 0x98, + 0xe9, 0xca, 0xfb, 0x25, 0x46, 0xf4, 0x6b, 0xda, 0xa7, 0xd6, 0x39, 0x53, 0x38, 0x76, 0x17, 0xa4, + 0x28, 0xbc, 0xe3, 0xe4, 0x88, 0xb6, 0x52, 0x3e, 0x31, 0xb8, 0xe2, 0x02, 0x2f, 0x12, 0x66, 0x5a, + 0x26, 0x33, 0x55, 0xe0, 0x65, 0xab, 0xf7, 0xde, 0xd1, 0x2c, 0x8c, 0x33, 0xc2, 0x5a, 0x58, 0x4d, + 0x0a, 0x85, 0xff, 0x82, 0x54, 0x98, 0xf0, 0x3a, 0xb6, 0x6d, 0xba, 0x5d, 0x75, 0x4a, 0xc8, 0x83, + 0x57, 0xf4, 0x31, 0x24, 0xfc, 0x8e, 0xc0, 0xae, 0x9a, 0x3a, 0xa1, 0x05, 0x7a, 0x48, 0xb4, 0x08, + 0x93, 0x78, 0xbf, 0x8d, 0x2d, 0xc2, 0xb0, 0xa5, 0xa6, 0x97, 0x95, 0x95, 0x84, 0x1e, 0x0a, 0xf2, + 0x7f, 0x28, 0x90, 0xec, 0xaf, 0x90, 0x2b, 0x30, 0xd9, 0xc5, 0x9e, 0xb1, 0x23, 0x5a, 0x46, 0x39, + 0xd2, 0xbf, 0x15, 0x87, 0xe9, 0x89, 0x2e, 0xf6, 0xd6, 0xb9, 0x1e, 0xdd, 0x80, 0x94, 0xb9, 0xed, + 0x31, 0x93, 0x38, 0x92, 0x10, 0x19, 0x4a, 0x98, 0x92, 0x20, 0x9f, 0xf4, 0x7f, 0x48, 0x38, 0x54, + 0xe2, 0xa3, 0x43, 0xf1, 0x13, 0x0e, 0xf5, 0xa1, 0xb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x80, 0x1b, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc2, 0xc3, 0xd1, 0x54, 0x96, 0x0e, 0x00, 0x00, } func (m *WeightedVoteOption) Marshal() (dAtA []byte, err error) { @@ -1365,6 +1382,30 @@ func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.MinInitialDepositRatio.Size() + i -= size + if _, err := m.MinInitialDepositRatio.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.MinExpeditedDeposit) > 0 { + for iNdEx := len(m.MinExpeditedDeposit) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MinExpeditedDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } if m.MaxDepositPeriod != nil { n6, err6 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.MaxDepositPeriod, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.MaxDepositPeriod):]) if err6 != nil { @@ -1797,6 +1838,14 @@ func (m *DepositParams) Size() (n int) { l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.MaxDepositPeriod) n += 1 + l + sovGov(uint64(l)) } + if len(m.MinExpeditedDeposit) > 0 { + for _, e := range m.MinExpeditedDeposit { + l = e.Size() + n += 1 + l + sovGov(uint64(l)) + } + } + l = m.MinInitialDepositRatio.Size() + n += 1 + l + sovGov(uint64(l)) return n } @@ -3066,6 +3115,74 @@ func (m *DepositParams) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinExpeditedDeposit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGov + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MinExpeditedDeposit = append(m.MinExpeditedDeposit, types.Coin{}) + if err := m.MinExpeditedDeposit[len(m.MinExpeditedDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinInitialDepositRatio", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinInitialDepositRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGov(dAtA[iNdEx:])