feat(x/gov): add max cancel voting period param (#18856)
This commit is contained in:
parent
77b2366819
commit
e1e8c46c21
@ -5644,49 +5644,49 @@ func (x *_Params_12_list) IsValid() bool {
|
||||
return x.list != nil
|
||||
}
|
||||
|
||||
var _ protoreflect.List = (*_Params_17_list)(nil)
|
||||
var _ protoreflect.List = (*_Params_18_list)(nil)
|
||||
|
||||
type _Params_17_list struct {
|
||||
type _Params_18_list struct {
|
||||
list *[]string
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) Len() int {
|
||||
func (x *_Params_18_list) Len() int {
|
||||
if x.list == nil {
|
||||
return 0
|
||||
}
|
||||
return len(*x.list)
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) Get(i int) protoreflect.Value {
|
||||
func (x *_Params_18_list) Get(i int) protoreflect.Value {
|
||||
return protoreflect.ValueOfString((*x.list)[i])
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) Set(i int, value protoreflect.Value) {
|
||||
func (x *_Params_18_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.String()
|
||||
concreteValue := valueUnwrapped
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) Append(value protoreflect.Value) {
|
||||
func (x *_Params_18_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.String()
|
||||
concreteValue := valueUnwrapped
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) AppendMutable() protoreflect.Value {
|
||||
func (x *_Params_18_list) AppendMutable() protoreflect.Value {
|
||||
panic(fmt.Errorf("AppendMutable can not be called on message Params at list field OptimisticAuthorizedAddresses as it is not of Message kind"))
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) Truncate(n int) {
|
||||
func (x *_Params_18_list) Truncate(n int) {
|
||||
*x.list = (*x.list)[:n]
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) NewElement() protoreflect.Value {
|
||||
func (x *_Params_18_list) NewElement() protoreflect.Value {
|
||||
v := ""
|
||||
return protoreflect.ValueOfString(v)
|
||||
}
|
||||
|
||||
func (x *_Params_17_list) IsValid() bool {
|
||||
func (x *_Params_18_list) IsValid() bool {
|
||||
return x.list != nil
|
||||
}
|
||||
|
||||
@ -5708,6 +5708,7 @@ var (
|
||||
fd_Params_burn_proposal_deposit_prevote protoreflect.FieldDescriptor
|
||||
fd_Params_burn_vote_veto protoreflect.FieldDescriptor
|
||||
fd_Params_min_deposit_ratio protoreflect.FieldDescriptor
|
||||
fd_Params_proposal_cancel_max_period protoreflect.FieldDescriptor
|
||||
fd_Params_optimistic_authorized_addresses protoreflect.FieldDescriptor
|
||||
fd_Params_optimistic_rejected_threshold protoreflect.FieldDescriptor
|
||||
)
|
||||
@ -5731,6 +5732,7 @@ func init() {
|
||||
fd_Params_burn_proposal_deposit_prevote = md_Params.Fields().ByName("burn_proposal_deposit_prevote")
|
||||
fd_Params_burn_vote_veto = md_Params.Fields().ByName("burn_vote_veto")
|
||||
fd_Params_min_deposit_ratio = md_Params.Fields().ByName("min_deposit_ratio")
|
||||
fd_Params_proposal_cancel_max_period = md_Params.Fields().ByName("proposal_cancel_max_period")
|
||||
fd_Params_optimistic_authorized_addresses = md_Params.Fields().ByName("optimistic_authorized_addresses")
|
||||
fd_Params_optimistic_rejected_threshold = md_Params.Fields().ByName("optimistic_rejected_threshold")
|
||||
}
|
||||
@ -5896,8 +5898,14 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto
|
||||
return
|
||||
}
|
||||
}
|
||||
if x.ProposalCancelMaxPeriod != "" {
|
||||
value := protoreflect.ValueOfString(x.ProposalCancelMaxPeriod)
|
||||
if !f(fd_Params_proposal_cancel_max_period, value) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if len(x.OptimisticAuthorizedAddresses) != 0 {
|
||||
value := protoreflect.ValueOfList(&_Params_17_list{list: &x.OptimisticAuthorizedAddresses})
|
||||
value := protoreflect.ValueOfList(&_Params_18_list{list: &x.OptimisticAuthorizedAddresses})
|
||||
if !f(fd_Params_optimistic_authorized_addresses, value) {
|
||||
return
|
||||
}
|
||||
@ -5955,6 +5963,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
return x.BurnVoteVeto != false
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
return x.MinDepositRatio != ""
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
return x.ProposalCancelMaxPeriod != ""
|
||||
case "cosmos.gov.v1.Params.optimistic_authorized_addresses":
|
||||
return len(x.OptimisticAuthorizedAddresses) != 0
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
@ -6007,6 +6017,8 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
|
||||
x.BurnVoteVeto = false
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
x.MinDepositRatio = ""
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
x.ProposalCancelMaxPeriod = ""
|
||||
case "cosmos.gov.v1.Params.optimistic_authorized_addresses":
|
||||
x.OptimisticAuthorizedAddresses = nil
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
@ -6081,11 +6093,14 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
value := x.MinDepositRatio
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
value := x.ProposalCancelMaxPeriod
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "cosmos.gov.v1.Params.optimistic_authorized_addresses":
|
||||
if len(x.OptimisticAuthorizedAddresses) == 0 {
|
||||
return protoreflect.ValueOfList(&_Params_17_list{})
|
||||
return protoreflect.ValueOfList(&_Params_18_list{})
|
||||
}
|
||||
listValue := &_Params_17_list{list: &x.OptimisticAuthorizedAddresses}
|
||||
listValue := &_Params_18_list{list: &x.OptimisticAuthorizedAddresses}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
value := x.OptimisticRejectedThreshold
|
||||
@ -6146,9 +6161,11 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto
|
||||
x.BurnVoteVeto = value.Bool()
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
x.MinDepositRatio = value.Interface().(string)
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
x.ProposalCancelMaxPeriod = value.Interface().(string)
|
||||
case "cosmos.gov.v1.Params.optimistic_authorized_addresses":
|
||||
lv := value.List()
|
||||
clv := lv.(*_Params_17_list)
|
||||
clv := lv.(*_Params_18_list)
|
||||
x.OptimisticAuthorizedAddresses = *clv.list
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
x.OptimisticRejectedThreshold = value.Interface().(string)
|
||||
@ -6203,7 +6220,7 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
if x.OptimisticAuthorizedAddresses == nil {
|
||||
x.OptimisticAuthorizedAddresses = []string{}
|
||||
}
|
||||
value := &_Params_17_list{list: &x.OptimisticAuthorizedAddresses}
|
||||
value := &_Params_18_list{list: &x.OptimisticAuthorizedAddresses}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.gov.v1.Params.quorum":
|
||||
panic(fmt.Errorf("field quorum of message cosmos.gov.v1.Params is not mutable"))
|
||||
@ -6227,6 +6244,8 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
panic(fmt.Errorf("field burn_vote_veto of message cosmos.gov.v1.Params is not mutable"))
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
panic(fmt.Errorf("field min_deposit_ratio of message cosmos.gov.v1.Params is not mutable"))
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
panic(fmt.Errorf("field proposal_cancel_max_period of message cosmos.gov.v1.Params is not mutable"))
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
panic(fmt.Errorf("field optimistic_rejected_threshold of message cosmos.gov.v1.Params is not mutable"))
|
||||
default:
|
||||
@ -6279,9 +6298,11 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
return protoreflect.ValueOfBool(false)
|
||||
case "cosmos.gov.v1.Params.min_deposit_ratio":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.gov.v1.Params.proposal_cancel_max_period":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.gov.v1.Params.optimistic_authorized_addresses":
|
||||
list := []string{}
|
||||
return protoreflect.ValueOfList(&_Params_17_list{list: &list})
|
||||
return protoreflect.ValueOfList(&_Params_18_list{list: &list})
|
||||
case "cosmos.gov.v1.Params.optimistic_rejected_threshold":
|
||||
return protoreflect.ValueOfString("")
|
||||
default:
|
||||
@ -6418,6 +6439,10 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
if l > 0 {
|
||||
n += 2 + l + runtime.Sov(uint64(l))
|
||||
}
|
||||
l = len(x.ProposalCancelMaxPeriod)
|
||||
if l > 0 {
|
||||
n += 2 + l + runtime.Sov(uint64(l))
|
||||
}
|
||||
if len(x.OptimisticAuthorizedAddresses) > 0 {
|
||||
for _, s := range x.OptimisticAuthorizedAddresses {
|
||||
l = len(s)
|
||||
@ -6464,7 +6489,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x92
|
||||
dAtA[i] = 0x9a
|
||||
}
|
||||
if len(x.OptimisticAuthorizedAddresses) > 0 {
|
||||
for iNdEx := len(x.OptimisticAuthorizedAddresses) - 1; iNdEx >= 0; iNdEx-- {
|
||||
@ -6474,9 +6499,18 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x8a
|
||||
dAtA[i] = 0x92
|
||||
}
|
||||
}
|
||||
if len(x.ProposalCancelMaxPeriod) > 0 {
|
||||
i -= len(x.ProposalCancelMaxPeriod)
|
||||
copy(dAtA[i:], x.ProposalCancelMaxPeriod)
|
||||
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProposalCancelMaxPeriod)))
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x8a
|
||||
}
|
||||
if len(x.MinDepositRatio) > 0 {
|
||||
i -= len(x.MinDepositRatio)
|
||||
copy(dAtA[i:], x.MinDepositRatio)
|
||||
@ -7181,6 +7215,38 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
x.MinDepositRatio = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 17:
|
||||
if wireType != 2 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalCancelMaxPeriod", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||||
}
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.ProposalCancelMaxPeriod = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 18:
|
||||
if wireType != 2 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OptimisticAuthorizedAddresses", wireType)
|
||||
}
|
||||
@ -7212,7 +7278,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
}
|
||||
x.OptimisticAuthorizedAddresses = append(x.OptimisticAuthorizedAddresses, string(dAtA[iNdEx:postIndex]))
|
||||
iNdEx = postIndex
|
||||
case 18:
|
||||
case 19:
|
||||
if wireType != 2 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OptimisticRejectedThreshold", wireType)
|
||||
}
|
||||
@ -8132,10 +8198,16 @@ type Params struct {
|
||||
// Minimum expedited deposit for a proposal to enter voting period.
|
||||
ExpeditedMinDeposit []*v1beta1.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit,omitempty"`
|
||||
// burn deposits if a proposal does not meet quorum
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnVoteQuorum bool `protobuf:"varint,13,opt,name=burn_vote_quorum,json=burnVoteQuorum,proto3" json:"burn_vote_quorum,omitempty"`
|
||||
// burn deposits if the proposal does not enter voting period
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnProposalDepositPrevote bool `protobuf:"varint,14,opt,name=burn_proposal_deposit_prevote,json=burnProposalDepositPrevote,proto3" json:"burn_proposal_deposit_prevote,omitempty"`
|
||||
// burn deposits if quorum with vote type no_veto is met
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnVoteVeto bool `protobuf:"varint,15,opt,name=burn_vote_veto,json=burnVoteVeto,proto3" json:"burn_vote_veto,omitempty"`
|
||||
// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
|
||||
// Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
|
||||
@ -8143,16 +8215,21 @@ type Params struct {
|
||||
//
|
||||
// Since: cosmos-sdk 0.50
|
||||
MinDepositRatio string `protobuf:"bytes,16,opt,name=min_deposit_ratio,json=minDepositRatio,proto3" json:"min_deposit_ratio,omitempty"`
|
||||
// proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal.
|
||||
// If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the
|
||||
// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
|
||||
// After the max cancel period, the proposal cannot be cancelled anymore.
|
||||
ProposalCancelMaxPeriod string `protobuf:"bytes,17,opt,name=proposal_cancel_max_period,json=proposalCancelMaxPeriod,proto3" json:"proposal_cancel_max_period,omitempty"`
|
||||
// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
|
||||
// submit optimistic proposals
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
OptimisticAuthorizedAddresses []string `protobuf:"bytes,17,rep,name=optimistic_authorized_addresses,json=optimisticAuthorizedAddresses,proto3" json:"optimistic_authorized_addresses,omitempty"`
|
||||
OptimisticAuthorizedAddresses []string `protobuf:"bytes,18,rep,name=optimistic_authorized_addresses,json=optimisticAuthorizedAddresses,proto3" json:"optimistic_authorized_addresses,omitempty"`
|
||||
// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
|
||||
// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
OptimisticRejectedThreshold string `protobuf:"bytes,18,opt,name=optimistic_rejected_threshold,json=optimisticRejectedThreshold,proto3" json:"optimistic_rejected_threshold,omitempty"`
|
||||
OptimisticRejectedThreshold string `protobuf:"bytes,19,opt,name=optimistic_rejected_threshold,json=optimisticRejectedThreshold,proto3" json:"optimistic_rejected_threshold,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Params) Reset() {
|
||||
@ -8287,6 +8364,13 @@ func (x *Params) GetMinDepositRatio() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Params) GetProposalCancelMaxPeriod() string {
|
||||
if x != nil {
|
||||
return x.ProposalCancelMaxPeriod
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Params) GetOptimisticAuthorizedAddresses() []string {
|
||||
if x != nil {
|
||||
return x.OptimisticAuthorizedAddresses
|
||||
@ -8446,7 +8530,7 @@ var file_cosmos_gov_v1_gov_proto_rawDesc = []byte{
|
||||
0x65, 0x74, 0x6f, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x09, 0x42, 0x0e, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x44, 0x65, 0x63, 0x52, 0x0d, 0x76, 0x65, 0x74, 0x6f, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
|
||||
0x6c, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xc5, 0x09, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x6c, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x92, 0x0a, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
|
||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69,
|
||||
@ -8511,68 +8595,73 @@ var file_cosmos_gov_v1_gov_proto_rawDesc = []byte{
|
||||
0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x70, 0x6f,
|
||||
0x73, 0x69, 0x74, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x60, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65,
|
||||
0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28,
|
||||
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x1d, 0x6f, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65,
|
||||
0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x1d, 0x6f, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65,
|
||||
0x64, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28,
|
||||
0x09, 0x42, 0x0e, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65,
|
||||
0x63, 0x52, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x65, 0x6a,
|
||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x2a, 0xa7,
|
||||
0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||
0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45,
|
||||
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a,
|
||||
0x0a, 0x16, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
|
||||
0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52,
|
||||
0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54,
|
||||
0x49, 0x50, 0x4c, 0x45, 0x5f, 0x43, 0x48, 0x4f, 0x49, 0x43, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a,
|
||||
0x18, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f,
|
||||
0x50, 0x54, 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x50,
|
||||
0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x50,
|
||||
0x45, 0x44, 0x49, 0x54, 0x45, 0x44, 0x10, 0x04, 0x2a, 0xfa, 0x01, 0x0a, 0x0a, 0x56, 0x6f, 0x74,
|
||||
0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x56, 0x4f, 0x54, 0x45, 0x5f,
|
||||
0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
|
||||
0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54,
|
||||
0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54,
|
||||
0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x59, 0x45, 0x53, 0x10, 0x01, 0x12, 0x13,
|
||||
0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x57,
|
||||
0x4f, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49,
|
||||
0x4f, 0x4e, 0x5f, 0x41, 0x42, 0x53, 0x54, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11,
|
||||
0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x48, 0x52, 0x45,
|
||||
0x45, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49,
|
||||
0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4f, 0x54, 0x45, 0x5f,
|
||||
0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x55, 0x52, 0x10, 0x04, 0x12, 0x1c, 0x0a,
|
||||
0x18, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f,
|
||||
0x57, 0x49, 0x54, 0x48, 0x5f, 0x56, 0x45, 0x54, 0x4f, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x56,
|
||||
0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x50, 0x41, 0x4d, 0x10,
|
||||
0x05, 0x1a, 0x02, 0x10, 0x01, 0x2a, 0xce, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73,
|
||||
0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x50,
|
||||
0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,
|
||||
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f,
|
||||
0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x50,
|
||||
0x4f, 0x53, 0x49, 0x54, 0x5f, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a,
|
||||
0x1d, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
|
||||
0x5f, 0x56, 0x4f, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x10, 0x02,
|
||||
0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41,
|
||||
0x54, 0x55, 0x53, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18,
|
||||
0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
|
||||
0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52,
|
||||
0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41,
|
||||
0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x42, 0x99, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x47, 0x6f,
|
||||
0x76, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 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,
|
||||
0x73, 0x69, 0x74, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x4b, 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x70,
|
||||
0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x6d, 0x61, 0x78, 0x5f,
|
||||
0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xd2, 0xb4,
|
||||
0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x17, 0x70, 0x72,
|
||||
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4d, 0x61, 0x78, 0x50,
|
||||
0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x60, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73,
|
||||
0x74, 0x69, 0x63, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61,
|
||||
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18,
|
||||
0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65,
|
||||
0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x1d, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69,
|
||||
0x73, 0x74, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64,
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x1d, 0x6f, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x69, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x74,
|
||||
0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e,
|
||||
0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x1b,
|
||||
0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74,
|
||||
0x65, 0x64, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x2a, 0xa7, 0x01, 0x0a, 0x0c,
|
||||
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19,
|
||||
0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
|
||||
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50,
|
||||
0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41,
|
||||
0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x50, 0x4f,
|
||||
0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x4c,
|
||||
0x45, 0x5f, 0x43, 0x48, 0x4f, 0x49, 0x43, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52,
|
||||
0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49,
|
||||
0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x50,
|
||||
0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x45, 0x44, 0x49,
|
||||
0x54, 0x45, 0x44, 0x10, 0x04, 0x2a, 0xfa, 0x01, 0x0a, 0x0a, 0x56, 0x6f, 0x74, 0x65, 0x4f, 0x70,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54,
|
||||
0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
||||
0x00, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e,
|
||||
0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f,
|
||||
0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x59, 0x45, 0x53, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56,
|
||||
0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02,
|
||||
0x12, 0x17, 0x0a, 0x13, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
||||
0x41, 0x42, 0x53, 0x54, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x4f, 0x54,
|
||||
0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0x03,
|
||||
0x12, 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
||||
0x4e, 0x4f, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4f, 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54,
|
||||
0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x55, 0x52, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x56, 0x4f,
|
||||
0x54, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x57, 0x49, 0x54,
|
||||
0x48, 0x5f, 0x56, 0x45, 0x54, 0x4f, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4f, 0x54, 0x45,
|
||||
0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x50, 0x41, 0x4d, 0x10, 0x05, 0x1a, 0x02,
|
||||
0x10, 0x01, 0x2a, 0xce, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x53,
|
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41,
|
||||
0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
|
||||
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53,
|
||||
0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49,
|
||||
0x54, 0x5f, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52,
|
||||
0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x4f,
|
||||
0x54, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a,
|
||||
0x16, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
|
||||
0x5f, 0x50, 0x41, 0x53, 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f,
|
||||
0x50, 0x4f, 0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x4a,
|
||||
0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x50, 0x4f,
|
||||
0x53, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45,
|
||||
0x44, 0x10, 0x05, 0x42, 0x99, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x2e, 0x67, 0x6f, 0x76, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x47, 0x6f, 0x76, 0x50, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b,
|
||||
0x2e, 0x69, 0x6f, 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 (
|
||||
|
||||
@ -289,12 +289,18 @@ message Params {
|
||||
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||
|
||||
// burn deposits if a proposal does not meet quorum
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
bool burn_vote_quorum = 13;
|
||||
|
||||
// burn deposits if the proposal does not enter voting period
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
bool burn_proposal_deposit_prevote = 14;
|
||||
|
||||
// burn deposits if quorum with vote type no_veto is met
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
bool burn_vote_veto = 15;
|
||||
|
||||
// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
|
||||
@ -304,15 +310,21 @@ message Params {
|
||||
// Since: cosmos-sdk 0.50
|
||||
string min_deposit_ratio = 16 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
||||
|
||||
// proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal.
|
||||
// If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the
|
||||
// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
|
||||
// After the max cancel period, the proposal cannot be cancelled anymore.
|
||||
string proposal_cancel_max_period = 17 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
||||
|
||||
// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
|
||||
// submit optimistic proposals
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
repeated string optimistic_authorized_addresses = 17 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
repeated string optimistic_authorized_addresses = 18 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
|
||||
// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
|
||||
// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
string optimistic_rejected_threshold = 18 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
||||
string optimistic_rejected_threshold = 19 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
||||
}
|
||||
|
||||
@ -33,7 +33,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
### Improvements
|
||||
|
||||
* [#18445](https://github.com/cosmos/cosmos-sdk/pull/18445) Extend gov config
|
||||
* [#18856](https://github.com/cosmos/cosmos-sdk/pull/18856) Add `ProposalCancelMaxPeriod` for modifying how long a proposal can be cancelled after it has been submitted.
|
||||
* [#18445](https://github.com/cosmos/cosmos-sdk/pull/18445) Extend gov config.
|
||||
* [#18532](https://github.com/cosmos/cosmos-sdk/pull/18532) Repurpose `govcliutils.NormalizeProposalType` to work for gov v1 proposal types.
|
||||
|
||||
### API Breaking Changes
|
||||
|
||||
@ -591,23 +591,26 @@ The governance module emits the following events:
|
||||
|
||||
The governance module contains the following parameters:
|
||||
|
||||
| Key | Type | Example |
|
||||
| ------------------------------- | ---------------------- | --------------------------------------- |
|
||||
| min_deposit | array (coins) | [{"denom":"uatom","amount":"10000000"}] |
|
||||
| max_deposit_period | string (time ns) | "172800000000000" (17280s) |
|
||||
| voting_period | string (time ns) | "172800000000000" (17280s) |
|
||||
| quorum | string (dec) | "0.334000000000000000" |
|
||||
| threshold | string (dec) | "0.500000000000000000" |
|
||||
| veto | string (dec) | "0.334000000000000000" |
|
||||
| expedited_threshold | string (time ns) | "0.667000000000000000" |
|
||||
| expedited_voting_period | string (time ns) | "86400000000000" (8600s) |
|
||||
| expedited_min_deposit | array (coins) | [{"denom":"uatom","amount":"50000000"}] |
|
||||
| burn_proposal_deposit_prevote | bool | false |
|
||||
| burn_vote_quorum | bool | false |
|
||||
| burn_vote_veto | bool | true |
|
||||
| min_initial_deposit_ratio | string | "0.1" |
|
||||
| optimistic_rejected_threshold | string (dec) | "0.1" |
|
||||
| optimistic_authorized_addresses | bytes array (addresses) | [][] |
|
||||
| Key | Type | Example |
|
||||
| ------------------------------- | ----------------- | --------------------------------------- |
|
||||
| min_deposit | array (coins) | [{"denom":"uatom","amount":"10000000"}] |
|
||||
| max_deposit_period | string (time ns) | "172800000000000" (17280s) |
|
||||
| voting_period | string (time ns) | "172800000000000" (17280s) |
|
||||
| quorum | string (dec) | "0.334000000000000000" |
|
||||
| threshold | string (dec) | "0.500000000000000000" |
|
||||
| veto | string (dec) | "0.334000000000000000" |
|
||||
| expedited_threshold | string (time ns) | "0.667000000000000000" |
|
||||
| expedited_voting_period | string (time ns) | "86400000000000" (8600s) |
|
||||
| expedited_min_deposit | array (coins) | [{"denom":"uatom","amount":"50000000"}] |
|
||||
| burn_proposal_deposit_prevote | bool | false |
|
||||
| burn_vote_quorum | bool | false |
|
||||
| burn_vote_veto | bool | true |
|
||||
| min_initial_deposit_ratio | string | "0.1" |
|
||||
| proposal_cancel_ratio | string (dec) | "0.5" |
|
||||
| proposal_cancel_dest | string (address) | "cosmos1.." or empty for burn |
|
||||
| proposal_cancel_max_period | string (dec) | "0.5" |
|
||||
| optimistic_rejected_threshold | string (dec) | "0.1" |
|
||||
| optimistic_authorized_addresses | array (addresses) | [] |
|
||||
|
||||
**NOTE**: The governance module contains parameters that are objects unlike other
|
||||
modules. If only a subset of parameters are desired to be changed, only they need
|
||||
|
||||
@ -337,11 +337,11 @@ func (suite *KeeperTestSuite) TestMsgCancelProposal() {
|
||||
},
|
||||
depositor: proposer,
|
||||
expErr: true,
|
||||
expErrMsg: "not found",
|
||||
expErrMsg: "proposal 0 doesn't exist",
|
||||
},
|
||||
"valid proposal but invalid proposer": {
|
||||
preRun: func() uint64 {
|
||||
return proposalID
|
||||
return res.ProposalId
|
||||
},
|
||||
depositor: addrs[1],
|
||||
expErr: true,
|
||||
|
||||
@ -11,6 +11,7 @@ import (
|
||||
|
||||
"cosmossdk.io/collections"
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
sdkmath "cosmossdk.io/math"
|
||||
"cosmossdk.io/x/gov/types"
|
||||
v1 "cosmossdk.io/x/gov/types/v1"
|
||||
|
||||
@ -126,6 +127,14 @@ func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, met
|
||||
func (keeper Keeper) CancelProposal(ctx context.Context, proposalID uint64, proposer string) error {
|
||||
sdkCtx := sdk.UnwrapSDKContext(ctx)
|
||||
proposal, err := keeper.Proposals.Get(ctx, proposalID)
|
||||
if err != nil {
|
||||
if errors.Is(err, collections.ErrNotFound) {
|
||||
return types.ErrInvalidProposal.Wrapf("proposal %d doesn't exist", proposalID)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
params, err := keeper.Params.Get(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -146,18 +155,22 @@ func (keeper Keeper) CancelProposal(ctx context.Context, proposalID uint64, prop
|
||||
return types.ErrInvalidProposal.Wrap("proposal should be in the deposit or voting period")
|
||||
}
|
||||
|
||||
// Check proposal voting period is ended.
|
||||
if proposal.VotingEndTime != nil && proposal.VotingEndTime.Before(sdkCtx.HeaderInfo().Time) {
|
||||
return types.ErrVotingPeriodEnded.Wrapf("voting period is already ended for this proposal %d", proposalID)
|
||||
// Check proposal is not too far in voting period to be canceled
|
||||
if proposal.VotingEndTime != nil {
|
||||
currentTime := sdkCtx.HeaderInfo().Time
|
||||
|
||||
maxCancelPeriodRate := sdkmath.LegacyMustNewDecFromStr(params.ProposalCancelMaxPeriod)
|
||||
maxCancelPeriod := time.Duration(float64(proposal.VotingEndTime.Sub(*proposal.VotingStartTime)) * maxCancelPeriodRate.MustFloat64()).Round(time.Second)
|
||||
|
||||
if proposal.VotingEndTime.Before(currentTime) {
|
||||
return types.ErrVotingPeriodEnded.Wrapf("voting period is already ended for this proposal %d", proposalID)
|
||||
} else if proposal.VotingEndTime.Add(-maxCancelPeriod).Before(currentTime) {
|
||||
return types.ErrTooLateToCancel.Wrapf("proposal %d is too late to cancel", proposalID)
|
||||
}
|
||||
}
|
||||
|
||||
// burn the (deposits * proposal_cancel_rate) amount or sent to cancellation destination address.
|
||||
// and deposits * (1 - proposal_cancel_rate) will be sent to depositors.
|
||||
params, err := keeper.Params.Get(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = keeper.ChargeDeposit(ctx, proposal.Id, params.ProposalCancelDest, params.ProposalCancelRatio)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@ -216,32 +217,32 @@ func (suite *KeeperTestSuite) TestCancelProposal() {
|
||||
suite.Require().NoError(err)
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
malleate func() (proposalID uint64, proposer string)
|
||||
proposalID uint64
|
||||
proposer string
|
||||
expectedErr bool
|
||||
name string
|
||||
malleate func() (proposalID uint64, proposer string)
|
||||
proposalID uint64
|
||||
proposer string
|
||||
expectedErrMsg string
|
||||
}{
|
||||
{
|
||||
name: "without proposer",
|
||||
malleate: func() (uint64, string) {
|
||||
return 1, ""
|
||||
return proposalID, ""
|
||||
},
|
||||
expectedErr: true,
|
||||
expectedErrMsg: "invalid proposer",
|
||||
},
|
||||
{
|
||||
name: "invalid proposal id",
|
||||
malleate: func() (uint64, string) {
|
||||
return 1, suite.addrs[1].String()
|
||||
return 10, suite.addrs[1].String()
|
||||
},
|
||||
expectedErr: true,
|
||||
expectedErrMsg: "proposal 10 doesn't exist",
|
||||
},
|
||||
{
|
||||
name: "valid proposalID but invalid proposer",
|
||||
malleate: func() (uint64, string) {
|
||||
return proposalID, suite.addrs[1].String()
|
||||
},
|
||||
expectedErr: true,
|
||||
expectedErrMsg: "invalid proposer",
|
||||
},
|
||||
{
|
||||
name: "valid proposalID but invalid proposal which has already passed",
|
||||
@ -255,14 +256,32 @@ func (suite *KeeperTestSuite) TestCancelProposal() {
|
||||
suite.Require().NoError(err)
|
||||
return proposal2ID, suite.addrs[1].String()
|
||||
},
|
||||
expectedErr: true,
|
||||
expectedErrMsg: "proposal should be in the deposit or voting period",
|
||||
},
|
||||
{
|
||||
name: "proposal canceled too late",
|
||||
malleate: func() (uint64, string) {
|
||||
suite.Require().NoError(suite.govKeeper.ActivateVotingPeriod(suite.ctx, proposal2))
|
||||
|
||||
proposal2, err = suite.govKeeper.Proposals.Get(suite.ctx, proposal2.Id)
|
||||
suite.Require().Nil(err)
|
||||
|
||||
headerInfo := suite.ctx.HeaderInfo()
|
||||
// try to cancel 1min before the end of the voting period
|
||||
// this should fail, as we allow to cancel proposal (by default) up to 1/2 of the voting period
|
||||
headerInfo.Time = proposal2.VotingEndTime.Add(-1 * time.Minute)
|
||||
suite.ctx = suite.ctx.WithHeaderInfo(headerInfo)
|
||||
|
||||
suite.Require().NoError(err)
|
||||
return proposal2ID, suite.addrs[1].String()
|
||||
},
|
||||
expectedErrMsg: "too late",
|
||||
},
|
||||
{
|
||||
name: "valid proposer and proposal id",
|
||||
malleate: func() (uint64, string) {
|
||||
return proposalID, suite.addrs[0].String()
|
||||
},
|
||||
expectedErr: false,
|
||||
},
|
||||
{
|
||||
name: "valid case with deletion of votes",
|
||||
@ -283,7 +302,6 @@ func (suite *KeeperTestSuite) TestCancelProposal() {
|
||||
|
||||
return proposalID, suite.addrs[0].String()
|
||||
},
|
||||
expectedErr: false,
|
||||
},
|
||||
}
|
||||
|
||||
@ -291,8 +309,8 @@ func (suite *KeeperTestSuite) TestCancelProposal() {
|
||||
suite.Run(tc.name, func() {
|
||||
pID, proposer := tc.malleate()
|
||||
err = suite.govKeeper.CancelProposal(suite.ctx, pID, proposer)
|
||||
if tc.expectedErr {
|
||||
suite.Require().Error(err)
|
||||
if tc.expectedErrMsg != "" {
|
||||
suite.Require().ErrorContains(err, tc.expectedErrMsg)
|
||||
} else {
|
||||
suite.Require().NoError(err)
|
||||
}
|
||||
|
||||
@ -42,6 +42,7 @@ func MigrateStore(ctx sdk.Context, paramsCollection collections.Item[v1.Params],
|
||||
defaultParams := v1.DefaultParams()
|
||||
govParams.OptimisticAuthorizedAddresses = defaultParams.OptimisticAuthorizedAddresses
|
||||
govParams.OptimisticRejectedThreshold = defaultParams.OptimisticRejectedThreshold
|
||||
govParams.ProposalCancelMaxPeriod = defaultParams.ProposalCancelMaxPeriod
|
||||
|
||||
return paramsCollection.Set(ctx, govParams)
|
||||
}
|
||||
|
||||
@ -17,19 +17,20 @@ import (
|
||||
|
||||
// Simulation parameter constants
|
||||
const (
|
||||
MinDeposit = "min_deposit"
|
||||
ExpeditedMinDeposit = "expedited_min_deposit"
|
||||
DepositPeriod = "deposit_period"
|
||||
MinInitialRatio = "min_initial_ratio"
|
||||
VotingPeriod = "voting_period"
|
||||
ExpeditedVotingPeriod = "expedited_voting_period"
|
||||
Quorum = "quorum"
|
||||
Threshold = "threshold"
|
||||
ExpeditedThreshold = "expedited_threshold"
|
||||
Veto = "veto"
|
||||
OptimisticRejectedThreshold = "optimistic_rejected_threshold"
|
||||
ProposalCancelRate = "proposal_cancel_rate"
|
||||
MinDepositRatio = "min_deposit_ratio"
|
||||
MinDeposit = "min_deposit"
|
||||
ExpeditedMinDeposit = "expedited_min_deposit"
|
||||
DepositPeriod = "deposit_period"
|
||||
MinInitialRatio = "min_initial_ratio"
|
||||
VotingPeriod = "voting_period"
|
||||
ExpeditedVotingPeriod = "expedited_voting_period"
|
||||
Quorum = "quorum"
|
||||
Threshold = "threshold"
|
||||
ExpeditedThreshold = "expedited_threshold"
|
||||
Veto = "veto"
|
||||
OptimisticRejectedThreshold = "optimistic_rejected_threshold"
|
||||
ProposalCancelRate = "proposal_cancel_rate"
|
||||
ProposalMaxCancelVotingPeriod = "proposal_max_cancel_voting_period"
|
||||
MinDepositRatio = "min_deposit_ratio"
|
||||
|
||||
// ExpeditedThreshold must be at least as large as the regular Threshold
|
||||
// Therefore, we use this break out point in randomization.
|
||||
@ -66,6 +67,10 @@ func GenProposalCancelRate(r *rand.Rand) sdkmath.LegacyDec {
|
||||
return sdkmath.LegacyNewDec(int64(simulation.RandIntBetween(r, 0, 99))).Quo(sdkmath.LegacyNewDec(100))
|
||||
}
|
||||
|
||||
func GenProposalMaxCancelVotingPeriod(r *rand.Rand) sdkmath.LegacyDec {
|
||||
return sdkmath.LegacyNewDec(int64(simulation.RandIntBetween(r, 0, 99))).Quo(sdkmath.LegacyNewDec(100))
|
||||
}
|
||||
|
||||
// GenVotingPeriod returns randomized VotingPeriod
|
||||
func GenVotingPeriod(r *rand.Rand) time.Duration {
|
||||
return time.Duration(simulation.RandIntBetween(r, expeditedMaxVotingPeriod, 2*expeditedMaxVotingPeriod)) * time.Second
|
||||
@ -125,6 +130,9 @@ func RandomizedGenState(simState *module.SimulationState) {
|
||||
var proposalCancelRate sdkmath.LegacyDec
|
||||
simState.AppParams.GetOrGenerate(ProposalCancelRate, &proposalCancelRate, simState.Rand, func(r *rand.Rand) { proposalCancelRate = GenProposalCancelRate(r) })
|
||||
|
||||
var proposalMaxCancelVotingPeriod sdkmath.LegacyDec
|
||||
simState.AppParams.GetOrGenerate(ProposalMaxCancelVotingPeriod, &proposalMaxCancelVotingPeriod, simState.Rand, func(r *rand.Rand) { proposalMaxCancelVotingPeriod = GenProposalMaxCancelVotingPeriod(r) })
|
||||
|
||||
var votingPeriod time.Duration
|
||||
simState.AppParams.GetOrGenerate(VotingPeriod, &votingPeriod, simState.Rand, func(r *rand.Rand) { votingPeriod = GenVotingPeriod(r) })
|
||||
|
||||
@ -151,7 +159,7 @@ func RandomizedGenState(simState *module.SimulationState) {
|
||||
|
||||
govGenesis := v1.NewGenesisState(
|
||||
startingProposalID,
|
||||
v1.NewParams(minDeposit, expeditedMinDeposit, depositPeriod, votingPeriod, expeditedVotingPeriod, quorum.String(), threshold.String(), expitedVotingThreshold.String(), veto.String(), minInitialDepositRatio.String(), proposalCancelRate.String(), "", simState.Rand.Intn(2) == 0, simState.Rand.Intn(2) == 0, simState.Rand.Intn(2) == 0, minDepositRatio.String(), optimisticRejectedThreshold.String(), []string{}),
|
||||
v1.NewParams(minDeposit, expeditedMinDeposit, depositPeriod, votingPeriod, expeditedVotingPeriod, quorum.String(), threshold.String(), expitedVotingThreshold.String(), veto.String(), minInitialDepositRatio.String(), proposalCancelRate.String(), "", proposalMaxCancelVotingPeriod.String(), simState.Rand.Intn(2) == 0, simState.Rand.Intn(2) == 0, simState.Rand.Intn(2) == 0, minDepositRatio.String(), optimisticRejectedThreshold.String(), []string{}),
|
||||
)
|
||||
|
||||
bz, err := json.MarshalIndent(&govGenesis, "", " ")
|
||||
|
||||
@ -46,22 +46,24 @@ func TestRandomizedGenState(t *testing.T) {
|
||||
simState.Cdc.MustUnmarshalJSON(simState.GenState[types.ModuleName], &govGenesis)
|
||||
|
||||
const (
|
||||
tallyQuorum = "0.350000000000000000"
|
||||
tallyThreshold = "0.495000000000000000"
|
||||
tallyExpeditedThreshold = "0.545000000000000000"
|
||||
tallyVetoThreshold = "0.327000000000000000"
|
||||
tallyQuorum = "0.387000000000000000"
|
||||
tallyThreshold = "0.452000000000000000"
|
||||
tallyExpeditedThreshold = "0.537000000000000000"
|
||||
tallyVetoThreshold = "0.276000000000000000"
|
||||
minInitialDepositDec = "0.880000000000000000"
|
||||
proposalCancelMaxPeriod = "0.110000000000000000"
|
||||
)
|
||||
|
||||
assert.Equal(t, "272stake", govGenesis.Params.MinDeposit[0].String())
|
||||
assert.Equal(t, "800stake", govGenesis.Params.ExpeditedMinDeposit[0].String())
|
||||
assert.Equal(t, "41h11m36s", govGenesis.Params.MaxDepositPeriod.String())
|
||||
assert.Equal(t, float64(283889), govGenesis.Params.VotingPeriod.Seconds())
|
||||
assert.Equal(t, float64(123081), govGenesis.Params.ExpeditedVotingPeriod.Seconds())
|
||||
assert.Equal(t, float64(291928), govGenesis.Params.VotingPeriod.Seconds())
|
||||
assert.Equal(t, float64(33502), govGenesis.Params.ExpeditedVotingPeriod.Seconds())
|
||||
assert.Equal(t, tallyQuorum, govGenesis.Params.Quorum)
|
||||
assert.Equal(t, tallyThreshold, govGenesis.Params.Threshold)
|
||||
assert.Equal(t, tallyExpeditedThreshold, govGenesis.Params.ExpeditedThreshold)
|
||||
assert.Equal(t, tallyVetoThreshold, govGenesis.Params.VetoThreshold)
|
||||
assert.Equal(t, proposalCancelMaxPeriod, govGenesis.Params.ProposalCancelMaxPeriod)
|
||||
assert.Equal(t, uint64(0x28), govGenesis.StartingProposalId)
|
||||
assert.DeepEqual(t, []*v1.Deposit{}, govGenesis.Deposits)
|
||||
assert.DeepEqual(t, []*v1.Vote{}, govGenesis.Votes)
|
||||
|
||||
@ -26,4 +26,5 @@ var (
|
||||
ErrSummaryTooLong = errors.Register(ModuleName, 22, "summary too long")
|
||||
ErrInvalidDepositDenom = errors.Register(ModuleName, 23, "invalid deposit denom")
|
||||
ErrTitleTooLong = errors.Register(ModuleName, 24, "title too long")
|
||||
ErrTooLateToCancel = errors.Register(ModuleName, 25, "too late to cancel proposal")
|
||||
)
|
||||
|
||||
@ -873,10 +873,16 @@ type Params struct {
|
||||
// Minimum expedited deposit for a proposal to enter voting period.
|
||||
ExpeditedMinDeposit []types.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit"`
|
||||
// burn deposits if a proposal does not meet quorum
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnVoteQuorum bool `protobuf:"varint,13,opt,name=burn_vote_quorum,json=burnVoteQuorum,proto3" json:"burn_vote_quorum,omitempty"`
|
||||
// burn deposits if the proposal does not enter voting period
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnProposalDepositPrevote bool `protobuf:"varint,14,opt,name=burn_proposal_deposit_prevote,json=burnProposalDepositPrevote,proto3" json:"burn_proposal_deposit_prevote,omitempty"`
|
||||
// burn deposits if quorum with vote type no_veto is met
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
BurnVoteVeto bool `protobuf:"varint,15,opt,name=burn_vote_veto,json=burnVoteVeto,proto3" json:"burn_vote_veto,omitempty"`
|
||||
// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
|
||||
// Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
|
||||
@ -884,16 +890,21 @@ type Params struct {
|
||||
//
|
||||
// Since: cosmos-sdk 0.50
|
||||
MinDepositRatio string `protobuf:"bytes,16,opt,name=min_deposit_ratio,json=minDepositRatio,proto3" json:"min_deposit_ratio,omitempty"`
|
||||
// proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal.
|
||||
// If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the
|
||||
// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
|
||||
// After the max cancel period, the proposal cannot be cancelled anymore.
|
||||
ProposalCancelMaxPeriod string `protobuf:"bytes,17,opt,name=proposal_cancel_max_period,json=proposalCancelMaxPeriod,proto3" json:"proposal_cancel_max_period,omitempty"`
|
||||
// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
|
||||
// submit optimistic proposals
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
OptimisticAuthorizedAddresses []string `protobuf:"bytes,17,rep,name=optimistic_authorized_addresses,json=optimisticAuthorizedAddresses,proto3" json:"optimistic_authorized_addresses,omitempty"`
|
||||
OptimisticAuthorizedAddresses []string `protobuf:"bytes,18,rep,name=optimistic_authorized_addresses,json=optimisticAuthorizedAddresses,proto3" json:"optimistic_authorized_addresses,omitempty"`
|
||||
// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
|
||||
// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
|
||||
//
|
||||
// Since: x/gov v1.0.0
|
||||
OptimisticRejectedThreshold string `protobuf:"bytes,18,opt,name=optimistic_rejected_threshold,json=optimisticRejectedThreshold,proto3" json:"optimistic_rejected_threshold,omitempty"`
|
||||
OptimisticRejectedThreshold string `protobuf:"bytes,19,opt,name=optimistic_rejected_threshold,json=optimisticRejectedThreshold,proto3" json:"optimistic_rejected_threshold,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Params) Reset() { *m = Params{} }
|
||||
@ -1041,6 +1052,13 @@ func (m *Params) GetMinDepositRatio() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Params) GetProposalCancelMaxPeriod() string {
|
||||
if m != nil {
|
||||
return m.ProposalCancelMaxPeriod
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Params) GetOptimisticAuthorizedAddresses() []string {
|
||||
if m != nil {
|
||||
return m.OptimisticAuthorizedAddresses
|
||||
@ -1073,110 +1091,112 @@ func init() {
|
||||
func init() { proto.RegisterFile("cosmos/gov/v1/gov.proto", fileDescriptor_e05cb1c0d030febb) }
|
||||
|
||||
var fileDescriptor_e05cb1c0d030febb = []byte{
|
||||
// 1645 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4d, 0x6f, 0xe3, 0xc6,
|
||||
0x19, 0x36, 0xf5, 0x65, 0xe9, 0xd5, 0x87, 0xe9, 0x59, 0x6f, 0x4c, 0xdb, 0xb1, 0xe4, 0xa8, 0x41,
|
||||
0xe0, 0xba, 0x59, 0xa9, 0x4e, 0xba, 0x3d, 0x24, 0x05, 0x5a, 0x7d, 0x70, 0x6b, 0x1a, 0xb6, 0xa5,
|
||||
0x52, 0xb4, 0xbd, 0xdb, 0x0b, 0x4b, 0x8b, 0xb3, 0x32, 0x5b, 0x91, 0xa3, 0x92, 0x23, 0xc5, 0xea,
|
||||
0x0f, 0xe8, 0x39, 0xc7, 0x9e, 0x8a, 0xde, 0xda, 0x63, 0x0f, 0x41, 0xff, 0x41, 0x81, 0xa0, 0x87,
|
||||
0x22, 0xc8, 0xa9, 0x97, 0x6e, 0x8b, 0xdd, 0x43, 0x81, 0xfc, 0x84, 0x9e, 0x02, 0x0e, 0x87, 0x22,
|
||||
0x25, 0x2b, 0xb1, 0x9d, 0x8b, 0x4d, 0xbe, 0xef, 0xf3, 0x3c, 0xf3, 0xce, 0xfb, 0x31, 0x23, 0x09,
|
||||
0x36, 0xfb, 0xc4, 0xb3, 0x89, 0x57, 0x1f, 0x90, 0x49, 0x7d, 0x72, 0xe8, 0xff, 0xab, 0x8d, 0x5c,
|
||||
0x42, 0x09, 0x2a, 0x06, 0x8e, 0x9a, 0x6f, 0x99, 0x1c, 0x6e, 0x97, 0x39, 0xee, 0xca, 0xf0, 0x70,
|
||||
0x7d, 0x72, 0x78, 0x85, 0xa9, 0x71, 0x58, 0xef, 0x13, 0xcb, 0x09, 0xe0, 0xdb, 0x1b, 0x03, 0x32,
|
||||
0x20, 0xec, 0xb1, 0xee, 0x3f, 0x71, 0x6b, 0x65, 0x40, 0xc8, 0x60, 0x88, 0xeb, 0xec, 0xed, 0x6a,
|
||||
0xfc, 0xb2, 0x4e, 0x2d, 0x1b, 0x7b, 0xd4, 0xb0, 0x47, 0x1c, 0xb0, 0xb5, 0x08, 0x30, 0x9c, 0x29,
|
||||
0x77, 0x95, 0x17, 0x5d, 0xe6, 0xd8, 0x35, 0xa8, 0x45, 0xc2, 0x15, 0xb7, 0x82, 0x88, 0xf4, 0x60,
|
||||
0x51, 0x1e, 0x6d, 0xe0, 0x5a, 0x37, 0x6c, 0xcb, 0x21, 0x75, 0xf6, 0x37, 0x30, 0x55, 0x09, 0xa0,
|
||||
0x4b, 0x6c, 0x0d, 0xae, 0x29, 0x36, 0x2f, 0x08, 0xc5, 0x9d, 0x91, 0xaf, 0x84, 0x0e, 0x21, 0x43,
|
||||
0xd8, 0x93, 0x24, 0xec, 0x09, 0xfb, 0xa5, 0x0f, 0xb6, 0x6a, 0x73, 0xbb, 0xae, 0x45, 0x50, 0x95,
|
||||
0x03, 0xd1, 0x7b, 0x90, 0xf9, 0x84, 0x09, 0x49, 0x89, 0x3d, 0x61, 0x3f, 0xd7, 0x2c, 0x7d, 0xf9,
|
||||
0xd9, 0x13, 0xe0, 0xac, 0x36, 0xee, 0xab, 0xdc, 0x5b, 0xfd, 0x93, 0x00, 0xab, 0x6d, 0x3c, 0x22,
|
||||
0x9e, 0x45, 0x51, 0x05, 0xf2, 0x23, 0x97, 0x8c, 0x88, 0x67, 0x0c, 0x75, 0xcb, 0x64, 0x6b, 0xa5,
|
||||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 0x8b, 0xea,
|
||||
0x7e, 0x9b, 0x49, 0x69, 0x2e, 0xb1, 0x18, 0xb5, 0x16, 0xf6, 0x60, 0x33, 0xf5, 0xe9, 0x7f, 0x2a,
|
||||
0x82, 0x0a, 0x01, 0xc9, 0x37, 0xa3, 0x63, 0x10, 0x79, 0x76, 0x75, 0xec, 0x98, 0x81, 0x4e, 0xe6,
|
||||
0x9e, 0x3a, 0x25, 0xce, 0x94, 0x1d, 0x93, 0x69, 0x29, 0x50, 0xa4, 0x84, 0x1a, 0x43, 0x9d, 0xdb,
|
||||
0xa5, 0xd5, 0x07, 0xd4, 0xa8, 0xc0, 0xa8, 0x61, 0x03, 0x9d, 0xc0, 0xfa, 0x84, 0x50, 0xcb, 0x19,
|
||||
0xe8, 0x1e, 0x35, 0x5c, 0xbe, 0xbf, 0xec, 0x3d, 0xe3, 0x5a, 0x0b, 0xa8, 0x3d, 0x9f, 0xc9, 0x02,
|
||||
0x3b, 0x02, 0x6e, 0x8a, 0xf6, 0x98, 0xbb, 0xa7, 0x56, 0x31, 0x20, 0x86, 0x5b, 0xdc, 0xf6, 0x9b,
|
||||
0x84, 0x1a, 0xa6, 0x41, 0x0d, 0x09, 0xfc, 0xb6, 0x55, 0x67, 0xef, 0x68, 0x03, 0xd2, 0xd4, 0xa2,
|
||||
0x43, 0x2c, 0xe5, 0x99, 0x23, 0x78, 0x41, 0x12, 0xac, 0x7a, 0x63, 0xdb, 0x36, 0xdc, 0xa9, 0x54,
|
||||
0x60, 0xf6, 0xf0, 0x15, 0xfd, 0x08, 0xb2, 0xc1, 0x44, 0x60, 0x57, 0x2a, 0xde, 0x31, 0x02, 0x33,
|
||||
0x24, 0xda, 0x83, 0x1c, 0xbe, 0x19, 0x61, 0xd3, 0xa2, 0xd8, 0x94, 0x4a, 0x7b, 0xc2, 0x7e, 0xb6,
|
||||
0x99, 0x90, 0x04, 0x35, 0x32, 0xa2, 0xef, 0x41, 0xf1, 0xa5, 0x61, 0x0d, 0xb1, 0xa9, 0xbb, 0xd8,
|
||||
0xf0, 0x88, 0x23, 0xad, 0xb1, 0x75, 0x0b, 0x81, 0x51, 0x65, 0x36, 0xf4, 0x33, 0x28, 0xce, 0x26,
|
||||
0x94, 0x4e, 0x47, 0x58, 0x12, 0x59, 0x0b, 0xef, 0x7c, 0x43, 0x0b, 0x6b, 0xd3, 0x11, 0x56, 0x0b,
|
||||
0xa3, 0xd8, 0x5b, 0xf5, 0xf7, 0x09, 0xc8, 0xc7, 0x9b, 0xf1, 0x07, 0x90, 0x9b, 0x62, 0x4f, 0xef,
|
||||
0xb3, 0xe9, 0x14, 0x6e, 0x1d, 0x15, 0x8a, 0x43, 0xd5, 0xec, 0x14, 0x7b, 0x2d, 0xdf, 0x8f, 0x3e,
|
||||
0x84, 0xa2, 0x71, 0xe5, 0x51, 0xc3, 0x72, 0x38, 0x21, 0xb1, 0x94, 0x50, 0xe0, 0xa0, 0x80, 0xf4,
|
||||
0x7d, 0xc8, 0x3a, 0x84, 0xe3, 0x93, 0x4b, 0xf1, 0xab, 0x0e, 0x09, 0xa0, 0x1f, 0x03, 0x72, 0x88,
|
||||
0xfe, 0x89, 0x45, 0xaf, 0xf5, 0x09, 0xa6, 0x21, 0x29, 0xb5, 0x94, 0xb4, 0xe6, 0x90, 0x4b, 0x8b,
|
||||
0x5e, 0x5f, 0x60, 0xca, 0xc9, 0x4f, 0x00, 0xbc, 0x91, 0x61, 0x73, 0x52, 0x7a, 0x29, 0x29, 0xe7,
|
||||
0x23, 0x18, 0xbc, 0xfa, 0x37, 0x01, 0x52, 0xfe, 0xb9, 0x79, 0xf7, 0xa9, 0x57, 0x83, 0xf4, 0x84,
|
||||
0x50, 0x7c, 0xf7, 0x89, 0x17, 0xc0, 0xd0, 0xc7, 0xb0, 0x1a, 0x1c, 0xc2, 0x9e, 0x94, 0x62, 0xa3,
|
||||
0xf4, 0xce, 0x42, 0x79, 0x6e, 0x9f, 0xf0, 0x6a, 0xc8, 0x98, 0x6b, 0xd5, 0x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||
0x42, 0x15, 0xca, 0x8b, 0x80, 0xb6, 0xdc, 0xed, 0xf4, 0x14, 0x4d, 0xef, 0xca, 0xaa, 0xd2, 0x59,
|
||||
0x2c, 0x19, 0xc7, 0x5c, 0x74, 0x34, 0xe5, 0xec, 0xe7, 0x21, 0x24, 0x31, 0x57, 0x71, 0x0e, 0xe9,
|
||||
0x36, 0x7a, 0x3d, 0xb9, 0x2d, 0x26, 0xe7, 0xca, 0xc9, 0x7d, 0xaa, 0x7c, 0x2c, 0xb7, 0x58, 0xc5,
|
||||
0x96, 0x31, 0x9f, 0x35, 0x94, 0x13, 0xb9, 0x2d, 0xa6, 0x9b, 0x4f, 0x3f, 0x7f, 0x5d, 0x16, 0xbe,
|
||||
0x78, 0x5d, 0x16, 0xfe, 0xfb, 0xba, 0x2c, 0x7c, 0xfa, 0xa6, 0xbc, 0xf2, 0xc5, 0x9b, 0xf2, 0xca,
|
||||
0xbf, 0xde, 0x94, 0x57, 0x7e, 0xb9, 0x13, 0xb4, 0xae, 0x67, 0xfe, 0xa6, 0x66, 0x91, 0xfa, 0x0d,
|
||||
0xfb, 0x1d, 0xc1, 0xff, 0x00, 0xed, 0xd5, 0x27, 0x87, 0x57, 0x19, 0x76, 0xfc, 0x7d, 0xf8, 0x75,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x02, 0x8a, 0x3f, 0x65, 0x10, 0x00, 0x00,
|
||||
// 1666 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4f, 0x73, 0xe3, 0x48,
|
||||
0x15, 0x8f, 0x6c, 0xc7, 0x71, 0x5e, 0x6c, 0x47, 0xe9, 0x64, 0x36, 0x4a, 0xb2, 0x71, 0xb2, 0x61,
|
||||
0x6b, 0x2b, 0x0c, 0x3b, 0x36, 0xd9, 0x65, 0x38, 0xec, 0x52, 0x05, 0xfe, 0xa3, 0x21, 0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0xeb, 0xb0,
|
||||
0x9a, 0x74, 0xb6, 0xcf, 0x54, 0x59, 0x9a, 0x35, 0xbe, 0x50, 0xbb, 0x37, 0x8d, 0xc6, 0x45, 0x5b,
|
||||
0xce, 0xa0, 0x4d, 0x58, 0x4f, 0x1a, 0xeb, 0x8d, 0xae, 0x51, 0xd7, 0xce, 0xe4, 0x0c, 0x7a, 0x00,
|
||||
0x6b, 0x29, 0xf4, 0xb1, 0xae, 0xaa, 0x72, 0x16, 0x21, 0x28, 0x27, 0xcd, 0x67, 0x6d, 0x39, 0x8b,
|
||||
0x36, 0x40, 0x4e, 0xda, 0x9e, 0xb4, 0x9f, 0xe9, 0x72, 0x8e, 0xed, 0x3f, 0x8d, 0x34, 0x2f, 0x34,
|
||||
0xe3, 0xd8, 0x3c, 0x57, 0x8d, 0xb6, 0x9c, 0x9b, 0xe5, 0x74, 0x3b, 0xf5, 0x53, 0x79, 0x71, 0x3b,
|
||||
0x23, 0x4b, 0x0f, 0xff, 0x21, 0x41, 0x39, 0xfd, 0xd5, 0x09, 0xed, 0xc1, 0xce, 0xb4, 0x58, 0x5d,
|
||||
0xa3, 0x6e, 0x3c, 0xeb, 0xce, 0x14, 0xe1, 0x00, 0x2a, 0xb3, 0x80, 0x96, 0xda, 0x69, 0x77, 0x35,
|
||||
0xc3, 0xec, 0xa8, 0xba, 0xd6, 0x9e, 0x6d, 0x99, 0xc0, 0x9c, 0xb7, 0x0d, 0xed, 0xec, 0xa7, 0x11,
|
||||
0x24, 0x93, 0xea, 0xb8, 0x80, 0x74, 0xea, 0xdd, 0xae, 0xda, 0x92, 0xb3, 0xa9, 0x76, 0x0a, 0x9f,
|
||||
0xae, 0x3e, 0x55, 0x9b, 0xbc, 0x63, 0xf3, 0x98, 0x4f, 0xea, 0xda, 0x89, 0xda, 0x92, 0x17, 0x1b,
|
||||
0x8f, 0x3f, 0x7f, 0x5d, 0x91, 0xbe, 0x78, 0x5d, 0x91, 0xfe, 0xf3, 0xba, 0x22, 0x7d, 0xfa, 0xa6,
|
||||
0xb2, 0xf0, 0xc5, 0x9b, 0xca, 0xc2, 0x3f, 0xdf, 0x54, 0x16, 0x7e, 0xb1, 0x13, 0x4a, 0x37, 0xb0,
|
||||
0x7f, 0x5d, 0x75, 0x48, 0xed, 0x9a, 0xff, 0x28, 0xc1, 0x3e, 0x8d, 0x07, 0xb5, 0xf1, 0xd1, 0x65,
|
||||
0x9e, 0x9f, 0xa5, 0x1f, 0xfe, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xb1, 0x81, 0x9b, 0xb2, 0x10,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *WeightedVoteOption) Marshal() (dAtA []byte, err error) {
|
||||
@ -1693,7 +1713,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x92
|
||||
dAtA[i] = 0x9a
|
||||
}
|
||||
if len(m.OptimisticAuthorizedAddresses) > 0 {
|
||||
for iNdEx := len(m.OptimisticAuthorizedAddresses) - 1; iNdEx >= 0; iNdEx-- {
|
||||
@ -1703,9 +1723,18 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x8a
|
||||
dAtA[i] = 0x92
|
||||
}
|
||||
}
|
||||
if len(m.ProposalCancelMaxPeriod) > 0 {
|
||||
i -= len(m.ProposalCancelMaxPeriod)
|
||||
copy(dAtA[i:], m.ProposalCancelMaxPeriod)
|
||||
i = encodeVarintGov(dAtA, i, uint64(len(m.ProposalCancelMaxPeriod)))
|
||||
i--
|
||||
dAtA[i] = 0x1
|
||||
i--
|
||||
dAtA[i] = 0x8a
|
||||
}
|
||||
if len(m.MinDepositRatio) > 0 {
|
||||
i -= len(m.MinDepositRatio)
|
||||
copy(dAtA[i:], m.MinDepositRatio)
|
||||
@ -2156,6 +2185,10 @@ func (m *Params) Size() (n int) {
|
||||
if l > 0 {
|
||||
n += 2 + l + sovGov(uint64(l))
|
||||
}
|
||||
l = len(m.ProposalCancelMaxPeriod)
|
||||
if l > 0 {
|
||||
n += 2 + l + sovGov(uint64(l))
|
||||
}
|
||||
if len(m.OptimisticAuthorizedAddresses) > 0 {
|
||||
for _, s := range m.OptimisticAuthorizedAddresses {
|
||||
l = len(s)
|
||||
@ -4197,6 +4230,38 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
||||
m.MinDepositRatio = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 17:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ProposalCancelMaxPeriod", 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
|
||||
}
|
||||
m.ProposalCancelMaxPeriod = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 18:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field OptimisticAuthorizedAddresses", wireType)
|
||||
}
|
||||
@ -4228,7 +4293,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
m.OptimisticAuthorizedAddresses = append(m.OptimisticAuthorizedAddresses, string(dAtA[iNdEx:postIndex]))
|
||||
iNdEx = postIndex
|
||||
case 18:
|
||||
case 19:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field OptimisticRejectedThreshold", wireType)
|
||||
}
|
||||
|
||||
@ -28,6 +28,7 @@ var (
|
||||
DefaultMinInitialDepositRatio = sdkmath.LegacyZeroDec()
|
||||
DefaultProposalCancelRatio = sdkmath.LegacyMustNewDecFromStr("0.5")
|
||||
DefaultProposalCancelDestAddress = ""
|
||||
DefaultProposalCancelMaxPeriod = sdkmath.LegacyMustNewDecFromStr("0.5")
|
||||
DefaultBurnProposalPrevote = false // set to false to replicate behavior of when this change was made (0.47)
|
||||
DefaultBurnVoteQuorom = false // set to false to replicate behavior of when this change was made (0.47)
|
||||
DefaultBurnVoteVeto = true // set to true to replicate behavior of when this change was made (0.47)
|
||||
@ -63,7 +64,7 @@ func NewVotingParams(votingPeriod *time.Duration) VotingParams {
|
||||
// NewParams creates a new Params instance with given values.
|
||||
func NewParams(
|
||||
minDeposit, expeditedminDeposit sdk.Coins, maxDepositPeriod, votingPeriod, expeditedVotingPeriod time.Duration,
|
||||
quorum, threshold, expeditedThreshold, vetoThreshold, minInitialDepositRatio, proposalCancelRatio, proposalCancelDest string,
|
||||
quorum, threshold, expeditedThreshold, vetoThreshold, minInitialDepositRatio, proposalCancelRatio, proposalCancelDest, proposalMaxCancelVotingPeriod string,
|
||||
burnProposalDeposit, burnVoteQuorum, burnVoteVeto bool, minDepositRatio, optimisticRejectedThreshold string, optimisticAuthorizedAddresses []string,
|
||||
) Params {
|
||||
return Params{
|
||||
@ -79,6 +80,7 @@ func NewParams(
|
||||
MinInitialDepositRatio: minInitialDepositRatio,
|
||||
ProposalCancelRatio: proposalCancelRatio,
|
||||
ProposalCancelDest: proposalCancelDest,
|
||||
ProposalCancelMaxPeriod: proposalMaxCancelVotingPeriod,
|
||||
BurnProposalDepositPrevote: burnProposalDeposit,
|
||||
BurnVoteQuorum: burnVoteQuorum,
|
||||
BurnVoteVeto: burnVoteVeto,
|
||||
@ -103,6 +105,7 @@ func DefaultParams() Params {
|
||||
DefaultMinInitialDepositRatio.String(),
|
||||
DefaultProposalCancelRatio.String(),
|
||||
DefaultProposalCancelDestAddress,
|
||||
DefaultProposalCancelMaxPeriod.String(),
|
||||
DefaultBurnProposalPrevote,
|
||||
DefaultBurnVoteQuorom,
|
||||
DefaultBurnVoteVeto,
|
||||
@ -238,6 +241,17 @@ func (p Params) ValidateBasic(addressCodec address.Codec) error {
|
||||
return fmt.Errorf("burn rate of cancel proposal is too large: %s", proposalCancelRate)
|
||||
}
|
||||
|
||||
proposalCancelMaxPeriod, err := sdkmath.LegacyNewDecFromStr(p.ProposalCancelMaxPeriod)
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid max cancel period of cancel proposal: %w", err)
|
||||
}
|
||||
if proposalCancelMaxPeriod.IsNegative() {
|
||||
return fmt.Errorf("max cancel period of cancel proposal must be positive: %s", proposalCancelMaxPeriod)
|
||||
}
|
||||
if proposalCancelMaxPeriod.GT(sdkmath.LegacyOneDec()) {
|
||||
return fmt.Errorf("max cancel period of cancel proposal is too large: %s", proposalCancelMaxPeriod)
|
||||
}
|
||||
|
||||
if len(p.ProposalCancelDest) != 0 {
|
||||
_, err := sdk.AccAddressFromBech32(p.ProposalCancelDest)
|
||||
if err != nil {
|
||||
|
||||
@ -72,11 +72,11 @@ message DeeplyNestedSigner {
|
||||
|
||||
message DeeplyNestedRepeatedSigner {
|
||||
option (cosmos.msg.v1.signer) = "inner";
|
||||
repeated Inner inner = 1;
|
||||
repeated Inner inner = 1;
|
||||
|
||||
message Inner {
|
||||
option (cosmos.msg.v1.signer) = "inner";
|
||||
repeated Inner inner = 1;
|
||||
repeated Inner inner = 1;
|
||||
|
||||
message Inner {
|
||||
option (cosmos.msg.v1.signer) = "inner";
|
||||
@ -90,7 +90,6 @@ message DeeplyNestedRepeatedSigner {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message BadSigner {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
bytes signer = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user