Rename RPC method to reserve authority and fix proto lint errors (#17)

- Rename RPC method to reserve authority from `ReserveName` to `ReserveAuthority`
  and `GetBondsModuleBalance` to `GetBondModuleBalance`
- Run lint formatter
- Fix proto lint errors and regenerate proto bindings

Reviewed-on: deep-stack/laconic2d#17
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
2024-03-07 11:25:15 +00:00
committed by ashwin
parent 33b6cce362
commit aed2d6d4c6
52 changed files with 3052 additions and 2979 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ $ %s query %s list
return err
}
queryClient := bondtypes.NewQueryClient(clientCtx)
res, err := queryClient.Bonds(cmd.Context(), &bondtypes.QueryGetBondsRequest{})
res, err := queryClient.Bonds(cmd.Context(), &bondtypes.QueryBondsRequest{})
if err != nil {
return err
}
+4 -4
View File
@@ -34,7 +34,7 @@ func (qs queryServer) Params(c context.Context, _ *bondtypes.QueryParamsRequest)
}
// Bonds implements bond.QueryServer.
func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryGetBondsRequest) (*bondtypes.QueryGetBondsResponse, error) {
func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryBondsRequest) (*bondtypes.QueryBondsResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
resp, err := qs.k.ListBonds(ctx)
@@ -42,7 +42,7 @@ func (qs queryServer) Bonds(c context.Context, _ *bondtypes.QueryGetBondsRequest
return nil, err
}
return &bondtypes.QueryGetBondsResponse{Bonds: resp}, nil
return &bondtypes.QueryBondsResponse{Bonds: resp}, nil
}
// GetBondById implements bond.QueryServer.
@@ -79,8 +79,8 @@ func (qs queryServer) GetBondsByOwner(c context.Context, req *bondtypes.QueryGet
return &bondtypes.QueryGetBondsByOwnerResponse{Bonds: bonds}, nil
}
// GetBondsModuleBalance implements bond.QueryServer.
func (qs queryServer) GetBondsModuleBalance(c context.Context, _ *bondtypes.QueryGetBondModuleBalanceRequest) (*bondtypes.QueryGetBondModuleBalanceResponse, error) {
// GetBondModuleBalance implements bond.QueryServer.
func (qs queryServer) GetBondModuleBalance(c context.Context, _ *bondtypes.QueryGetBondModuleBalanceRequest) (*bondtypes.QueryGetBondModuleBalanceResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
balances := qs.k.GetBondModuleBalances(ctx)
+1 -1
View File
@@ -44,7 +44,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
},
},
{
RpcMethod: "GetBondsModuleBalance",
RpcMethod: "GetBondModuleBalance",
Use: "balance",
Short: "Get bond module account balances",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{},
+125 -121
View File
@@ -114,24 +114,24 @@ func (m *QueryParamsResponse) GetParams() *Params {
return nil
}
// QueryGetBondById queries a bonds.
type QueryGetBondsRequest struct {
// QueryBondsRequest queries bonds
type QueryBondsRequest struct {
// pagination defines an optional pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (m *QueryGetBondsRequest) Reset() { *m = QueryGetBondsRequest{} }
func (m *QueryGetBondsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondsRequest) ProtoMessage() {}
func (*QueryGetBondsRequest) Descriptor() ([]byte, []int) {
func (m *QueryBondsRequest) Reset() { *m = QueryBondsRequest{} }
func (m *QueryBondsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryBondsRequest) ProtoMessage() {}
func (*QueryBondsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d3221677ed35cdfb, []int{2}
}
func (m *QueryGetBondsRequest) XXX_Unmarshal(b []byte) error {
func (m *QueryBondsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetBondsRequest.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryBondsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -141,44 +141,44 @@ func (m *QueryGetBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte
return b[:n], nil
}
}
func (m *QueryGetBondsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondsRequest.Merge(m, src)
func (m *QueryBondsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBondsRequest.Merge(m, src)
}
func (m *QueryGetBondsRequest) XXX_Size() int {
func (m *QueryBondsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetBondsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondsRequest.DiscardUnknown(m)
func (m *QueryBondsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBondsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetBondsRequest proto.InternalMessageInfo
var xxx_messageInfo_QueryBondsRequest proto.InternalMessageInfo
func (m *QueryGetBondsRequest) GetPagination() *query.PageRequest {
func (m *QueryBondsRequest) GetPagination() *query.PageRequest {
if m != nil {
return m.Pagination
}
return nil
}
// QueryGetBondsResponse is response type for get the bonds by bond-id
type QueryGetBondsResponse struct {
// QueryBondsResponse is response type for get the bonds by bond-id
type QueryBondsResponse struct {
Bonds []*Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"`
// pagination defines the pagination in the response.
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (m *QueryGetBondsResponse) Reset() { *m = QueryGetBondsResponse{} }
func (m *QueryGetBondsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondsResponse) ProtoMessage() {}
func (*QueryGetBondsResponse) Descriptor() ([]byte, []int) {
func (m *QueryBondsResponse) Reset() { *m = QueryBondsResponse{} }
func (m *QueryBondsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryBondsResponse) ProtoMessage() {}
func (*QueryBondsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d3221677ed35cdfb, []int{3}
}
func (m *QueryGetBondsResponse) XXX_Unmarshal(b []byte) error {
func (m *QueryBondsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetBondsResponse.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryBondsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -188,33 +188,33 @@ func (m *QueryGetBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt
return b[:n], nil
}
}
func (m *QueryGetBondsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondsResponse.Merge(m, src)
func (m *QueryBondsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBondsResponse.Merge(m, src)
}
func (m *QueryGetBondsResponse) XXX_Size() int {
func (m *QueryBondsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetBondsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondsResponse.DiscardUnknown(m)
func (m *QueryBondsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBondsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetBondsResponse proto.InternalMessageInfo
var xxx_messageInfo_QueryBondsResponse proto.InternalMessageInfo
func (m *QueryGetBondsResponse) GetBonds() []*Bond {
func (m *QueryBondsResponse) GetBonds() []*Bond {
if m != nil {
return m.Bonds
}
return nil
}
func (m *QueryGetBondsResponse) GetPagination() *query.PageResponse {
func (m *QueryBondsResponse) GetPagination() *query.PageResponse {
if m != nil {
return m.Pagination
}
return nil
}
// QueryGetBondById
// QueryGetBondById queries bond by bond id
type QueryGetBondByIdRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" json:"id" yaml:"id"`
}
@@ -304,7 +304,8 @@ func (m *QueryGetBondByIdResponse) GetBond() *Bond {
return nil
}
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC
// Method
type QueryGetBondsByOwnerRequest struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// pagination defines the pagination in the response.
@@ -358,7 +359,8 @@ func (m *QueryGetBondsByOwnerRequest) GetPagination() *query.PageResponse {
return nil
}
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC
// Method
type QueryGetBondsByOwnerResponse struct {
Bonds []Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds" json:"bonds" yaml:"bonds"`
// pagination defines the pagination in the response.
@@ -412,7 +414,8 @@ func (m *QueryGetBondsByOwnerResponse) GetPagination() *query.PageResponse {
return nil
}
// QueryGetBondModuleBalanceRequest is request type for bond module balance rpc method
// QueryGetBondModuleBalanceRequest is request type for bond module balance rpc
// method
type QueryGetBondModuleBalanceRequest struct {
}
@@ -449,7 +452,8 @@ func (m *QueryGetBondModuleBalanceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryGetBondModuleBalanceRequest proto.InternalMessageInfo
// QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method
// QueryGetBondModuleBalanceResponse is the response type for bond module
// balance rpc method
type QueryGetBondModuleBalanceResponse struct {
Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance" json:"coins" yaml:"coins"`
}
@@ -497,8 +501,8 @@ func (m *QueryGetBondModuleBalanceResponse) GetBalance() github_com_cosmos_cosmo
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "cerc.bond.v1.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "cerc.bond.v1.QueryParamsResponse")
proto.RegisterType((*QueryGetBondsRequest)(nil), "cerc.bond.v1.QueryGetBondsRequest")
proto.RegisterType((*QueryGetBondsResponse)(nil), "cerc.bond.v1.QueryGetBondsResponse")
proto.RegisterType((*QueryBondsRequest)(nil), "cerc.bond.v1.QueryBondsRequest")
proto.RegisterType((*QueryBondsResponse)(nil), "cerc.bond.v1.QueryBondsResponse")
proto.RegisterType((*QueryGetBondByIdRequest)(nil), "cerc.bond.v1.QueryGetBondByIdRequest")
proto.RegisterType((*QueryGetBondByIdResponse)(nil), "cerc.bond.v1.QueryGetBondByIdResponse")
proto.RegisterType((*QueryGetBondsByOwnerRequest)(nil), "cerc.bond.v1.QueryGetBondsByOwnerRequest")
@@ -510,54 +514,54 @@ func init() {
func init() { proto.RegisterFile("cerc/bond/v1/query.proto", fileDescriptor_d3221677ed35cdfb) }
var fileDescriptor_d3221677ed35cdfb = []byte{
// 748 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x6e, 0xd3, 0x40,
0x14, 0xc6, 0xe3, 0x40, 0x8a, 0x98, 0x22, 0x21, 0x4d, 0x13, 0x92, 0x3a, 0xad, 0x9d, 0x4e, 0x45,
0x5b, 0x2a, 0xd5, 0xa3, 0x84, 0x1d, 0x12, 0x1b, 0x57, 0xa2, 0x42, 0xa8, 0xa2, 0x78, 0xc9, 0x02,
0xe4, 0x7f, 0x32, 0x43, 0x13, 0x4f, 0x9a, 0x71, 0x02, 0x51, 0x29, 0x8b, 0x9e, 0xa0, 0x12, 0x0b,
0xae, 0x00, 0xac, 0x39, 0x44, 0x97, 0x95, 0xd8, 0xb0, 0x0a, 0xa8, 0xe5, 0x04, 0x39, 0x01, 0xf2,
0xcc, 0xb8, 0xb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0x61, 0x56, 0x38, 0x4c,
0x0d, 0x6a, 0x23, 0x30, 0xfd, 0x0d, 0x7e, 0x7f, 0xf1, 0x3e, 0x7f, 0x1c, 0xc0, 0xcf, 0x0a, 0x28,
0x25, 0x39, 0x32, 0xe7, 0x13, 0x1a, 0x57, 0x57, 0x1b, 0x77, 0xda, 0x55, 0x7c, 0x6d, 0xbd, 0x44,
0x5c, 0xe4, 0x88, 0x65, 0x58, 0x1a, 0x41, 0x14, 0x32, 0xf3, 0xf1, 0xf1, 0xa9, 0xa6, 0x9c, 0x9c,
0x6a, 0xca, 0xef, 0x53, 0x4d, 0x39, 0x3a, 0xd3, 0x72, 0x27, 0x67, 0x5a, 0xee, 0xe7, 0x99, 0x96,
0x7b, 0xb9, 0x1c, 0x90, 0xc8, 0xe8, 0x79, 0x8e, 0x11, 0x51, 0xbe, 0x75, 0x83, 0x50, 0xdc, 0xb4,
0x5d, 0x1a, 0x12, 0xb7, 0xe1, 0xe1, 0xf7, 0x3c, 0x93, 0x33, 0xc3, 0xff, 0x09, 0x1f, 0xfe, 0x0d,
0x00, 0x00, 0xff, 0xff, 0x3e, 0xc4, 0xd7, 0x1e, 0xcc, 0x07, 0x00, 0x00,
// 750 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x6f, 0xd3, 0x3e,
0x1c, 0xc6, 0x9b, 0xfe, 0x7e, 0x1d, 0xc2, 0x43, 0x42, 0x78, 0x1d, 0xed, 0xd2, 0x2d, 0xe9, 0x82,
0xd8, 0xc6, 0xa4, 0xc5, 0x6a, 0xb9, 0x21, 0x71, 0xc9, 0x24, 0x26, 0x84, 0x26, 0x46, 0x8e, 0x70,
0x40, 0xf9, 0x63, 0x05, 0xb3, 0x36, 0xee, 0xea, 0xb4, 0x50, 0x8d, 0x71, 0xd8, 0x8d, 0xdb, 0x24,
0x24, 0x5e, 0x02, 0x42, 0x9c, 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xe2, 0xef, 0xc1, 0x03, 0x05,
0xdc, 0x1c, 0x3b, 0xe0, 0xf0, 0xde, 0xf9, 0xd5, 0xc7, 0xee, 0xa0, 0xba, 0x7a, 0x15, 0xa9, 0x84,
0x59, 0xe2, 0x30, 0x75, 0xa8, 0x8d, 0xc1, 0x0c, 0xd6, 0xf8, 0xcd, 0x45, 0xbb, 0xfc, 0xb1, 0x07,
0x3f, 0x29, 0xa0, 0x9c, 0x77, 0x30, 0xa1, 0x79, 0xbe, 0x59, 0xde, 0x31, 0x57, 0xd1, 0x95, 0xf5,
0x92, 0x70, 0x81, 0x13, 0x56, 0xe0, 0xec, 0x18, 0xa1, 0x90, 0x59, 0x0f, 0x0f, 0x8f, 0x35, 0xe5,
0xe8, 0x58, 0x53, 0x7e, 0x1d, 0x6b, 0xca, 0xc1, 0x89, 0x56, 0x38, 0x3a, 0xd1, 0x0a, 0x3f, 0x4e,
0xb4, 0xc2, 0xf3, 0x3b, 0x01, 0x89, 0xcc, 0xbe, 0xef, 0x9a, 0x11, 0xe5, 0x4b, 0xd7, 0x08, 0x45,
0x2d, 0xc7, 0xa3, 0x21, 0xf1, 0x9a, 0x3e, 0x7a, 0xcb, 0x2b, 0xb9, 0x53, 0xfc, 0xcf, 0xef, 0xfe,
0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x9d, 0x67, 0xc5, 0xbf, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -575,13 +579,13 @@ type QueryClient interface {
// Params queries bonds module params.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Bonds queries bonds list
Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error)
Bonds(ctx context.Context, in *QueryBondsRequest, opts ...grpc.CallOption) (*QueryBondsResponse, error)
// GetBondById
GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner
GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance
GetBondsModuleBalance(ctx context.Context, in *QueryGetBondModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetBondModuleBalanceResponse, error)
GetBondModuleBalance(ctx context.Context, in *QueryGetBondModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetBondModuleBalanceResponse, error)
}
type queryClient struct {
@@ -601,8 +605,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
return out, nil
}
func (c *queryClient) Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error) {
out := new(QueryGetBondsResponse)
func (c *queryClient) Bonds(ctx context.Context, in *QueryBondsRequest, opts ...grpc.CallOption) (*QueryBondsResponse, error) {
out := new(QueryBondsResponse)
err := c.cc.Invoke(ctx, "/cerc.bond.v1.Query/Bonds", in, out, opts...)
if err != nil {
return nil, err
@@ -628,9 +632,9 @@ func (c *queryClient) GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOw
return out, nil
}
func (c *queryClient) GetBondsModuleBalance(ctx context.Context, in *QueryGetBondModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetBondModuleBalanceResponse, error) {
func (c *queryClient) GetBondModuleBalance(ctx context.Context, in *QueryGetBondModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetBondModuleBalanceResponse, error) {
out := new(QueryGetBondModuleBalanceResponse)
err := c.cc.Invoke(ctx, "/cerc.bond.v1.Query/GetBondsModuleBalance", in, out, opts...)
err := c.cc.Invoke(ctx, "/cerc.bond.v1.Query/GetBondModuleBalance", in, out, opts...)
if err != nil {
return nil, err
}
@@ -642,13 +646,13 @@ type QueryServer interface {
// Params queries bonds module params.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Bonds queries bonds list
Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error)
Bonds(context.Context, *QueryBondsRequest) (*QueryBondsResponse, error)
// GetBondById
GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner
GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance
GetBondsModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error)
GetBondModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
@@ -658,7 +662,7 @@ type UnimplementedQueryServer struct {
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) Bonds(ctx context.Context, req *QueryGetBondsRequest) (*QueryGetBondsResponse, error) {
func (*UnimplementedQueryServer) Bonds(ctx context.Context, req *QueryBondsRequest) (*QueryBondsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Bonds not implemented")
}
func (*UnimplementedQueryServer) GetBondById(ctx context.Context, req *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) {
@@ -667,8 +671,8 @@ func (*UnimplementedQueryServer) GetBondById(ctx context.Context, req *QueryGetB
func (*UnimplementedQueryServer) GetBondsByOwner(ctx context.Context, req *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented")
}
func (*UnimplementedQueryServer) GetBondsModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsModuleBalance not implemented")
func (*UnimplementedQueryServer) GetBondModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondModuleBalance not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
@@ -694,7 +698,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
}
func _Query_Bonds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetBondsRequest)
in := new(QueryBondsRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -706,7 +710,7 @@ func _Query_Bonds_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: "/cerc.bond.v1.Query/Bonds",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Bonds(ctx, req.(*QueryGetBondsRequest))
return srv.(QueryServer).Bonds(ctx, req.(*QueryBondsRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -747,20 +751,20 @@ func _Query_GetBondsByOwner_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler)
}
func _Query_GetBondsModuleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
func _Query_GetBondModuleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetBondModuleBalanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetBondsModuleBalance(ctx, in)
return srv.(QueryServer).GetBondModuleBalance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cerc.bond.v1.Query/GetBondsModuleBalance",
FullMethod: "/cerc.bond.v1.Query/GetBondModuleBalance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBondsModuleBalance(ctx, req.(*QueryGetBondModuleBalanceRequest))
return srv.(QueryServer).GetBondModuleBalance(ctx, req.(*QueryGetBondModuleBalanceRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -786,8 +790,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{
Handler: _Query_GetBondsByOwner_Handler,
},
{
MethodName: "GetBondsModuleBalance",
Handler: _Query_GetBondsModuleBalance_Handler,
MethodName: "GetBondModuleBalance",
Handler: _Query_GetBondModuleBalance_Handler,
},
},
Streams: []grpc.StreamDesc{},
@@ -852,7 +856,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error) {
func (m *QueryBondsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -862,12 +866,12 @@ func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryGetBondsRequest) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryBondsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -887,7 +891,7 @@ func (m *QueryGetBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error) {
func (m *QueryBondsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -897,12 +901,12 @@ func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryGetBondsResponse) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryBondsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetBondsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryBondsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1185,7 +1189,7 @@ func (m *QueryParamsResponse) Size() (n int) {
return n
}
func (m *QueryGetBondsRequest) Size() (n int) {
func (m *QueryBondsRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -1198,7 +1202,7 @@ func (m *QueryGetBondsRequest) Size() (n int) {
return n
}
func (m *QueryGetBondsResponse) Size() (n int) {
func (m *QueryBondsResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -1445,7 +1449,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error {
func (m *QueryBondsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1468,10 +1472,10 @@ func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetBondsRequest: wiretype end group for non-group")
return fmt.Errorf("proto: QueryBondsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetBondsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryBondsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -1531,7 +1535,7 @@ func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error {
func (m *QueryBondsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1554,10 +1558,10 @@ func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetBondsResponse: wiretype end group for non-group")
return fmt.Errorf("proto: QueryBondsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetBondsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryBondsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
+14 -14
View File
@@ -56,7 +56,7 @@ var (
)
func request_Query_Bonds_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondsRequest
var protoReq QueryBondsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
@@ -72,7 +72,7 @@ func request_Query_Bonds_0(ctx context.Context, marshaler runtime.Marshaler, cli
}
func local_request_Query_Bonds_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondsRequest
var protoReq QueryBondsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
@@ -213,20 +213,20 @@ func local_request_Query_GetBondsByOwner_0(ctx context.Context, marshaler runtim
}
func request_Query_GetBondsModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
func request_Query_GetBondModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondModuleBalanceRequest
var metadata runtime.ServerMetadata
msg, err := client.GetBondsModuleBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
msg, err := client.GetBondModuleBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetBondsModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
func local_request_Query_GetBondModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondModuleBalanceRequest
var metadata runtime.ServerMetadata
msg, err := server.GetBondsModuleBalance(ctx, &protoReq)
msg, err := server.GetBondModuleBalance(ctx, &protoReq)
return msg, metadata, err
}
@@ -329,7 +329,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
})
mux.Handle("GET", pattern_Query_GetBondsModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetBondModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -340,7 +340,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetBondsModuleBalance_0(rctx, inboundMarshaler, server, req, pathParams)
resp, md, err := local_request_Query_GetBondModuleBalance_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
@@ -348,7 +348,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
return
}
forward_Query_GetBondsModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetBondModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@@ -473,7 +473,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
})
mux.Handle("GET", pattern_Query_GetBondsModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetBondModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
@@ -482,14 +482,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetBondsModuleBalance_0(rctx, inboundMarshaler, client, req, pathParams)
resp, md, err := request_Query_GetBondModuleBalance_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetBondsModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetBondModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@@ -505,7 +505,7 @@ var (
pattern_Query_GetBondsByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cerc", "bond", "v1", "by-owner", "owner"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetBondsModuleBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "bond", "v1", "balance"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetBondModuleBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cerc", "bond", "v1", "balance"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
@@ -517,5 +517,5 @@ var (
forward_Query_GetBondsByOwner_0 = runtime.ForwardResponseMessage
forward_Query_GetBondsModuleBalance_0 = runtime.ForwardResponseMessage
forward_Query_GetBondModuleBalance_0 = runtime.ForwardResponseMessage
)