diff --git a/api/cosmos/authz/v1beta1/genesis.pulsar.go b/api/cosmos/authz/v1beta1/genesis.pulsar.go index 672d66fa3962..eeaa312004f4 100644 --- a/api/cosmos/authz/v1beta1/genesis.pulsar.go +++ b/api/cosmos/authz/v1beta1/genesis.pulsar.go @@ -3,14 +3,11 @@ package authzv1beta1 import ( fmt "fmt" - _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/gogo/protobuf/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/anypb" - _ "google.golang.org/protobuf/types/known/timestamppb" io "io" reflect "reflect" sync "sync" @@ -567,37 +564,32 @@ var file_cosmos_authz_v1beta1_genesis_proto_rawDesc = []byte{ 0x0a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, - 0x68, 0x7a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, - 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x0c, 0x47, 0x65, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x54, 0x0a, 0x0d, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0xde, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xa2, 0x02, 0x03, 0x43, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, + 0x68, 0x7a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x54, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xde, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, + 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, + 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x75, 0x74, + 0x68, 0x7a, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x58, 0xaa, + 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, + 0x41, 0x75, 0x74, 0x68, 0x7a, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x75, - 0x74, 0x68, 0x7a, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x7a, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/api/cosmos/group/v1beta1/types.pulsar.go b/api/cosmos/group/v1beta1/types.pulsar.go index 62a1b661f7e3..215d5b7f07cb 100644 --- a/api/cosmos/group/v1beta1/types.pulsar.go +++ b/api/cosmos/group/v1beta1/types.pulsar.go @@ -7101,10 +7101,10 @@ type PercentageDecisionPolicy struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // percentage is the minimum percentage the weighted sum of yes votes must met for a proposal to succeed. + // percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // timeout is the duration from submission of a proposal to the end of voting period - // Within this times votes and exec messages can be submitted. + // Within these times votes and exec messages can be submitted. Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` } diff --git a/api/cosmos/orm/v1alpha1/orm.pulsar.go b/api/cosmos/orm/v1alpha1/orm.pulsar.go index 466ecbfe767f..45b0353c223b 100644 --- a/api/cosmos/orm/v1alpha1/orm.pulsar.go +++ b/api/cosmos/orm/v1alpha1/orm.pulsar.go @@ -2241,8 +2241,15 @@ type PrimaryKeyDescriptor struct { // fields is a comma-separated list of fields in the primary key. Spaces are // not allowed. Supported field types, their encodings, and any applicable constraints // are described below. - // - uint32, uint64 are encoded as big-endian fixed width bytes and support - // sorted iteration. + // - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + // is suitable for sorted iteration (not varint encoding). This type is + // well-suited for small integers. + // - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + // is suitable for sorted iteration (not varint encoding). This type is + // well-suited for small integers such as auto-incrementing sequences. + // - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + // sorted iteration. These types are well-suited for encoding fixed with + // decimals as integers. // - string's are encoded as raw bytes in terminal key segments and null-terminated // in non-terminal segments. Null characters are thus forbidden in strings. // string fields support sorted iteration. @@ -2251,7 +2258,7 @@ type PrimaryKeyDescriptor struct { // longer than 255 bytes are unsupported and bytes fields should not // be assumed to be lexically sorted. If you have a byte array longer than // 255 bytes that you'd like to index, you should consider hashing it first. - // - int32, sint32, int64, sint64 are encoding as fixed width bytes with + // - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with // an encoding that enables sorted iteration. // - google.protobuf.Timestamp and google.protobuf.Duration are encoded // as 12 bytes using an encoding that enables sorted iteration. diff --git a/client/grpc/reflection/reflection.pb.go b/client/grpc/reflection/reflection.pb.go index 66dbef0c7105..271b71fe9295 100644 --- a/client/grpc/reflection/reflection.pb.go +++ b/client/grpc/reflection/reflection.pb.go @@ -6,7 +6,6 @@ package reflection import ( context "context" fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -265,10 +264,10 @@ type ReflectionServiceClient interface { } type reflectionServiceClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewReflectionServiceClient(cc grpc1.ClientConn) ReflectionServiceClient { +func NewReflectionServiceClient(cc *grpc.ClientConn) ReflectionServiceClient { return &reflectionServiceClient{cc} } @@ -311,7 +310,7 @@ func (*UnimplementedReflectionServiceServer) ListImplementations(ctx context.Con return nil, status.Errorf(codes.Unimplemented, "method ListImplementations not implemented") } -func RegisterReflectionServiceServer(s grpc1.Server, srv ReflectionServiceServer) { +func RegisterReflectionServiceServer(s *grpc.Server, srv ReflectionServiceServer) { s.RegisterService(&_ReflectionService_serviceDesc, srv) } diff --git a/client/grpc/tmservice/query.pb.go b/client/grpc/tmservice/query.pb.go index 77c6eaee8c19..36cec8fd4114 100644 --- a/client/grpc/tmservice/query.pb.go +++ b/client/grpc/tmservice/query.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" p2p "github.com/tendermint/tendermint/proto/tendermint/p2p" types1 "github.com/tendermint/tendermint/proto/tendermint/types" @@ -973,10 +972,10 @@ type ServiceClient interface { } type serviceClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewServiceClient(cc grpc1.ClientConn) ServiceClient { +func NewServiceClient(cc *grpc.ClientConn) ServiceClient { return &serviceClient{cc} } @@ -1073,7 +1072,7 @@ func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, return nil, status.Errorf(codes.Unimplemented, "method GetValidatorSetByHeight not implemented") } -func RegisterServiceServer(s grpc1.Server, srv ServiceServer) { +func RegisterServiceServer(s *grpc.Server, srv ServiceServer) { s.RegisterService(&_Service_serviceDesc, srv) } diff --git a/server/grpc/reflection/v2alpha1/reflection.pb.go b/server/grpc/reflection/v2alpha1/reflection.pb.go index c75e6958ce32..762c3a329856 100644 --- a/server/grpc/reflection/v2alpha1/reflection.pb.go +++ b/server/grpc/reflection/v2alpha1/reflection.pb.go @@ -6,7 +6,6 @@ package v2alpha1 import ( context "context" fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -1463,10 +1462,10 @@ type ReflectionServiceClient interface { } type reflectionServiceClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewReflectionServiceClient(cc grpc1.ClientConn) ReflectionServiceClient { +func NewReflectionServiceClient(cc *grpc.ClientConn) ReflectionServiceClient { return &reflectionServiceClient{cc} } @@ -1565,7 +1564,7 @@ func (*UnimplementedReflectionServiceServer) GetTxDescriptor(ctx context.Context return nil, status.Errorf(codes.Unimplemented, "method GetTxDescriptor not implemented") } -func RegisterReflectionServiceServer(s grpc1.Server, srv ReflectionServiceServer) { +func RegisterReflectionServiceServer(s *grpc.Server, srv ReflectionServiceServer) { s.RegisterService(&_ReflectionService_serviceDesc, srv) } diff --git a/testutil/testdata/query.pb.go b/testutil/testdata/query.pb.go index e7d38dc7ceb8..b0a19fa4c9b5 100644 --- a/testutil/testdata/query.pb.go +++ b/testutil/testdata/query.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" types "github.com/cosmos/cosmos-sdk/codec/types" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -348,10 +347,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -403,7 +402,7 @@ func (*UnimplementedQueryServer) TestAny(ctx context.Context, req *TestAnyReques return nil, status.Errorf(codes.Unimplemented, "method TestAny not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/testutil/testdata/tx.pb.go b/testutil/testdata/tx.pb.go index 694a045fffae..9dfee9e280db 100644 --- a/testutil/testdata/tx.pb.go +++ b/testutil/testdata/tx.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -200,10 +199,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -229,7 +228,7 @@ func (*UnimplementedMsgServer) CreateDog(ctx context.Context, req *MsgCreateDog) return nil, status.Errorf(codes.Unimplemented, "method CreateDog not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/types/abci.pb.go b/types/abci.pb.go index 6d8db553887d..c2c11fb7af3c 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -44,7 +44,7 @@ type TxResponse struct { // non-deterministic. RawLog string `protobuf:"bytes,6,opt,name=raw_log,json=rawLog,proto3" json:"raw_log,omitempty"` // The output of the application's logger (typed). May be non-deterministic. - Logs ABCIMessageLogs `protobuf:"bytes,7,rep,name=logs,proto3,castrepeated=ABCIMessageLogs" json:"logs"` + Logs []ABCIMessageLog `protobuf:"bytes,7,rep,name=logs,proto3" json:"logs"` // Additional information. May be non-deterministic. Info string `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"` // Amount of gas requested for transaction. @@ -104,7 +104,7 @@ type ABCIMessageLog struct { Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` // Events contains a slice of Event objects that were emitted during some // execution. - Events StringEvents `protobuf:"bytes,3,rep,name=events,proto3,castrepeated=StringEvents" json:"events"` + Events []StringEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events"` } func (m *ABCIMessageLog) Reset() { *m = ABCIMessageLog{} } @@ -153,7 +153,7 @@ func (m *ABCIMessageLog) GetLog() string { return "" } -func (m *ABCIMessageLog) GetEvents() StringEvents { +func (m *ABCIMessageLog) GetEvents() []StringEvent { if m != nil { return m.Events } diff --git a/types/coin.pb.go b/types/coin.pb.go index 4df295645b85..bca4042d0950 100644 --- a/types/coin.pb.go +++ b/types/coin.pb.go @@ -299,16 +299,13 @@ func (m *Coin) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoin(dAtA, i, uint64(size)) + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintCoin(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if len(m.Denom) > 0 { i -= len(m.Denom) copy(dAtA[i:], m.Denom) @@ -339,16 +336,13 @@ func (m *DecCoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoin(dAtA, i, uint64(size)) + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintCoin(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if len(m.Denom) > 0 { i -= len(m.Denom) copy(dAtA[i:], m.Denom) @@ -379,16 +373,13 @@ func (m *IntProto) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Int.Size() - i -= size - if _, err := m.Int.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoin(dAtA, i, uint64(size)) + if len(m.Int) > 0 { + i -= len(m.Int) + copy(dAtA[i:], m.Int) + i = encodeVarintCoin(dAtA, i, uint64(len(m.Int))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -412,16 +403,13 @@ func (m *DecProto) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Dec.Size() - i -= size - if _, err := m.Dec.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoin(dAtA, i, uint64(size)) + if len(m.Dec) > 0 { + i -= len(m.Dec) + copy(dAtA[i:], m.Dec) + i = encodeVarintCoin(dAtA, i, uint64(len(m.Dec))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -446,8 +434,10 @@ func (m *Coin) Size() (n int) { if l > 0 { n += 1 + l + sovCoin(uint64(l)) } - l = m.Amount.Size() - n += 1 + l + sovCoin(uint64(l)) + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovCoin(uint64(l)) + } return n } @@ -461,8 +451,10 @@ func (m *DecCoin) Size() (n int) { if l > 0 { n += 1 + l + sovCoin(uint64(l)) } - l = m.Amount.Size() - n += 1 + l + sovCoin(uint64(l)) + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovCoin(uint64(l)) + } return n } @@ -472,8 +464,10 @@ func (m *IntProto) Size() (n int) { } var l int _ = l - l = m.Int.Size() - n += 1 + l + sovCoin(uint64(l)) + l = len(m.Int) + if l > 0 { + n += 1 + l + sovCoin(uint64(l)) + } return n } @@ -483,8 +477,10 @@ func (m *DecProto) Size() (n int) { } var l int _ = l - l = m.Dec.Size() - n += 1 + l + sovCoin(uint64(l)) + l = len(m.Dec) + if l > 0 { + n += 1 + l + sovCoin(uint64(l)) + } return n } @@ -585,9 +581,7 @@ func (m *Coin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Amount = Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -701,9 +695,7 @@ func (m *DecCoin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Amount = Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -785,9 +777,7 @@ func (m *IntProto) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Int.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Int = Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -869,9 +859,7 @@ func (m *DecProto) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Dec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Dec = Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/types/tx/service.pb.go b/types/tx/service.pb.go index 13c068cae088..8e8721c5cd85 100644 --- a/types/tx/service.pb.go +++ b/types/tx/service.pb.go @@ -9,7 +9,6 @@ import ( types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -660,10 +659,10 @@ type ServiceClient interface { } type serviceClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewServiceClient(cc grpc1.ClientConn) ServiceClient { +func NewServiceClient(cc *grpc.ClientConn) ServiceClient { return &serviceClient{cc} } @@ -732,7 +731,7 @@ func (*UnimplementedServiceServer) GetTxsEvent(ctx context.Context, req *GetTxsE return nil, status.Errorf(codes.Unimplemented, "method GetTxsEvent not implemented") } -func RegisterServiceServer(s grpc1.Server, srv ServiceServer) { +func RegisterServiceServer(s *grpc.Server, srv ServiceServer) { s.RegisterService(&_Service_serviceDesc, srv) } diff --git a/types/tx/tx.pb.go b/types/tx/tx.pb.go index d16c7898116b..0218bdb7481c 100644 --- a/types/tx/tx.pb.go +++ b/types/tx/tx.pb.go @@ -8,7 +8,6 @@ import ( _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" types1 "github.com/cosmos/cosmos-sdk/crypto/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types2 "github.com/cosmos/cosmos-sdk/types" signing "github.com/cosmos/cosmos-sdk/types/tx/signing" _ "github.com/gogo/protobuf/gogoproto" @@ -779,7 +778,7 @@ func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo { // which must be above some miminum to be accepted into the mempool. type Fee struct { // amount is the amount of coins to be paid as a fee - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount []types2.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"` // gas_limit is the maximum gas that can be used in transaction processing // before an out of gas error occurs GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` @@ -826,7 +825,7 @@ func (m *Fee) XXX_DiscardUnknown() { var xxx_messageInfo_Fee proto.InternalMessageInfo -func (m *Fee) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *Fee) GetAmount() []types2.Coin { if m != nil { return m.Amount } @@ -859,7 +858,7 @@ func (m *Fee) GetGranter() string { // Since: cosmos-sdk 0.46 type Tip struct { // amount is the amount of the tip - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount []types2.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"` // tipper is the address of the account paying for the tip Tipper string `protobuf:"bytes,2,opt,name=tipper,proto3" json:"tipper,omitempty"` } @@ -897,7 +896,7 @@ func (m *Tip) XXX_DiscardUnknown() { var xxx_messageInfo_Tip proto.InternalMessageInfo -func (m *Tip) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *Tip) GetAmount() []types2.Coin { if m != nil { return m.Amount } diff --git a/x/auth/types/query.pb.go b/x/auth/types/query.pb.go index 2a3f8493aa21..77e0a42db7ad 100644 --- a/x/auth/types/query.pb.go +++ b/x/auth/types/query.pb.go @@ -10,7 +10,6 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -754,10 +753,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -870,7 +869,7 @@ func (*UnimplementedQueryServer) AddressStringToBytes(ctx context.Context, req * return nil, status.Errorf(codes.Unimplemented, "method AddressStringToBytes not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/auth/vesting/types/tx.pb.go b/x/auth/vesting/types/tx.pb.go index bcf2bc30e4ac..ce9c85882898 100644 --- a/x/auth/vesting/types/tx.pb.go +++ b/x/auth/vesting/types/tx.pb.go @@ -7,11 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -35,11 +33,11 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgCreateVestingAccount defines a message that enables creating a vesting // account. type MsgCreateVestingAccount struct { - FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` - ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` - EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - Delayed bool `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"` + FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` + Amount []types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` + EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + Delayed bool `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"` } func (m *MsgCreateVestingAccount) Reset() { *m = MsgCreateVestingAccount{} } @@ -89,7 +87,7 @@ func (m *MsgCreateVestingAccount) GetToAddress() string { return "" } -func (m *MsgCreateVestingAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *MsgCreateVestingAccount) GetAmount() []types.Coin { if m != nil { return m.Amount } @@ -150,9 +148,9 @@ var xxx_messageInfo_MsgCreateVestingAccountResponse proto.InternalMessageInfo // MsgCreatePermanentLockedAccount defines a message that enables creating a permanent // locked account. type MsgCreatePermanentLockedAccount struct { - FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` - ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` + ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` + Amount []types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *MsgCreatePermanentLockedAccount) Reset() { *m = MsgCreatePermanentLockedAccount{} } @@ -202,7 +200,7 @@ func (m *MsgCreatePermanentLockedAccount) GetToAddress() string { return "" } -func (m *MsgCreatePermanentLockedAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *MsgCreatePermanentLockedAccount) GetAmount() []types.Coin { if m != nil { return m.Amount } @@ -513,10 +511,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -574,7 +572,7 @@ func (*UnimplementedMsgServer) CreatePeriodicVestingAccount(ctx context.Context, return nil, status.Errorf(codes.Unimplemented, "method CreatePeriodicVestingAccount not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/auth/vesting/types/vesting.pb.go b/x/auth/vesting/types/vesting.pb.go index 1404b5891cc6..1de6966ddc56 100644 --- a/x/auth/vesting/types/vesting.pb.go +++ b/x/auth/vesting/types/vesting.pb.go @@ -5,7 +5,6 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types1 "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/x/auth/types" _ "github.com/gogo/protobuf/gogoproto" @@ -30,10 +29,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // the necessary fields needed for any vesting account implementation. type BaseVestingAccount struct { *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` - OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting"` - DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free"` - DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting"` - EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + OriginalVesting []types1.Coin `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3" json:"original_vesting"` + DelegatedFree []types1.Coin `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3" json:"delegated_free"` + DelegatedVesting []types1.Coin `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3" json:"delegated_vesting"` + EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } @@ -148,8 +147,8 @@ var xxx_messageInfo_DelayedVestingAccount proto.InternalMessageInfo // Period defines a length of time and amount of coins that will vest. type Period struct { - Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` + Amount []types1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount"` } func (m *Period) Reset() { *m = Period{} } @@ -191,7 +190,7 @@ func (m *Period) GetLength() int64 { return 0 } -func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *Period) GetAmount() []types1.Coin { if m != nil { return m.Amount } diff --git a/x/authz/genesis.pb.go b/x/authz/genesis.pb.go index f3dd911b4944..56f2157a92ee 100644 --- a/x/authz/genesis.pb.go +++ b/x/authz/genesis.pb.go @@ -5,11 +5,8 @@ package authz import ( fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" @@ -80,23 +77,20 @@ func init() { } var fileDescriptor_4c2fbb971da7c892 = []byte{ - // 247 bytes of a gzipped FileDescriptorProto + // 206 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x81, 0xa8, 0xd1, 0x03, 0xab, 0xd1, 0x83, 0xaa, 0x91, 0x92, 0x4f, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, - 0xd5, 0x07, 0xab, 0x49, 0x2a, 0x4d, 0xd3, 0x2f, 0xc9, 0xcc, 0x4d, 0x2d, 0x2e, 0x49, 0xcc, 0x2d, - 0x80, 0x68, 0x93, 0x92, 0x44, 0x57, 0x90, 0x98, 0x57, 0x09, 0x95, 0x12, 0x49, 0xcf, 0x4f, 0xcf, - 0x07, 0x33, 0xf5, 0x41, 0x2c, 0x98, 0x06, 0x88, 0x3d, 0xf1, 0x10, 0x09, 0xa8, 0xa5, 0x10, 0x29, - 0x05, 0xac, 0xce, 0x84, 0x38, 0x08, 0xac, 0x42, 0x29, 0x85, 0x8b, 0xc7, 0x1d, 0xe2, 0xea, 0xe0, - 0x92, 0xc4, 0x92, 0x54, 0xa1, 0x10, 0x2e, 0x5e, 0x90, 0x74, 0x7e, 0x51, 0x66, 0x55, 0x62, 0x49, - 0x66, 0x7e, 0x9e, 0x04, 0xa3, 0x02, 0xb3, 0x06, 0xb7, 0x91, 0x86, 0x1e, 0x36, 0xcf, 0xe8, 0xb9, - 0x17, 0x25, 0xe6, 0x95, 0x38, 0x22, 0xab, 0x77, 0x62, 0x39, 0x71, 0x4f, 0x9e, 0x21, 0x08, 0xd5, - 0x10, 0x27, 0xbb, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, - 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x49, 0xcf, - 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0x85, 0x3a, 0x1d, 0x4a, 0xe9, 0x16, 0xa7, 0x64, - 0xeb, 0x57, 0x40, 0xdc, 0x9a, 0xc4, 0x06, 0x76, 0xac, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x22, - 0xa6, 0xf4, 0x0b, 0x77, 0x01, 0x00, 0x00, + 0x81, 0xa8, 0xd1, 0x03, 0xab, 0xd1, 0x83, 0xaa, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, + 0xd0, 0x07, 0xb1, 0x20, 0x6a, 0xa5, 0x14, 0xb0, 0x9a, 0x07, 0xd1, 0x09, 0x56, 0xa1, 0x94, 0xc2, + 0xc5, 0xe3, 0x0e, 0x31, 0x3e, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0x28, 0x84, 0x8b, 0x17, 0x24, 0x9d, + 0x5f, 0x94, 0x59, 0x95, 0x58, 0x92, 0x99, 0x9f, 0x27, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0xa4, + 0xa1, 0x87, 0xcd, 0x56, 0x3d, 0xf7, 0xa2, 0xc4, 0xbc, 0x12, 0x47, 0x64, 0xf5, 0x4e, 0x2c, 0x27, + 0xee, 0xc9, 0x33, 0x04, 0xa1, 0x1a, 0xe2, 0x64, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, + 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, + 0x72, 0x0c, 0x51, 0x2a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, + 0xc7, 0x42, 0x28, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x0a, 0x88, 0x5b, 0x93, 0xd8, 0xc0, 0x8e, 0x35, + 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xd2, 0x41, 0x42, 0x20, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/authz/query.pb.go b/x/authz/query.pb.go index b901057e563f..6f7769e75df3 100644 --- a/x/authz/query.pb.go +++ b/x/authz/query.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -448,10 +447,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -510,7 +509,7 @@ func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGr return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/authz/tx.pb.go b/x/authz/tx.pb.go index fd3ef5443fb0..97b7482e1564 100644 --- a/x/authz/tx.pb.go +++ b/x/authz/tx.pb.go @@ -10,7 +10,6 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -344,10 +343,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -408,7 +407,7 @@ func (*UnimplementedMsgServer) Revoke(ctx context.Context, req *MsgRevoke) (*Msg return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/bank/types/authz.pb.go b/x/bank/types/authz.pb.go index 904a7f9ce793..c42265c3aae2 100644 --- a/x/bank/types/authz.pb.go +++ b/x/bank/types/authz.pb.go @@ -6,7 +6,6 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -31,7 +30,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Since: cosmos-sdk 0.43 type SendAuthorization struct { - SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"` + SpendLimit []types.Coin `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3" json:"spend_limit"` } func (m *SendAuthorization) Reset() { *m = SendAuthorization{} } @@ -67,7 +66,7 @@ func (m *SendAuthorization) XXX_DiscardUnknown() { var xxx_messageInfo_SendAuthorization proto.InternalMessageInfo -func (m *SendAuthorization) GetSpendLimit() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *SendAuthorization) GetSpendLimit() []types.Coin { if m != nil { return m.SpendLimit } diff --git a/x/bank/types/bank.pb.go b/x/bank/types/bank.pb.go index 93feea14672b..18a9ecbe2a7f 100644 --- a/x/bank/types/bank.pb.go +++ b/x/bank/types/bank.pb.go @@ -6,7 +6,6 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" @@ -134,8 +133,8 @@ func (m *SendEnabled) GetEnabled() bool { // Input models transaction input. type Input struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Coins []types.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins"` } func (m *Input) Reset() { *m = Input{} } @@ -173,8 +172,8 @@ var xxx_messageInfo_Input proto.InternalMessageInfo // Output models transaction outputs. type Output struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Coins []types.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins"` } func (m *Output) Reset() { *m = Output{} } @@ -216,7 +215,7 @@ var xxx_messageInfo_Output proto.InternalMessageInfo // // Deprecated: Do not use. type Supply struct { - Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total"` + Total []types.Coin `protobuf:"bytes,1,rep,name=total,proto3" json:"total"` } func (m *Supply) Reset() { *m = Supply{} } diff --git a/x/bank/types/genesis.pb.go b/x/bank/types/genesis.pb.go index 1e8ecae3d0b5..fe90a56b05a1 100644 --- a/x/bank/types/genesis.pb.go +++ b/x/bank/types/genesis.pb.go @@ -6,7 +6,6 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -34,7 +33,7 @@ type GenesisState struct { Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` + Supply []types.Coin `protobuf:"bytes,3,rep,name=supply,proto3" json:"supply"` // denom_metadata defines the metadata of the differents coins. DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata"` } @@ -86,7 +85,7 @@ func (m *GenesisState) GetBalances() []Balance { return nil } -func (m *GenesisState) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *GenesisState) GetSupply() []types.Coin { if m != nil { return m.Supply } @@ -106,7 +105,7 @@ type Balance struct { // address is the address of the balance holder. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // coins defines the different coins this balance holds. - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Coins []types.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins"` } func (m *Balance) Reset() { *m = Balance{} } diff --git a/x/bank/types/query.pb.go b/x/bank/types/query.pb.go index feca926ef839..999e9c4ef71f 100644 --- a/x/bank/types/query.pb.go +++ b/x/bank/types/query.pb.go @@ -7,11 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -165,7 +163,7 @@ var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo // method. type QueryAllBalancesResponse struct { // balances is the balances of all the coins. - Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"` + Balances []types.Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -203,7 +201,7 @@ func (m *QueryAllBalancesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllBalancesResponse proto.InternalMessageInfo -func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *QueryAllBalancesResponse) GetBalances() []types.Coin { if m != nil { return m.Balances } @@ -263,7 +261,7 @@ var xxx_messageInfo_QueryTotalSupplyRequest proto.InternalMessageInfo // method type QueryTotalSupplyResponse struct { // supply is the supply of the coins - Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` + Supply []types.Coin `protobuf:"bytes,1,rep,name=supply,proto3" json:"supply"` // pagination defines the pagination in the response. // // Since: cosmos-sdk 0.43 @@ -303,7 +301,7 @@ func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryTotalSupplyResponse proto.InternalMessageInfo -func (m *QueryTotalSupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *QueryTotalSupplyResponse) GetSupply() []types.Coin { if m != nil { return m.Supply } @@ -973,10 +971,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1103,7 +1101,7 @@ func (*UnimplementedQueryServer) DenomOwners(ctx context.Context, req *QueryDeno return nil, status.Errorf(codes.Unimplemented, "method DenomOwners not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/bank/types/tx.pb.go b/x/bank/types/tx.pb.go index 874c3dd8d862..babf459e925f 100644 --- a/x/bank/types/tx.pb.go +++ b/x/bank/types/tx.pb.go @@ -7,11 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -34,9 +32,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgSend represents a message to send coins from one account to another. type MsgSend struct { - FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` - ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` + Amount []types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *MsgSend) Reset() { *m = MsgSend{} } @@ -260,10 +258,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -304,7 +302,7 @@ func (*UnimplementedMsgServer) MultiSend(ctx context.Context, req *MsgMultiSend) return nil, status.Errorf(codes.Unimplemented, "method MultiSend not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/crisis/types/tx.pb.go b/x/crisis/types/tx.pb.go index 412311aace83..de3a074bfbe9 100644 --- a/x/crisis/types/tx.pb.go +++ b/x/crisis/types/tx.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -157,10 +156,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -187,7 +186,7 @@ func (*UnimplementedMsgServer) VerifyInvariant(ctx context.Context, req *MsgVeri return nil, status.Errorf(codes.Unimplemented, "method VerifyInvariant not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/distribution/types/distribution.pb.go b/x/distribution/types/distribution.pb.go index f8c9726741b2..6844463fd2d8 100644 --- a/x/distribution/types/distribution.pb.go +++ b/x/distribution/types/distribution.pb.go @@ -86,8 +86,8 @@ func (m *Params) GetWithdrawAddrEnabled() bool { // read that record) // + one per validator for the zeroeth period, set on initialization type ValidatorHistoricalRewards struct { - CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio"` - ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"` + CumulativeRewardRatio []types.DecCoin `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3" json:"cumulative_reward_ratio"` + ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"` } func (m *ValidatorHistoricalRewards) Reset() { *m = ValidatorHistoricalRewards{} } @@ -123,7 +123,7 @@ func (m *ValidatorHistoricalRewards) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorHistoricalRewards proto.InternalMessageInfo -func (m *ValidatorHistoricalRewards) GetCumulativeRewardRatio() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *ValidatorHistoricalRewards) GetCumulativeRewardRatio() []types.DecCoin { if m != nil { return m.CumulativeRewardRatio } @@ -141,8 +141,8 @@ func (m *ValidatorHistoricalRewards) GetReferenceCount() uint32 { // period for a validator kept as a running counter and incremented // each block as long as the validator's tokens remain constant. type ValidatorCurrentRewards struct { - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"` - Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` + Rewards []types.DecCoin `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` + Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` } func (m *ValidatorCurrentRewards) Reset() { *m = ValidatorCurrentRewards{} } @@ -178,7 +178,7 @@ func (m *ValidatorCurrentRewards) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorCurrentRewards proto.InternalMessageInfo -func (m *ValidatorCurrentRewards) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *ValidatorCurrentRewards) GetRewards() []types.DecCoin { if m != nil { return m.Rewards } @@ -195,7 +195,7 @@ func (m *ValidatorCurrentRewards) GetPeriod() uint64 { // ValidatorAccumulatedCommission represents accumulated commission // for a validator kept as a running counter, can be withdrawn at any time. type ValidatorAccumulatedCommission struct { - Commission github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=commission,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"commission"` + Commission []types.DecCoin `protobuf:"bytes,1,rep,name=commission,proto3" json:"commission"` } func (m *ValidatorAccumulatedCommission) Reset() { *m = ValidatorAccumulatedCommission{} } @@ -231,7 +231,7 @@ func (m *ValidatorAccumulatedCommission) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorAccumulatedCommission proto.InternalMessageInfo -func (m *ValidatorAccumulatedCommission) GetCommission() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *ValidatorAccumulatedCommission) GetCommission() []types.DecCoin { if m != nil { return m.Commission } @@ -241,7 +241,7 @@ func (m *ValidatorAccumulatedCommission) GetCommission() github_com_cosmos_cosmo // ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards // for a validator inexpensive to track, allows simple sanity checks. type ValidatorOutstandingRewards struct { - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"` + Rewards []types.DecCoin `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` } func (m *ValidatorOutstandingRewards) Reset() { *m = ValidatorOutstandingRewards{} } @@ -277,7 +277,7 @@ func (m *ValidatorOutstandingRewards) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorOutstandingRewards proto.InternalMessageInfo -func (m *ValidatorOutstandingRewards) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *ValidatorOutstandingRewards) GetRewards() []types.DecCoin { if m != nil { return m.Rewards } @@ -379,7 +379,7 @@ func (m *ValidatorSlashEvents) GetValidatorSlashEvents() []ValidatorSlashEvent { // FeePool is the global fee pool for distribution. type FeePool struct { - CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"community_pool"` + CommunityPool []types.DecCoin `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3" json:"community_pool"` } func (m *FeePool) Reset() { *m = FeePool{} } @@ -415,7 +415,7 @@ func (m *FeePool) XXX_DiscardUnknown() { var xxx_messageInfo_FeePool proto.InternalMessageInfo -func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *FeePool) GetCommunityPool() []types.DecCoin { if m != nil { return m.CommunityPool } @@ -426,10 +426,10 @@ func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins // together with how many coins are proposed to be spent, and to which // recipient account. type CommunityPoolSpendProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount []types.Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` } func (m *CommunityPoolSpendProposal) Reset() { *m = CommunityPoolSpendProposal{} } @@ -526,8 +526,8 @@ func (m *DelegatorStartingInfo) GetHeight() uint64 { // DelegationDelegatorReward represents the properties // of a delegator's delegation reward. type DelegationDelegatorReward struct { - ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` - Reward github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"` + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Reward []types.DecCoin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward"` } func (m *DelegationDelegatorReward) Reset() { *m = DelegationDelegatorReward{} } @@ -1055,36 +1055,27 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x20 } - { - size := m.BonusProposerReward.Size() - i -= size - if _, err := m.BonusProposerReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintDistribution(dAtA, i, uint64(size)) + if len(m.BonusProposerReward) > 0 { + i -= len(m.BonusProposerReward) + copy(dAtA[i:], m.BonusProposerReward) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.BonusProposerReward))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a - { - size := m.BaseProposerReward.Size() - i -= size - if _, err := m.BaseProposerReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintDistribution(dAtA, i, uint64(size)) + if len(m.BaseProposerReward) > 0 { + i -= len(m.BaseProposerReward) + copy(dAtA[i:], m.BaseProposerReward) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.BaseProposerReward))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 - { - size := m.CommunityTax.Size() - i -= size - if _, err := m.CommunityTax.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintDistribution(dAtA, i, uint64(size)) + if len(m.CommunityTax) > 0 { + i -= len(m.CommunityTax) + copy(dAtA[i:], m.CommunityTax) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.CommunityTax))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -1266,16 +1257,13 @@ func (m *ValidatorSlashEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Fraction.Size() - i -= size - if _, err := m.Fraction.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintDistribution(dAtA, i, uint64(size)) + if len(m.Fraction) > 0 { + i -= len(m.Fraction) + copy(dAtA[i:], m.Fraction) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.Fraction))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if m.ValidatorPeriod != 0 { i = encodeVarintDistribution(dAtA, i, uint64(m.ValidatorPeriod)) i-- @@ -1441,16 +1429,13 @@ func (m *DelegatorStartingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - { - size := m.Stake.Size() - i -= size - if _, err := m.Stake.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintDistribution(dAtA, i, uint64(size)) + if len(m.Stake) > 0 { + i -= len(m.Stake) + copy(dAtA[i:], m.Stake) + i = encodeVarintDistribution(dAtA, i, uint64(len(m.Stake))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if m.PreviousPeriod != 0 { i = encodeVarintDistribution(dAtA, i, uint64(m.PreviousPeriod)) i-- @@ -1578,12 +1563,18 @@ func (m *Params) Size() (n int) { } var l int _ = l - l = m.CommunityTax.Size() - n += 1 + l + sovDistribution(uint64(l)) - l = m.BaseProposerReward.Size() - n += 1 + l + sovDistribution(uint64(l)) - l = m.BonusProposerReward.Size() - n += 1 + l + sovDistribution(uint64(l)) + l = len(m.CommunityTax) + if l > 0 { + n += 1 + l + sovDistribution(uint64(l)) + } + l = len(m.BaseProposerReward) + if l > 0 { + n += 1 + l + sovDistribution(uint64(l)) + } + l = len(m.BonusProposerReward) + if l > 0 { + n += 1 + l + sovDistribution(uint64(l)) + } if m.WithdrawAddrEnabled { n += 2 } @@ -1665,8 +1656,10 @@ func (m *ValidatorSlashEvent) Size() (n int) { if m.ValidatorPeriod != 0 { n += 1 + sovDistribution(uint64(m.ValidatorPeriod)) } - l = m.Fraction.Size() - n += 1 + l + sovDistribution(uint64(l)) + l = len(m.Fraction) + if l > 0 { + n += 1 + l + sovDistribution(uint64(l)) + } return n } @@ -1736,8 +1729,10 @@ func (m *DelegatorStartingInfo) Size() (n int) { if m.PreviousPeriod != 0 { n += 1 + sovDistribution(uint64(m.PreviousPeriod)) } - l = m.Stake.Size() - n += 1 + l + sovDistribution(uint64(l)) + l = len(m.Stake) + if l > 0 { + n += 1 + l + sovDistribution(uint64(l)) + } if m.Height != 0 { n += 1 + sovDistribution(uint64(m.Height)) } @@ -1857,9 +1852,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.CommunityTax.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.CommunityTax = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -1891,9 +1884,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BaseProposerReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BaseProposerReward = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -1925,9 +1916,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BonusProposerReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BonusProposerReward = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -2422,9 +2411,7 @@ func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Fraction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Fraction = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2873,9 +2860,7 @@ func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Stake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Stake = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { diff --git a/x/distribution/types/genesis.pb.go b/x/distribution/types/genesis.pb.go index a1f2d7ba7b70..fed9926b4c7d 100644 --- a/x/distribution/types/genesis.pb.go +++ b/x/distribution/types/genesis.pb.go @@ -6,7 +6,6 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -74,7 +73,7 @@ type ValidatorOutstandingRewardsRecord struct { // validator_address is the address of the validator. ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` // outstanding_rewards represents the oustanding rewards of a validator. - OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards"` + OutstandingRewards []types.DecCoin `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards"` } func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} } diff --git a/x/distribution/types/query.pb.go b/x/distribution/types/query.pb.go index b6a794bfbf45..0ceb4fcae15a 100644 --- a/x/distribution/types/query.pb.go +++ b/x/distribution/types/query.pb.go @@ -7,11 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -455,7 +453,7 @@ var xxx_messageInfo_QueryDelegationRewardsRequest proto.InternalMessageInfo // Query/DelegationRewards RPC method. type QueryDelegationRewardsResponse struct { // rewards defines the rewards accrued by a delegation. - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"` + Rewards []types.DecCoin `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` } func (m *QueryDelegationRewardsResponse) Reset() { *m = QueryDelegationRewardsResponse{} } @@ -491,7 +489,7 @@ func (m *QueryDelegationRewardsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDelegationRewardsResponse proto.InternalMessageInfo -func (m *QueryDelegationRewardsResponse) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryDelegationRewardsResponse) GetRewards() []types.DecCoin { if m != nil { return m.Rewards } @@ -544,7 +542,7 @@ type QueryDelegationTotalRewardsResponse struct { // rewards defines all the rewards accrued by a delegator. Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` // total defines the sum of all the rewards. - Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"` + Total []types.DecCoin `protobuf:"bytes,2,rep,name=total,proto3" json:"total"` } func (m *QueryDelegationTotalRewardsResponse) Reset() { *m = QueryDelegationTotalRewardsResponse{} } @@ -587,7 +585,7 @@ func (m *QueryDelegationTotalRewardsResponse) GetRewards() []DelegationDelegator return nil } -func (m *QueryDelegationTotalRewardsResponse) GetTotal() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryDelegationTotalRewardsResponse) GetTotal() []types.DecCoin { if m != nil { return m.Total } @@ -796,7 +794,7 @@ var xxx_messageInfo_QueryCommunityPoolRequest proto.InternalMessageInfo // RPC method. type QueryCommunityPoolResponse struct { // pool defines community pool's coins. - Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"` + Pool []types.DecCoin `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool"` } func (m *QueryCommunityPoolResponse) Reset() { *m = QueryCommunityPoolResponse{} } @@ -832,7 +830,7 @@ func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryCommunityPoolResponse proto.InternalMessageInfo -func (m *QueryCommunityPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryCommunityPoolResponse) GetPool() []types.DecCoin { if m != nil { return m.Pool } @@ -973,10 +971,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1116,7 +1114,7 @@ func (*UnimplementedQueryServer) CommunityPool(ctx context.Context, req *QueryCo return nil, status.Errorf(codes.Unimplemented, "method CommunityPool not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/distribution/types/tx.pb.go b/x/distribution/types/tx.pb.go index 52040e4e4bbd..2c05813431ab 100644 --- a/x/distribution/types/tx.pb.go +++ b/x/distribution/types/tx.pb.go @@ -7,11 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -267,8 +265,8 @@ var xxx_messageInfo_MsgWithdrawValidatorCommissionResponse proto.InternalMessage // MsgFundCommunityPool allows an account to directly // fund the community pool. type MsgFundCommunityPool struct { - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + Amount []types.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"` + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` } func (m *MsgFundCommunityPool) Reset() { *m = MsgFundCommunityPool{} } @@ -509,10 +507,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -585,7 +583,7 @@ func (*UnimplementedMsgServer) FundCommunityPool(ctx context.Context, req *MsgFu return nil, status.Errorf(codes.Unimplemented, "method FundCommunityPool not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/evidence/types/query.pb.go b/x/evidence/types/query.pb.go index e084ea29c899..515600507f7b 100644 --- a/x/evidence/types/query.pb.go +++ b/x/evidence/types/query.pb.go @@ -9,7 +9,6 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" github_com_tendermint_tendermint_libs_bytes "github.com/tendermint/tendermint/libs/bytes" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -291,10 +290,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -335,7 +334,7 @@ func (*UnimplementedQueryServer) AllEvidence(ctx context.Context, req *QueryAllE return nil, status.Errorf(codes.Unimplemented, "method AllEvidence not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/evidence/types/tx.pb.go b/x/evidence/types/tx.pb.go index edae6d9b1c89..0a42766c735f 100644 --- a/x/evidence/types/tx.pb.go +++ b/x/evidence/types/tx.pb.go @@ -11,7 +11,6 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -195,10 +194,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -226,7 +225,7 @@ func (*UnimplementedMsgServer) SubmitEvidence(ctx context.Context, req *MsgSubmi return nil, status.Errorf(codes.Unimplemented, "method SubmitEvidence not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/feegrant/feegrant.pb.go b/x/feegrant/feegrant.pb.go index 4b75f267a341..b5db0c6fa152 100644 --- a/x/feegrant/feegrant.pb.go +++ b/x/feegrant/feegrant.pb.go @@ -7,7 +7,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types1 "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -38,7 +37,7 @@ type BasicAllowance struct { // spend_limit specifies the maximum amount of tokens that can be spent // by this allowance and will be updated as tokens are spent. If it is // empty, there is no spend limit and any amount of coins can be spent. - SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"` + SpendLimit []types.Coin `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3" json:"spend_limit"` // expiration specifies an optional time when this allowance expires Expiration *time.Time `protobuf:"bytes,2,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"` } @@ -76,7 +75,7 @@ func (m *BasicAllowance) XXX_DiscardUnknown() { var xxx_messageInfo_BasicAllowance proto.InternalMessageInfo -func (m *BasicAllowance) GetSpendLimit() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *BasicAllowance) GetSpendLimit() []types.Coin { if m != nil { return m.SpendLimit } @@ -100,9 +99,9 @@ type PeriodicAllowance struct { Period time.Duration `protobuf:"bytes,2,opt,name=period,proto3,stdduration" json:"period"` // period_spend_limit specifies the maximum number of coins that can be spent // in the period - PeriodSpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=period_spend_limit,json=periodSpendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"period_spend_limit"` + PeriodSpendLimit []types.Coin `protobuf:"bytes,3,rep,name=period_spend_limit,json=periodSpendLimit,proto3" json:"period_spend_limit"` // period_can_spend is the number of coins left to be spent before the period_reset time - PeriodCanSpend github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=period_can_spend,json=periodCanSpend,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"period_can_spend"` + PeriodCanSpend []types.Coin `protobuf:"bytes,4,rep,name=period_can_spend,json=periodCanSpend,proto3" json:"period_can_spend"` // period_reset is the time at which this period resets and a new one begins, // it is calculated from the start time of the first transaction after the // last period ended @@ -156,14 +155,14 @@ func (m *PeriodicAllowance) GetPeriod() time.Duration { return 0 } -func (m *PeriodicAllowance) GetPeriodSpendLimit() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *PeriodicAllowance) GetPeriodSpendLimit() []types.Coin { if m != nil { return m.PeriodSpendLimit } return nil } -func (m *PeriodicAllowance) GetPeriodCanSpend() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *PeriodicAllowance) GetPeriodCanSpend() []types.Coin { if m != nil { return m.PeriodCanSpend } diff --git a/x/feegrant/query.pb.go b/x/feegrant/query.pb.go index d3038e9d5faa..894b807d9120 100644 --- a/x/feegrant/query.pb.go +++ b/x/feegrant/query.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -421,10 +420,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -480,7 +479,7 @@ func (*UnimplementedQueryServer) AllowancesByGranter(ctx context.Context, req *Q return nil, status.Errorf(codes.Unimplemented, "method AllowancesByGranter not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/feegrant/tx.pb.go b/x/feegrant/tx.pb.go index af208f286dbc..fc7f4075060a 100644 --- a/x/feegrant/tx.pb.go +++ b/x/feegrant/tx.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -282,10 +281,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -328,7 +327,7 @@ func (*UnimplementedMsgServer) RevokeAllowance(ctx context.Context, req *MsgRevo return nil, status.Errorf(codes.Unimplemented, "method RevokeAllowance not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/gov/types/v1beta1/genesis.pb.go b/x/gov/types/v1beta1/genesis.pb.go index 0efefab9c4cf..b0e59c153bbe 100644 --- a/x/gov/types/v1beta1/genesis.pb.go +++ b/x/gov/types/v1beta1/genesis.pb.go @@ -28,11 +28,11 @@ type GenesisState struct { // starting_proposal_id is the ID of the starting proposal. StartingProposalId uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty"` // deposits defines all the deposits present at genesis. - Deposits Deposits `protobuf:"bytes,2,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"` + Deposits []Deposit `protobuf:"bytes,2,rep,name=deposits,proto3" json:"deposits"` // votes defines all the votes present at genesis. - Votes Votes `protobuf:"bytes,3,rep,name=votes,proto3,castrepeated=Votes" json:"votes"` + Votes []Vote `protobuf:"bytes,3,rep,name=votes,proto3" json:"votes"` // proposals defines all the proposals present at genesis. - Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"` + Proposals []Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals"` // params defines all the paramaters of related to deposit. DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params"` // params defines all the paramaters of related to voting. @@ -81,21 +81,21 @@ func (m *GenesisState) GetStartingProposalId() uint64 { return 0 } -func (m *GenesisState) GetDeposits() Deposits { +func (m *GenesisState) GetDeposits() []Deposit { if m != nil { return m.Deposits } return nil } -func (m *GenesisState) GetVotes() Votes { +func (m *GenesisState) GetVotes() []Vote { if m != nil { return m.Votes } return nil } -func (m *GenesisState) GetProposals() Proposals { +func (m *GenesisState) GetProposals() []Proposal { if m != nil { return m.Proposals } diff --git a/x/gov/types/v1beta1/gov.pb.go b/x/gov/types/v1beta1/gov.pb.go index a49d40e19311..824928c19bef 100644 --- a/x/gov/types/v1beta1/gov.pb.go +++ b/x/gov/types/v1beta1/gov.pb.go @@ -203,9 +203,9 @@ var xxx_messageInfo_TextProposal proto.InternalMessageInfo // Deposit defines an amount deposited by an account address to an active // proposal. type Deposit struct { - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + Amount []types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *Deposit) Reset() { *m = Deposit{} } @@ -242,15 +242,15 @@ var xxx_messageInfo_Deposit proto.InternalMessageInfo // Proposal defines the core field members of a governance proposal. type Proposal struct { - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - Content *types1.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` - Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta1.ProposalStatus" json:"status,omitempty"` - FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"` - SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"` - DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time"` - TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"` - VotingStartTime time.Time `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time"` - VotingEndTime time.Time `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time"` + ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` + Content *types1.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta1.ProposalStatus" json:"status,omitempty"` + FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"` + SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"` + DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time"` + TotalDeposit []types.Coin `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit"` + VotingStartTime time.Time `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time"` + VotingEndTime time.Time `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time"` } func (m *Proposal) Reset() { *m = Proposal{} } @@ -373,7 +373,7 @@ var xxx_messageInfo_Vote proto.InternalMessageInfo // DepositParams defines the params for deposits on governance proposals. type DepositParams struct { // Minimum deposit for a proposal to enter voting period. - MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit,omitempty"` + MinDeposit []types.Coin `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"` // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. MaxDepositPeriod time.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty"` @@ -731,16 +731,13 @@ func (m *WeightedVoteOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Weight.Size() - i -= size - if _, err := m.Weight.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) + if len(m.Weight) > 0 { + i -= len(m.Weight) + copy(dAtA[i:], m.Weight) + i = encodeVarintGov(dAtA, i, uint64(len(m.Weight))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if m.Option != 0 { i = encodeVarintGov(dAtA, i, uint64(m.Option)) i-- @@ -956,46 +953,34 @@ func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.NoWithVeto.Size() - i -= size - if _, err := m.NoWithVeto.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) + if len(m.NoWithVeto) > 0 { + i -= len(m.NoWithVeto) + copy(dAtA[i:], m.NoWithVeto) + i = encodeVarintGov(dAtA, i, uint64(len(m.NoWithVeto))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 - { - size := m.No.Size() - i -= size - if _, err := m.No.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) + if len(m.No) > 0 { + i -= len(m.No) + copy(dAtA[i:], m.No) + i = encodeVarintGov(dAtA, i, uint64(len(m.No))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a - { - size := m.Abstain.Size() - i -= size - if _, err := m.Abstain.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) + if len(m.Abstain) > 0 { + i -= len(m.Abstain) + copy(dAtA[i:], m.Abstain) + i = encodeVarintGov(dAtA, i, uint64(len(m.Abstain))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 - { - size := m.Yes.Size() - i -= size - if _, err := m.Yes.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) + if len(m.Yes) > 0 { + i -= len(m.Yes) + copy(dAtA[i:], m.Yes) + i = encodeVarintGov(dAtA, i, uint64(len(m.Yes))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -1202,8 +1187,10 @@ func (m *WeightedVoteOption) Size() (n int) { if m.Option != 0 { n += 1 + sovGov(uint64(m.Option)) } - l = m.Weight.Size() - n += 1 + l + sovGov(uint64(l)) + l = len(m.Weight) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } return n } @@ -1287,14 +1274,22 @@ func (m *TallyResult) Size() (n int) { } var l int _ = l - l = m.Yes.Size() - n += 1 + l + sovGov(uint64(l)) - l = m.Abstain.Size() - n += 1 + l + sovGov(uint64(l)) - l = m.No.Size() - n += 1 + l + sovGov(uint64(l)) - l = m.NoWithVeto.Size() - n += 1 + l + sovGov(uint64(l)) + l = len(m.Yes) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Abstain) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.No) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.NoWithVeto) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } return n } @@ -1450,9 +1445,7 @@ func (m *WeightedVoteOption) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Weight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Weight = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2106,9 +2099,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Yes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Yes = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2140,9 +2131,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Abstain.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Abstain = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -2174,9 +2163,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.No.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.No = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -2208,9 +2195,7 @@ func (m *TallyResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.NoWithVeto.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.NoWithVeto = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/gov/types/v1beta1/query.pb.go b/x/gov/types/v1beta1/query.pb.go index 3d3ccae4bfad..5637422a6b23 100644 --- a/x/gov/types/v1beta1/query.pb.go +++ b/x/gov/types/v1beta1/query.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -937,10 +936,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1065,7 +1064,7 @@ func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTall return nil, status.Errorf(codes.Unimplemented, "method TallyResult not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/gov/types/v1beta1/tx.pb.go b/x/gov/types/v1beta1/tx.pb.go index c77485922895..17d292fb69b0 100644 --- a/x/gov/types/v1beta1/tx.pb.go +++ b/x/gov/types/v1beta1/tx.pb.go @@ -8,11 +8,9 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -36,9 +34,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary // proposal Content. type MsgSubmitProposal struct { - Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit"` - Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` + Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + InitialDeposit []types1.Coin `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit"` + Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` } func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } @@ -276,9 +274,9 @@ var xxx_messageInfo_MsgVoteWeightedResponse proto.InternalMessageInfo // MsgDeposit defines a message to submit a deposit to an existing proposal. type MsgDeposit struct { - ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"` - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"` + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + Amount []types1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount"` } func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } @@ -435,10 +433,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -509,7 +507,7 @@ func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*M return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/gov/types/v1beta2/query.pb.go b/x/gov/types/v1beta2/query.pb.go index 7605012ba695..5d65cb5ecc8c 100644 --- a/x/gov/types/v1beta2/query.pb.go +++ b/x/gov/types/v1beta2/query.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -989,10 +988,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1117,7 +1116,7 @@ func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTall return nil, status.Errorf(codes.Unimplemented, "method TallyResult not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/gov/types/v1beta2/tx.pb.go b/x/gov/types/v1beta2/tx.pb.go index 969617f7ce54..82f6ebb43672 100644 --- a/x/gov/types/v1beta2/tx.pb.go +++ b/x/gov/types/v1beta2/tx.pb.go @@ -11,7 +11,6 @@ import ( types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -627,10 +626,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -714,7 +713,7 @@ func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*M return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/group/query.pb.go b/x/group/query.pb.go index 99641b67cf32..6382d7cc6fb2 100644 --- a/x/group/query.pb.go +++ b/x/group/query.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -1432,10 +1431,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1616,7 +1615,7 @@ func (*UnimplementedQueryServer) GroupsByMember(ctx context.Context, req *QueryG return nil, status.Errorf(codes.Unimplemented, "method GroupsByMember not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/group/tx.pb.go b/x/group/tx.pb.go index ba5634748679..0c1bed894ccd 100644 --- a/x/group/tx.pb.go +++ b/x/group/tx.pb.go @@ -10,7 +10,6 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -1395,10 +1394,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -1579,7 +1578,7 @@ func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExec return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go index a5f33f381d32..cb7bd2e3ff57 100644 --- a/x/mint/types/mint.pb.go +++ b/x/mint/types/mint.pb.go @@ -184,26 +184,20 @@ func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.AnnualProvisions.Size() - i -= size - if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.AnnualProvisions) > 0 { + i -= len(m.AnnualProvisions) + copy(dAtA[i:], m.AnnualProvisions) + i = encodeVarintMint(dAtA, i, uint64(len(m.AnnualProvisions))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 - { - size := m.Inflation.Size() - i -= size - if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.Inflation) > 0 { + i -= len(m.Inflation) + copy(dAtA[i:], m.Inflation) + i = encodeVarintMint(dAtA, i, uint64(len(m.Inflation))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -232,46 +226,34 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x30 } - { - size := m.GoalBonded.Size() - i -= size - if _, err := m.GoalBonded.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.GoalBonded) > 0 { + i -= len(m.GoalBonded) + copy(dAtA[i:], m.GoalBonded) + i = encodeVarintMint(dAtA, i, uint64(len(m.GoalBonded))) + i-- + dAtA[i] = 0x2a } - i-- - dAtA[i] = 0x2a - { - size := m.InflationMin.Size() - i -= size - if _, err := m.InflationMin.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.InflationMin) > 0 { + i -= len(m.InflationMin) + copy(dAtA[i:], m.InflationMin) + i = encodeVarintMint(dAtA, i, uint64(len(m.InflationMin))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 - { - size := m.InflationMax.Size() - i -= size - if _, err := m.InflationMax.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.InflationMax) > 0 { + i -= len(m.InflationMax) + copy(dAtA[i:], m.InflationMax) + i = encodeVarintMint(dAtA, i, uint64(len(m.InflationMax))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a - { - size := m.InflationRateChange.Size() - i -= size - if _, err := m.InflationRateChange.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) + if len(m.InflationRateChange) > 0 { + i -= len(m.InflationRateChange) + copy(dAtA[i:], m.InflationRateChange) + i = encodeVarintMint(dAtA, i, uint64(len(m.InflationRateChange))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 if len(m.MintDenom) > 0 { i -= len(m.MintDenom) copy(dAtA[i:], m.MintDenom) @@ -299,10 +281,14 @@ func (m *Minter) Size() (n int) { } var l int _ = l - l = m.Inflation.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.AnnualProvisions.Size() - n += 1 + l + sovMint(uint64(l)) + l = len(m.Inflation) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + l = len(m.AnnualProvisions) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } return n } @@ -316,14 +302,22 @@ func (m *Params) Size() (n int) { if l > 0 { n += 1 + l + sovMint(uint64(l)) } - l = m.InflationRateChange.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.InflationMax.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.InflationMin.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.GoalBonded.Size() - n += 1 + l + sovMint(uint64(l)) + l = len(m.InflationRateChange) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + l = len(m.InflationMax) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + l = len(m.InflationMin) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + l = len(m.GoalBonded) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } if m.BlocksPerYear != 0 { n += 1 + sovMint(uint64(m.BlocksPerYear)) } @@ -395,9 +389,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Inflation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Inflation = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -429,9 +421,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AnnualProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.AnnualProvisions = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -545,9 +535,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.InflationRateChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.InflationRateChange = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -579,9 +567,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.InflationMax.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.InflationMax = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -613,9 +599,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.InflationMin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.InflationMin = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -647,9 +631,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.GoalBonded.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.GoalBonded = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 0 { diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index f707eb810d2d..4cc7f065ddfa 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -332,10 +331,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -390,7 +389,7 @@ func (*UnimplementedQueryServer) AnnualProvisions(ctx context.Context, req *Quer return nil, status.Errorf(codes.Unimplemented, "method AnnualProvisions not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/nft/query.pb.go b/x/nft/query.pb.go index 2e52980cc628..1fbb51346448 100644 --- a/x/nft/query.pb.go +++ b/x/nft/query.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -814,10 +813,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -928,7 +927,7 @@ func (*UnimplementedQueryServer) Classes(ctx context.Context, req *QueryClassesR return nil, status.Errorf(codes.Unimplemented, "method Classes not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/nft/tx.pb.go b/x/nft/tx.pb.go index dd7f67a117bf..bf9ef56f7852 100644 --- a/x/nft/tx.pb.go +++ b/x/nft/tx.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/msgservice" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -183,10 +182,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -213,7 +212,7 @@ func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSend return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/params/types/proposal/query.pb.go b/x/params/types/proposal/query.pb.go index 229f4f8e9bb0..c55d9664c528 100644 --- a/x/params/types/proposal/query.pb.go +++ b/x/params/types/proposal/query.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -328,10 +327,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -373,7 +372,7 @@ func (*UnimplementedQueryServer) Subspaces(ctx context.Context, req *QuerySubspa return nil, status.Errorf(codes.Unimplemented, "method Subspaces not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/slashing/types/query.pb.go b/x/slashing/types/query.pb.go index 76b0dbf79bd3..b00eb96ecda6 100644 --- a/x/slashing/types/query.pb.go +++ b/x/slashing/types/query.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -381,10 +380,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -439,7 +438,7 @@ func (*UnimplementedQueryServer) SigningInfos(ctx context.Context, req *QuerySig return nil, status.Errorf(codes.Unimplemented, "method SigningInfos not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/slashing/types/tx.pb.go b/x/slashing/types/tx.pb.go index 0ecb663dc21f..3ec15aca09be 100644 --- a/x/slashing/types/tx.pb.go +++ b/x/slashing/types/tx.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -200,10 +199,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -232,7 +231,7 @@ func (*UnimplementedMsgServer) Unjail(ctx context.Context, req *MsgUnjail) (*Msg return nil, status.Errorf(codes.Unimplemented, "method Unjail not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } diff --git a/x/staking/types/authz.pb.go b/x/staking/types/authz.pb.go index ac9c88271f25..ee016b771455 100644 --- a/x/staking/types/authz.pb.go +++ b/x/staking/types/authz.pb.go @@ -69,7 +69,7 @@ func (AuthorizationType) EnumDescriptor() ([]byte, []int) { type StakeAuthorization struct { // max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is // empty, there is no spend limit and any amount of coins can be delegated. - 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"` + MaxTokens *types.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 valid to be assigned to Validators: diff --git a/x/staking/types/query.pb.go b/x/staking/types/query.pb.go index e1c04fd8666f..0b526af31660 100644 --- a/x/staking/types/query.pb.go +++ b/x/staking/types/query.pb.go @@ -9,7 +9,6 @@ import ( _ "github.com/cosmos/cosmos-proto" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -292,7 +291,7 @@ func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest { // QueryValidatorDelegationsResponse is response type for the // Query/ValidatorDelegations RPC method type QueryValidatorDelegationsResponse struct { - DelegationResponses DelegationResponses `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3,castrepeated=DelegationResponses" json:"delegation_responses"` + DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -330,7 +329,7 @@ func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryValidatorDelegationsResponse proto.InternalMessageInfo -func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses { +func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() []DelegationResponse { if m != nil { return m.DelegationResponses } @@ -1560,10 +1559,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -1776,7 +1775,7 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } diff --git a/x/staking/types/staking.pb.go b/x/staking/types/staking.pb.go index dff78e00659d..f746ef496823 100644 --- a/x/staking/types/staking.pb.go +++ b/x/staking/types/staking.pb.go @@ -2058,36 +2058,27 @@ func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.MaxChangeRate.Size() - i -= size - if _, err := m.MaxChangeRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.MaxChangeRate) > 0 { + i -= len(m.MaxChangeRate) + copy(dAtA[i:], m.MaxChangeRate) + i = encodeVarintStaking(dAtA, i, uint64(len(m.MaxChangeRate))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a - { - size := m.MaxRate.Size() - i -= size - if _, err := m.MaxRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.MaxRate) > 0 { + i -= len(m.MaxRate) + copy(dAtA[i:], m.MaxRate) + i = encodeVarintStaking(dAtA, i, uint64(len(m.MaxRate))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 - { - size := m.Rate.Size() - i -= size - if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.Rate) > 0 { + i -= len(m.Rate) + copy(dAtA[i:], m.Rate) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Rate))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -2210,16 +2201,13 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.MinSelfDelegation.Size() - i -= size - if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.MinSelfDelegation) > 0 { + i -= len(m.MinSelfDelegation) + copy(dAtA[i:], m.MinSelfDelegation) + i = encodeVarintStaking(dAtA, i, uint64(len(m.MinSelfDelegation))) + i-- + dAtA[i] = 0x5a } - i-- - dAtA[i] = 0x5a { size, err := m.Commission.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2253,26 +2241,20 @@ func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x3a - { - size := m.DelegatorShares.Size() - i -= size - if _, err := m.DelegatorShares.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.DelegatorShares) > 0 { + i -= len(m.DelegatorShares) + copy(dAtA[i:], m.DelegatorShares) + i = encodeVarintStaking(dAtA, i, uint64(len(m.DelegatorShares))) + i-- + dAtA[i] = 0x32 } - i-- - dAtA[i] = 0x32 - { - size := m.Tokens.Size() - i -= size - if _, err := m.Tokens.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.Tokens) > 0 { + i -= len(m.Tokens) + copy(dAtA[i:], m.Tokens) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Tokens))) + i-- + dAtA[i] = 0x2a } - i-- - dAtA[i] = 0x2a if m.Status != 0 { i = encodeVarintStaking(dAtA, i, uint64(m.Status)) i-- @@ -2517,16 +2499,13 @@ func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.Shares.Size() - i -= size - if _, err := m.Shares.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.Shares) > 0 { + i -= len(m.Shares) + copy(dAtA[i:], m.Shares) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Shares))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) copy(dAtA[i:], m.ValidatorAddress) @@ -2615,26 +2594,20 @@ func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - { - size := m.Balance.Size() - i -= size - if _, err := m.Balance.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 - { - size := m.InitialBalance.Size() - i -= size - if _, err := m.InitialBalance.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.InitialBalance) > 0 { + i -= len(m.InitialBalance) + copy(dAtA[i:], m.InitialBalance) + i = encodeVarintStaking(dAtA, i, uint64(len(m.InitialBalance))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) if err8 != nil { return 0, err8 @@ -2671,26 +2644,20 @@ func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.SharesDst.Size() - i -= size - if _, err := m.SharesDst.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.SharesDst) > 0 { + i -= len(m.SharesDst) + copy(dAtA[i:], m.SharesDst) + i = encodeVarintStaking(dAtA, i, uint64(len(m.SharesDst))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 - { - size := m.InitialBalance.Size() - i -= size - if _, err := m.InitialBalance.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.InitialBalance) > 0 { + i -= len(m.InitialBalance) + copy(dAtA[i:], m.InitialBalance) + i = encodeVarintStaking(dAtA, i, uint64(len(m.InitialBalance))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) if err9 != nil { return 0, err9 @@ -2785,16 +2752,13 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.MinCommissionRate.Size() - i -= size - if _, err := m.MinCommissionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.MinCommissionRate) > 0 { + i -= len(m.MinCommissionRate) + copy(dAtA[i:], m.MinCommissionRate) + i = encodeVarintStaking(dAtA, i, uint64(len(m.MinCommissionRate))) + i-- + dAtA[i] = 0x32 } - i-- - dAtA[i] = 0x32 if len(m.BondDenom) > 0 { i -= len(m.BondDenom) copy(dAtA[i:], m.BondDenom) @@ -2891,16 +2855,13 @@ func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l - { - size := m.Balance.Size() - i -= size - if _, err := m.Balance.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintStaking(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 { size, err := m.RedelegationEntry.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2981,26 +2942,20 @@ func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.BondedTokens.Size() - i -= size - if _, err := m.BondedTokens.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.BondedTokens) > 0 { + i -= len(m.BondedTokens) + copy(dAtA[i:], m.BondedTokens) + i = encodeVarintStaking(dAtA, i, uint64(len(m.BondedTokens))) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 - { - size := m.NotBondedTokens.Size() - i -= size - if _, err := m.NotBondedTokens.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintStaking(dAtA, i, uint64(size)) + if len(m.NotBondedTokens) > 0 { + i -= len(m.NotBondedTokens) + copy(dAtA[i:], m.NotBondedTokens) + i = encodeVarintStaking(dAtA, i, uint64(len(m.NotBondedTokens))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -3038,12 +2993,18 @@ func (m *CommissionRates) Size() (n int) { } var l int _ = l - l = m.Rate.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.MaxRate.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.MaxChangeRate.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.Rate) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.MaxRate) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.MaxChangeRate) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3109,10 +3070,14 @@ func (m *Validator) Size() (n int) { if m.Status != 0 { n += 1 + sovStaking(uint64(m.Status)) } - l = m.Tokens.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.DelegatorShares.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.Tokens) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.DelegatorShares) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } l = m.Description.Size() n += 1 + l + sovStaking(uint64(l)) if m.UnbondingHeight != 0 { @@ -3122,8 +3087,10 @@ func (m *Validator) Size() (n int) { n += 1 + l + sovStaking(uint64(l)) l = m.Commission.Size() n += 1 + l + sovStaking(uint64(l)) - l = m.MinSelfDelegation.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.MinSelfDelegation) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3224,8 +3191,10 @@ func (m *Delegation) Size() (n int) { if l > 0 { n += 1 + l + sovStaking(uint64(l)) } - l = m.Shares.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.Shares) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3263,10 +3232,14 @@ func (m *UnbondingDelegationEntry) Size() (n int) { } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) n += 1 + l + sovStaking(uint64(l)) - l = m.InitialBalance.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.Balance.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.InitialBalance) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3281,10 +3254,14 @@ func (m *RedelegationEntry) Size() (n int) { } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) n += 1 + l + sovStaking(uint64(l)) - l = m.InitialBalance.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.SharesDst.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.InitialBalance) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.SharesDst) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3336,8 +3313,10 @@ func (m *Params) Size() (n int) { if l > 0 { n += 1 + l + sovStaking(uint64(l)) } - l = m.MinCommissionRate.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.MinCommissionRate) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3362,8 +3341,10 @@ func (m *RedelegationEntryResponse) Size() (n int) { _ = l l = m.RedelegationEntry.Size() n += 1 + l + sovStaking(uint64(l)) - l = m.Balance.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3390,10 +3371,14 @@ func (m *Pool) Size() (n int) { } var l int _ = l - l = m.NotBondedTokens.Size() - n += 1 + l + sovStaking(uint64(l)) - l = m.BondedTokens.Size() - n += 1 + l + sovStaking(uint64(l)) + l = len(m.NotBondedTokens) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } + l = len(m.BondedTokens) + if l > 0 { + n += 1 + l + sovStaking(uint64(l)) + } return n } @@ -3597,9 +3582,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Rate = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3631,9 +3614,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MaxRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MaxRate = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -3665,9 +3646,7 @@ func (m *CommissionRates) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MaxChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MaxChangeRate = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4182,9 +4161,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Tokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Tokens = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -4216,9 +4193,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.DelegatorShares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.DelegatorShares = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 7: if wireType != 2 { @@ -4368,9 +4343,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MinSelfDelegation = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5026,9 +4999,7 @@ func (m *Delegation) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Shares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Shares = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5310,9 +5281,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.InitialBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.InitialBalance = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -5344,9 +5313,7 @@ func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Balance = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5480,9 +5447,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.InitialBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.InitialBalance = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -5514,9 +5479,7 @@ func (m *RedelegationEntry) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.SharesDst.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.SharesDst = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -5900,9 +5863,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MinCommissionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MinCommissionRate = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6133,9 +6094,7 @@ func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Balance = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -6334,9 +6293,7 @@ func (m *Pool) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.NotBondedTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.NotBondedTokens = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -6368,9 +6325,7 @@ func (m *Pool) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BondedTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BondedTokens = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index b14118d4d1d2..662e901e14f7 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -12,7 +12,6 @@ import ( types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" grpc "google.golang.org/grpc" @@ -552,10 +551,10 @@ type MsgClient interface { } type msgClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewMsgClient(cc grpc1.ClientConn) MsgClient { +func NewMsgClient(cc *grpc.ClientConn) MsgClient { return &msgClient{cc} } @@ -641,7 +640,7 @@ func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegat return nil, status.Errorf(codes.Unimplemented, "method Undelegate not implemented") } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +func RegisterMsgServer(s *grpc.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } @@ -820,16 +819,13 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - { - size := m.MinSelfDelegation.Size() - i -= size - if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) + if len(m.MinSelfDelegation) > 0 { + i -= len(m.MinSelfDelegation) + copy(dAtA[i:], m.MinSelfDelegation) + i = encodeVarintTx(dAtA, i, uint64(len(m.MinSelfDelegation))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a { size, err := m.Commission.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -897,28 +893,22 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.MinSelfDelegation != nil { - { - size := m.MinSelfDelegation.Size() - i -= size - if _, err := m.MinSelfDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) + if len(m.MinSelfDelegation) > 0 { + i -= len(m.MinSelfDelegation) + copy(dAtA[i:], m.MinSelfDelegation) + i = encodeVarintTx(dAtA, i, uint64(len(m.MinSelfDelegation))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x22 } if m.CommissionRate != nil { - { - size := m.CommissionRate.Size() - i -= size - if _, err := m.CommissionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) + if len(m.CommissionRate) > 0 { + i -= len(m.CommissionRate) + copy(dAtA[i:], m.CommissionRate) + i = encodeVarintTx(dAtA, i, uint64(len(m.CommissionRate))) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x1a } if len(m.ValidatorAddress) > 0 { i -= len(m.ValidatorAddress) @@ -1217,8 +1207,10 @@ func (m *MsgCreateValidator) Size() (n int) { n += 1 + l + sovTx(uint64(l)) l = m.Commission.Size() n += 1 + l + sovTx(uint64(l)) - l = m.MinSelfDelegation.Size() - n += 1 + l + sovTx(uint64(l)) + l = len(m.MinSelfDelegation) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } l = len(m.DelegatorAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) @@ -1258,12 +1250,16 @@ func (m *MsgEditValidator) Size() (n int) { n += 1 + l + sovTx(uint64(l)) } if m.CommissionRate != nil { - l = m.CommissionRate.Size() - n += 1 + l + sovTx(uint64(l)) + l = len(m.CommissionRate) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } } if m.MinSelfDelegation != nil { - l = m.MinSelfDelegation.Size() - n += 1 + l + sovTx(uint64(l)) + l = len(m.MinSelfDelegation) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } } return n } @@ -1500,9 +1496,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MinSelfDelegation = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -1832,11 +1826,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Dec - m.CommissionRate = &v - if err := m.CommissionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.CommissionRate = github_com_cosmos_cosmos_sdk_types.Dec(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -1868,11 +1858,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v github_com_cosmos_cosmos_sdk_types.Int - m.MinSelfDelegation = &v - if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MinSelfDelegation = github_com_cosmos_cosmos_sdk_types.Int(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/upgrade/types/query.pb.go b/x/upgrade/types/query.pb.go index d79e402c099e..0c5c8448f3b6 100644 --- a/x/upgrade/types/query.pb.go +++ b/x/upgrade/types/query.pb.go @@ -6,7 +6,6 @@ package types import ( context "context" fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -491,10 +490,10 @@ type QueryClient interface { } type queryClient struct { - cc grpc1.ClientConn + cc *grpc.ClientConn } -func NewQueryClient(cc grpc1.ClientConn) QueryClient { +func NewQueryClient(cc *grpc.ClientConn) QueryClient { return &queryClient{cc} } @@ -571,7 +570,7 @@ func (*UnimplementedQueryServer) ModuleVersions(ctx context.Context, req *QueryM return nil, status.Errorf(codes.Unimplemented, "method ModuleVersions not implemented") } -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { +func RegisterQueryServer(s *grpc.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) }