Format and lint proto type files
Some checks failed
Protobuf / lint (pull_request) Failing after 21s
Build / build (pull_request) Failing after 1m6s
E2E Tests / test-e2e (pull_request) Failing after 2m40s
Integration Tests / test-integration (pull_request) Failing after 2m19s
Unit Tests / test-unit (pull_request) Failing after 1m37s
Lint / Run golangci-lint (pull_request) Failing after 3m20s

This commit is contained in:
Prathamesh Musale 2024-03-07 15:34:38 +05:30
parent 33b6cce362
commit daac253936
26 changed files with 2353 additions and 2278 deletions

View File

@ -3732,6 +3732,7 @@ func (x *Auction) GetWinningPrice() *v1beta1.Coin {
return nil return nil
} }
// Auctions represent all the auctions in the module
type Auctions struct { type Auctions struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache

File diff suppressed because it is too large Load Diff

View File

@ -38,11 +38,11 @@ type QueryClient interface {
// Auctions queries all auctions // Auctions queries all auctions
Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error) Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error)
// GetAuction queries an auction // GetAuction queries an auction
GetAuction(ctx context.Context, in *QueryAuctionRequest, opts ...grpc.CallOption) (*QueryAuctionResponse, error) GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error)
// GetBid queries an auction bid // GetBid queries an auction bid
GetBid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error)
// GetBids queries all auction bids // GetBids queries all auction bids
GetBids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error)
// AuctionsByBidder queries auctions by bidder // AuctionsByBidder queries auctions by bidder
AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error) AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error)
// AuctionsByOwner queries auctions by owner // AuctionsByOwner queries auctions by owner
@ -77,8 +77,8 @@ func (c *queryClient) Auctions(ctx context.Context, in *QueryAuctionsRequest, op
return out, nil return out, nil
} }
func (c *queryClient) GetAuction(ctx context.Context, in *QueryAuctionRequest, opts ...grpc.CallOption) (*QueryAuctionResponse, error) { func (c *queryClient) GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) {
out := new(QueryAuctionResponse) out := new(QueryGetAuctionResponse)
err := c.cc.Invoke(ctx, Query_GetAuction_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetAuction_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -86,8 +86,8 @@ func (c *queryClient) GetAuction(ctx context.Context, in *QueryAuctionRequest, o
return out, nil return out, nil
} }
func (c *queryClient) GetBid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) { func (c *queryClient) GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error) {
out := new(QueryBidResponse) out := new(QueryGetBidResponse)
err := c.cc.Invoke(ctx, Query_GetBid_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetBid_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -95,8 +95,8 @@ func (c *queryClient) GetBid(ctx context.Context, in *QueryBidRequest, opts ...g
return out, nil return out, nil
} }
func (c *queryClient) GetBids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) { func (c *queryClient) GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error) {
out := new(QueryBidsResponse) out := new(QueryGetBidsResponse)
err := c.cc.Invoke(ctx, Query_GetBids_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetBids_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -140,11 +140,11 @@ type QueryServer interface {
// Auctions queries all auctions // Auctions queries all auctions
Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error)
// GetAuction queries an auction // GetAuction queries an auction
GetAuction(context.Context, *QueryAuctionRequest) (*QueryAuctionResponse, error) GetAuction(context.Context, *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error)
// GetBid queries an auction bid // GetBid queries an auction bid
GetBid(context.Context, *QueryBidRequest) (*QueryBidResponse, error) GetBid(context.Context, *QueryGetBidRequest) (*QueryGetBidResponse, error)
// GetBids queries all auction bids // GetBids queries all auction bids
GetBids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error) GetBids(context.Context, *QueryGetBidsRequest) (*QueryGetBidsResponse, error)
// AuctionsByBidder queries auctions by bidder // AuctionsByBidder queries auctions by bidder
AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error)
// AuctionsByOwner queries auctions by owner // AuctionsByOwner queries auctions by owner
@ -164,13 +164,13 @@ func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*Q
func (UnimplementedQueryServer) Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) { func (UnimplementedQueryServer) Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Auctions not implemented") return nil, status.Errorf(codes.Unimplemented, "method Auctions not implemented")
} }
func (UnimplementedQueryServer) GetAuction(context.Context, *QueryAuctionRequest) (*QueryAuctionResponse, error) { func (UnimplementedQueryServer) GetAuction(context.Context, *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuction not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetAuction not implemented")
} }
func (UnimplementedQueryServer) GetBid(context.Context, *QueryBidRequest) (*QueryBidResponse, error) { func (UnimplementedQueryServer) GetBid(context.Context, *QueryGetBidRequest) (*QueryGetBidResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBid not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBid not implemented")
} }
func (UnimplementedQueryServer) GetBids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error) { func (UnimplementedQueryServer) GetBids(context.Context, *QueryGetBidsRequest) (*QueryGetBidsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBids not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBids not implemented")
} }
func (UnimplementedQueryServer) AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) { func (UnimplementedQueryServer) AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) {
@ -232,7 +232,7 @@ func _Query_Auctions_Handler(srv interface{}, ctx context.Context, dec func(inte
} }
func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryAuctionRequest) in := new(QueryGetAuctionRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -244,13 +244,13 @@ func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(in
FullMethod: Query_GetAuction_FullMethodName, FullMethod: Query_GetAuction_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetAuction(ctx, req.(*QueryAuctionRequest)) return srv.(QueryServer).GetAuction(ctx, req.(*QueryGetAuctionRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryBidRequest) in := new(QueryGetBidRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -262,13 +262,13 @@ func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interf
FullMethod: Query_GetBid_FullMethodName, FullMethod: Query_GetBid_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBid(ctx, req.(*QueryBidRequest)) return srv.(QueryServer).GetBid(ctx, req.(*QueryGetBidRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryBidsRequest) in := new(QueryGetBidsRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -280,7 +280,7 @@ func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(inter
FullMethod: Query_GetBids_FullMethodName, FullMethod: Query_GetBids_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBids(ctx, req.(*QueryBidsRequest)) return srv.(QueryServer).GetBids(ctx, req.(*QueryGetBidsRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }

File diff suppressed because it is too large Load Diff

View File

@ -19,11 +19,11 @@ import (
const _ = grpc.SupportPackageIsVersion7 const _ = grpc.SupportPackageIsVersion7
const ( const (
Query_Params_FullMethodName = "/cerc.bond.v1.Query/Params" Query_Params_FullMethodName = "/cerc.bond.v1.Query/Params"
Query_Bonds_FullMethodName = "/cerc.bond.v1.Query/Bonds" Query_Bonds_FullMethodName = "/cerc.bond.v1.Query/Bonds"
Query_GetBondById_FullMethodName = "/cerc.bond.v1.Query/GetBondById" Query_GetBondById_FullMethodName = "/cerc.bond.v1.Query/GetBondById"
Query_GetBondsByOwner_FullMethodName = "/cerc.bond.v1.Query/GetBondsByOwner" Query_GetBondsByOwner_FullMethodName = "/cerc.bond.v1.Query/GetBondsByOwner"
Query_GetBondsModuleBalance_FullMethodName = "/cerc.bond.v1.Query/GetBondsModuleBalance" Query_GetBondModuleBalance_FullMethodName = "/cerc.bond.v1.Query/GetBondModuleBalance"
) )
// QueryClient is the client API for Query service. // QueryClient is the client API for Query service.
@ -33,13 +33,13 @@ type QueryClient interface {
// Params queries bonds module params. // Params queries bonds module params.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Bonds queries bonds list // 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
GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error) GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner // Get Bonds list by Owner
GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error) GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance // 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 { type queryClient struct {
@ -59,8 +59,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
return out, nil return out, nil
} }
func (c *queryClient) Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error) { func (c *queryClient) Bonds(ctx context.Context, in *QueryBondsRequest, opts ...grpc.CallOption) (*QueryBondsResponse, error) {
out := new(QueryGetBondsResponse) out := new(QueryBondsResponse)
err := c.cc.Invoke(ctx, Query_Bonds_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_Bonds_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -86,9 +86,9 @@ func (c *queryClient) GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOw
return out, nil 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) out := new(QueryGetBondModuleBalanceResponse)
err := c.cc.Invoke(ctx, Query_GetBondsModuleBalance_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetBondModuleBalance_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -102,13 +102,13 @@ type QueryServer interface {
// Params queries bonds module params. // Params queries bonds module params.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Bonds queries bonds list // Bonds queries bonds list
Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error) Bonds(context.Context, *QueryBondsRequest) (*QueryBondsResponse, error)
// GetBondById // GetBondById
GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner // Get Bonds list by Owner
GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance // Get Bond module balance
GetBondsModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) GetBondModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error)
mustEmbedUnimplementedQueryServer() mustEmbedUnimplementedQueryServer()
} }
@ -119,7 +119,7 @@ type UnimplementedQueryServer struct {
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
} }
func (UnimplementedQueryServer) Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error) { func (UnimplementedQueryServer) Bonds(context.Context, *QueryBondsRequest) (*QueryBondsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Bonds not implemented") return nil, status.Errorf(codes.Unimplemented, "method Bonds not implemented")
} }
func (UnimplementedQueryServer) GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) { func (UnimplementedQueryServer) GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) {
@ -128,8 +128,8 @@ func (UnimplementedQueryServer) GetBondById(context.Context, *QueryGetBondByIdRe
func (UnimplementedQueryServer) GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) { func (UnimplementedQueryServer) GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented")
} }
func (UnimplementedQueryServer) GetBondsModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) { func (UnimplementedQueryServer) GetBondModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsModuleBalance not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBondModuleBalance not implemented")
} }
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
@ -163,7 +163,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) { 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 { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -175,7 +175,7 @@ func _Query_Bonds_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: Query_Bonds_FullMethodName, FullMethod: Query_Bonds_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
@ -216,20 +216,20 @@ func _Query_GetBondsByOwner_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler) 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) in := new(QueryGetBondModuleBalanceRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).GetBondsModuleBalance(ctx, in) return srv.(QueryServer).GetBondModuleBalance(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: Query_GetBondsModuleBalance_FullMethodName, FullMethod: Query_GetBondModuleBalance_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
@ -258,8 +258,8 @@ var Query_ServiceDesc = grpc.ServiceDesc{
Handler: _Query_GetBondsByOwner_Handler, Handler: _Query_GetBondsByOwner_Handler,
}, },
{ {
MethodName: "GetBondsModuleBalance", MethodName: "GetBondModuleBalance",
Handler: _Query_GetBondsModuleBalance_Handler, Handler: _Query_GetBondModuleBalance_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},

File diff suppressed because it is too large Load Diff

View File

@ -39,9 +39,9 @@ type QueryClient interface {
// Records queries all records // Records queries all records
Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error) Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error)
// Get record by id // Get record by id
GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) GetRecord(ctx context.Context, in *QueryGetRecordRequest, opts ...grpc.CallOption) (*QueryGetRecordResponse, error)
// Get records by bond id // Get records by bond id
GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) GetRecordsByBondId(ctx context.Context, in *QueryGetRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryGetRecordsByBondIdResponse, error)
// NameRecords queries all name records // NameRecords queries all name records
NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
@ -80,8 +80,8 @@ func (c *queryClient) Records(ctx context.Context, in *QueryRecordsRequest, opts
return out, nil return out, nil
} }
func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) { func (c *queryClient) GetRecord(ctx context.Context, in *QueryGetRecordRequest, opts ...grpc.CallOption) (*QueryGetRecordResponse, error) {
out := new(QueryRecordByIdResponse) out := new(QueryGetRecordResponse)
err := c.cc.Invoke(ctx, Query_GetRecord_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetRecord_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -89,8 +89,8 @@ func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest,
return out, nil return out, nil
} }
func (c *queryClient) GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) { func (c *queryClient) GetRecordsByBondId(ctx context.Context, in *QueryGetRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryGetRecordsByBondIdResponse, error) {
out := new(QueryRecordsByBondIdResponse) out := new(QueryGetRecordsByBondIdResponse)
err := c.cc.Invoke(ctx, Query_GetRecordsByBondId_FullMethodName, in, out, opts...) err := c.cc.Invoke(ctx, Query_GetRecordsByBondId_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -152,9 +152,9 @@ type QueryServer interface {
// Records queries all records // Records queries all records
Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error)
// Get record by id // Get record by id
GetRecord(context.Context, *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) GetRecord(context.Context, *QueryGetRecordRequest) (*QueryGetRecordResponse, error)
// Get records by bond id // Get records by bond id
GetRecordsByBondId(context.Context, *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) GetRecordsByBondId(context.Context, *QueryGetRecordsByBondIdRequest) (*QueryGetRecordsByBondIdResponse, error)
// NameRecords queries all name records // NameRecords queries all name records
NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
@ -178,10 +178,10 @@ func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*Q
func (UnimplementedQueryServer) Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) { func (UnimplementedQueryServer) Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Records not implemented") return nil, status.Errorf(codes.Unimplemented, "method Records not implemented")
} }
func (UnimplementedQueryServer) GetRecord(context.Context, *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) { func (UnimplementedQueryServer) GetRecord(context.Context, *QueryGetRecordRequest) (*QueryGetRecordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented")
} }
func (UnimplementedQueryServer) GetRecordsByBondId(context.Context, *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) { func (UnimplementedQueryServer) GetRecordsByBondId(context.Context, *QueryGetRecordsByBondIdRequest) (*QueryGetRecordsByBondIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecordsByBondId not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetRecordsByBondId not implemented")
} }
func (UnimplementedQueryServer) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) { func (UnimplementedQueryServer) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) {
@ -249,7 +249,7 @@ func _Query_Records_Handler(srv interface{}, ctx context.Context, dec func(inter
} }
func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordByIdRequest) in := new(QueryGetRecordRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -261,13 +261,13 @@ func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: Query_GetRecord_FullMethodName, FullMethod: Query_GetRecord_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecord(ctx, req.(*QueryRecordByIdRequest)) return srv.(QueryServer).GetRecord(ctx, req.(*QueryGetRecordRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordsByBondIdRequest) in := new(QueryGetRecordsByBondIdRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -279,7 +279,7 @@ func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec
FullMethod: Query_GetRecordsByBondId_FullMethodName, FullMethod: Query_GetRecordsByBondId_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecordsByBondId(ctx, req.(*QueryRecordsByBondIdRequest)) return srv.(QueryServer).GetRecordsByBondId(ctx, req.(*QueryGetRecordsByBondIdRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }

View File

@ -2,7 +2,6 @@ syntax = "proto3";
package cerc.auction.v1; package cerc.auction.v1;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto"; import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
@ -17,16 +16,16 @@ message Params {
// Duration of the commits phase in seconds // Duration of the commits phase in seconds
google.protobuf.Duration commits_duration = 1 [ google.protobuf.Duration commits_duration = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\"" (gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
]; ];
// Duration of the reveals phase in seconds // Duration of the reveals phase in seconds
google.protobuf.Duration reveals_duration = 2 [ google.protobuf.Duration reveals_duration = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\"" (gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
]; ];
// Commit fees // Commit fees
@ -52,7 +51,7 @@ message Params {
message Auction { message Auction {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string id = 1; string id = 1;
string status = 2; string status = 2;
// Address of the creator of the auction // Address of the creator of the auction
@ -60,21 +59,21 @@ message Auction {
// Timestamp at which the auction was created // Timestamp at which the auction was created
google.protobuf.Timestamp create_time = 4 [ google.protobuf.Timestamp create_time = 4 [
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\"" (gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""
]; ];
// Timestamp at which the commits phase concluded // Timestamp at which the commits phase concluded
google.protobuf.Timestamp commits_end_time = 5 [ google.protobuf.Timestamp commits_end_time = 5 [
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"commits_end_time\" yaml:\"commits_end_time\"" (gogoproto.moretags) = "json:\"commits_end_time\" yaml:\"commits_end_time\""
]; ];
// Timestamp at which the reveals phase concluded // Timestamp at which the reveals phase concluded
google.protobuf.Timestamp reveals_end_time = 6 [ google.protobuf.Timestamp reveals_end_time = 6 [
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"reveals_end_time\" yaml:\"reveals_end_time\"" (gogoproto.moretags) = "json:\"reveals_end_time\" yaml:\"reveals_end_time\""
]; ];
@ -112,23 +111,24 @@ message Auction {
]; ];
} }
// Auctions represent all the auctions in the module
message Auctions { message Auctions {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
repeated Auction auctions = 1 [(gogoproto.nullable) = false]; repeated Auction auctions = 1 [ (gogoproto.nullable) = false ];
} }
// Bid represents a sealed bid (commit) made during the auction // Bid represents a sealed bid (commit) made during the auction
message Bid { message Bid {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string auction_id = 1; string auction_id = 1;
string bidder_address = 2; string bidder_address = 2;
string status = 3; string status = 3;
string commit_hash = 4; string commit_hash = 4;
google.protobuf.Timestamp commit_time = 5 [ google.protobuf.Timestamp commit_time = 5 [
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"commit_time\" yaml:\"commit_time\"" (gogoproto.moretags) = "json:\"commit_time\" yaml:\"commit_time\""
]; ];
@ -139,7 +139,7 @@ message Bid {
]; ];
google.protobuf.Timestamp reveal_time = 7 [ google.protobuf.Timestamp reveal_time = 7 [
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"reveal_time\" yaml:\"reveal_time\"" (gogoproto.moretags) = "json:\"reveal_time\" yaml:\"reveal_time\""
]; ];

View File

@ -9,6 +9,7 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/auction";
// GenesisState defines the genesis state of the auction module // GenesisState defines the genesis state of the auction module
message GenesisState { message GenesisState {
Params params = 1 [(gogoproto.nullable) = false]; Params params = 1 [ (gogoproto.nullable) = false ];
Auctions auctions = 2 [(gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\""]; Auctions auctions = 2
[ (gogoproto.moretags) = "json:\"auctions\" yaml:\"auctions\"" ];
} }

View File

@ -23,43 +23,47 @@ service Query {
} }
// GetAuction queries an auction // GetAuction queries an auction
rpc GetAuction(QueryAuctionRequest) returns (QueryAuctionResponse) { rpc GetAuction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
option (google.api.http).get = "/cerc/auction/v1/auctions/{id}"; option (google.api.http).get = "/cerc/auction/v1/auctions/{id}";
} }
// GetBid queries an auction bid // GetBid queries an auction bid
rpc GetBid(QueryBidRequest) returns (QueryBidResponse) { rpc GetBid(QueryGetBidRequest) returns (QueryGetBidResponse) {
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}/{bidder}"; option (google.api.http).get =
"/cerc/auction/v1/bids/{auction_id}/{bidder}";
} }
// GetBids queries all auction bids // GetBids queries all auction bids
rpc GetBids(QueryBidsRequest) returns (QueryBidsResponse) { rpc GetBids(QueryGetBidsRequest) returns (QueryGetBidsResponse) {
option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}"; option (google.api.http).get = "/cerc/auction/v1/bids/{auction_id}";
} }
// AuctionsByBidder queries auctions by bidder // AuctionsByBidder queries auctions by bidder
rpc AuctionsByBidder(QueryAuctionsByBidderRequest) returns (QueryAuctionsByBidderResponse) { rpc AuctionsByBidder(QueryAuctionsByBidderRequest)
option (google.api.http).get = "/cerc/auction/v1/by-bidder/{bidder_address}"; returns (QueryAuctionsByBidderResponse) {
option (google.api.http).get =
"/cerc/auction/v1/by-bidder/{bidder_address}";
} }
// AuctionsByOwner queries auctions by owner // AuctionsByOwner queries auctions by owner
rpc AuctionsByOwner(QueryAuctionsByOwnerRequest) returns (QueryAuctionsByOwnerResponse) { rpc AuctionsByOwner(QueryAuctionsByOwnerRequest)
returns (QueryAuctionsByOwnerResponse) {
option (google.api.http).get = "/cerc/auction/v1/by-owner/{owner_address}"; option (google.api.http).get = "/cerc/auction/v1/by-owner/{owner_address}";
} }
// GetAuctionModuleBalance queries the auction module account balance // GetAuctionModuleBalance queries the auction module account balance
rpc GetAuctionModuleBalance(QueryGetAuctionModuleBalanceRequest) returns (QueryGetAuctionModuleBalanceResponse) { rpc GetAuctionModuleBalance(QueryGetAuctionModuleBalanceRequest)
returns (QueryGetAuctionModuleBalanceResponse) {
option (google.api.http).get = "/cerc/auction/v1/balance"; option (google.api.http).get = "/cerc/auction/v1/balance";
} }
} }
// QueryParamsRequest is the format to query the parameters of the auction module // QueryParamsRequest is the format to query the parameters of the auction
// module
message QueryParamsRequest {} message QueryParamsRequest {}
// QueryParamsResponse returns parameters of the auction module // QueryParamsResponse returns parameters of the auction module
message QueryParamsResponse { message QueryParamsResponse { Params params = 1; }
Params params = 1;
}
// AuctionsRequest is the format for querying all the auctions // AuctionsRequest is the format for querying all the auctions
message QueryAuctionsRequest { message QueryAuctionsRequest {
@ -76,19 +80,19 @@ message QueryAuctionsResponse {
} }
// AuctionRequest is the format for querying a specific auction // AuctionRequest is the format for querying a specific auction
message QueryAuctionRequest { message QueryGetAuctionRequest {
// Auction id // Auction id
string id = 1; string id = 1;
} }
// AuctionResponse returns the details of the queried auction // AuctionResponse returns the details of the queried auction
message QueryAuctionResponse { message QueryGetAuctionResponse {
// Auction details // Auction details
Auction auction = 1; Auction auction = 1;
} }
// BidRequest is the format for querying a specific bid in an auction // BidRequest is the format for querying a specific bid in an auction
message QueryBidRequest { message QueryGetBidRequest {
// Auction id // Auction id
string auction_id = 1; string auction_id = 1;
// Bidder address // Bidder address
@ -96,24 +100,25 @@ message QueryBidRequest {
} }
// BidResponse returns the details of the queried bid // BidResponse returns the details of the queried bid
message QueryBidResponse { message QueryGetBidResponse {
// Bid details // Bid details
Bid bid = 1; Bid bid = 1;
} }
// BidsRequest is the format for querying all bids in an auction // BidsRequest is the format for querying all bids in an auction
message QueryBidsRequest { message QueryGetBidsRequest {
// Auction id // Auction id
string auction_id = 1; string auction_id = 1;
} }
// BidsResponse returns details of all bids in an auction // BidsResponse returns details of all bids in an auction
message QueryBidsResponse { message QueryGetBidsResponse {
// List of bids in the auction // List of bids in the auction
repeated Bid bids = 1; repeated Bid bids = 1;
} }
// AuctionsByBidderRequest is the format for querying all auctions containing a bidder address // AuctionsByBidderRequest is the format for querying all auctions containing a
// bidder address
message QueryAuctionsByBidderRequest { message QueryAuctionsByBidderRequest {
// Address of the bidder // Address of the bidder
string bidder_address = 1; string bidder_address = 1;
@ -125,7 +130,8 @@ message QueryAuctionsByBidderResponse {
Auctions auctions = 1; Auctions auctions = 1;
} }
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner // AuctionsByOwnerRequest is the format for querying all auctions created by an
// owner
message QueryAuctionsByOwnerRequest { message QueryAuctionsByOwnerRequest {
// Address of the owner // Address of the owner
string owner_address = 1; string owner_address = 1;
@ -140,11 +146,13 @@ message QueryAuctionsByOwnerResponse {
// BalanceRequest is the format to fetch all balances // BalanceRequest is the format to fetch all balances
message QueryGetAuctionModuleBalanceRequest {} message QueryGetAuctionModuleBalanceRequest {}
// QueryGetAuctionModuleBalanceResponse is the response type for auction module
// balance rpc method
message QueryGetAuctionModuleBalanceResponse { message QueryGetAuctionModuleBalanceResponse {
// Set of all balances within the auction // Set of all balances within the auction
repeated cosmos.base.v1beta1.Coin balance = 1 [ repeated cosmos.base.v1beta1.Coin balance = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\"" (gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
]; ];
} }

View File

@ -38,16 +38,16 @@ message MsgCreateAuction {
// Duration of the commits phase in seconds // Duration of the commits phase in seconds
google.protobuf.Duration commits_duration = 1 [ google.protobuf.Duration commits_duration = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\"" (gogoproto.moretags) = "json:\"commits_duration\" yaml:\"commits_duration\""
]; ];
// Duration of the reveals phase in seconds // Duration of the reveals phase in seconds
google.protobuf.Duration reveals_duration = 2 [ google.protobuf.Duration reveals_duration = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\"" (gogoproto.moretags) = "json:\"reveals_duration\" yaml:\"reveals_duration\""
]; ];
// Commit fees // Commit fees
@ -69,7 +69,8 @@ message MsgCreateAuction {
]; ];
// Address of the signer // Address of the signer
string signer = 6 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""]; string signer = 6
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
} }
// MsgCreateAuctionResponse returns the details of the created auction // MsgCreateAuctionResponse returns the details of the created auction
@ -77,7 +78,8 @@ message MsgCreateAuctionResponse {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// Auction details // Auction details
Auction auction = 1 [(gogoproto.moretags) = "json:\"auction\" yaml:\"auction\""]; Auction auction = 1
[ (gogoproto.moretags) = "json:\"auction\" yaml:\"auction\"" ];
} }
// CommitBid defines the message to commit a bid // CommitBid defines the message to commit a bid
@ -86,13 +88,16 @@ message MsgCommitBid {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
// Auction id // Auction id
string auction_id = 1 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""]; string auction_id = 1
[ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
// Commit Hash // Commit Hash
string commit_hash = 2 [(gogoproto.moretags) = "json:\"commit_hash\" yaml:\"commit_hash\""]; string commit_hash = 2
[ (gogoproto.moretags) = "json:\"commit_hash\" yaml:\"commit_hash\"" ];
// Address of the signer // Address of the signer
string signer = 3 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""]; string signer = 3
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
} }
// MsgCommitBidResponse returns the state of the auction after the bid creation // MsgCommitBidResponse returns the state of the auction after the bid creation
@ -100,30 +105,32 @@ message MsgCommitBidResponse {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// Auction details // Auction details
Bid bid = 1 [(gogoproto.moretags) = "json:\"bid\" yaml:\"bid\""]; Bid bid = 1 [ (gogoproto.moretags) = "json:\"bid\" yaml:\"bid\"" ];
} }
// RevealBid defines the message to reveal a bid // RevealBid defines the message to reveal a bid
message MsgRevealBid { message MsgRevealBid {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
// Auction id // Auction id
string auction_id = 1 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""]; string auction_id = 1
[ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
// Commit Hash // Commit Hash
string reveal = 2 [(gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\""]; string reveal = 2
[ (gogoproto.moretags) = "json:\"reveal\" yaml:\"reveal\"" ];
// Address of the signer // Address of the signer
string signer = 3 [(gogoproto.moretags) = "json:\"signer\" yaml:\"signer\""]; string signer = 3
[ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ];
} }
// MsgRevealBidResponse returns the state of the auction after the bid reveal // MsgRevealBidResponse returns the state of the auction after the bid reveal
message MsgRevealBidResponse { message MsgRevealBidResponse {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// Auction details // Auction details
Auction auction = 1 [(gogoproto.moretags) = "json:\"auction\" yaml:\"auction\""]; Auction auction = 1
[ (gogoproto.moretags) = "json:\"auction\" yaml:\"auction\"" ];
} }

View File

@ -26,8 +26,8 @@ message Bond {
// balance of the bond // balance of the bond
repeated cosmos.base.v1beta1.Coin balance = 3 [ repeated cosmos.base.v1beta1.Coin balance = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\"" (gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
]; ];
} }

