// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cerc/auction/v1/query.proto package auction import ( context "context" fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryParamsRequest is the format to query the parameters of the auction // module type QueryParamsRequest struct { } func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo // QueryParamsResponse returns parameters of the auction module type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo func (m *QueryParamsResponse) GetParams() *Params { if m != nil { return m.Params } return nil } // AuctionsRequest is the format for querying all the auctions type QueryAuctionsRequest struct { // pagination defines an optional pagination info for the next request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryAuctionsRequest) Reset() { *m = QueryAuctionsRequest{} } func (m *QueryAuctionsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsRequest) ProtoMessage() {} func (*QueryAuctionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{2} } func (m *QueryAuctionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsRequest.Merge(m, src) } func (m *QueryAuctionsRequest) XXX_Size() int { return m.Size() } func (m *QueryAuctionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsRequest proto.InternalMessageInfo func (m *QueryAuctionsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } // AuctionsResponse returns the list of all auctions type QueryAuctionsResponse struct { // List of auctions Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"` // pagination defines an optional pagination info for the next request Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryAuctionsResponse) Reset() { *m = QueryAuctionsResponse{} } func (m *QueryAuctionsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsResponse) ProtoMessage() {} func (*QueryAuctionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{3} } func (m *QueryAuctionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsResponse.Merge(m, src) } func (m *QueryAuctionsResponse) XXX_Size() int { return m.Size() } func (m *QueryAuctionsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsResponse proto.InternalMessageInfo func (m *QueryAuctionsResponse) GetAuctions() *Auctions { if m != nil { return m.Auctions } return nil } func (m *QueryAuctionsResponse) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } // AuctionRequest is the format for querying a specific auction type QueryGetAuctionRequest struct { // Auction id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } func (m *QueryGetAuctionRequest) Reset() { *m = QueryGetAuctionRequest{} } func (m *QueryGetAuctionRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAuctionRequest) ProtoMessage() {} func (*QueryGetAuctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{4} } func (m *QueryGetAuctionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetAuctionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetAuctionRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetAuctionRequest.Merge(m, src) } func (m *QueryGetAuctionRequest) XXX_Size() int { return m.Size() } func (m *QueryGetAuctionRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetAuctionRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryGetAuctionRequest proto.InternalMessageInfo func (m *QueryGetAuctionRequest) GetId() string { if m != nil { return m.Id } return "" } // AuctionResponse returns the details of the queried auction type QueryGetAuctionResponse struct { // Auction details Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"` } func (m *QueryGetAuctionResponse) Reset() { *m = QueryGetAuctionResponse{} } func (m *QueryGetAuctionResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAuctionResponse) ProtoMessage() {} func (*QueryGetAuctionResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{5} } func (m *QueryGetAuctionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetAuctionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetAuctionResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetAuctionResponse.Merge(m, src) } func (m *QueryGetAuctionResponse) XXX_Size() int { return m.Size() } func (m *QueryGetAuctionResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetAuctionResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryGetAuctionResponse proto.InternalMessageInfo func (m *QueryGetAuctionResponse) GetAuction() *Auction { if m != nil { return m.Auction } return nil } // BidRequest is the format for querying a specific bid in an auction type QueryGetBidRequest struct { // Auction id AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // Bidder address Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` } func (m *QueryGetBidRequest) Reset() { *m = QueryGetBidRequest{} } func (m *QueryGetBidRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetBidRequest) ProtoMessage() {} func (*QueryGetBidRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{6} } func (m *QueryGetBidRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetBidRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetBidRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetBidRequest.Merge(m, src) } func (m *QueryGetBidRequest) XXX_Size() int { return m.Size() } func (m *QueryGetBidRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetBidRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryGetBidRequest proto.InternalMessageInfo func (m *QueryGetBidRequest) GetAuctionId() string { if m != nil { return m.AuctionId } return "" } func (m *QueryGetBidRequest) GetBidder() string { if m != nil { return m.Bidder } return "" } // BidResponse returns the details of the queried bid type QueryGetBidResponse struct { // Bid details Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"` } func (m *QueryGetBidResponse) Reset() { *m = QueryGetBidResponse{} } func (m *QueryGetBidResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetBidResponse) ProtoMessage() {} func (*QueryGetBidResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{7} } func (m *QueryGetBidResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetBidResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetBidResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetBidResponse.Merge(m, src) } func (m *QueryGetBidResponse) XXX_Size() int { return m.Size() } func (m *QueryGetBidResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetBidResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryGetBidResponse proto.InternalMessageInfo func (m *QueryGetBidResponse) GetBid() *Bid { if m != nil { return m.Bid } return nil } // BidsRequest is the format for querying all bids in an auction type QueryGetBidsRequest struct { // Auction id AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` } func (m *QueryGetBidsRequest) Reset() { *m = QueryGetBidsRequest{} } func (m *QueryGetBidsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetBidsRequest) ProtoMessage() {} func (*QueryGetBidsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{8} } func (m *QueryGetBidsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetBidsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetBidsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetBidsRequest.Merge(m, src) } func (m *QueryGetBidsRequest) XXX_Size() int { return m.Size() } func (m *QueryGetBidsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetBidsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryGetBidsRequest proto.InternalMessageInfo func (m *QueryGetBidsRequest) GetAuctionId() string { if m != nil { return m.AuctionId } return "" } // BidsResponse returns details of all bids in an auction type QueryGetBidsResponse struct { // List of bids in the auction Bids []*Bid `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids,omitempty"` } func (m *QueryGetBidsResponse) Reset() { *m = QueryGetBidsResponse{} } func (m *QueryGetBidsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetBidsResponse) ProtoMessage() {} func (*QueryGetBidsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{9} } func (m *QueryGetBidsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetBidsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetBidsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetBidsResponse.Merge(m, src) } func (m *QueryGetBidsResponse) XXX_Size() int { return m.Size() } func (m *QueryGetBidsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetBidsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryGetBidsResponse proto.InternalMessageInfo func (m *QueryGetBidsResponse) GetBids() []*Bid { if m != nil { return m.Bids } return nil } // AuctionsByBidderRequest is the format for querying all auctions containing a // bidder address type QueryAuctionsByBidderRequest struct { // Address of the bidder BidderAddress string `protobuf:"bytes,1,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"` } func (m *QueryAuctionsByBidderRequest) Reset() { *m = QueryAuctionsByBidderRequest{} } func (m *QueryAuctionsByBidderRequest) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsByBidderRequest) ProtoMessage() {} func (*QueryAuctionsByBidderRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{10} } func (m *QueryAuctionsByBidderRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsByBidderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsByBidderRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsByBidderRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsByBidderRequest.Merge(m, src) } func (m *QueryAuctionsByBidderRequest) XXX_Size() int { return m.Size() } func (m *QueryAuctionsByBidderRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsByBidderRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsByBidderRequest proto.InternalMessageInfo func (m *QueryAuctionsByBidderRequest) GetBidderAddress() string { if m != nil { return m.BidderAddress } return "" } // AuctionsByBidderResponse returns all auctions containing a bidder type QueryAuctionsByBidderResponse struct { // List of auctions Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"` } func (m *QueryAuctionsByBidderResponse) Reset() { *m = QueryAuctionsByBidderResponse{} } func (m *QueryAuctionsByBidderResponse) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsByBidderResponse) ProtoMessage() {} func (*QueryAuctionsByBidderResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{11} } func (m *QueryAuctionsByBidderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsByBidderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsByBidderResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsByBidderResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsByBidderResponse.Merge(m, src) } func (m *QueryAuctionsByBidderResponse) XXX_Size() int { return m.Size() } func (m *QueryAuctionsByBidderResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsByBidderResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsByBidderResponse proto.InternalMessageInfo func (m *QueryAuctionsByBidderResponse) GetAuctions() *Auctions { if m != nil { return m.Auctions } return nil } // AuctionsByOwnerRequest is the format for querying all auctions created by an // owner type QueryAuctionsByOwnerRequest struct { // Address of the owner OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` } func (m *QueryAuctionsByOwnerRequest) Reset() { *m = QueryAuctionsByOwnerRequest{} } func (m *QueryAuctionsByOwnerRequest) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsByOwnerRequest) ProtoMessage() {} func (*QueryAuctionsByOwnerRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{12} } func (m *QueryAuctionsByOwnerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsByOwnerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsByOwnerRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsByOwnerRequest.Merge(m, src) } func (m *QueryAuctionsByOwnerRequest) XXX_Size() int { return m.Size() } func (m *QueryAuctionsByOwnerRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsByOwnerRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsByOwnerRequest proto.InternalMessageInfo func (m *QueryAuctionsByOwnerRequest) GetOwnerAddress() string { if m != nil { return m.OwnerAddress } return "" } // AuctionsByOwnerResponse returns all auctions created by an owner type QueryAuctionsByOwnerResponse struct { // List of auctions Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"` } func (m *QueryAuctionsByOwnerResponse) Reset() { *m = QueryAuctionsByOwnerResponse{} } func (m *QueryAuctionsByOwnerResponse) String() string { return proto.CompactTextString(m) } func (*QueryAuctionsByOwnerResponse) ProtoMessage() {} func (*QueryAuctionsByOwnerResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{13} } func (m *QueryAuctionsByOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryAuctionsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryAuctionsByOwnerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryAuctionsByOwnerResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryAuctionsByOwnerResponse.Merge(m, src) } func (m *QueryAuctionsByOwnerResponse) XXX_Size() int { return m.Size() } func (m *QueryAuctionsByOwnerResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryAuctionsByOwnerResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryAuctionsByOwnerResponse proto.InternalMessageInfo func (m *QueryAuctionsByOwnerResponse) GetAuctions() *Auctions { if m != nil { return m.Auctions } return nil } // BalanceRequest is the format to fetch all balances type QueryGetAuctionModuleBalanceRequest struct { } func (m *QueryGetAuctionModuleBalanceRequest) Reset() { *m = QueryGetAuctionModuleBalanceRequest{} } func (m *QueryGetAuctionModuleBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAuctionModuleBalanceRequest) ProtoMessage() {} func (*QueryGetAuctionModuleBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{14} } func (m *QueryGetAuctionModuleBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetAuctionModuleBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetAuctionModuleBalanceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetAuctionModuleBalanceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetAuctionModuleBalanceRequest.Merge(m, src) } func (m *QueryGetAuctionModuleBalanceRequest) XXX_Size() int { return m.Size() } func (m *QueryGetAuctionModuleBalanceRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetAuctionModuleBalanceRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryGetAuctionModuleBalanceRequest proto.InternalMessageInfo // QueryGetAuctionModuleBalanceResponse is the response type for auction module // balance rpc method type QueryGetAuctionModuleBalanceResponse struct { // 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"` } func (m *QueryGetAuctionModuleBalanceResponse) Reset() { *m = QueryGetAuctionModuleBalanceResponse{} } func (m *QueryGetAuctionModuleBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAuctionModuleBalanceResponse) ProtoMessage() {} func (*QueryGetAuctionModuleBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_2630d1607b9261b1, []int{15} } func (m *QueryGetAuctionModuleBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetAuctionModuleBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetAuctionModuleBalanceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetAuctionModuleBalanceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetAuctionModuleBalanceResponse.Merge(m, src) } func (m *QueryGetAuctionModuleBalanceResponse) XXX_Size() int { return m.Size() } func (m *QueryGetAuctionModuleBalanceResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetAuctionModuleBalanceResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryGetAuctionModuleBalanceResponse proto.InternalMessageInfo func (m *QueryGetAuctionModuleBalanceResponse) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.Balance } return nil } func init() { proto.RegisterType((*QueryParamsRequest)(nil), "cerc.auction.v1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "cerc.auction.v1.QueryParamsResponse") proto.RegisterType((*QueryAuctionsRequest)(nil), "cerc.auction.v1.QueryAuctionsRequest") proto.RegisterType((*QueryAuctionsResponse)(nil), "cerc.auction.v1.QueryAuctionsResponse") proto.RegisterType((*QueryGetAuctionRequest)(nil), "cerc.auction.v1.QueryGetAuctionRequest") proto.RegisterType((*QueryGetAuctionResponse)(nil), "cerc.auction.v1.QueryGetAuctionResponse") proto.RegisterType((*QueryGetBidRequest)(nil), "cerc.auction.v1.QueryGetBidRequest") proto.RegisterType((*QueryGetBidResponse)(nil), "cerc.auction.v1.QueryGetBidResponse") proto.RegisterType((*QueryGetBidsRequest)(nil), "cerc.auction.v1.QueryGetBidsRequest") proto.RegisterType((*QueryGetBidsResponse)(nil), "cerc.auction.v1.QueryGetBidsResponse") proto.RegisterType((*QueryAuctionsByBidderRequest)(nil), "cerc.auction.v1.QueryAuctionsByBidderRequest") proto.RegisterType((*QueryAuctionsByBidderResponse)(nil), "cerc.auction.v1.QueryAuctionsByBidderResponse") proto.RegisterType((*QueryAuctionsByOwnerRequest)(nil), "cerc.auction.v1.QueryAuctionsByOwnerRequest") proto.RegisterType((*QueryAuctionsByOwnerResponse)(nil), "cerc.auction.v1.QueryAuctionsByOwnerResponse") proto.RegisterType((*QueryGetAuctionModuleBalanceRequest)(nil), "cerc.auction.v1.QueryGetAuctionModuleBalanceRequest") proto.RegisterType((*QueryGetAuctionModuleBalanceResponse)(nil), "cerc.auction.v1.QueryGetAuctionModuleBalanceResponse") } func init() { proto.RegisterFile("cerc/auction/v1/query.proto", fileDescriptor_2630d1607b9261b1) } var fileDescriptor_2630d1607b9261b1 = []byte{ // 900 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0x1b, 0x45, 0x14, 0xc7, 0xb3, 0x29, 0xb8, 0xcd, 0x2b, 0x6d, 0xd1, 0x10, 0x9a, 0x78, 0xd3, 0x6c, 0xc2, 0x24, 0x36, 0xa6, 0xc5, 0x3b, 0xb2, 0xdb, 0x5e, 0x90, 0x90, 0x5a, 0x23, 0x5a, 0x21, 0x14, 0x51, 0x2c, 0xc1, 0x81, 0x03, 0xd5, 0xfe, 0xd2, 0xb2, 0x60, 0xef, 0xb8, 0x9e, 0xb5, 0xc1, 0x32, 0xbe, 0xf4, 0x02, 0x17, 0x24, 0x24, 0x24, 0xee, 0x5c, 0x10, 0x82, 0x7f, 0xa4, 0xc7, 0x4a, 0x5c, 0x38, 0x15, 0x94, 0xf0, 0x17, 0xf0, 0x17, 0xa0, 0x9d, 0x79, 0x63, 0xc7, 0xbb, 0x5e, 0x3b, 0xd0, 0x53, 0xb2, 0x33, 0xdf, 0x79, 0xef, 0xf3, 0xde, 0xbc, 0xf9, 0xca, 0xb0, 0xe3, 0x05, 0x7d, 0x8f, 0x39, 0x03, 0x2f, 0x89, 0x78, 0xcc, 0x86, 0x0d, 0xf6, 0x68, 0x10, 0xf4, 0x47, 0x76, 0xaf, 0xcf, 0x13, 0x4e, 0xae, 0xa4, 0x9b, 0x36, 0x6e, 0xda, 0xc3, 0x86, 0xb9, 0x19, 0xf2, 0x90, 0xcb, 0x3d, 0x96, 0xfe, 0xa7, 0x64, 0xe6, 0xb5, 0x90, 0xf3, 0xb0, 0x13, 0x30, 0xa7, 0x17, 0x31, 0x27, 0x8e, 0x79, 0xe2, 0xa4, 0x7a, 0x81, 0xbb, 0xd7, 0x3d, 0x2e, 0xba, 0x5c, 0x30, 0xd7, 0x11, 0x81, 0x8a, 0xce, 0x86, 0x0d, 0x37, 0x48, 0x9c, 0x06, 0xeb, 0x39, 0x61, 0x14, 0x4b, 0x31, 0x6a, 0xad, 0xd3, 0x5a, 0xad, 0xf2, 0x78, 0xa4, 0xf7, 0x77, 0xb3, 0xb4, 0x9a, 0x4d, 0x6e, 0xd3, 0x4d, 0x20, 0x1f, 0xa6, 0x09, 0x1e, 0x38, 0x7d, 0xa7, 0x2b, 0xda, 0xc1, 0xa3, 0x41, 0x20, 0x12, 0x7a, 0x0f, 0x5e, 0x99, 0x5b, 0x15, 0x3d, 0x1e, 0x8b, 0x80, 0x30, 0x28, 0xf5, 0xe4, 0xca, 0xb6, 0xb1, 0x6f, 0xd4, 0x2e, 0x36, 0xb7, 0xec, 0x4c, 0xb5, 0x36, 0x1e, 0x40, 0x19, 0xfd, 0x14, 0x36, 0x65, 0x9c, 0xbb, 0x4a, 0xa1, 0xe3, 0x93, 0x7b, 0x00, 0xb3, 0x42, 0x30, 0x58, 0xd5, 0x56, 0x95, 0xd8, 0x69, 0x25, 0xb6, 0xea, 0x29, 0xd6, 0x63, 0x3f, 0x70, 0xc2, 0x00, 0xcf, 0xb6, 0x4f, 0x9d, 0xa4, 0x3f, 0x1a, 0xf0, 0x6a, 0x26, 0x01, 0xa2, 0xde, 0x86, 0x0b, 0x88, 0xa5, 0x61, 0xcb, 0x39, 0xd8, 0xe9, 0xa1, 0xa9, 0x34, 0x03, 0xb6, 0xfe, 0xbf, 0xc1, 0x6a, 0x70, 0x55, 0x72, 0xdd, 0x0f, 0x12, 0xcc, 0xa2, 0x4b, 0xbf, 0x0c, 0xeb, 0x91, 0x2f, 0x91, 0x36, 0xda, 0xeb, 0x91, 0x4f, 0x8f, 0x60, 0x2b, 0xa7, 0xc4, 0x1a, 0x9a, 0x70, 0x1e, 0xc1, 0xb0, 0x84, 0xed, 0xa2, 0x12, 0xda, 0x5a, 0x48, 0xdf, 0xc7, 0xfb, 0xbc, 0x1f, 0x24, 0xad, 0xc8, 0xd7, 0x49, 0x77, 0x01, 0x50, 0xf0, 0x70, 0x9a, 0x7c, 0x03, 0x57, 0xde, 0xf3, 0xc9, 0x55, 0x28, 0xb9, 0x91, 0xef, 0x07, 0x7d, 0x59, 0xf1, 0x46, 0x1b, 0xbf, 0xe8, 0xdb, 0x38, 0x06, 0x3a, 0x18, 0x72, 0x55, 0xe1, 0x9c, 0x8b, 0x61, 0x2e, 0x36, 0x37, 0x73, 0x4c, 0xa9, 0x34, 0x15, 0xd0, 0x5b, 0x73, 0xc7, 0xc5, 0xd9, 0x60, 0xe8, 0x1d, 0x9c, 0x99, 0xe9, 0x29, 0xcc, 0x5a, 0x83, 0x17, 0xdc, 0xc8, 0x4f, 0x6f, 0xf3, 0x5c, 0x61, 0x5a, 0xa9, 0xa0, 0xef, 0xc2, 0xb5, 0xb9, 0xa1, 0x68, 0x8d, 0x5a, 0xb2, 0x1e, 0x0d, 0x50, 0x81, 0xcb, 0xaa, 0xc0, 0x87, 0x8e, 0xef, 0xf7, 0x03, 0x21, 0x10, 0xe2, 0x92, 0x5a, 0xbd, 0xab, 0x16, 0xe9, 0xc7, 0xb0, 0x5b, 0x10, 0xe6, 0xb9, 0x66, 0x8c, 0xb6, 0x60, 0x27, 0x13, 0xf7, 0x83, 0x2f, 0xe3, 0x19, 0xdd, 0x01, 0x5c, 0xe2, 0xe9, 0x77, 0x06, 0xee, 0x25, 0xb9, 0xa8, 0xd9, 0x3e, 0xca, 0x95, 0x88, 0x31, 0x9e, 0x0f, 0xad, 0x02, 0x07, 0x99, 0x61, 0x3c, 0xe2, 0xfe, 0xa0, 0x13, 0xb4, 0x9c, 0x8e, 0x13, 0x7b, 0x7a, 0xd2, 0xe9, 0x6f, 0x06, 0x1c, 0x2e, 0xd7, 0x21, 0xc6, 0x63, 0x03, 0xce, 0xbb, 0x6a, 0x0d, 0xef, 0xad, 0x3c, 0xf7, 0x98, 0xf4, 0x33, 0x7a, 0x87, 0x47, 0x71, 0xeb, 0xe8, 0xc9, 0xb3, 0xbd, 0xb5, 0x7f, 0x9e, 0xed, 0x95, 0x3f, 0x17, 0x3c, 0x7e, 0x8b, 0xa6, 0x1e, 0x26, 0xe8, 0xfe, 0xc8, 0xe9, 0x76, 0xf4, 0xc7, 0xaf, 0x7f, 0xee, 0xd5, 0xc2, 0x28, 0xf9, 0x6c, 0xe0, 0xda, 0x1e, 0xef, 0x32, 0x74, 0x3e, 0xf5, 0xa7, 0x2e, 0xfc, 0x2f, 0x58, 0x32, 0xea, 0x05, 0x42, 0x46, 0x13, 0x6d, 0x9d, 0xb8, 0xf9, 0xdd, 0x06, 0xbc, 0x28, 0x69, 0x49, 0x02, 0x25, 0x65, 0x50, 0xe4, 0x20, 0xd7, 0x8d, 0xbc, 0x0b, 0x9a, 0x87, 0xcb, 0x45, 0xaa, 0x46, 0xba, 0xf7, 0xf8, 0xf7, 0xbf, 0x7f, 0x58, 0x2f, 0x93, 0x2d, 0x96, 0x75, 0x5a, 0x65, 0x82, 0xe4, 0x6b, 0xb8, 0xa0, 0x5b, 0x4d, 0x2a, 0x8b, 0x43, 0x66, 0xfc, 0xd1, 0xac, 0xae, 0x92, 0x61, 0xee, 0xd7, 0x64, 0xee, 0x1d, 0x52, 0x66, 0x05, 0x2e, 0x2f, 0xc8, 0x37, 0x06, 0xc0, 0xec, 0x9a, 0xc8, 0xeb, 0x8b, 0x23, 0xe7, 0x7c, 0xca, 0xac, 0xad, 0x16, 0x22, 0x44, 0x55, 0x42, 0xec, 0x13, 0xab, 0x10, 0x82, 0x8d, 0x23, 0x7f, 0x42, 0xbe, 0x35, 0xa0, 0xa4, 0x1e, 0x75, 0x51, 0xfb, 0xe7, 0x4c, 0xab, 0xa8, 0xfd, 0xf3, 0x66, 0x44, 0x6f, 0xca, 0xec, 0x75, 0x72, 0x23, 0x97, 0x3d, 0xf5, 0x02, 0x36, 0x9e, 0x59, 0xcd, 0x84, 0x8d, 0xd5, 0x03, 0x9f, 0xc8, 0xb9, 0x44, 0x7f, 0x21, 0x4b, 0xd3, 0x4c, 0x6f, 0xa4, 0xb2, 0x42, 0x85, 0x34, 0xd7, 0x25, 0xcd, 0x21, 0xa1, 0xab, 0x69, 0xc8, 0xcf, 0x06, 0xbc, 0x9c, 0xf5, 0x16, 0x52, 0x5f, 0x7e, 0xf3, 0x19, 0x2b, 0x33, 0xed, 0xb3, 0xca, 0x57, 0x77, 0x6b, 0x54, 0x57, 0xdd, 0xd1, 0x5d, 0xd2, 0xfe, 0x33, 0x21, 0x3f, 0x19, 0x70, 0x25, 0x63, 0x34, 0xe4, 0xcd, 0x55, 0x89, 0x4f, 0x7b, 0x9a, 0x59, 0x3f, 0xa3, 0x1a, 0x29, 0x1b, 0x92, 0xf2, 0x06, 0x79, 0x63, 0x11, 0xa5, 0xf4, 0x41, 0x36, 0x9e, 0xf3, 0xc8, 0x09, 0xf9, 0xc5, 0x80, 0xad, 0x02, 0x37, 0x22, 0xb7, 0x56, 0x8d, 0xf2, 0x22, 0x93, 0x33, 0x6f, 0xff, 0xc7, 0x53, 0xc8, 0xbe, 0x2f, 0xd9, 0x4d, 0xb2, 0x9d, 0x67, 0x57, 0xca, 0xd6, 0x9d, 0x27, 0xc7, 0x96, 0xf1, 0xf4, 0xd8, 0x32, 0xfe, 0x3a, 0xb6, 0x8c, 0xef, 0x4f, 0xac, 0xb5, 0xa7, 0x27, 0xd6, 0xda, 0x1f, 0x27, 0xd6, 0xda, 0x27, 0xd5, 0x30, 0x4a, 0xec, 0xa1, 0xef, 0xda, 0x09, 0x97, 0xa7, 0xeb, 0x11, 0x67, 0x1d, 0xc7, 0xe3, 0x71, 0xe4, 0x35, 0x7d, 0xf6, 0x95, 0x0e, 0xe6, 0x96, 0xe4, 0x6f, 0xb7, 0x9b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x1f, 0x6f, 0x64, 0x8a, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { // Params queries auction module params Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Auctions queries all auctions Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error) // GetAuction queries an auction GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) // GetBid queries an auction bid GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error) // GetBids queries all auction bids GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error) // AuctionsByBidder queries auctions by bidder AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error) // AuctionsByOwner queries auctions by owner AuctionsByOwner(ctx context.Context, in *QueryAuctionsByOwnerRequest, opts ...grpc.CallOption) (*QueryAuctionsByOwnerResponse, error) // GetAuctionModuleBalance queries the auction module account balance GetAuctionModuleBalance(ctx context.Context, in *QueryGetAuctionModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetAuctionModuleBalanceResponse, error) } type queryClient struct { cc grpc1.ClientConn } func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error) { out := new(QueryAuctionsResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/Auctions", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error) { out := new(QueryGetAuctionResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetAuction", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error) { out := new(QueryGetBidResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBid", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetBids(ctx context.Context, in *QueryGetBidsRequest, opts ...grpc.CallOption) (*QueryGetBidsResponse, error) { out := new(QueryGetBidsResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetBids", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) AuctionsByBidder(ctx context.Context, in *QueryAuctionsByBidderRequest, opts ...grpc.CallOption) (*QueryAuctionsByBidderResponse, error) { out := new(QueryAuctionsByBidderResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/AuctionsByBidder", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) AuctionsByOwner(ctx context.Context, in *QueryAuctionsByOwnerRequest, opts ...grpc.CallOption) (*QueryAuctionsByOwnerResponse, error) { out := new(QueryAuctionsByOwnerResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/AuctionsByOwner", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetAuctionModuleBalance(ctx context.Context, in *QueryGetAuctionModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetAuctionModuleBalanceResponse, error) { out := new(QueryGetAuctionModuleBalanceResponse) err := c.cc.Invoke(ctx, "/cerc.auction.v1.Query/GetAuctionModuleBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } // QueryServer is the server API for Query service. type QueryServer interface { // Params queries auction module params Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Auctions queries all auctions Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) // GetAuction queries an auction GetAuction(context.Context, *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error) // GetBid queries an auction bid GetBid(context.Context, *QueryGetBidRequest) (*QueryGetBidResponse, error) // GetBids queries all auction bids GetBids(context.Context, *QueryGetBidsRequest) (*QueryGetBidsResponse, error) // AuctionsByBidder queries auctions by bidder AuctionsByBidder(context.Context, *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) // AuctionsByOwner queries auctions by owner AuctionsByOwner(context.Context, *QueryAuctionsByOwnerRequest) (*QueryAuctionsByOwnerResponse, error) // GetAuctionModuleBalance queries the auction module account balance GetAuctionModuleBalance(context.Context, *QueryGetAuctionModuleBalanceRequest) (*QueryGetAuctionModuleBalanceResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } func (*UnimplementedQueryServer) Auctions(ctx context.Context, req *QueryAuctionsRequest) (*QueryAuctionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Auctions not implemented") } func (*UnimplementedQueryServer) GetAuction(ctx context.Context, req *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAuction not implemented") } func (*UnimplementedQueryServer) GetBid(ctx context.Context, req *QueryGetBidRequest) (*QueryGetBidResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBid not implemented") } func (*UnimplementedQueryServer) GetBids(ctx context.Context, req *QueryGetBidsRequest) (*QueryGetBidsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBids not implemented") } func (*UnimplementedQueryServer) AuctionsByBidder(ctx context.Context, req *QueryAuctionsByBidderRequest) (*QueryAuctionsByBidderResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuctionsByBidder not implemented") } func (*UnimplementedQueryServer) AuctionsByOwner(ctx context.Context, req *QueryAuctionsByOwnerRequest) (*QueryAuctionsByOwnerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuctionsByOwner not implemented") } func (*UnimplementedQueryServer) GetAuctionModuleBalance(ctx context.Context, req *QueryGetAuctionModuleBalanceRequest) (*QueryGetAuctionModuleBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAuctionModuleBalance not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryParamsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).Params(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_Auctions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryAuctionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).Auctions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/Auctions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Auctions(ctx, req.(*QueryAuctionsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetAuctionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetAuction(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/GetAuction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetAuction(ctx, req.(*QueryGetAuctionRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetBidRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetBid(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/GetBid", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetBid(ctx, req.(*QueryGetBidRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetBids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetBidsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetBids(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/GetBids", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetBids(ctx, req.(*QueryGetBidsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AuctionsByBidder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryAuctionsByBidderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).AuctionsByBidder(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/AuctionsByBidder", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AuctionsByBidder(ctx, req.(*QueryAuctionsByBidderRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AuctionsByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryAuctionsByOwnerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).AuctionsByOwner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/AuctionsByOwner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AuctionsByOwner(ctx, req.(*QueryAuctionsByOwnerRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetAuctionModuleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetAuctionModuleBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetAuctionModuleBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.auction.v1.Query/GetAuctionModuleBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetAuctionModuleBalance(ctx, req.(*QueryGetAuctionModuleBalanceRequest)) } return interceptor(ctx, in, info, handler) } var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "cerc.auction.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Auctions", Handler: _Query_Auctions_Handler, }, { MethodName: "GetAuction", Handler: _Query_GetAuction_Handler, }, { MethodName: "GetBid", Handler: _Query_GetBid_Handler, }, { MethodName: "GetBids", Handler: _Query_GetBids_Handler, }, { MethodName: "AuctionsByBidder", Handler: _Query_AuctionsByBidder_Handler, }, { MethodName: "AuctionsByOwner", Handler: _Query_AuctionsByOwner_Handler, }, { MethodName: "GetAuctionModuleBalance", Handler: _Query_GetAuctionModuleBalance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cerc/auction/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Params != nil { { size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryAuctionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryAuctionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.Auctions != nil { { size, err := m.Auctions.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetAuctionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetAuctionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintQuery(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetAuctionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetAuctionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Auction != nil { { size, err := m.Auction.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetBidRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetBidRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Bidder) > 0 { i -= len(m.Bidder) copy(dAtA[i:], m.Bidder) i = encodeVarintQuery(dAtA, i, uint64(len(m.Bidder))) i-- dAtA[i] = 0x12 } if len(m.AuctionId) > 0 { i -= len(m.AuctionId) copy(dAtA[i:], m.AuctionId) i = encodeVarintQuery(dAtA, i, uint64(len(m.AuctionId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetBidResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetBidResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Bid != nil { { size, err := m.Bid.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetBidsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetBidsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.AuctionId) > 0 { i -= len(m.AuctionId) copy(dAtA[i:], m.AuctionId) i = encodeVarintQuery(dAtA, i, uint64(len(m.AuctionId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetBidsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetBidsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Bids) > 0 { for iNdEx := len(m.Bids) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Bids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryAuctionsByBidderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsByBidderRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsByBidderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.BidderAddress) > 0 { i -= len(m.BidderAddress) copy(dAtA[i:], m.BidderAddress) i = encodeVarintQuery(dAtA, i, uint64(len(m.BidderAddress))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryAuctionsByBidderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsByBidderResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsByBidderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Auctions != nil { { size, err := m.Auctions.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryAuctionsByOwnerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintQuery(dAtA, i, uint64(len(m.OwnerAddress))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryAuctionsByOwnerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryAuctionsByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryAuctionsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Auctions != nil { { size, err := m.Auctions.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetAuctionModuleBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetAuctionModuleBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetAuctionModuleBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *QueryGetAuctionModuleBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetAuctionModuleBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetAuctionModuleBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Balance) > 0 { for iNdEx := len(m.Balance) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Balance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *QueryParamsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Params != nil { l = m.Params.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryAuctionsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryAuctionsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Auctions != nil { l = m.Auctions.Size() n += 1 + l + sovQuery(uint64(l)) } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetAuctionRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetAuctionResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Auction != nil { l = m.Auction.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetBidRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.AuctionId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } l = len(m.Bidder) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetBidResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Bid != nil { l = m.Bid.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetBidsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.AuctionId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetBidsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Bids) > 0 { for _, e := range m.Bids { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } return n } func (m *QueryAuctionsByBidderRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.BidderAddress) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryAuctionsByBidderResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Auctions != nil { l = m.Auctions.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryAuctionsByOwnerRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.OwnerAddress) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryAuctionsByOwnerResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Auctions != nil { l = m.Auctions.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetAuctionModuleBalanceRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *QueryGetAuctionModuleBalanceResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Balance) > 0 { for _, e := range m.Balance { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } return n } func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Params == nil { m.Params = &Params{} } if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Auctions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Auctions == nil { m.Auctions = &Auctions{} } if err := m.Auctions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetAuctionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetAuctionRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetAuctionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetAuctionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetAuctionResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetAuctionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Auction", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Auction == nil { m.Auction = &Auction{} } if err := m.Auction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetBidRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetBidRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetBidRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuctionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.AuctionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Bidder", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Bidder = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetBidResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetBidResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetBidResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Bid", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Bid == nil { m.Bid = &Bid{} } if err := m.Bid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetBidsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetBidsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetBidsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuctionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.AuctionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetBidsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetBidsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetBidsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Bids", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Bids = append(m.Bids, &Bid{}) if err := m.Bids[len(m.Bids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsByBidderRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsByBidderRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsByBidderRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BidderAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.BidderAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsByBidderResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsByBidderResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsByBidderResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Auctions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Auctions == nil { m.Auctions = &Auctions{} } if err := m.Auctions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsByOwnerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsByOwnerRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryAuctionsByOwnerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryAuctionsByOwnerResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryAuctionsByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Auctions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Auctions == nil { m.Auctions = &Auctions{} } if err := m.Auctions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetAuctionModuleBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetAuctionModuleBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetAuctionModuleBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetAuctionModuleBalanceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetAuctionModuleBalanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetAuctionModuleBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Balance = append(m.Balance, types.Coin{}) if err := m.Balance[len(m.Balance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthQuery } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupQuery } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthQuery } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )