refactor: remove gogoproto stringer annotations and MarshalYAML functions (#13850)

This commit is contained in:
Julien Robert
2022-11-28 12:56:00 +00:00
committed by GitHub
parent 68c1517046
commit 41f0ab15e6
63 changed files with 2221 additions and 2617 deletions
+11 -10
View File
@@ -72,8 +72,9 @@ type ParamChange struct {
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *ParamChange) Reset() { *m = ParamChange{} }
func (*ParamChange) ProtoMessage() {}
func (m *ParamChange) Reset() { *m = ParamChange{} }
func (m *ParamChange) String() string { return proto.CompactTextString(m) }
func (*ParamChange) ProtoMessage() {}
func (*ParamChange) Descriptor() ([]byte, []int) {
return fileDescriptor_53a944ecb0483e4c, []int{1}
}
@@ -135,7 +136,7 @@ func init() {
}
var fileDescriptor_53a944ecb0483e4c = []byte{
// 362 bytes of a gzipped FileDescriptorProto
// 358 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49,
0x34, 0x84, 0x72, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x44, 0x21, 0x6a, 0xf4, 0xa0, 0x82,
@@ -150,15 +151,15 @@ var fileDescriptor_53a944ecb0483e4c = []byte{
0x89, 0x7b, 0xf2, 0x0c, 0x2b, 0x9e, 0x6f, 0xd0, 0x62, 0x0c, 0x82, 0xe9, 0xb6, 0xf2, 0xed, 0x58,
0x20, 0xcf, 0x30, 0x63, 0x81, 0x3c, 0xc3, 0xa9, 0x2d, 0xba, 0x52, 0x50, 0x23, 0xd2, 0xf3, 0xcb,
0xe0, 0xfa, 0x9d, 0xf3, 0xf3, 0x4a, 0x52, 0xf3, 0x4a, 0xba, 0x9e, 0x6f, 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0x5c, 0x78, 0x2c, 0xc7,
0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e,
0x2e, 0x34, 0x22, 0xf4, 0x91, 0x9c, 0x59, 0x01, 0x8b, 0xf3, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xfd,
0x02, 0xa8, 0x33, 0x93, 0xd8, 0xc0, 0x31, 0x63, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x05, 0x76,
0xe8, 0xdb, 0x1a, 0x02, 0x00, 0x00,
}
func (this *ParameterChangeProposal) Equal(that interface{}) bool {
-8
View File
@@ -4,8 +4,6 @@ import (
"fmt"
"strings"
"sigs.k8s.io/yaml"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)
@@ -72,12 +70,6 @@ func NewParamChange(subspace, key, value string) ParamChange {
return ParamChange{subspace, key, value}
}
// String implements the Stringer interface.
func (pc ParamChange) String() string {
out, _ := yaml.Marshal(pc)
return string(out)
}
// ValidateChanges performs basic validation checks over a set of ParamChange. It
// returns an error if any ParamChange is invalid.
func ValidateChanges(changes []ParamChange) error {