diff --git a/api/cosmos/staking/v1beta1/authz.pulsar.go b/api/cosmos/staking/v1beta1/authz.pulsar.go index 6675b1355290..28a7feab302c 100644 --- a/api/cosmos/staking/v1beta1/authz.pulsar.go +++ b/api/cosmos/staking/v1beta1/authz.pulsar.go @@ -104,8 +104,8 @@ func (x *fastReflection_StakeAuthorization) Range(f func(protoreflect.FieldDescr return } } - if x.Validators != nil { - switch o := x.Validators.(type) { + if x.Validatorslist != nil { + switch o := x.Validatorslist.(type) { case *StakeAuthorization_AllowList: v := o.AllowList value := protoreflect.ValueOfMessage(v.ProtoReflect()) @@ -144,17 +144,17 @@ func (x *fastReflection_StakeAuthorization) Has(fd protoreflect.FieldDescriptor) case "cosmos.staking.v1beta1.StakeAuthorization.max_tokens": return x.MaxTokens != nil case "cosmos.staking.v1beta1.StakeAuthorization.allow_list": - if x.Validators == nil { + if x.Validatorslist == nil { return false - } else if _, ok := x.Validators.(*StakeAuthorization_AllowList); ok { + } else if _, ok := x.Validatorslist.(*StakeAuthorization_AllowList); ok { return true } else { return false } case "cosmos.staking.v1beta1.StakeAuthorization.deny_list": - if x.Validators == nil { + if x.Validatorslist == nil { return false - } else if _, ok := x.Validators.(*StakeAuthorization_DenyList); ok { + } else if _, ok := x.Validatorslist.(*StakeAuthorization_DenyList); ok { return true } else { return false @@ -180,9 +180,9 @@ func (x *fastReflection_StakeAuthorization) Clear(fd protoreflect.FieldDescripto case "cosmos.staking.v1beta1.StakeAuthorization.max_tokens": x.MaxTokens = nil case "cosmos.staking.v1beta1.StakeAuthorization.allow_list": - x.Validators = nil + x.Validatorslist = nil case "cosmos.staking.v1beta1.StakeAuthorization.deny_list": - x.Validators = nil + x.Validatorslist = nil case "cosmos.staking.v1beta1.StakeAuthorization.authorization_type": x.AuthorizationType = 0 default: @@ -205,17 +205,17 @@ func (x *fastReflection_StakeAuthorization) Get(descriptor protoreflect.FieldDes value := x.MaxTokens return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cosmos.staking.v1beta1.StakeAuthorization.allow_list": - if x.Validators == nil { + if x.Validatorslist == nil { return protoreflect.ValueOfMessage((*StakeAuthorization_Validators)(nil).ProtoReflect()) - } else if v, ok := x.Validators.(*StakeAuthorization_AllowList); ok { + } else if v, ok := x.Validatorslist.(*StakeAuthorization_AllowList); ok { return protoreflect.ValueOfMessage(v.AllowList.ProtoReflect()) } else { return protoreflect.ValueOfMessage((*StakeAuthorization_Validators)(nil).ProtoReflect()) } case "cosmos.staking.v1beta1.StakeAuthorization.deny_list": - if x.Validators == nil { + if x.Validatorslist == nil { return protoreflect.ValueOfMessage((*StakeAuthorization_Validators)(nil).ProtoReflect()) - } else if v, ok := x.Validators.(*StakeAuthorization_DenyList); ok { + } else if v, ok := x.Validatorslist.(*StakeAuthorization_DenyList); ok { return protoreflect.ValueOfMessage(v.DenyList.ProtoReflect()) } else { return protoreflect.ValueOfMessage((*StakeAuthorization_Validators)(nil).ProtoReflect()) @@ -247,10 +247,10 @@ func (x *fastReflection_StakeAuthorization) Set(fd protoreflect.FieldDescriptor, x.MaxTokens = value.Message().Interface().(*v1beta1.Coin) case "cosmos.staking.v1beta1.StakeAuthorization.allow_list": cv := value.Message().Interface().(*StakeAuthorization_Validators) - x.Validators = &StakeAuthorization_AllowList{AllowList: cv} + x.Validatorslist = &StakeAuthorization_AllowList{AllowList: cv} case "cosmos.staking.v1beta1.StakeAuthorization.deny_list": cv := value.Message().Interface().(*StakeAuthorization_Validators) - x.Validators = &StakeAuthorization_DenyList{DenyList: cv} + x.Validatorslist = &StakeAuthorization_DenyList{DenyList: cv} case "cosmos.staking.v1beta1.StakeAuthorization.authorization_type": x.AuthorizationType = (AuthorizationType)(value.Enum()) default: @@ -279,35 +279,35 @@ func (x *fastReflection_StakeAuthorization) Mutable(fd protoreflect.FieldDescrip } return protoreflect.ValueOfMessage(x.MaxTokens.ProtoReflect()) case "cosmos.staking.v1beta1.StakeAuthorization.allow_list": - if x.Validators == nil { + if x.Validatorslist == nil { value := &StakeAuthorization_Validators{} oneofValue := &StakeAuthorization_AllowList{AllowList: value} - x.Validators = oneofValue + x.Validatorslist = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - switch m := x.Validators.(type) { + switch m := x.Validatorslist.(type) { case *StakeAuthorization_AllowList: return protoreflect.ValueOfMessage(m.AllowList.ProtoReflect()) default: value := &StakeAuthorization_Validators{} oneofValue := &StakeAuthorization_AllowList{AllowList: value} - x.Validators = oneofValue + x.Validatorslist = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } case "cosmos.staking.v1beta1.StakeAuthorization.deny_list": - if x.Validators == nil { + if x.Validatorslist == nil { value := &StakeAuthorization_Validators{} oneofValue := &StakeAuthorization_DenyList{DenyList: value} - x.Validators = oneofValue + x.Validatorslist = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - switch m := x.Validators.(type) { + switch m := x.Validatorslist.(type) { case *StakeAuthorization_DenyList: return protoreflect.ValueOfMessage(m.DenyList.ProtoReflect()) default: value := &StakeAuthorization_Validators{} oneofValue := &StakeAuthorization_DenyList{DenyList: value} - x.Validators = oneofValue + x.Validatorslist = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } case "cosmos.staking.v1beta1.StakeAuthorization.authorization_type": @@ -349,11 +349,11 @@ func (x *fastReflection_StakeAuthorization) NewField(fd protoreflect.FieldDescri // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_StakeAuthorization) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "cosmos.staking.v1beta1.StakeAuthorization.validators": - if x.Validators == nil { + case "cosmos.staking.v1beta1.StakeAuthorization.validatorslist": + if x.Validatorslist == nil { return nil } - switch x.Validators.(type) { + switch x.Validatorslist.(type) { case *StakeAuthorization_AllowList: return x.Descriptor().Fields().ByName("allow_list") case *StakeAuthorization_DenyList: @@ -419,7 +419,7 @@ func (x *fastReflection_StakeAuthorization) ProtoMethods() *protoiface.Methods { l = options.Size(x.MaxTokens) n += 1 + l + runtime.Sov(uint64(l)) } - switch x := x.Validators.(type) { + switch x := x.Validatorslist.(type) { case *StakeAuthorization_AllowList: if x == nil { break @@ -465,7 +465,7 @@ func (x *fastReflection_StakeAuthorization) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - switch x := x.Validators.(type) { + switch x := x.Validatorslist.(type) { case *StakeAuthorization_AllowList: encoded, err := options.Marshal(x.AllowList) if err != nil { @@ -630,7 +630,7 @@ func (x *fastReflection_StakeAuthorization) ProtoMethods() *protoiface.Methods { if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Validators = &StakeAuthorization_AllowList{v} + x.Validatorslist = &StakeAuthorization_AllowList{v} iNdEx = postIndex case 3: if wireType != 2 { @@ -665,7 +665,7 @@ func (x *fastReflection_StakeAuthorization) ProtoMethods() *protoiface.Methods { if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Validators = &StakeAuthorization_DenyList{v} + x.Validatorslist = &StakeAuthorization_DenyList{v} iNdEx = postIndex case 4: if wireType != 0 { @@ -1290,11 +1290,11 @@ type StakeAuthorization struct { MaxTokens *v1beta1.Coin `protobuf:"bytes,1,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` // validators is the oneof that represents either allow_list or deny_list // - // Types that are assignable to Validators: + // Types that are assignable to Validatorslist: // // *StakeAuthorization_AllowList // *StakeAuthorization_DenyList - Validators isStakeAuthorization_Validators `protobuf_oneof:"validators"` + Validatorslist isStakeAuthorization_Validatorslist `protobuf_oneof:"validatorslist"` // authorization_type defines one of AuthorizationType. AuthorizationType AuthorizationType `protobuf:"varint,4,opt,name=authorization_type,json=authorizationType,proto3,enum=cosmos.staking.v1beta1.AuthorizationType" json:"authorization_type,omitempty"` } @@ -1326,22 +1326,22 @@ func (x *StakeAuthorization) GetMaxTokens() *v1beta1.Coin { return nil } -func (x *StakeAuthorization) GetValidators() isStakeAuthorization_Validators { +func (x *StakeAuthorization) GetValidatorslist() isStakeAuthorization_Validatorslist { if x != nil { - return x.Validators + return x.Validatorslist } return nil } func (x *StakeAuthorization) GetAllowList() *StakeAuthorization_Validators { - if x, ok := x.GetValidators().(*StakeAuthorization_AllowList); ok { + if x, ok := x.GetValidatorslist().(*StakeAuthorization_AllowList); ok { return x.AllowList } return nil } func (x *StakeAuthorization) GetDenyList() *StakeAuthorization_Validators { - if x, ok := x.GetValidators().(*StakeAuthorization_DenyList); ok { + if x, ok := x.GetValidatorslist().(*StakeAuthorization_DenyList); ok { return x.DenyList } return nil @@ -1354,8 +1354,8 @@ func (x *StakeAuthorization) GetAuthorizationType() AuthorizationType { return AuthorizationType_AUTHORIZATION_TYPE_UNSPECIFIED } -type isStakeAuthorization_Validators interface { - isStakeAuthorization_Validators() +type isStakeAuthorization_Validatorslist interface { + isStakeAuthorization_Validatorslist() } type StakeAuthorization_AllowList struct { @@ -1369,9 +1369,9 @@ type StakeAuthorization_DenyList struct { DenyList *StakeAuthorization_Validators `protobuf:"bytes,3,opt,name=deny_list,json=denyList,proto3,oneof"` } -func (*StakeAuthorization_AllowList) isStakeAuthorization_Validators() {} +func (*StakeAuthorization_AllowList) isStakeAuthorization_Validatorslist() {} -func (*StakeAuthorization_DenyList) isStakeAuthorization_Validators() {} +func (*StakeAuthorization_DenyList) isStakeAuthorization_Validatorslist() {} // Validators defines list of validator addresses. type StakeAuthorization_Validators struct { @@ -1422,7 +1422,7 @@ var file_cosmos_staking_v1beta1_authz_proto_rawDesc = []byte{ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xfa, 0x04, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x22, 0xfe, 0x04, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x65, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, @@ -1461,35 +1461,35 @@ var file_cosmos_staking_v1beta1_authz_proto_rawDesc = []byte{ 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2a, 0xd2, 0x01, - 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x54, 0x48, 0x4f, - 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, - 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x55, 0x54, 0x48, - 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, - 0x4e, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x21, 0x0a, 0x1d, 0x41, + 0x10, 0x0a, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x6c, 0x69, 0x73, + 0x74, 0x2a, 0xd2, 0x01, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x41, 0x55, 0x54, 0x48, 0x4f, + 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x52, 0x45, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x32, - 0x0a, 0x2e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x42, 0x4f, - 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x04, 0x42, 0xda, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x36, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x16, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, - 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, - 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, + 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, + 0x21, 0x0a, 0x1d, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, 0x54, 0x45, + 0x10, 0x03, 0x12, 0x32, 0x0a, 0x2e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, + 0x55, 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x47, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x42, 0xda, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, + 0x58, 0xaa, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/cosmos/staking/v1beta1/authz.proto b/proto/cosmos/staking/v1beta1/authz.proto index 409280c1edae..cb362916d506 100644 --- a/proto/cosmos/staking/v1beta1/authz.proto +++ b/proto/cosmos/staking/v1beta1/authz.proto @@ -19,7 +19,7 @@ message StakeAuthorization { // empty, there is no spend limit and any amount of coins can be delegated. cosmos.base.v1beta1.Coin max_tokens = 1 [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"]; // validators is the oneof that represents either allow_list or deny_list - oneof validators { + oneof validatorslist { // allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's // account. Validators allow_list = 2 [(amino.oneof_name) = "cosmos-sdk/StakeAuthorization/AllowList"]; diff --git a/x/staking/types/authz.pb.go b/x/staking/types/authz.pb.go index 5695fb0c26ca..08fa05c01396 100644 --- a/x/staking/types/authz.pb.go +++ b/x/staking/types/authz.pb.go @@ -77,10 +77,10 @@ type StakeAuthorization struct { MaxTokens *types.Coin `protobuf:"bytes,1,opt,name=max_tokens,json=maxTokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"max_tokens,omitempty"` // validators is the oneof that represents either allow_list or deny_list // - // Types that are valid to be assigned to Validators: + // Types that are valid to be assigned to Validatorslist: // *StakeAuthorization_AllowList // *StakeAuthorization_DenyList - Validators isStakeAuthorization_Validators `protobuf_oneof:"validators"` + Validatorslist isStakeAuthorization_Validatorslist `protobuf_oneof:"validatorslist"` // authorization_type defines one of AuthorizationType. AuthorizationType AuthorizationType `protobuf:"varint,4,opt,name=authorization_type,json=authorizationType,proto3,enum=cosmos.staking.v1beta1.AuthorizationType" json:"authorization_type,omitempty"` } @@ -118,8 +118,8 @@ func (m *StakeAuthorization) XXX_DiscardUnknown() { var xxx_messageInfo_StakeAuthorization proto.InternalMessageInfo -type isStakeAuthorization_Validators interface { - isStakeAuthorization_Validators() +type isStakeAuthorization_Validatorslist interface { + isStakeAuthorization_Validatorslist() MarshalTo([]byte) (int, error) Size() int } @@ -131,12 +131,12 @@ type StakeAuthorization_DenyList struct { DenyList *StakeAuthorization_Validators `protobuf:"bytes,3,opt,name=deny_list,json=denyList,proto3,oneof" json:"deny_list,omitempty"` } -func (*StakeAuthorization_AllowList) isStakeAuthorization_Validators() {} -func (*StakeAuthorization_DenyList) isStakeAuthorization_Validators() {} +func (*StakeAuthorization_AllowList) isStakeAuthorization_Validatorslist() {} +func (*StakeAuthorization_DenyList) isStakeAuthorization_Validatorslist() {} -func (m *StakeAuthorization) GetValidators() isStakeAuthorization_Validators { +func (m *StakeAuthorization) GetValidatorslist() isStakeAuthorization_Validatorslist { if m != nil { - return m.Validators + return m.Validatorslist } return nil } @@ -149,14 +149,14 @@ func (m *StakeAuthorization) GetMaxTokens() *types.Coin { } func (m *StakeAuthorization) GetAllowList() *StakeAuthorization_Validators { - if x, ok := m.GetValidators().(*StakeAuthorization_AllowList); ok { + if x, ok := m.GetValidatorslist().(*StakeAuthorization_AllowList); ok { return x.AllowList } return nil } func (m *StakeAuthorization) GetDenyList() *StakeAuthorization_Validators { - if x, ok := m.GetValidators().(*StakeAuthorization_DenyList); ok { + if x, ok := m.GetValidatorslist().(*StakeAuthorization_DenyList); ok { return x.DenyList } return nil @@ -233,42 +233,42 @@ func init() { } var fileDescriptor_d6d8cdbc6f4432f0 = []byte{ - // 556 bytes of a gzipped FileDescriptorProto + // 558 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0x6e, 0x12, 0x41, - 0x18, 0xc7, 0xd9, 0xb6, 0x51, 0x19, 0x8d, 0x29, 0x93, 0xc6, 0x50, 0x4c, 0xb7, 0x95, 0x83, 0x45, - 0x5a, 0x66, 0x53, 0x8c, 0x17, 0x4f, 0xee, 0xc2, 0xb6, 0x6c, 0x42, 0x96, 0x66, 0x59, 0x8c, 0xf6, - 0xb2, 0x19, 0xd8, 0x0d, 0x4c, 0x80, 0x1d, 0xc2, 0x0c, 0x15, 0x7a, 0x33, 0xf1, 0xe4, 0xc9, 0xe7, - 0xf0, 0xd4, 0x98, 0x3e, 0x84, 0xf1, 0xd4, 0xf4, 0xe4, 0x4d, 0x03, 0x87, 0xbe, 0x83, 0x27, 0xb3, - 0xbb, 0x03, 0x56, 0xa1, 0x5c, 0xbc, 0xc0, 0x30, 0xdf, 0x8f, 0xef, 0xff, 0x9b, 0xd9, 0x99, 0x05, - 0xe9, 0x06, 0x65, 0x5d, 0xca, 0x14, 0xc6, 0x71, 0x9b, 0xf8, 0x4d, 0xe5, 0xf4, 0xa0, 0xee, 0x71, - 0x7c, 0xa0, 0xe0, 0x01, 0x6f, 0x9d, 0xa1, 0x5e, 0x9f, 0x72, 0x0a, 0x1f, 0x45, 0x0c, 0x12, 0x0c, - 0x12, 0x4c, 0x6a, 0xa3, 0x49, 0x9b, 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 0x35, 0x2a, 0xe6, 0xfa, 0x9a, 0x76, 0xf8, 0x75, 0x2c, 0x4b, 0x97, 0x63, 0x59, 0xfa, - 0x39, 0x96, 0xa5, 0x4f, 0x13, 0x39, 0x76, 0x39, 0x91, 0x63, 0xdf, 0x27, 0x72, 0xec, 0x64, 0x7f, - 0xe9, 0x0d, 0x19, 0xce, 0xde, 0x11, 0xe1, 0x5d, 0xa9, 0xdf, 0x09, 0x2f, 0xe8, 0xf3, 0xdf, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x2a, 0x15, 0x5e, 0xdc, 0x42, 0x04, 0x00, 0x00, + 0x18, 0xc7, 0xd9, 0xb6, 0x51, 0x19, 0x93, 0x86, 0x4e, 0x1a, 0x43, 0x31, 0xdd, 0x56, 0x0e, 0x16, + 0x69, 0x99, 0x4d, 0x31, 0x5e, 0x3c, 0xb9, 0x0b, 0xdb, 0xb2, 0x09, 0x59, 0x9a, 0x65, 0x31, 0xda, + 0xcb, 0x66, 0x60, 0x37, 0x30, 0x01, 0x76, 0x08, 0x33, 0x54, 0xe8, 0xcd, 0xc4, 0x93, 0x27, 0x9f, + 0xc3, 0x53, 0x63, 0xfa, 0x10, 0xc6, 0x53, 0xd3, 0x93, 0x37, 0x0d, 0x1c, 0xfa, 0x16, 0xc6, 0xec, + 0xee, 0x80, 0x55, 0x28, 0x17, 0x2f, 0x30, 0xcc, 0xf7, 0xe3, 0xfb, 0xff, 0x66, 0x76, 0x66, 0x41, + 0xba, 0x41, 0x59, 0x97, 0x32, 0x85, 0x71, 0xdc, 0x26, 0x7e, 0x53, 0x39, 0x3b, 0xac, 0x7b, 0x1c, + 0x1f, 0x2a, 0x78, 0xc0, 0x5b, 0xe7, 0xa8, 0xd7, 0xa7, 0x9c, 0xc2, 0x47, 0x11, 0x83, 0x04, 0x83, + 0x04, 0x93, 0xda, 0x6c, 0xd2, 0x26, 0x0d, 0x11, 0x25, 0x18, 0x45, 0x74, 0x6a, 0x2b, 0xa2, 0x9d, + 0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0x4b, 0x57, 0x63, + 0x59, 0xfa, 0x39, 0x96, 0xa5, 0x4f, 0x13, 0x39, 0x76, 0x35, 0x91, 0x63, 0xdf, 0x27, 0x72, 0xec, + 0xf4, 0x60, 0xe9, 0x2d, 0x19, 0xce, 0xde, 0x13, 0xe1, 0x7d, 0xa9, 0xdf, 0x0b, 0x2f, 0xe9, 0xf3, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x95, 0xa0, 0xc0, 0x36, 0x46, 0x04, 0x00, 0x00, } func (m *StakeAuthorization) Marshal() (dAtA []byte, err error) { @@ -296,11 +296,11 @@ func (m *StakeAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x20 } - if m.Validators != nil { + if m.Validatorslist != nil { { - size := m.Validators.Size() + size := m.Validatorslist.Size() i -= size - if _, err := m.Validators.MarshalTo(dAtA[i:]); err != nil { + if _, err := m.Validatorslist.MarshalTo(dAtA[i:]); err != nil { return 0, err } } @@ -415,8 +415,8 @@ func (m *StakeAuthorization) Size() (n int) { l = m.MaxTokens.Size() n += 1 + l + sovAuthz(uint64(l)) } - if m.Validators != nil { - n += m.Validators.Size() + if m.Validatorslist != nil { + n += m.Validatorslist.Size() } if m.AuthorizationType != 0 { n += 1 + sovAuthz(uint64(m.AuthorizationType)) @@ -567,7 +567,7 @@ func (m *StakeAuthorization) Unmarshal(dAtA []byte) error { if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Validators = &StakeAuthorization_AllowList{v} + m.Validatorslist = &StakeAuthorization_AllowList{v} iNdEx = postIndex case 3: if wireType != 2 { @@ -602,7 +602,7 @@ func (m *StakeAuthorization) Unmarshal(dAtA []byte) error { if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Validators = &StakeAuthorization_DenyList{v} + m.Validatorslist = &StakeAuthorization_DenyList{v} iNdEx = postIndex case 4: if wireType != 0 {