View File

@ -10,8 +10,9 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/bond";
// GenesisState defines the bond module's genesis state. // GenesisState defines the bond module's genesis state.
message GenesisState { message GenesisState {
// params defines all the parameters of the module. // params defines all the parameters of the module.
Params params = 1 [(gogoproto.nullable) = false]; Params params = 1 [ (gogoproto.nullable) = false ];
// bonds defines all the bonds // bonds defines all the bonds
repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""]; repeated Bond bonds = 2
[ (gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\"" ];
} }

View File

@ -19,7 +19,7 @@ service Query {
} }
// Bonds queries bonds list // Bonds queries bonds list
rpc Bonds(QueryGetBondsRequest) returns (QueryGetBondsResponse) { rpc Bonds(QueryBondsRequest) returns (QueryBondsResponse) {
// Mark query as module_query_safe? // Mark query as module_query_safe?
// option (cosmos.query.v1.module_query_safe) = true; // option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cerc/bond/v1/bonds"; option (google.api.http).get = "/cerc/bond/v1/bonds";
@ -31,12 +31,14 @@ service Query {
} }
// Get Bonds list by Owner // Get Bonds list by Owner
rpc GetBondsByOwner(QueryGetBondsByOwnerRequest) returns (QueryGetBondsByOwnerResponse) { rpc GetBondsByOwner(QueryGetBondsByOwnerRequest)
returns (QueryGetBondsByOwnerResponse) {
option (google.api.http).get = "/cerc/bond/v1/by-owner/{owner}"; option (google.api.http).get = "/cerc/bond/v1/by-owner/{owner}";
} }
// Get Bond module balance // Get Bond module balance
rpc GetBondsModuleBalance(QueryGetBondModuleBalanceRequest) returns (QueryGetBondModuleBalanceResponse) { rpc GetBondModuleBalance(QueryGetBondModuleBalanceRequest)
returns (QueryGetBondModuleBalanceResponse) {
option (google.api.http).get = "/cerc/bond/v1/balance"; option (google.api.http).get = "/cerc/bond/v1/balance";
} }
} }
@ -46,41 +48,45 @@ message QueryParamsRequest {}
// QueryParamsResponse returns response type of bond module params // QueryParamsResponse returns response type of bond module params
message QueryParamsResponse { message QueryParamsResponse {
Params params = 1 [(gogoproto.moretags) = "json:\"params\" yaml:\"params\""]; Params params = 1
[ (gogoproto.moretags) = "json:\"params\" yaml:\"params\"" ];
} }
// QueryGetBondById queries a bonds. // QueryBondsRequest queries bonds
message QueryGetBondsRequest { message QueryBondsRequest {
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 1; cosmos.base.query.v1beta1.PageRequest pagination = 1;
} }
// QueryGetBondsResponse is response type for get the bonds by bond-id // QueryBondsResponse is response type for get the bonds by bond-id
message QueryGetBondsResponse { message QueryBondsResponse {
repeated Bond bonds = 1 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""]; repeated Bond bonds = 1
[ (gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\"" ];
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
// QueryGetBondById // QueryGetBondById queries bond by bond id
message QueryGetBondByIdRequest { message QueryGetBondByIdRequest {
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""]; string id = 1 [ (gogoproto.moretags) = "json:\"id\" yaml:\"id\"" ];
} }
// QueryGetBondByIdResponse returns QueryGetBondById query response // QueryGetBondByIdResponse returns QueryGetBondById query response
message QueryGetBondByIdResponse { message QueryGetBondByIdResponse {
Bond bond = 1 [(gogoproto.moretags) = "json:\"bond\" yaml:\"bond\""]; Bond bond = 1 [ (gogoproto.moretags) = "json:\"bond\" yaml:\"bond\"" ];
} }
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method // QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC
// Method
message QueryGetBondsByOwnerRequest { message QueryGetBondsByOwnerRequest {
string owner = 1; string owner = 1;
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method // QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC
// Method
message QueryGetBondsByOwnerResponse { message QueryGetBondsByOwnerResponse {
repeated Bond bonds = 1 [ repeated Bond bonds = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
@ -91,14 +97,16 @@ message QueryGetBondsByOwnerResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
// QueryGetBondModuleBalanceRequest is request type for bond module balance rpc method // QueryGetBondModuleBalanceRequest is request type for bond module balance rpc
// method
message QueryGetBondModuleBalanceRequest {} message QueryGetBondModuleBalanceRequest {}
// QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method // QueryGetBondModuleBalanceResponse is the response type for bond module
// balance rpc method
message QueryGetBondModuleBalanceResponse { message QueryGetBondModuleBalanceResponse {
repeated cosmos.base.v1beta1.Coin balance = 1 [ repeated cosmos.base.v1beta1.Coin balance = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\"" (gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
]; ];
} }

View File

@ -38,29 +38,27 @@ service Msg {
message MsgCreateBond { message MsgCreateBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string signer = 1; string signer = 1;
repeated cosmos.base.v1beta1.Coin coins = 2 [ repeated cosmos.base.v1beta1.Coin coins = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\"" (gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
]; ];
} }
// MsgCreateBondResponse defines the Msg/CreateBond response type. // MsgCreateBondResponse defines the Msg/CreateBond response type.
message MsgCreateBondResponse { message MsgCreateBondResponse { string id = 1; }
string id = 1;
}
// MsgRefillBond defines a SDK message for refill the amount for bond. // MsgRefillBond defines a SDK message for refill the amount for bond.
message MsgRefillBond { message MsgRefillBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string id = 1; string id = 1;
string signer = 2; string signer = 2;
repeated cosmos.base.v1beta1.Coin coins = 3 [ repeated cosmos.base.v1beta1.Coin coins = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\"" (gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
]; ];
} }
@ -71,12 +69,12 @@ message MsgRefillBondResponse {}
message MsgWithdrawBond { message MsgWithdrawBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string id = 1; string id = 1;
string signer = 2; string signer = 2;
repeated cosmos.base.v1beta1.Coin coins = 3 [ repeated cosmos.base.v1beta1.Coin coins = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"coins\" yaml:\"coins\"" (gogoproto.moretags) = "json:\"coins\" yaml:\"coins\""
]; ];
} }
@ -87,7 +85,7 @@ message MsgWithdrawBondResponse {}
message MsgCancelBond { message MsgCancelBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string id = 1; string id = 1;
string signer = 2; string signer = 2;
} }

View File

@ -10,7 +10,7 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/registry";
// GenesisState defines the registry module's genesis state. // GenesisState defines the registry module's genesis state.
message GenesisState { message GenesisState {
// params defines all the params of registry module. // params defines all the params of registry module.
Params params = 1 [(gogoproto.nullable) = false]; Params params = 1 [ (gogoproto.nullable) = false ];
// records // records
repeated Record records = 2 [ repeated Record records = 2 [

View File

@ -23,12 +23,13 @@ service Query {
} }
// Get record by id // Get record by id
rpc GetRecord(QueryRecordByIdRequest) returns (QueryRecordByIdResponse) { rpc GetRecord(QueryGetRecordRequest) returns (QueryGetRecordResponse) {
option (google.api.http).get = "/cerc/registry/v1/records/{id}"; option (google.api.http).get = "/cerc/registry/v1/records/{id}";
} }
// Get records by bond id // Get records by bond id
rpc GetRecordsByBondId(QueryRecordsByBondIdRequest) returns (QueryRecordsByBondIdResponse) { rpc GetRecordsByBondId(QueryGetRecordsByBondIdRequest)
returns (QueryGetRecordsByBondIdResponse) {
option (google.api.http).get = "/cerc/registry/v1/records-by-bond-id/{id}"; option (google.api.http).get = "/cerc/registry/v1/records-by-bond-id/{id}";
} }
@ -53,7 +54,8 @@ service Query {
} }
// Get registry module balance // Get registry module balance
rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest) returns (QueryGetRegistryModuleBalanceResponse) { rpc GetRegistryModuleBalance(QueryGetRegistryModuleBalanceRequest)
returns (QueryGetRegistryModuleBalanceResponse) {
option (google.api.http).get = "/cerc/registry/v1/balance"; option (google.api.http).get = "/cerc/registry/v1/balance";
} }
} }
@ -62,37 +64,30 @@ service Query {
message QueryParamsRequest {} message QueryParamsRequest {}
// QueryParamsResponse is response type for registry params // QueryParamsResponse is response type for registry params
message QueryParamsResponse { message QueryParamsResponse { Params params = 1; }
Params params = 1;
}
// QueryRecordsRequest is request type for registry records list // QueryRecordsRequest is request type for registry records list
message QueryRecordsRequest { message QueryRecordsRequest {
// TODO: Unused, check // Array type attribute
// message LinkInput { message ArrayInput { repeated ValueInput values = 1; }
// string id = 1; // Map type attribute
// } message MapInput { map<string, ValueInput> values = 1; }
// Type for record attribute value
message ArrayInput {
repeated ValueInput values = 1;
}
message MapInput {
map<string, ValueInput> values = 1;
}
message ValueInput { message ValueInput {
// Type of record attribute value // Value is one of the following types
oneof value { oneof value {
string string = 1; string string = 1;
int64 int = 2; int64 int = 2;
double float = 3; double float = 3;
bool boolean = 4; bool boolean = 4;
string link = 5; string link = 5;
ArrayInput array = 6; ArrayInput array = 6;
MapInput map = 7; MapInput map = 7;
} }
} }
// Type for record attribute key
message KeyValueInput { message KeyValueInput {
string key = 1; string key = 1;
ValueInput value = 2; ValueInput value = 2;
} }
@ -106,31 +101,29 @@ message QueryRecordsRequest {
// QueryRecordsResponse is response type for registry records list // QueryRecordsResponse is response type for registry records list
message QueryRecordsResponse { message QueryRecordsResponse {
repeated Record records = 1 [(gogoproto.nullable) = false]; repeated Record records = 1 [ (gogoproto.nullable) = false ];
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
// QueryRecordByIdRequest is request type for registry records by id // QueryGetRecordRequest is request type for registry records by id
message QueryRecordByIdRequest { message QueryGetRecordRequest { string id = 1; }
string id = 1;
// QueryGetRecordResponse is response type for registry records by id
message QueryGetRecordResponse {
Record record = 1 [ (gogoproto.nullable) = false ];
} }
// QueryRecordByIdResponse is response type for registry records by id // QueryGetRecordsByBondIdRequest is request type for get the records by bond-id
message QueryRecordByIdResponse { message QueryGetRecordsByBondIdRequest {
Record record = 1 [(gogoproto.nullable) = false];
}
// QueryRecordsByBondIdRequest is request type for get the records by bond-id
message QueryRecordsByBondIdRequest {
string id = 1; string id = 1;
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 2; cosmos.base.query.v1beta1.PageRequest pagination = 2;
} }
// QueryRecordsByBondIdResponse is response type for records list by bond-id // QueryGetRecordsByBondIdResponse is response type for records list by bond-id
message QueryRecordsByBondIdResponse { message QueryGetRecordsByBondIdResponse {
repeated Record records = 1 [(gogoproto.nullable) = false]; repeated Record records = 1 [ (gogoproto.nullable) = false ];
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
@ -143,15 +136,13 @@ message QueryNameRecordsRequest {
// QueryNameRecordsResponse is response type for registry names records // QueryNameRecordsResponse is response type for registry names records
message QueryNameRecordsResponse { message QueryNameRecordsResponse {
repeated NameEntry names = 1 [(gogoproto.nullable) = false]; repeated NameEntry names = 1 [ (gogoproto.nullable) = false ];
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }
// QueryWhoisRequest is request type for Get NameAuthority // QueryWhoisRequest is request type for Get NameAuthority
message QueryWhoisRequest { message QueryWhoisRequest { string name = 1; }
string name = 1;
}
// QueryWhoisResponse is response type for whois request // QueryWhoisResponse is response type for whois request
message QueryWhoisResponse { message QueryWhoisResponse {
@ -162,39 +153,34 @@ message QueryWhoisResponse {
} }
// QueryLookupLrnRequest is request type for LookupLrn // QueryLookupLrnRequest is request type for LookupLrn
message QueryLookupLrnRequest { message QueryLookupLrnRequest { string lrn = 1; }
string lrn = 1;
}
// QueryLookupLrnResponse is response type for QueryLookupLrnRequest // QueryLookupLrnResponse is response type for QueryLookupLrnRequest
message QueryLookupLrnResponse { message QueryLookupLrnResponse { NameRecord name = 1; }
NameRecord name = 1;
}
// QueryResolveLrnRequest is request type for ResolveLrn // QueryResolveLrnRequest is request type for ResolveLrn
message QueryResolveLrnRequest { message QueryResolveLrnRequest { string lrn = 1; }
string lrn = 1;
}
// QueryResolveLrnResponse is response type for QueryResolveLrnRequest // QueryResolveLrnResponse is response type for QueryResolveLrnRequest
message QueryResolveLrnResponse { message QueryResolveLrnResponse { Record record = 1; }
Record record = 1;
}
// QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance // QueryGetRegistryModuleBalanceRequest is request type for registry module
// accounts balance
message QueryGetRegistryModuleBalanceRequest {} message QueryGetRegistryModuleBalanceRequest {}
// QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance // QueryGetRegistryModuleBalanceResponse is response type for registry module
// accounts balance
message QueryGetRegistryModuleBalanceResponse { message QueryGetRegistryModuleBalanceResponse {
repeated AccountBalance balances = 1; repeated AccountBalance balances = 1;
} }
// AccountBalance is registry module account balance // AccountBalance is registry module account balance
message AccountBalance { message AccountBalance {
string account_name = 1 [(gogoproto.moretags) = "json:\"account_name\" yaml:\"account_name\""]; string account_name = 1
[ (gogoproto.moretags) = "json:\"account_name\" yaml:\"account_name\"" ];
repeated cosmos.base.v1beta1.Coin balance = 3 [ repeated cosmos.base.v1beta1.Coin balance = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\"" (gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
]; ];
} }

View File

@ -11,15 +11,16 @@ option go_package = "git.vdb.to/cerc-io/laconic2d/x/registry";
// Params defines the registry module parameters // Params defines the registry module parameters
message Params { message Params {
cosmos.base.v1beta1.Coin record_rent = 1[ cosmos.base.v1beta1.Coin record_rent = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\"" (gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""
]; ];
google.protobuf.Duration record_rent_duration = 2 [ google.protobuf.Duration record_rent_duration = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"record_rent_duration\" yaml:\"record_rent_duration\"" (gogoproto.moretags) =
"json:\"record_rent_duration\" yaml:\"record_rent_duration\""
]; ];
cosmos.base.v1beta1.Coin authority_rent = 3 [ cosmos.base.v1beta1.Coin authority_rent = 3 [
@ -28,119 +29,140 @@ message Params {
]; ];
google.protobuf.Duration authority_rent_duration = 4 [ google.protobuf.Duration authority_rent_duration = 4 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"authority_rent_duration\" yaml:\"authority_rent_duration\"" (gogoproto.moretags) =
"json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
]; ];
google.protobuf.Duration authority_grace_period = 5 [ google.protobuf.Duration authority_grace_period = 5 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"authority_grace_period\" yaml:\"authority_grace_period\"" (gogoproto.moretags) =
"json:\"authority_grace_period\" yaml:\"authority_grace_period\""
]; ];
bool authority_auction_enabled = 6 [(gogoproto.moretags) = "json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""]; bool authority_auction_enabled = 6 [
(gogoproto.moretags) =
"json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""
];
google.protobuf.Duration authority_auction_commits_duration = 7 [ google.protobuf.Duration authority_auction_commits_duration = 7 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" yaml:\"authority_auction_commits_duration\"" (gogoproto.moretags) = "json:\"authority_auction_commits_duration\" "
"yaml:\"authority_auction_commits_duration\""
]; ];
google.protobuf.Duration authority_auction_reveals_duration = 8 [ google.protobuf.Duration authority_auction_reveals_duration = 8 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" yaml:\"authority_auction_reveals_duration\"" (gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" "
"yaml:\"authority_auction_reveals_duration\""
]; ];
cosmos.base.v1beta1.Coin authority_auction_commit_fee = 9 [ cosmos.base.v1beta1.Coin authority_auction_commit_fee = 9 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"authority_auction_commit_fee\" yaml:\"authority_auction_commit_fee\"" (gogoproto.moretags) = "json:\"authority_auction_commit_fee\" "
"yaml:\"authority_auction_commit_fee\""
]; ];
cosmos.base.v1beta1.Coin authority_auction_reveal_fee = 10 [ cosmos.base.v1beta1.Coin authority_auction_reveal_fee = 10 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"authority_auction_reveal_fee\" yaml:\"authority_auction_reveal_fee\"" (gogoproto.moretags) = "json:\"authority_auction_reveal_fee\" "
"yaml:\"authority_auction_reveal_fee\""
]; ];
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [ cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" yaml:\"authority_auction_minimum_bid\"" (gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" "
"yaml:\"authority_auction_minimum_bid\""
]; ];
} }
// Record defines a registry record // Record defines a registry record
message Record { message Record {
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""]; string id = 1 [ (gogoproto.moretags) = "json:\"id\" yaml:\"id\"" ];
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; string bond_id = 2
string create_time = 3 [(gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\""]; [ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""]; string create_time = 3
bool deleted = 5; [ (gogoproto.moretags) = "json:\"create_time\" yaml:\"create_time\"" ];
repeated string owners = 6 [(gogoproto.moretags) = "json:\"owners\" yaml:\"owners\""]; string expiry_time = 4
bytes attributes = 7 [(gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\""]; [ (gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\"" ];
repeated string names = 8 [(gogoproto.moretags) = "json:\"names\" yaml:\"names\""]; bool deleted = 5;
string type = 9 [(gogoproto.moretags) = "json:\"types\" yaml:\"types\""]; repeated string owners = 6
[ (gogoproto.moretags) = "json:\"owners\" yaml:\"owners\"" ];
bytes attributes = 7
[ (gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\"" ];
repeated string names = 8
[ (gogoproto.moretags) = "json:\"names\" yaml:\"names\"" ];
string type = 9 [ (gogoproto.moretags) = "json:\"types\" yaml:\"types\"" ];
} }
// AuthorityEntry defines a registry authority // AuthorityEntry defines a registry authority
message AuthorityEntry { message AuthorityEntry {
string name = 1; string name = 1;
NameAuthority entry = 2; NameAuthority entry = 2;
} }
// NameAuthority // NameAuthority
message NameAuthority { message NameAuthority {
// Owner public key. // Owner public key.
string owner_public_key = 1 [(gogoproto.moretags) = "json:\"owner_public_key\" yaml:\"owner_public_key\""]; string owner_public_key = 1
[ (gogoproto.moretags) =
"json:\"owner_public_key\" yaml:\"owner_public_key\"" ];
// Owner address. // Owner address.
string owner_address = 2 [(gogoproto.moretags) = "json:\"owner_address\" yaml:\"owner_address\""]; string owner_address = 2
[ (gogoproto.moretags) =
"json:\"owner_address\" yaml:\"owner_address\"" ];
// height at which name/authority was created. // height at which name/authority was created.
uint64 height = 3; uint64 height = 3;
string status = 4; string status = 4;
string auction_id = 5 [(gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\""]; string auction_id = 5
string bond_id = 6 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; [ (gogoproto.moretags) = "json:\"auction_id\" yaml:\"auction_id\"" ];
string bond_id = 6
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
google.protobuf.Timestamp expiry_time = 7 [ google.protobuf.Timestamp expiry_time = 7 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdtime) = true, (gogoproto.stdtime) = true,
(gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\"" (gogoproto.moretags) = "json:\"expiry_time\" yaml:\"expiry_time\""
]; ];
} }
// NameEntry // NameEntry
message NameEntry { message NameEntry {
string name = 1; string name = 1;
NameRecord entry = 2; NameRecord entry = 2;
} }
// NameRecord defines a versioned name record // NameRecord defines a versioned name record
message NameRecord { message NameRecord {
NameRecordEntry latest = 1; NameRecordEntry latest = 1;
repeated NameRecordEntry history = 2; repeated NameRecordEntry history = 2;
} }
// NameRecordEntry // NameRecordEntry
message NameRecordEntry { message NameRecordEntry {
string id = 1; string id = 1;
uint64 height = 2; uint64 height = 2;
} }
// Signature // Signature
message Signature { message Signature {
string sig = 1 [(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""]; string sig = 1 [ (gogoproto.moretags) = "json:\"sig\" yaml:\"sig\"" ];
string pub_key = 2 [(gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\""]; string pub_key = 2
[ (gogoproto.moretags) = "json:\"pub_key\" yaml:\"pub_key\"" ];
} }
// ExpiryQueue: record / authority expiry queue type // ExpiryQueue: record / authority expiry queue type
// id: expiry time // id: expiry time
// value: array of ids (record cids / authority names) // value: array of ids (record cids / authority names)
message ExpiryQueue { message ExpiryQueue {
string id = 1; string id = 1;
repeated string value = 2; repeated string value = 2;
} }
// List of record ids // List of record ids
// Value type to be used in AttributesMap // Value type to be used in AttributesMap
message RecordsList { message RecordsList { repeated string value = 1; }
repeated string value = 1;
}

View File

@ -34,12 +34,14 @@ service Msg {
} }
// DissociateRecords // DissociateRecords
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) { rpc DissociateRecords(MsgDissociateRecords)
returns (MsgDissociateRecordsResponse) {
option (google.api.http).post = "/cerc/registry/v1/dissociate_records"; option (google.api.http).post = "/cerc/registry/v1/dissociate_records";
} }
// ReassociateRecords // ReassociateRecords
rpc ReassociateRecords(MsgReassociateRecords) returns (MsgReassociateRecordsResponse) { rpc ReassociateRecords(MsgReassociateRecords)
returns (MsgReassociateRecordsResponse) {
option (google.api.http).post = "/cerc/registry/v1/reassociate_records"; option (google.api.http).post = "/cerc/registry/v1/reassociate_records";
} }
@ -54,12 +56,14 @@ service Msg {
} }
// Delete Name method will remove authority name // Delete Name method will remove authority name
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse) { rpc DeleteName(MsgDeleteNameAuthority)
returns (MsgDeleteNameAuthorityResponse) {
option (google.api.http).post = "/cerc/registry/v1/delete_name"; option (google.api.http).post = "/cerc/registry/v1/delete_name";
} }
// SetAuthorityBond // SetAuthorityBond
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) { rpc SetAuthorityBond(MsgSetAuthorityBond)
returns (MsgSetAuthorityBondResponse) {
option (google.api.http).post = "/cerc/registry/v1/set_authority_bond"; option (google.api.http).post = "/cerc/registry/v1/set_authority_bond";
} }
} }
@ -68,19 +72,18 @@ service Msg {
message MsgSetRecord { message MsgSetRecord {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; string bond_id = 1
string signer = 2; [ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
Payload payload = 3 [(gogoproto.nullable) = false]; string signer = 2;
Payload payload = 3 [ (gogoproto.nullable) = false ];
} }
// MsgSetRecordResponse // MsgSetRecordResponse
message MsgSetRecordResponse { message MsgSetRecordResponse { string id = 1; }
string id = 1;
}
// Payload // Payload
message Payload { message Payload {
Record record = 1; Record record = 1;
repeated Signature signatures = 2 [ repeated Signature signatures = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\"" (gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
@ -91,8 +94,8 @@ message Payload {
message MsgSetName { message MsgSetName {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string lrn = 1; string lrn = 1;
string cid = 2; string cid = 2;
string signer = 3; string signer = 3;
} }
@ -103,7 +106,7 @@ message MsgSetNameResponse {}
message MsgReserveAuthority { message MsgReserveAuthority {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string name = 1; string name = 1;
string signer = 2; string signer = 2;
// if creating a sub-authority. // if creating a sub-authority.
@ -117,9 +120,10 @@ message MsgReserveAuthorityResponse {}
message MsgSetAuthorityBond { message MsgSetAuthorityBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string name = 1; string name = 1;
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; string bond_id = 2
string signer = 3; [ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
string signer = 3;
} }
// MsgSetAuthorityBondResponse // MsgSetAuthorityBondResponse
@ -129,7 +133,7 @@ message MsgSetAuthorityBondResponse {}
message MsgDeleteNameAuthority { message MsgDeleteNameAuthority {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string lrn = 1; string lrn = 1;
string signer = 2; string signer = 2;
} }
@ -140,8 +144,9 @@ message MsgDeleteNameAuthorityResponse {}
message MsgRenewRecord { message MsgRenewRecord {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""]; string record_id = 1
string signer = 2; [ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
string signer = 2;
} }
// MsgRenewRecordResponse // MsgRenewRecordResponse
@ -151,9 +156,11 @@ message MsgRenewRecordResponse {}
message MsgAssociateBond { message MsgAssociateBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""]; string record_id = 1
string bond_id = 2 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; [ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
string signer = 3; string bond_id = 2
[ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
string signer = 3;
} }
// MsgAssociateBondResponse // MsgAssociateBondResponse
@ -163,8 +170,9 @@ message MsgAssociateBondResponse {}
message MsgDissociateBond { message MsgDissociateBond {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string record_id = 1 [(gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\""]; string record_id = 1
string signer = 2; [ (gogoproto.moretags) = "json:\"record_id\" yaml:\"record_id\"" ];
string signer = 2;
} }
// MsgDissociateBondResponse // MsgDissociateBondResponse
@ -174,8 +182,9 @@ message MsgDissociateBondResponse {}
message MsgDissociateRecords { message MsgDissociateRecords {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string bond_id = 1 [(gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\""]; string bond_id = 1
string signer = 2; [ (gogoproto.moretags) = "json:\"bond_id\" yaml:\"bond_id\"" ];
string signer = 2;
} }
// MsgDissociateRecordsResponse // MsgDissociateRecordsResponse
@ -185,9 +194,11 @@ message MsgDissociateRecordsResponse {}
message MsgReassociateRecords { message MsgReassociateRecords {
option (cosmos.msg.v1.signer) = "signer"; option (cosmos.msg.v1.signer) = "signer";
string new_bond_id = 1 [(gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\""]; string new_bond_id = 1
string old_bond_id = 2 [(gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\""]; [ (gogoproto.moretags) = "json:\"new_bond_id\" yaml:\"new_bond_id\"" ];
string signer = 3; string old_bond_id = 2
[ (gogoproto.moretags) = "json:\"old_bond_id\" yaml:\"old_bond_id\"" ];
string signer = 3;
} }
// MsgReassociateRecordsResponse // MsgReassociateRecordsResponse

View File

@ -169,6 +169,7 @@ func (m *Auction) XXX_DiscardUnknown() {
var xxx_messageInfo_Auction proto.InternalMessageInfo var xxx_messageInfo_Auction proto.InternalMessageInfo
// Auctions represent all the auctions in the module
type Auctions struct { type Auctions struct {
Auctions []Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions"` Auctions []Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions"`
} }

View File

@ -32,7 +32,8 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is the format to query the parameters of the auction module // QueryParamsRequest is the format to query the parameters of the auction
// module
type QueryParamsRequest struct { type QueryParamsRequest struct {
} }
@ -216,23 +217,23 @@ func (m *QueryAuctionsResponse) GetPagination() *query.PageRequest {
} }
// AuctionRequest is the format for querying a specific auction // AuctionRequest is the format for querying a specific auction
type QueryAuctionRequest struct { type QueryGetAuctionRequest struct {
// Auction id // Auction id
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (m *QueryAuctionRequest) Reset() { *m = QueryAuctionRequest{} } func (m *QueryGetAuctionRequest) Reset() { *m = QueryGetAuctionRequest{} }
func (m *QueryAuctionRequest) String() string { return proto.CompactTextString(m) } func (m *QueryGetAuctionRequest) String() string { return proto.CompactTextString(m) }
func (*QueryAuctionRequest) ProtoMessage() {} func (*QueryGetAuctionRequest) ProtoMessage() {}
func (*QueryAuctionRequest) Descriptor() ([]byte, []int) { func (*QueryGetAuctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{4} return fileDescriptor_2630d1607b9261b1, []int{4}
} }
func (m *QueryAuctionRequest) XXX_Unmarshal(b []byte) error { func (m *QueryGetAuctionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryAuctionRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetAuctionRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -242,19 +243,19 @@ func (m *QueryAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryAuctionRequest) XXX_Merge(src proto.Message) { func (m *QueryGetAuctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryAuctionRequest.Merge(m, src) xxx_messageInfo_QueryGetAuctionRequest.Merge(m, src)
} }
func (m *QueryAuctionRequest) XXX_Size() int { func (m *QueryGetAuctionRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryAuctionRequest) XXX_DiscardUnknown() { func (m *QueryGetAuctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryAuctionRequest.DiscardUnknown(m) xxx_messageInfo_QueryGetAuctionRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryAuctionRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetAuctionRequest proto.InternalMessageInfo
func (m *QueryAuctionRequest) GetId() string { func (m *QueryGetAuctionRequest) GetId() string {
if m != nil { if m != nil {
return m.Id return m.Id
} }
@ -262,23 +263,23 @@ func (m *QueryAuctionRequest) GetId() string {
} }
// AuctionResponse returns the details of the queried auction // AuctionResponse returns the details of the queried auction
type QueryAuctionResponse struct { type QueryGetAuctionResponse struct {
// Auction details // Auction details
Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"` Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
} }
func (m *QueryAuctionResponse) Reset() { *m = QueryAuctionResponse{} } func (m *QueryGetAuctionResponse) Reset() { *m = QueryGetAuctionResponse{} }
func (m *QueryAuctionResponse) String() string { return proto.CompactTextString(m) } func (m *QueryGetAuctionResponse) String() string { return proto.CompactTextString(m) }
func (*QueryAuctionResponse) ProtoMessage() {} func (*QueryGetAuctionResponse) ProtoMessage() {}
func (*QueryAuctionResponse) Descriptor() ([]byte, []int) { func (*QueryGetAuctionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{5} return fileDescriptor_2630d1607b9261b1, []int{5}
} }
func (m *QueryAuctionResponse) XXX_Unmarshal(b []byte) error { func (m *QueryGetAuctionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryAuctionResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetAuctionResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -288,19 +289,19 @@ func (m *QueryAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryAuctionResponse) XXX_Merge(src proto.Message) { func (m *QueryGetAuctionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryAuctionResponse.Merge(m, src) xxx_messageInfo_QueryGetAuctionResponse.Merge(m, src)
} }
func (m *QueryAuctionResponse) XXX_Size() int { func (m *QueryGetAuctionResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryAuctionResponse) XXX_DiscardUnknown() { func (m *QueryGetAuctionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryAuctionResponse.DiscardUnknown(m) xxx_messageInfo_QueryGetAuctionResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryAuctionResponse proto.InternalMessageInfo var xxx_messageInfo_QueryGetAuctionResponse proto.InternalMessageInfo
func (m *QueryAuctionResponse) GetAuction() *Auction { func (m *QueryGetAuctionResponse) GetAuction() *Auction {
if m != nil { if m != nil {
return m.Auction return m.Auction
} }
@ -308,25 +309,25 @@ func (m *QueryAuctionResponse) GetAuction() *Auction {
} }
// BidRequest is the format for querying a specific bid in an auction // BidRequest is the format for querying a specific bid in an auction
type QueryBidRequest struct { type QueryGetBidRequest struct {
// Auction id // Auction id
AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
// Bidder address // Bidder address
Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
} }
func (m *QueryBidRequest) Reset() { *m = QueryBidRequest{} } func (m *QueryGetBidRequest) Reset() { *m = QueryGetBidRequest{} }
func (m *QueryBidRequest) String() string { return proto.CompactTextString(m) } func (m *QueryGetBidRequest) String() string { return proto.CompactTextString(m) }
func (*QueryBidRequest) ProtoMessage() {} func (*QueryGetBidRequest) ProtoMessage() {}
func (*QueryBidRequest) Descriptor() ([]byte, []int) { func (*QueryGetBidRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{6} return fileDescriptor_2630d1607b9261b1, []int{6}
} }
func (m *QueryBidRequest) XXX_Unmarshal(b []byte) error { func (m *QueryGetBidRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryBidRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetBidRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -336,26 +337,26 @@ func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryBidRequest) XXX_Merge(src proto.Message) { func (m *QueryGetBidRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBidRequest.Merge(m, src) xxx_messageInfo_QueryGetBidRequest.Merge(m, src)
} }
func (m *QueryBidRequest) XXX_Size() int { func (m *QueryGetBidRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryBidRequest) XXX_DiscardUnknown() { func (m *QueryGetBidRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBidRequest.DiscardUnknown(m) xxx_messageInfo_QueryGetBidRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryBidRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetBidRequest proto.InternalMessageInfo
func (m *QueryBidRequest) GetAuctionId() string { func (m *QueryGetBidRequest) GetAuctionId() string {
if m != nil { if m != nil {
return m.AuctionId return m.AuctionId
} }
return "" return ""
} }
func (m *QueryBidRequest) GetBidder() string { func (m *QueryGetBidRequest) GetBidder() string {
if m != nil { if m != nil {
return m.Bidder return m.Bidder
} }
@ -363,23 +364,23 @@ func (m *QueryBidRequest) GetBidder() string {
} }
// BidResponse returns the details of the queried bid // BidResponse returns the details of the queried bid
type QueryBidResponse struct { type QueryGetBidResponse struct {
// Bid details // Bid details
Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"` Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"`
} }
func (m *QueryBidResponse) Reset() { *m = QueryBidResponse{} } func (m *QueryGetBidResponse) Reset() { *m = QueryGetBidResponse{} }
func (m *QueryBidResponse) String() string { return proto.CompactTextString(m) } func (m *QueryGetBidResponse) String() string { return proto.CompactTextString(m) }
func (*QueryBidResponse) ProtoMessage() {} func (*QueryGetBidResponse) ProtoMessage() {}
func (*QueryBidResponse) Descriptor() ([]byte, []int) { func (*QueryGetBidResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{7} return fileDescriptor_2630d1607b9261b1, []int{7}
} }
func (m *QueryBidResponse) XXX_Unmarshal(b []byte) error { func (m *QueryGetBidResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryBidResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetBidResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -389,19 +390,19 @@ func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryBidResponse) XXX_Merge(src proto.Message) { func (m *QueryGetBidResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBidResponse.Merge(m, src) xxx_messageInfo_QueryGetBidResponse.Merge(m, src)
} }
func (m *QueryBidResponse) XXX_Size() int { func (m *QueryGetBidResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryBidResponse) XXX_DiscardUnknown() { func (m *QueryGetBidResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBidResponse.DiscardUnknown(m) xxx_messageInfo_QueryGetBidResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryBidResponse proto.InternalMessageInfo var xxx_messageInfo_QueryGetBidResponse proto.InternalMessageInfo
func (m *QueryBidResponse) GetBid() *Bid { func (m *QueryGetBidResponse) GetBid() *Bid {
if m != nil { if m != nil {
return m.Bid return m.Bid
} }
@ -409,23 +410,23 @@ func (m *QueryBidResponse) GetBid() *Bid {
} }
// BidsRequest is the format for querying all bids in an auction // BidsRequest is the format for querying all bids in an auction
type QueryBidsRequest struct { type QueryGetBidsRequest struct {
// Auction id // Auction id
AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
} }
func (m *QueryBidsRequest) Reset() { *m = QueryBidsRequest{} } func (m *QueryGetBidsRequest) Reset() { *m = QueryGetBidsRequest{} }
func (m *QueryBidsRequest) String() string { return proto.CompactTextString(m) } func (m *QueryGetBidsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryBidsRequest) ProtoMessage() {} func (*QueryGetBidsRequest) ProtoMessage() {}
func (*QueryBidsRequest) Descriptor() ([]byte, []int) { func (*QueryGetBidsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{8} return fileDescriptor_2630d1607b9261b1, []int{8}
} }
func (m *QueryBidsRequest) XXX_Unmarshal(b []byte) error { func (m *QueryGetBidsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryBidsRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetBidsRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -435,19 +436,19 @@ func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryBidsRequest) XXX_Merge(src proto.Message) { func (m *QueryGetBidsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBidsRequest.Merge(m, src) xxx_messageInfo_QueryGetBidsRequest.Merge(m, src)
} }
func (m *QueryBidsRequest) XXX_Size() int { func (m *QueryGetBidsRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryBidsRequest) XXX_DiscardUnknown() { func (m *QueryGetBidsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBidsRequest.DiscardUnknown(m) xxx_messageInfo_QueryGetBidsRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryBidsRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetBidsRequest proto.InternalMessageInfo
func (m *QueryBidsRequest) GetAuctionId() string { func (m *QueryGetBidsRequest) GetAuctionId() string {
if m != nil { if m != nil {
return m.AuctionId return m.AuctionId
} }
@ -455,23 +456,23 @@ func (m *QueryBidsRequest) GetAuctionId() string {
} }
// BidsResponse returns details of all bids in an auction // BidsResponse returns details of all bids in an auction
type QueryBidsResponse struct { type QueryGetBidsResponse struct {
// List of bids in the auction // List of bids in the auction
Bids []*Bid `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids,omitempty"` Bids []*Bid `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids,omitempty"`
} }
func (m *QueryBidsResponse) Reset() { *m = QueryBidsResponse{} } func (m *QueryGetBidsResponse) Reset() { *m = QueryGetBidsResponse{} }
func (m *QueryBidsResponse) String() string { return proto.CompactTextString(m) } func (m *QueryGetBidsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryBidsResponse) ProtoMessage() {} func (*QueryGetBidsResponse) ProtoMessage() {}
func (*QueryBidsResponse) Descriptor() ([]byte, []int) { func (*QueryGetBidsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2630d1607b9261b1, []int{9} return fileDescriptor_2630d1607b9261b1, []int{9}
} }
func (m *QueryBidsResponse) XXX_Unmarshal(b []byte) error { func (m *QueryGetBidsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryBidsResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetBidsResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -481,26 +482,27 @@ func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryBidsResponse) XXX_Merge(src proto.Message) { func (m *QueryGetBidsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryBidsResponse.Merge(m, src) xxx_messageInfo_QueryGetBidsResponse.Merge(m, src)
} }
func (m *QueryBidsResponse) XXX_Size() int { func (m *QueryGetBidsResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryBidsResponse) XXX_DiscardUnknown() { func (m *QueryGetBidsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryBidsResponse.DiscardUnknown(m) xxx_messageInfo_QueryGetBidsResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryBidsResponse proto.InternalMessageInfo var xxx_messageInfo_QueryGetBidsResponse proto.InternalMessageInfo
func (m *QueryBidsResponse) GetBids() []*Bid { func (m *QueryGetBidsResponse) GetBids() []*Bid {
if m != nil { if m != nil {
return m.Bids return m.Bids
} }
return nil return nil
} }
// AuctionsByBidderRequest is the format for querying all auctions containing a bidder address // AuctionsByBidderRequest is the format for querying all auctions containing a
// bidder address
type QueryAuctionsByBidderRequest struct { type QueryAuctionsByBidderRequest struct {
// Address of the bidder // Address of the bidder
BidderAddress string `protobuf:"bytes,1,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"` BidderAddress string `protobuf:"bytes,1,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"`
@ -592,7 +594,8 @@ func (m *QueryAuctionsByBidderResponse) GetAuctions() *Auctions {
return nil return nil
} }
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner // AuctionsByOwnerRequest is the format for querying all auctions created by an
// owner
type QueryAuctionsByOwnerRequest struct { type QueryAuctionsByOwnerRequest struct {
// Address of the owner // Address of the owner
OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
@ -721,6 +724,8 @@ func (m *QueryGetAuctionModuleBalanceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryGetAuctionModuleBalanceRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetAuctionModuleBalanceRequest proto.InternalMessageInfo
// QueryGetAuctionModuleBalanceResponse is the response type for auction module
// balance rpc method
type QueryGetAuctionModuleBalanceResponse struct { type QueryGetAuctionModuleBalanceResponse struct {
// Set of all balances within the auction // Set of all balances within the auction
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"` 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"`
@ -771,12 +776,12 @@ func init() {
proto.RegisterType((*QueryParamsResponse)(nil), "cerc.auction.v1.QueryParamsResponse") proto.RegisterType((*QueryParamsResponse)(nil), "cerc.auction.v1.QueryParamsResponse")
proto.RegisterType((*QueryAuctionsRequest)(nil), "cerc.auction.v1.QueryAuctionsRequest") proto.RegisterType((*QueryAuctionsRequest)(nil), "cerc.auction.v1.QueryAuctionsRequest")
proto.RegisterType((*QueryAuctionsResponse)(nil), "cerc.auction.v1.QueryAuctionsResponse") proto.RegisterType((*QueryAuctionsResponse)(nil), "cerc.auction.v1.QueryAuctionsResponse")
proto.RegisterType((*QueryAuctionRequest)(nil), "cerc.auction.v1.QueryAuctionRequest") proto.RegisterType((*QueryGetAuctionRequest)(nil), "cerc.auction.v1.QueryGetAuctionRequest")
proto.RegisterType((*QueryAuctionResponse)(nil), "cerc.auction.v1.QueryAuctionResponse") proto.RegisterType((*QueryGetAuctionResponse)(nil), "cerc.auction.v1.QueryGetAuctionResponse")
proto.RegisterType((*QueryBidRequest)(nil), "cerc.auction.v1.QueryBidRequest") proto.RegisterType((*QueryGetBidRequest)(nil), "cerc.auction.v1.QueryGetBidRequest")
proto.RegisterType((*QueryBidResponse)(nil), "cerc.auction.v1.QueryBidResponse") proto.RegisterType((*QueryGetBidResponse)(nil), "cerc.auction.v1.QueryGetBidResponse")
proto.RegisterType((*QueryBidsRequest)(nil), "cerc.auction.v1.QueryBidsRequest") proto.RegisterType((*QueryGetBidsRequest)(nil), "cerc.auction.v1.QueryGetBidsRequest")
proto.RegisterType((*QueryBidsResponse)(nil), "cerc.auction.v1.QueryBidsResponse") proto.RegisterType((*QueryGetBidsResponse)(nil), "cerc.auction.v1.QueryGetBidsResponse")
proto.RegisterType((*QueryAuctionsByBidderRequest)(nil), "cerc.auction.v1.QueryAuctionsByBidderRequest") proto.RegisterType((*QueryAuctionsByBidderRequest)(nil), "cerc.auction.v1.QueryAuctionsByBidderRequest")
proto.RegisterType((*QueryAuctionsByBidderResponse)(nil), "cerc.auction.v1.QueryAuctionsByBidderResponse") proto.RegisterType((*QueryAuctionsByBidderResponse)(nil), "cerc.auction.v1.QueryAuctionsByBidderResponse")
proto.RegisterType((*QueryAuctionsByOwnerRequest)(nil), "cerc.auction.v1.QueryAuctionsByOwnerRequest") proto.RegisterType((*QueryAuctionsByOwnerRequest)(nil), "cerc.auction.v1.QueryAuctionsByOwnerRequest")
@ -788,64 +793,64 @@ func init() {
func init() { proto.RegisterFile("cerc/auction/v1/query.proto", fileDescriptor_2630d1607b9261b1) } func init() { proto.RegisterFile("cerc/auction/v1/query.proto", fileDescriptor_2630d1607b9261b1) }
var fileDescriptor_2630d1607b9261b1 = []byte{ var fileDescriptor_2630d1607b9261b1 = []byte{
// 898 bytes of a gzipped FileDescriptorProto // 900 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0x4f, 0x6f, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0x1b, 0x45,
0x18, 0xc6, 0xb3, 0x29, 0x38, 0xc9, 0x5b, 0xda, 0x94, 0x21, 0x90, 0x78, 0xd3, 0x38, 0xee, 0x24, 0x14, 0xc7, 0xb3, 0x29, 0xb8, 0xcd, 0x2b, 0x6d, 0xd1, 0x10, 0x9a, 0x78, 0xd3, 0x6c, 0xc2, 0x24,
0xb6, 0x42, 0x8b, 0x77, 0x64, 0x97, 0x5e, 0x2a, 0x21, 0x51, 0x23, 0x5a, 0x40, 0xaa, 0x28, 0x96, 0x36, 0xa6, 0xc5, 0x3b, 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41, 0x41, 0x09, 0x97, 0xa7, 0xeb, 0x11, 0x67, 0x1d, 0xc7, 0xe3, 0x71, 0xe4, 0x35, 0x7d, 0xf6, 0x95, 0x0e,
0xff, 0x2c, 0xbb, 0xf9, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x1a, 0x65, 0x7b, 0x65, 0x0a, 0xe6, 0x96, 0xe4, 0x6f, 0xb7, 0x9b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x1f, 0x6f, 0x64,
0x00, 0x00, 0x8a, 0x0a, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -865,11 +870,11 @@ type QueryClient interface {
// Auctions queries all auctions // Auctions queries all auctions
Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error) Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error)
// GetAuction queries an auction // GetAuction queries an auction
GetAuction(ctx context.Context, in *QueryAuctionRequest, opts ...grpc.CallOption) (*QueryAuctionResponse, error) GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error)
// GetBid queries an auction bid // GetBid queries an auction bid
GetBid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error)
// GetBids queries all auction bids // GetBids queries all auction bids
GetBids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error)
// AuctionsByBidder queries auctions by bidder // AuctionsByBidder queries auctions by bidder
AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error) AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error)
// AuctionsByOwner queries auctions by owner // AuctionsByOwner queries auctions by owner
@ -904,8 +909,8 @@ func (c *queryClient) Auctions(ctx context.Context, in *QueryAuctionsRequest, op
return out, nil return out, nil
} }
func (c *queryClient) GetAuction(ctx context.Context, in *QueryAuctionRequest, opts ...grpc.CallOption) (*QueryAuctionResponse, error) { func (c *queryClient) GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) {
out := new(QueryAuctionResponse) out := new(QueryGetAuctionResponse)
err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetAuction", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetAuction", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -913,8 +918,8 @@ func (c *queryClient) GetAuction(ctx context.Context, in *QueryAuctionRequest, o
return out, nil return out, nil
} }
func (c *queryClient) GetBid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) { func (c *queryClient) GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error) {
out := new(QueryBidResponse) out := new(QueryGetBidResponse)
err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBid", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBid", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -922,8 +927,8 @@ func (c *queryClient) GetBid(ctx context.Context, in *QueryBidRequest, opts ...g
return out, nil return out, nil
} }
func (c *queryClient) GetBids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) { func (c *queryClient) GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error) {
out := new(QueryBidsResponse) out := new(QueryGetBidsResponse)
err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBids", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBids", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -965,11 +970,11 @@ type QueryServer interface {
// Auctions queries all auctions // Auctions queries all auctions
Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error)
// GetAuction queries an auction // GetAuction queries an auction
GetAuction(context.Context, *QueryAuctionRequest) (*QueryAuctionResponse, error) GetAuction(context.Context, *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error)
// GetBid queries an auction bid // GetBid queries an auction bid
GetBid(context.Context, *QueryBidRequest) (*QueryBidResponse, error) GetBid(context.Context, *QueryGetBidRequest) (*QueryGetBidResponse, error)
// GetBids queries all auction bids // GetBids queries all auction bids
GetBids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error) GetBids(context.Context, *QueryGetBidsRequest) (*QueryGetBidsResponse, error)
// AuctionsByBidder queries auctions by bidder // AuctionsByBidder queries auctions by bidder
AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error)
// AuctionsByOwner queries auctions by owner // AuctionsByOwner queries auctions by owner
@ -988,13 +993,13 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq
func (*UnimplementedQueryServer) Auctions(ctx context.Context, req *QueryAuctionsRequest) (*QueryAuctionsResponse, error) { func (*UnimplementedQueryServer) Auctions(ctx context.Context, req *QueryAuctionsRequest) (*QueryAuctionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Auctions not implemented") return nil, status.Errorf(codes.Unimplemented, "method Auctions not implemented")
} }
func (*UnimplementedQueryServer) GetAuction(ctx context.Context, req *QueryAuctionRequest) (*QueryAuctionResponse, error) { func (*UnimplementedQueryServer) GetAuction(ctx context.Context, req *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuction not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetAuction not implemented")
} }
func (*UnimplementedQueryServer) GetBid(ctx context.Context, req *QueryBidRequest) (*QueryBidResponse, error) { func (*UnimplementedQueryServer) GetBid(ctx context.Context, req *QueryGetBidRequest) (*QueryGetBidResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBid not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBid not implemented")
} }
func (*UnimplementedQueryServer) GetBids(ctx context.Context, req *QueryBidsRequest) (*QueryBidsResponse, error) { func (*UnimplementedQueryServer) GetBids(ctx context.Context, req *QueryGetBidsRequest) (*QueryGetBidsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBids not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBids not implemented")
} }
func (*UnimplementedQueryServer) AuctionsByBidder(ctx context.Context, req *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) { func (*UnimplementedQueryServer) AuctionsByBidder(ctx context.Context, req *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) {
@ -1048,7 +1053,7 @@ func _Query_Auctions_Handler(srv interface{}, ctx context.Context, dec func(inte
} }
func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryAuctionRequest) in := new(QueryGetAuctionRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -1060,13 +1065,13 @@ func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(in
FullMethod: "/cerc.auction.v1.Query/GetAuction", FullMethod: "/cerc.auction.v1.Query/GetAuction",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetAuction(ctx, req.(*QueryAuctionRequest)) return srv.(QueryServer).GetAuction(ctx, req.(*QueryGetAuctionRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryBidRequest) in := new(QueryGetBidRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -1078,13 +1083,13 @@ func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interf
FullMethod: "/cerc.auction.v1.Query/GetBid", FullMethod: "/cerc.auction.v1.Query/GetBid",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBid(ctx, req.(*QueryBidRequest)) return srv.(QueryServer).GetBid(ctx, req.(*QueryGetBidRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryBidsRequest) in := new(QueryGetBidsRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -1096,7 +1101,7 @@ func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(inter
FullMethod: "/cerc.auction.v1.Query/GetBids", FullMethod: "/cerc.auction.v1.Query/GetBids",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBids(ctx, req.(*QueryBidsRequest)) return srv.(QueryServer).GetBids(ctx, req.(*QueryGetBidsRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -1336,7 +1341,7 @@ func (m *QueryAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryAuctionRequest) Marshal() (dAtA []byte, err error) { func (m *QueryGetAuctionRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1346,12 +1351,12 @@ func (m *QueryAuctionRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryAuctionRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetAuctionRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1366,7 +1371,7 @@ func (m *QueryAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryAuctionResponse) Marshal() (dAtA []byte, err error) { func (m *QueryGetAuctionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1376,12 +1381,12 @@ func (m *QueryAuctionResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryAuctionResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetAuctionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1401,7 +1406,7 @@ func (m *QueryAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryBidRequest) Marshal() (dAtA []byte, err error) { func (m *QueryGetBidRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1411,12 +1416,12 @@ func (m *QueryBidRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryBidRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetBidRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1438,7 +1443,7 @@ func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryBidResponse) Marshal() (dAtA []byte, err error) { func (m *QueryGetBidResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1448,12 +1453,12 @@ func (m *QueryBidResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryBidResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetBidResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1473,7 +1478,7 @@ func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error) { func (m *QueryGetBidsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1483,12 +1488,12 @@ func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryBidsRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetBidsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1503,7 +1508,7 @@ func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error) { func (m *QueryGetBidsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -1513,12 +1518,12 @@ func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryBidsResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetBidsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -1793,7 +1798,7 @@ func (m *QueryAuctionsResponse) Size() (n int) {
return n return n
} }
func (m *QueryAuctionRequest) Size() (n int) { func (m *QueryGetAuctionRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1806,7 +1811,7 @@ func (m *QueryAuctionRequest) Size() (n int) {
return n return n
} }
func (m *QueryAuctionResponse) Size() (n int) { func (m *QueryGetAuctionResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1819,7 +1824,7 @@ func (m *QueryAuctionResponse) Size() (n int) {
return n return n
} }
func (m *QueryBidRequest) Size() (n int) { func (m *QueryGetBidRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1836,7 +1841,7 @@ func (m *QueryBidRequest) Size() (n int) {
return n return n
} }
func (m *QueryBidResponse) Size() (n int) { func (m *QueryGetBidResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1849,7 +1854,7 @@ func (m *QueryBidResponse) Size() (n int) {
return n return n
} }
func (m *QueryBidsRequest) Size() (n int) { func (m *QueryGetBidsRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1862,7 +1867,7 @@ func (m *QueryBidsRequest) Size() (n int) {
return n return n
} }
func (m *QueryBidsResponse) Size() (n int) { func (m *QueryGetBidsResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -2303,7 +2308,7 @@ func (m *QueryAuctionsResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryAuctionRequest) Unmarshal(dAtA []byte) error { func (m *QueryGetAuctionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2326,10 +2331,10 @@ func (m *QueryAuctionRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryAuctionRequest: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetAuctionRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryAuctionRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetAuctionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -2385,7 +2390,7 @@ func (m *QueryAuctionRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryAuctionResponse) Unmarshal(dAtA []byte) error { func (m *QueryGetAuctionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2408,10 +2413,10 @@ func (m *QueryAuctionResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryAuctionResponse: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetAuctionResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryAuctionResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetAuctionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -2471,7 +2476,7 @@ func (m *QueryAuctionResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryBidRequest) Unmarshal(dAtA []byte) error { func (m *QueryGetBidRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2494,10 +2499,10 @@ func (m *QueryBidRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryBidRequest: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetBidRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryBidRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetBidRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -2585,7 +2590,7 @@ func (m *QueryBidRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryBidResponse) Unmarshal(dAtA []byte) error { func (m *QueryGetBidResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2608,10 +2613,10 @@ func (m *QueryBidResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryBidResponse: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetBidResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryBidResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetBidResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -2671,7 +2676,7 @@ func (m *QueryBidResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error { func (m *QueryGetBidsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2694,10 +2699,10 @@ func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryBidsRequest: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetBidsRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryBidsRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetBidsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -2753,7 +2758,7 @@ func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error { func (m *QueryGetBidsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -2776,10 +2781,10 @@ func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryBidsResponse: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetBidsResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryBidsResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetBidsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:

View File

@ -88,7 +88,7 @@ func local_request_Query_Auctions_0(ctx context.Context, marshaler runtime.Marsh
} }
func request_Query_GetAuction_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_Query_GetAuction_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryAuctionRequest var protoReq QueryGetAuctionRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -115,7 +115,7 @@ func request_Query_GetAuction_0(ctx context.Context, marshaler runtime.Marshaler
} }
func local_request_Query_GetAuction_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_GetAuction_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryAuctionRequest var protoReq QueryGetAuctionRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -142,7 +142,7 @@ func local_request_Query_GetAuction_0(ctx context.Context, marshaler runtime.Mar
} }
func request_Query_GetBid_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_Query_GetBid_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryBidRequest var protoReq QueryGetBidRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -180,7 +180,7 @@ func request_Query_GetBid_0(ctx context.Context, marshaler runtime.Marshaler, cl
} }
func local_request_Query_GetBid_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_GetBid_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryBidRequest var protoReq QueryGetBidRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -218,7 +218,7 @@ func local_request_Query_GetBid_0(ctx context.Context, marshaler runtime.Marshal
} }
func request_Query_GetBids_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_Query_GetBids_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryBidsRequest var protoReq QueryGetBidsRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -245,7 +245,7 @@ func request_Query_GetBids_0(ctx context.Context, marshaler runtime.Marshaler, c
} }
func local_request_Query_GetBids_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_GetBids_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryBidsRequest var protoReq QueryGetBidsRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (

View File

@ -114,24 +114,24 @@ func (m *QueryParamsResponse) GetParams() *Params {
return nil return nil
} }
// QueryGetBondById queries a bonds. // QueryBondsRequest queries bonds
type QueryGetBondsRequest struct { type QueryBondsRequest struct {
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }
func (m *QueryGetBondsRequest) Reset() { *m = QueryGetBondsRequest{} } func (m *QueryBondsRequest) Reset() { *m = QueryBondsRequest{} }
func (m *QueryGetBondsRequest) String() string { return proto.CompactTextString(m) } func (m *QueryBondsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondsRequest) ProtoMessage() {} func (*QueryBondsRequest) ProtoMessage() {}
func (*QueryGetBondsRequest) Descriptor() ([]byte, []int) { func (*QueryBondsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d3221677ed35cdfb, []int{2} 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) 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 { if deterministic {
return xxx_messageInfo_QueryGetBondsRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryBondsRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -141,44 +141,44 @@ func (m *QueryGetBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryGetBondsRequest) XXX_Merge(src proto.Message) { func (m *QueryBondsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondsRequest.Merge(m, src) xxx_messageInfo_QueryBondsRequest.Merge(m, src)
} }
func (m *QueryGetBondsRequest) XXX_Size() int { func (m *QueryBondsRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryGetBondsRequest) XXX_DiscardUnknown() { func (m *QueryBondsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondsRequest.DiscardUnknown(m) 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 { if m != nil {
return m.Pagination return m.Pagination
} }
return nil return nil
} }
// QueryGetBondsResponse is response type for get the bonds by bond-id // QueryBondsResponse is response type for get the bonds by bond-id
type QueryGetBondsResponse struct { type QueryBondsResponse struct {
Bonds []*Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"` Bonds []*Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"`
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }
func (m *QueryGetBondsResponse) Reset() { *m = QueryGetBondsResponse{} } func (m *QueryBondsResponse) Reset() { *m = QueryBondsResponse{} }
func (m *QueryGetBondsResponse) String() string { return proto.CompactTextString(m) } func (m *QueryBondsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondsResponse) ProtoMessage() {} func (*QueryBondsResponse) ProtoMessage() {}
func (*QueryGetBondsResponse) Descriptor() ([]byte, []int) { func (*QueryBondsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d3221677ed35cdfb, []int{3} 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) 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 { if deterministic {
return xxx_messageInfo_QueryGetBondsResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryBondsResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -188,33 +188,33 @@ func (m *QueryGetBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryGetBondsResponse) XXX_Merge(src proto.Message) { func (m *QueryBondsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondsResponse.Merge(m, src) xxx_messageInfo_QueryBondsResponse.Merge(m, src)
} }
func (m *QueryGetBondsResponse) XXX_Size() int { func (m *QueryBondsResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryGetBondsResponse) XXX_DiscardUnknown() { func (m *QueryBondsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondsResponse.DiscardUnknown(m) 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 { if m != nil {
return m.Bonds return m.Bonds
} }
return nil return nil
} }
func (m *QueryGetBondsResponse) GetPagination() *query.PageResponse { func (m *QueryBondsResponse) GetPagination() *query.PageResponse {
if m != nil { if m != nil {
return m.Pagination return m.Pagination
} }
return nil return nil
} }
// QueryGetBondById // QueryGetBondById queries bond by bond id
type QueryGetBondByIdRequest struct { type QueryGetBondByIdRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" json:"id" yaml:"id"` 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 return nil
} }
// QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method // QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC
// Method
type QueryGetBondsByOwnerRequest struct { type QueryGetBondsByOwnerRequest struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
@ -358,7 +359,8 @@ func (m *QueryGetBondsByOwnerRequest) GetPagination() *query.PageResponse {
return nil return nil
} }
// QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method // QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC
// Method
type QueryGetBondsByOwnerResponse struct { type QueryGetBondsByOwnerResponse struct {
Bonds []Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds" json:"bonds" yaml:"bonds"` Bonds []Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds" json:"bonds" yaml:"bonds"`
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
@ -412,7 +414,8 @@ func (m *QueryGetBondsByOwnerResponse) GetPagination() *query.PageResponse {
return nil 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 { type QueryGetBondModuleBalanceRequest struct {
} }
@ -449,7 +452,8 @@ func (m *QueryGetBondModuleBalanceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryGetBondModuleBalanceRequest proto.InternalMessageInfo 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 { 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"` 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() { func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "cerc.bond.v1.QueryParamsRequest") proto.RegisterType((*QueryParamsRequest)(nil), "cerc.bond.v1.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "cerc.bond.v1.QueryParamsResponse") proto.RegisterType((*QueryParamsResponse)(nil), "cerc.bond.v1.QueryParamsResponse")
proto.RegisterType((*QueryGetBondsRequest)(nil), "cerc.bond.v1.QueryGetBondsRequest") proto.RegisterType((*QueryBondsRequest)(nil), "cerc.bond.v1.QueryBondsRequest")
proto.RegisterType((*QueryGetBondsResponse)(nil), "cerc.bond.v1.QueryGetBondsResponse") proto.RegisterType((*QueryBondsResponse)(nil), "cerc.bond.v1.QueryBondsResponse")
proto.RegisterType((*QueryGetBondByIdRequest)(nil), "cerc.bond.v1.QueryGetBondByIdRequest") proto.RegisterType((*QueryGetBondByIdRequest)(nil), "cerc.bond.v1.QueryGetBondByIdRequest")
proto.RegisterType((*QueryGetBondByIdResponse)(nil), "cerc.bond.v1.QueryGetBondByIdResponse") proto.RegisterType((*QueryGetBondByIdResponse)(nil), "cerc.bond.v1.QueryGetBondByIdResponse")
proto.RegisterType((*QueryGetBondsByOwnerRequest)(nil), "cerc.bond.v1.QueryGetBondsByOwnerRequest") 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) } func init() { proto.RegisterFile("cerc/bond/v1/query.proto", fileDescriptor_d3221677ed35cdfb) }
var fileDescriptor_d3221677ed35cdfb = []byte{ var fileDescriptor_d3221677ed35cdfb = []byte{
// 748 bytes of a gzipped FileDescriptorProto // 750 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x6f, 0xd3, 0x3e,
0x14, 0xc6, 0xe3, 0x40, 0x8a, 0x98, 0x22, 0x21, 0x4d, 0x13, 0x92, 0x3a, 0xad, 0x9d, 0x4e, 0x45, 0x1c, 0xc6, 0x9b, 0xfe, 0x7e, 0x1d, 0xc2, 0x43, 0x42, 0x78, 0x1d, 0xed, 0xd2, 0x2d, 0xe9, 0x82,
0x5b, 0x2a, 0xd5, 0xa3, 0x84, 0x1d, 0x12, 0x1b, 0x57, 0xa2, 0x42, 0xa8, 0xa2, 0x78, 0xc9, 0x02, 0xd8, 0xc6, 0xa4, 0xc5, 0x6a, 0xb9, 0x21, 0x71, 0xc9, 0x24, 0x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0x4d, 0x39, 0x3a, 0xd3, 0x72, 0x27, 0x67, 0x5a, 0xee, 0xe7, 0x99, 0x96, 0xe8, 0x58, 0x53, 0x7e, 0x1d, 0x6b, 0xca, 0xc1, 0x89, 0x56, 0x38, 0x3a, 0xd1, 0x0a, 0x3f, 0x4e,
0x7b, 0xb9, 0x1c, 0x90, 0xc8, 0xe8, 0x79, 0x8e, 0x11, 0x51, 0xbe, 0x75, 0x83, 0x50, 0xdc, 0xb4, 0xb4, 0xc2, 0xf3, 0x3b, 0x01, 0x89, 0xcc, 0xbe, 0xef, 0x9a, 0x11, 0xe5, 0x4b, 0xd7, 0x08, 0x45,
0x5d, 0x1a, 0x12, 0xb7, 0xe1, 0xe1, 0xf7, 0x3c, 0x93, 0x33, 0xc3, 0xff, 0x09, 0x1f, 0xfe, 0x0d, 0x2d, 0xc7, 0xa3, 0x21, 0xf1, 0x9a, 0x3e, 0x7a, 0xcb, 0x2b, 0xb9, 0x53, 0xfc, 0xcf, 0xef, 0xfe,
0x00, 0x00, 0xff, 0xff, 0x3e, 0xc4, 0xd7, 0x1e, 0xcc, 0x07, 0x00, 0x00, 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. // Reference imports to suppress errors if they are not otherwise used.
@ -575,13 +579,13 @@ type QueryClient interface {
// Params queries bonds module params. // Params queries bonds module params.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Bonds queries bonds list // 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
GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error) GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner // Get Bonds list by Owner
GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error) GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance // 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 { type queryClient struct {
@ -601,8 +605,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
return out, nil return out, nil
} }
func (c *queryClient) Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error) { func (c *queryClient) Bonds(ctx context.Context, in *QueryBondsRequest, opts ...grpc.CallOption) (*QueryBondsResponse, error) {
out := new(QueryGetBondsResponse) out := new(QueryBondsResponse)
err := c.cc.Invoke(ctx, "/cerc.bond.v1.Query/Bonds", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.bond.v1.Query/Bonds", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -628,9 +632,9 @@ func (c *queryClient) GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOw
return out, nil 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) 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 { if err != nil {
return nil, err return nil, err
} }
@ -642,13 +646,13 @@ type QueryServer interface {
// Params queries bonds module params. // Params queries bonds module params.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Bonds queries bonds list // Bonds queries bonds list
Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error) Bonds(context.Context, *QueryBondsRequest) (*QueryBondsResponse, error)
// GetBondById // GetBondById
GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error)
// Get Bonds list by Owner // Get Bonds list by Owner
GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
// Get Bond module balance // 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. // 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) { func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") 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") return nil, status.Errorf(codes.Unimplemented, "method Bonds not implemented")
} }
func (*UnimplementedQueryServer) GetBondById(ctx context.Context, req *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) { 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) { func (*UnimplementedQueryServer) GetBondsByOwner(ctx context.Context, req *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented")
} }
func (*UnimplementedQueryServer) GetBondsModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) { func (*UnimplementedQueryServer) GetBondModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsModuleBalance not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetBondModuleBalance not implemented")
} }
func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 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) { 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 { if err := dec(in); err != nil {
return nil, err 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", FullMethod: "/cerc.bond.v1.Query/Bonds",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) 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) 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) in := new(QueryGetBondModuleBalanceRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(QueryServer).GetBondsModuleBalance(ctx, in) return srv.(QueryServer).GetBondModuleBalance(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/cerc.bond.v1.Query/GetBondsModuleBalance", FullMethod: "/cerc.bond.v1.Query/GetBondModuleBalance",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { 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) return interceptor(ctx, in, info, handler)
} }
@ -786,8 +790,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{
Handler: _Query_GetBondsByOwner_Handler, Handler: _Query_GetBondsByOwner_Handler,
}, },
{ {
MethodName: "GetBondsModuleBalance", MethodName: "GetBondModuleBalance",
Handler: _Query_GetBondsModuleBalance_Handler, Handler: _Query_GetBondModuleBalance_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
@ -852,7 +856,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error) { func (m *QueryBondsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -862,12 +866,12 @@ func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryGetBondsRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryBondsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
@ -887,7 +891,7 @@ func (m *QueryGetBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error) { func (m *QueryBondsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -897,12 +901,12 @@ func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryGetBondsResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryBondsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[: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 := len(dAtA)
_ = i _ = i
var l int var l int
@ -1185,7 +1189,7 @@ func (m *QueryParamsResponse) Size() (n int) {
return n return n
} }
func (m *QueryGetBondsRequest) Size() (n int) { func (m *QueryBondsRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1198,7 +1202,7 @@ func (m *QueryGetBondsRequest) Size() (n int) {
return n return n
} }
func (m *QueryGetBondsResponse) Size() (n int) { func (m *QueryBondsResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -1445,7 +1449,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error { func (m *QueryBondsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -1468,10 +1472,10 @@ func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:
@ -1531,7 +1535,7 @@ func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error { func (m *QueryBondsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -1554,10 +1558,10 @@ func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { 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 { 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 { switch fieldNum {
case 1: case 1:

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) { 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 var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { 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) { 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 var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil { 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 protoReq QueryGetBondModuleBalanceRequest
var metadata runtime.ServerMetadata 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 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 protoReq QueryGetBondModuleBalanceRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
msg, err := server.GetBondsModuleBalance(ctx, &protoReq) msg, err := server.GetBondModuleBalance(ctx, &protoReq)
return msg, metadata, err 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
var stream runtime.ServerTransportStream 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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()) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
@ -348,7 +348,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
return 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()) ctx, cancel := context.WithCancel(req.Context())
defer cancel() defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 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) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return 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_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 ( var (
@ -517,5 +517,5 @@ var (
forward_Query_GetBondsByOwner_0 = runtime.ForwardResponseMessage forward_Query_GetBondsByOwner_0 = runtime.ForwardResponseMessage
forward_Query_GetBondsModuleBalance_0 = runtime.ForwardResponseMessage forward_Query_GetBondModuleBalance_0 = runtime.ForwardResponseMessage
) )

View File

@ -177,6 +177,7 @@ func (m *QueryRecordsRequest) GetPagination() *query.PageRequest {
return nil return nil
} }
// Array type attribute
type QueryRecordsRequest_ArrayInput struct { type QueryRecordsRequest_ArrayInput struct {
Values []*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` Values []*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
} }
@ -221,6 +222,7 @@ func (m *QueryRecordsRequest_ArrayInput) GetValues() []*QueryRecordsRequest_Valu
return nil return nil
} }
// Map type attribute
type QueryRecordsRequest_MapInput struct { type QueryRecordsRequest_MapInput struct {
Values map[string]*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Values map[string]*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
} }
@ -265,8 +267,9 @@ func (m *QueryRecordsRequest_MapInput) GetValues() map[string]*QueryRecordsReque
return nil return nil
} }
// Type for record attribute value
type QueryRecordsRequest_ValueInput struct { type QueryRecordsRequest_ValueInput struct {
// Type of record attribute value // Value is one of the following types
// //
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *QueryRecordsRequest_ValueInput_String_ // *QueryRecordsRequest_ValueInput_String_
@ -417,6 +420,7 @@ func (*QueryRecordsRequest_ValueInput) XXX_OneofWrappers() []interface{} {
} }
} }
// Type for record attribute key
type QueryRecordsRequest_KeyValueInput struct { type QueryRecordsRequest_KeyValueInput struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *QueryRecordsRequest_ValueInput `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value *QueryRecordsRequest_ValueInput `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
@ -523,23 +527,23 @@ func (m *QueryRecordsResponse) GetPagination() *query.PageResponse {
return nil return nil
} }
// QueryRecordByIdRequest is request type for registry records by id // QueryGetRecordRequest is request type for registry records by id
type QueryRecordByIdRequest struct { type QueryGetRecordRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (m *QueryRecordByIdRequest) Reset() { *m = QueryRecordByIdRequest{} } func (m *QueryGetRecordRequest) Reset() { *m = QueryGetRecordRequest{} }
func (m *QueryRecordByIdRequest) String() string { return proto.CompactTextString(m) } func (m *QueryGetRecordRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIdRequest) ProtoMessage() {} func (*QueryGetRecordRequest) ProtoMessage() {}
func (*QueryRecordByIdRequest) Descriptor() ([]byte, []int) { func (*QueryGetRecordRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{4} return fileDescriptor_c642b96b6da07a30, []int{4}
} }
func (m *QueryRecordByIdRequest) XXX_Unmarshal(b []byte) error { func (m *QueryGetRecordRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryRecordByIdRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetRecordRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -549,42 +553,42 @@ func (m *QueryRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]by
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryRecordByIdRequest) XXX_Merge(src proto.Message) { func (m *QueryGetRecordRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIdRequest.Merge(m, src) xxx_messageInfo_QueryGetRecordRequest.Merge(m, src)
} }
func (m *QueryRecordByIdRequest) XXX_Size() int { func (m *QueryGetRecordRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryRecordByIdRequest) XXX_DiscardUnknown() { func (m *QueryGetRecordRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIdRequest.DiscardUnknown(m) xxx_messageInfo_QueryGetRecordRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryRecordByIdRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetRecordRequest proto.InternalMessageInfo
func (m *QueryRecordByIdRequest) GetId() string { func (m *QueryGetRecordRequest) GetId() string {
if m != nil { if m != nil {
return m.Id return m.Id
} }
return "" return ""
} }
// QueryRecordByIdResponse is response type for registry records by id // QueryGetRecordResponse is response type for registry records by id
type QueryRecordByIdResponse struct { type QueryGetRecordResponse struct {
Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"` Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"`
} }
func (m *QueryRecordByIdResponse) Reset() { *m = QueryRecordByIdResponse{} } func (m *QueryGetRecordResponse) Reset() { *m = QueryGetRecordResponse{} }
func (m *QueryRecordByIdResponse) String() string { return proto.CompactTextString(m) } func (m *QueryGetRecordResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIdResponse) ProtoMessage() {} func (*QueryGetRecordResponse) ProtoMessage() {}
func (*QueryRecordByIdResponse) Descriptor() ([]byte, []int) { func (*QueryGetRecordResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{5} return fileDescriptor_c642b96b6da07a30, []int{5}
} }
func (m *QueryRecordByIdResponse) XXX_Unmarshal(b []byte) error { func (m *QueryGetRecordResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryRecordByIdResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetRecordResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -594,44 +598,44 @@ func (m *QueryRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]b
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryRecordByIdResponse) XXX_Merge(src proto.Message) { func (m *QueryGetRecordResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIdResponse.Merge(m, src) xxx_messageInfo_QueryGetRecordResponse.Merge(m, src)
} }
func (m *QueryRecordByIdResponse) XXX_Size() int { func (m *QueryGetRecordResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryRecordByIdResponse) XXX_DiscardUnknown() { func (m *QueryGetRecordResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIdResponse.DiscardUnknown(m) xxx_messageInfo_QueryGetRecordResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryRecordByIdResponse proto.InternalMessageInfo var xxx_messageInfo_QueryGetRecordResponse proto.InternalMessageInfo
func (m *QueryRecordByIdResponse) GetRecord() Record { func (m *QueryGetRecordResponse) GetRecord() Record {
if m != nil { if m != nil {
return m.Record return m.Record
} }
return Record{} return Record{}
} }
// QueryRecordsByBondIdRequest is request type for get the records by bond-id // QueryGetRecordsByBondIdRequest is request type for get the records by bond-id
type QueryRecordsByBondIdRequest struct { type QueryGetRecordsByBondIdRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }
func (m *QueryRecordsByBondIdRequest) Reset() { *m = QueryRecordsByBondIdRequest{} } func (m *QueryGetRecordsByBondIdRequest) Reset() { *m = QueryGetRecordsByBondIdRequest{} }
func (m *QueryRecordsByBondIdRequest) String() string { return proto.CompactTextString(m) } func (m *QueryGetRecordsByBondIdRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordsByBondIdRequest) ProtoMessage() {} func (*QueryGetRecordsByBondIdRequest) ProtoMessage() {}
func (*QueryRecordsByBondIdRequest) Descriptor() ([]byte, []int) { func (*QueryGetRecordsByBondIdRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{6} return fileDescriptor_c642b96b6da07a30, []int{6}
} }
func (m *QueryRecordsByBondIdRequest) XXX_Unmarshal(b []byte) error { func (m *QueryGetRecordsByBondIdRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryRecordsByBondIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetRecordsByBondIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryRecordsByBondIdRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetRecordsByBondIdRequest.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -641,51 +645,51 @@ func (m *QueryRecordsByBondIdRequest) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryRecordsByBondIdRequest) XXX_Merge(src proto.Message) { func (m *QueryGetRecordsByBondIdRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordsByBondIdRequest.Merge(m, src) xxx_messageInfo_QueryGetRecordsByBondIdRequest.Merge(m, src)
} }
func (m *QueryRecordsByBondIdRequest) XXX_Size() int { func (m *QueryGetRecordsByBondIdRequest) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryRecordsByBondIdRequest) XXX_DiscardUnknown() { func (m *QueryGetRecordsByBondIdRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordsByBondIdRequest.DiscardUnknown(m) xxx_messageInfo_QueryGetRecordsByBondIdRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryRecordsByBondIdRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetRecordsByBondIdRequest proto.InternalMessageInfo
func (m *QueryRecordsByBondIdRequest) GetId() string { func (m *QueryGetRecordsByBondIdRequest) GetId() string {
if m != nil { if m != nil {
return m.Id return m.Id
} }
return "" return ""
} }
func (m *QueryRecordsByBondIdRequest) GetPagination() *query.PageRequest { func (m *QueryGetRecordsByBondIdRequest) GetPagination() *query.PageRequest {
if m != nil { if m != nil {
return m.Pagination return m.Pagination
} }
return nil return nil
} }
// QueryRecordsByBondIdResponse is response type for records list by bond-id // QueryGetRecordsByBondIdResponse is response type for records list by bond-id
type QueryRecordsByBondIdResponse struct { type QueryGetRecordsByBondIdResponse struct {
Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"` Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"`
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }
func (m *QueryRecordsByBondIdResponse) Reset() { *m = QueryRecordsByBondIdResponse{} } func (m *QueryGetRecordsByBondIdResponse) Reset() { *m = QueryGetRecordsByBondIdResponse{} }
func (m *QueryRecordsByBondIdResponse) String() string { return proto.CompactTextString(m) } func (m *QueryGetRecordsByBondIdResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordsByBondIdResponse) ProtoMessage() {} func (*QueryGetRecordsByBondIdResponse) ProtoMessage() {}
func (*QueryRecordsByBondIdResponse) Descriptor() ([]byte, []int) { func (*QueryGetRecordsByBondIdResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c642b96b6da07a30, []int{7} return fileDescriptor_c642b96b6da07a30, []int{7}
} }
func (m *QueryRecordsByBondIdResponse) XXX_Unmarshal(b []byte) error { func (m *QueryGetRecordsByBondIdResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
} }
func (m *QueryRecordsByBondIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryGetRecordsByBondIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic { if deterministic {
return xxx_messageInfo_QueryRecordsByBondIdResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryGetRecordsByBondIdResponse.Marshal(b, m, deterministic)
} else { } else {
b = b[:cap(b)] b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b) n, err := m.MarshalToSizedBuffer(b)
@ -695,26 +699,26 @@ func (m *QueryRecordsByBondIdResponse) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil return b[:n], nil
} }
} }
func (m *QueryRecordsByBondIdResponse) XXX_Merge(src proto.Message) { func (m *QueryGetRecordsByBondIdResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordsByBondIdResponse.Merge(m, src) xxx_messageInfo_QueryGetRecordsByBondIdResponse.Merge(m, src)
} }
func (m *QueryRecordsByBondIdResponse) XXX_Size() int { func (m *QueryGetRecordsByBondIdResponse) XXX_Size() int {
return m.Size() return m.Size()
} }
func (m *QueryRecordsByBondIdResponse) XXX_DiscardUnknown() { func (m *QueryGetRecordsByBondIdResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordsByBondIdResponse.DiscardUnknown(m) xxx_messageInfo_QueryGetRecordsByBondIdResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryRecordsByBondIdResponse proto.InternalMessageInfo var xxx_messageInfo_QueryGetRecordsByBondIdResponse proto.InternalMessageInfo
func (m *QueryRecordsByBondIdResponse) GetRecords() []Record { func (m *QueryGetRecordsByBondIdResponse) GetRecords() []Record {
if m != nil { if m != nil {
return m.Records return m.Records
} }
return nil return nil
} }
func (m *QueryRecordsByBondIdResponse) GetPagination() *query.PageResponse { func (m *QueryGetRecordsByBondIdResponse) GetPagination() *query.PageResponse {
if m != nil { if m != nil {
return m.Pagination return m.Pagination
} }
@ -1091,7 +1095,8 @@ func (m *QueryResolveLrnResponse) GetRecord() *Record {
return nil return nil
} }
// QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance // QueryGetRegistryModuleBalanceRequest is request type for registry module
// accounts balance
type QueryGetRegistryModuleBalanceRequest struct { type QueryGetRegistryModuleBalanceRequest struct {
} }
@ -1128,7 +1133,8 @@ func (m *QueryGetRegistryModuleBalanceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryGetRegistryModuleBalanceRequest proto.InternalMessageInfo var xxx_messageInfo_QueryGetRegistryModuleBalanceRequest proto.InternalMessageInfo
// QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance // QueryGetRegistryModuleBalanceResponse is response type for registry module
// accounts balance
type QueryGetRegistryModuleBalanceResponse struct { type QueryGetRegistryModuleBalanceResponse struct {
Balances []*AccountBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` Balances []*AccountBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
} }
@ -1236,10 +1242,10 @@ func init() {
proto.RegisterType((*QueryRecordsRequest_ValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.ValueInput") proto.RegisterType((*QueryRecordsRequest_ValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.ValueInput")
proto.RegisterType((*QueryRecordsRequest_KeyValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.KeyValueInput") proto.RegisterType((*QueryRecordsRequest_KeyValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.KeyValueInput")
proto.RegisterType((*QueryRecordsResponse)(nil), "cerc.registry.v1.QueryRecordsResponse") proto.RegisterType((*QueryRecordsResponse)(nil), "cerc.registry.v1.QueryRecordsResponse")
proto.RegisterType((*QueryRecordByIdRequest)(nil), "cerc.registry.v1.QueryRecordByIdRequest") proto.RegisterType((*QueryGetRecordRequest)(nil), "cerc.registry.v1.QueryGetRecordRequest")
proto.RegisterType((*QueryRecordByIdResponse)(nil), "cerc.registry.v1.QueryRecordByIdResponse") proto.RegisterType((*QueryGetRecordResponse)(nil), "cerc.registry.v1.QueryGetRecordResponse")
proto.RegisterType((*QueryRecordsByBondIdRequest)(nil), "cerc.registry.v1.QueryRecordsByBondIdRequest") proto.RegisterType((*QueryGetRecordsByBondIdRequest)(nil), "cerc.registry.v1.QueryGetRecordsByBondIdRequest")
proto.RegisterType((*QueryRecordsByBondIdResponse)(nil), "cerc.registry.v1.QueryRecordsByBondIdResponse") proto.RegisterType((*QueryGetRecordsByBondIdResponse)(nil), "cerc.registry.v1.QueryGetRecordsByBondIdResponse")
proto.RegisterType((*QueryNameRecordsRequest)(nil), "cerc.registry.v1.QueryNameRecordsRequest") proto.RegisterType((*QueryNameRecordsRequest)(nil), "cerc.registry.v1.QueryNameRecordsRequest")
proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse") proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse")
proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest") proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest")
@ -1256,88 +1262,88 @@ func init() {
func init() { proto.RegisterFile("cerc/registry/v1/query.proto", fileDescriptor_c642b96b6da07a30) } func init() { proto.RegisterFile("cerc/registry/v1/query.proto", fileDescriptor_c642b96b6da07a30) }
var fileDescriptor_c642b96b6da07a30 = []byte{ var fileDescriptor_c642b96b6da07a30 = []byte{
// 1295 bytes of a gzipped FileDescriptorProto // 1291 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0xc5, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0x45,
0x1b, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0xfe, 0xb7, 0xea, 0x7f, 0x08, 0xed, 0x66, 0x13, 0x6c, 0xb3, 0x18, 0xf6, 0xda, 0xb1, 0xdd, 0xbc, 0xa6, 0x55, 0x19, 0x42, 0xbb, 0xdd, 0x06, 0xdb, 0x2c, 0xf9,
0xe4, 0xc5, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x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0x79, 0xe1, 0xb7, 0x93, 0xbc, 0xf0, 0xc5, 0x69, 0x3e, 0xf1, 0xfc, 0x34, 0x9f, 0xf8, 0xe5, 0x98, 0x97, 0xbe, 0x3c, 0xca, 0x27, 0x5e, 0x1c, 0xe5, 0x13, 0xbf, 0x1e, 0xe5, 0x13, 0x1f, 0x2e,
0x34, 0x9f, 0x78, 0x77, 0xb5, 0x61, 0x7a, 0x4a, 0x47, 0xaf, 0x29, 0x1e, 0xa1, 0xe2, 0x65, 0x93, 0x36, 0x2d, 0x4f, 0xeb, 0x36, 0x6a, 0x9a, 0x47, 0x99, 0xf9, 0xaa, 0x45, 0x75, 0x1b, 0xd7, 0x29,
0xa8, 0x16, 0xae, 0x13, 0xdb, 0xac, 0x6f, 0xe9, 0xea, 0x07, 0x91, 0xb6, 0x5a, 0x86, 0xfe, 0xdf, 0xb1, 0xea, 0xeb, 0x0d, 0xfd, 0x49, 0xdf, 0x5b, 0x2d, 0xc3, 0xfe, 0x77, 0x6f, 0xfc, 0x13, 0x00,
0xde, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x94, 0x6e, 0x34, 0x42, 0x10, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x4a, 0xd6, 0x0c, 0x4a, 0x10, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -1357,9 +1363,9 @@ type QueryClient interface {
// Records queries all records // Records queries all records
Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error) Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error)
// Get record by id // Get record by id
GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) GetRecord(ctx context.Context, in *QueryGetRecordRequest, opts ...grpc.CallOption) (*QueryGetRecordResponse, error)
// Get records by bond id // Get records by bond id
GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) GetRecordsByBondId(ctx context.Context, in *QueryGetRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryGetRecordsByBondIdResponse, error)
// NameRecords queries all name records // NameRecords queries all name records
NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
@ -1398,8 +1404,8 @@ func (c *queryClient) Records(ctx context.Context, in *QueryRecordsRequest, opts
return out, nil return out, nil
} }
func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) { func (c *queryClient) GetRecord(ctx context.Context, in *QueryGetRecordRequest, opts ...grpc.CallOption) (*QueryGetRecordResponse, error) {
out := new(QueryRecordByIdResponse) out := new(QueryGetRecordResponse)
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecord", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecord", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -1407,8 +1413,8 @@ func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest,
return out, nil return out, nil
} }
func (c *queryClient) GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) { func (c *queryClient) GetRecordsByBondId(ctx context.Context, in *QueryGetRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryGetRecordsByBondIdResponse, error) {
out := new(QueryRecordsByBondIdResponse) out := new(QueryGetRecordsByBondIdResponse)
err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecordsByBondId", in, out, opts...) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecordsByBondId", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
@ -1468,9 +1474,9 @@ type QueryServer interface {
// Records queries all records // Records queries all records
Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error)
// Get record by id // Get record by id
GetRecord(context.Context, *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) GetRecord(context.Context, *QueryGetRecordRequest) (*QueryGetRecordResponse, error)
// Get records by bond id // Get records by bond id
GetRecordsByBondId(context.Context, *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) GetRecordsByBondId(context.Context, *QueryGetRecordsByBondIdRequest) (*QueryGetRecordsByBondIdResponse, error)
// NameRecords queries all name records // NameRecords queries all name records
NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error)
// Whois method retrieve the name authority info // Whois method retrieve the name authority info
@ -1493,10 +1499,10 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq
func (*UnimplementedQueryServer) Records(ctx context.Context, req *QueryRecordsRequest) (*QueryRecordsResponse, error) { func (*UnimplementedQueryServer) Records(ctx context.Context, req *QueryRecordsRequest) (*QueryRecordsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Records not implemented") return nil, status.Errorf(codes.Unimplemented, "method Records not implemented")
} }
func (*UnimplementedQueryServer) GetRecord(ctx context.Context, req *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) { func (*UnimplementedQueryServer) GetRecord(ctx context.Context, req *QueryGetRecordRequest) (*QueryGetRecordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented")
} }
func (*UnimplementedQueryServer) GetRecordsByBondId(ctx context.Context, req *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) { func (*UnimplementedQueryServer) GetRecordsByBondId(ctx context.Context, req *QueryGetRecordsByBondIdRequest) (*QueryGetRecordsByBondIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecordsByBondId not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetRecordsByBondId not implemented")
} }
func (*UnimplementedQueryServer) NameRecords(ctx context.Context, req *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) { func (*UnimplementedQueryServer) NameRecords(ctx context.Context, req *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) {
@ -1556,7 +1562,7 @@ func _Query_Records_Handler(srv interface{}, ctx context.Context, dec func(inter
} }
func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordByIdRequest) in := new(QueryGetRecordRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -1568,13 +1574,13 @@ func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: "/cerc.registry.v1.Query/GetRecord", FullMethod: "/cerc.registry.v1.Query/GetRecord",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecord(ctx, req.(*QueryRecordByIdRequest)) return srv.(QueryServer).GetRecord(ctx, req.(*QueryGetRecordRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordsByBondIdRequest) in := new(QueryGetRecordsByBondIdRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
@ -1586,7 +1592,7 @@ func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/cerc.registry.v1.Query/GetRecordsByBondId", FullMethod: "/cerc.registry.v1.Query/GetRecordsByBondId",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecordsByBondId(ctx, req.(*QueryRecordsByBondIdRequest)) return srv.(QueryServer).GetRecordsByBondId(ctx, req.(*QueryGetRecordsByBondIdRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -2164,7 +2170,7 @@ func (m *QueryRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryRecordByIdRequest) Marshal() (dAtA []byte, err error) { func (m *QueryGetRecordRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2174,12 +2180,12 @@ func (m *QueryRecordByIdRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryRecordByIdRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetRecordRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -2194,7 +2200,7 @@ func (m *QueryRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryRecordByIdResponse) Marshal() (dAtA []byte, err error) { func (m *QueryGetRecordResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2204,12 +2210,12 @@ func (m *QueryRecordByIdResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryRecordByIdResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetRecordResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -2227,7 +2233,7 @@ func (m *QueryRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryRecordsByBondIdRequest) Marshal() (dAtA []byte, err error) { func (m *QueryGetRecordsByBondIdRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2237,12 +2243,12 @@ func (m *QueryRecordsByBondIdRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryRecordsByBondIdRequest) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetRecordsByBondIdRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryRecordsByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetRecordsByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -2269,7 +2275,7 @@ func (m *QueryRecordsByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, er
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *QueryRecordsByBondIdResponse) Marshal() (dAtA []byte, err error) { func (m *QueryGetRecordsByBondIdResponse) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size]) n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2279,12 +2285,12 @@ func (m *QueryRecordsByBondIdResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil return dAtA[:n], nil
} }
func (m *QueryRecordsByBondIdResponse) MarshalTo(dAtA []byte) (int, error) { func (m *QueryGetRecordsByBondIdResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size() size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size]) return m.MarshalToSizedBuffer(dAtA[:size])
} }
func (m *QueryRecordsByBondIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { func (m *QueryGetRecordsByBondIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA) i := len(dAtA)
_ = i _ = i
var l int var l int
@ -2910,7 +2916,7 @@ func (m *QueryRecordsResponse) Size() (n int) {
return n return n
} }
func (m *QueryRecordByIdRequest) Size() (n int) { func (m *QueryGetRecordRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -2923,7 +2929,7 @@ func (m *QueryRecordByIdRequest) Size() (n int) {
return n return n
} }
func (m *QueryRecordByIdResponse) Size() (n int) { func (m *QueryGetRecordResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -2934,7 +2940,7 @@ func (m *QueryRecordByIdResponse) Size() (n int) {
return n return n
} }
func (m *QueryRecordsByBondIdRequest) Size() (n int) { func (m *QueryGetRecordsByBondIdRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -2951,7 +2957,7 @@ func (m *QueryRecordsByBondIdRequest) Size() (n int) {
return n return n
} }
func (m *QueryRecordsByBondIdResponse) Size() (n int) { func (m *QueryGetRecordsByBondIdResponse) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
} }
@ -4140,7 +4146,7 @@ func (m *QueryRecordsResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error { func (m *QueryGetRecordRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4163,10 +4169,10 @@ func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByIdRequest: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetRecordRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -4222,7 +4228,7 @@ func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error { func (m *QueryGetRecordResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4245,10 +4251,10 @@ func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByIdResponse: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetRecordResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -4305,7 +4311,7 @@ func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryRecordsByBondIdRequest) Unmarshal(dAtA []byte) error { func (m *QueryGetRecordsByBondIdRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4328,10 +4334,10 @@ func (m *QueryRecordsByBondIdRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryRecordsByBondIdRequest: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetRecordsByBondIdRequest: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordsByBondIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetRecordsByBondIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:
@ -4423,7 +4429,7 @@ func (m *QueryRecordsByBondIdRequest) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *QueryRecordsByBondIdResponse) Unmarshal(dAtA []byte) error { func (m *QueryGetRecordsByBondIdResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0
for iNdEx < l { for iNdEx < l {
@ -4446,10 +4452,10 @@ func (m *QueryRecordsByBondIdResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3) fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7) wireType := int(wire & 0x7)
if wireType == 4 { if wireType == 4 {
return fmt.Errorf("proto: QueryRecordsByBondIdResponse: wiretype end group for non-group") return fmt.Errorf("proto: QueryGetRecordsByBondIdResponse: wiretype end group for non-group")
} }
if fieldNum <= 0 { if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordsByBondIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) return fmt.Errorf("proto: QueryGetRecordsByBondIdResponse: illegal tag %d (wire type %d)", fieldNum, wire)
} }
switch fieldNum { switch fieldNum {
case 1: case 1:

View File

@ -88,7 +88,7 @@ func local_request_Query_Records_0(ctx context.Context, marshaler runtime.Marsha
} }
func request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByIdRequest var protoReq QueryGetRecordRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -115,7 +115,7 @@ func request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler,
} }
func local_request_Query_GetRecord_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_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByIdRequest var protoReq QueryGetRecordRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -146,7 +146,7 @@ var (
) )
func request_Query_GetRecordsByBondId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_Query_GetRecordsByBondId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordsByBondIdRequest var protoReq QueryGetRecordsByBondIdRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (
@ -180,7 +180,7 @@ func request_Query_GetRecordsByBondId_0(ctx context.Context, marshaler runtime.M
} }
func local_request_Query_GetRecordsByBondId_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_GetRecordsByBondId_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordsByBondIdRequest var protoReq QueryGetRecordsByBondIdRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
var ( var (