github.com/InjectiveLabs/sdk-go@v1.53.0/chain/auction/types/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/auction/v1beta1/query.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	cosmossdk_io_math "cosmossdk.io/math"
     9  	fmt "fmt"
    10  	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
    11  	types "github.com/cosmos/cosmos-sdk/types"
    12  	_ "github.com/cosmos/gogoproto/gogoproto"
    13  	grpc1 "github.com/cosmos/gogoproto/grpc"
    14  	proto "github.com/cosmos/gogoproto/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // QueryAuctionParamsRequest is the request type for the Query/AuctionParams RPC
    36  // method.
    37  type QueryAuctionParamsRequest struct {
    38  }
    39  
    40  func (m *QueryAuctionParamsRequest) Reset()         { *m = QueryAuctionParamsRequest{} }
    41  func (m *QueryAuctionParamsRequest) String() string { return proto.CompactTextString(m) }
    42  func (*QueryAuctionParamsRequest) ProtoMessage()    {}
    43  func (*QueryAuctionParamsRequest) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_2ae80edbdb9fffb7, []int{0}
    45  }
    46  func (m *QueryAuctionParamsRequest) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *QueryAuctionParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	if deterministic {
    51  		return xxx_messageInfo_QueryAuctionParamsRequest.Marshal(b, m, deterministic)
    52  	} else {
    53  		b = b[:cap(b)]
    54  		n, err := m.MarshalToSizedBuffer(b)
    55  		if err != nil {
    56  			return nil, err
    57  		}
    58  		return b[:n], nil
    59  	}
    60  }
    61  func (m *QueryAuctionParamsRequest) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_QueryAuctionParamsRequest.Merge(m, src)
    63  }
    64  func (m *QueryAuctionParamsRequest) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *QueryAuctionParamsRequest) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_QueryAuctionParamsRequest.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_QueryAuctionParamsRequest proto.InternalMessageInfo
    72  
    73  // QueryAuctionParamsRequest is the response type for the Query/AuctionParams
    74  // RPC method.
    75  type QueryAuctionParamsResponse struct {
    76  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    77  }
    78  
    79  func (m *QueryAuctionParamsResponse) Reset()         { *m = QueryAuctionParamsResponse{} }
    80  func (m *QueryAuctionParamsResponse) String() string { return proto.CompactTextString(m) }
    81  func (*QueryAuctionParamsResponse) ProtoMessage()    {}
    82  func (*QueryAuctionParamsResponse) Descriptor() ([]byte, []int) {
    83  	return fileDescriptor_2ae80edbdb9fffb7, []int{1}
    84  }
    85  func (m *QueryAuctionParamsResponse) XXX_Unmarshal(b []byte) error {
    86  	return m.Unmarshal(b)
    87  }
    88  func (m *QueryAuctionParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    89  	if deterministic {
    90  		return xxx_messageInfo_QueryAuctionParamsResponse.Marshal(b, m, deterministic)
    91  	} else {
    92  		b = b[:cap(b)]
    93  		n, err := m.MarshalToSizedBuffer(b)
    94  		if err != nil {
    95  			return nil, err
    96  		}
    97  		return b[:n], nil
    98  	}
    99  }
   100  func (m *QueryAuctionParamsResponse) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_QueryAuctionParamsResponse.Merge(m, src)
   102  }
   103  func (m *QueryAuctionParamsResponse) XXX_Size() int {
   104  	return m.Size()
   105  }
   106  func (m *QueryAuctionParamsResponse) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_QueryAuctionParamsResponse.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_QueryAuctionParamsResponse proto.InternalMessageInfo
   111  
   112  func (m *QueryAuctionParamsResponse) GetParams() Params {
   113  	if m != nil {
   114  		return m.Params
   115  	}
   116  	return Params{}
   117  }
   118  
   119  // QueryCurrentAuctionBasketRequest is the request type for the
   120  // Query/CurrentAuctionBasket RPC method.
   121  type QueryCurrentAuctionBasketRequest struct {
   122  }
   123  
   124  func (m *QueryCurrentAuctionBasketRequest) Reset()         { *m = QueryCurrentAuctionBasketRequest{} }
   125  func (m *QueryCurrentAuctionBasketRequest) String() string { return proto.CompactTextString(m) }
   126  func (*QueryCurrentAuctionBasketRequest) ProtoMessage()    {}
   127  func (*QueryCurrentAuctionBasketRequest) Descriptor() ([]byte, []int) {
   128  	return fileDescriptor_2ae80edbdb9fffb7, []int{2}
   129  }
   130  func (m *QueryCurrentAuctionBasketRequest) XXX_Unmarshal(b []byte) error {
   131  	return m.Unmarshal(b)
   132  }
   133  func (m *QueryCurrentAuctionBasketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   134  	if deterministic {
   135  		return xxx_messageInfo_QueryCurrentAuctionBasketRequest.Marshal(b, m, deterministic)
   136  	} else {
   137  		b = b[:cap(b)]
   138  		n, err := m.MarshalToSizedBuffer(b)
   139  		if err != nil {
   140  			return nil, err
   141  		}
   142  		return b[:n], nil
   143  	}
   144  }
   145  func (m *QueryCurrentAuctionBasketRequest) XXX_Merge(src proto.Message) {
   146  	xxx_messageInfo_QueryCurrentAuctionBasketRequest.Merge(m, src)
   147  }
   148  func (m *QueryCurrentAuctionBasketRequest) XXX_Size() int {
   149  	return m.Size()
   150  }
   151  func (m *QueryCurrentAuctionBasketRequest) XXX_DiscardUnknown() {
   152  	xxx_messageInfo_QueryCurrentAuctionBasketRequest.DiscardUnknown(m)
   153  }
   154  
   155  var xxx_messageInfo_QueryCurrentAuctionBasketRequest proto.InternalMessageInfo
   156  
   157  // QueryCurrentAuctionBasketResponse is the response type for the
   158  // Query/CurrentAuctionBasket RPC method.
   159  type QueryCurrentAuctionBasketResponse struct {
   160  	// amount describes the amount put on auction
   161  	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
   162  	// auctionRound describes current auction round
   163  	AuctionRound uint64 `protobuf:"varint,2,opt,name=auctionRound,proto3" json:"auctionRound,omitempty"`
   164  	// auctionClosingTime describes auction close time for the round
   165  	AuctionClosingTime int64 `protobuf:"varint,3,opt,name=auctionClosingTime,proto3" json:"auctionClosingTime,omitempty"`
   166  	// highestBidder describes highest bidder on current round
   167  	HighestBidder string `protobuf:"bytes,4,opt,name=highestBidder,proto3" json:"highestBidder,omitempty"`
   168  	// highestBidAmount describes highest bid amount on current round
   169  	HighestBidAmount cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=highestBidAmount,proto3,customtype=cosmossdk.io/math.Int" json:"highestBidAmount"`
   170  }
   171  
   172  func (m *QueryCurrentAuctionBasketResponse) Reset()         { *m = QueryCurrentAuctionBasketResponse{} }
   173  func (m *QueryCurrentAuctionBasketResponse) String() string { return proto.CompactTextString(m) }
   174  func (*QueryCurrentAuctionBasketResponse) ProtoMessage()    {}
   175  func (*QueryCurrentAuctionBasketResponse) Descriptor() ([]byte, []int) {
   176  	return fileDescriptor_2ae80edbdb9fffb7, []int{3}
   177  }
   178  func (m *QueryCurrentAuctionBasketResponse) XXX_Unmarshal(b []byte) error {
   179  	return m.Unmarshal(b)
   180  }
   181  func (m *QueryCurrentAuctionBasketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   182  	if deterministic {
   183  		return xxx_messageInfo_QueryCurrentAuctionBasketResponse.Marshal(b, m, deterministic)
   184  	} else {
   185  		b = b[:cap(b)]
   186  		n, err := m.MarshalToSizedBuffer(b)
   187  		if err != nil {
   188  			return nil, err
   189  		}
   190  		return b[:n], nil
   191  	}
   192  }
   193  func (m *QueryCurrentAuctionBasketResponse) XXX_Merge(src proto.Message) {
   194  	xxx_messageInfo_QueryCurrentAuctionBasketResponse.Merge(m, src)
   195  }
   196  func (m *QueryCurrentAuctionBasketResponse) XXX_Size() int {
   197  	return m.Size()
   198  }
   199  func (m *QueryCurrentAuctionBasketResponse) XXX_DiscardUnknown() {
   200  	xxx_messageInfo_QueryCurrentAuctionBasketResponse.DiscardUnknown(m)
   201  }
   202  
   203  var xxx_messageInfo_QueryCurrentAuctionBasketResponse proto.InternalMessageInfo
   204  
   205  func (m *QueryCurrentAuctionBasketResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins {
   206  	if m != nil {
   207  		return m.Amount
   208  	}
   209  	return nil
   210  }
   211  
   212  func (m *QueryCurrentAuctionBasketResponse) GetAuctionRound() uint64 {
   213  	if m != nil {
   214  		return m.AuctionRound
   215  	}
   216  	return 0
   217  }
   218  
   219  func (m *QueryCurrentAuctionBasketResponse) GetAuctionClosingTime() int64 {
   220  	if m != nil {
   221  		return m.AuctionClosingTime
   222  	}
   223  	return 0
   224  }
   225  
   226  func (m *QueryCurrentAuctionBasketResponse) GetHighestBidder() string {
   227  	if m != nil {
   228  		return m.HighestBidder
   229  	}
   230  	return ""
   231  }
   232  
   233  // QueryModuleStateRequest is the request type for the Query/AuctionModuleState
   234  // RPC method.
   235  type QueryModuleStateRequest struct {
   236  }
   237  
   238  func (m *QueryModuleStateRequest) Reset()         { *m = QueryModuleStateRequest{} }
   239  func (m *QueryModuleStateRequest) String() string { return proto.CompactTextString(m) }
   240  func (*QueryModuleStateRequest) ProtoMessage()    {}
   241  func (*QueryModuleStateRequest) Descriptor() ([]byte, []int) {
   242  	return fileDescriptor_2ae80edbdb9fffb7, []int{4}
   243  }
   244  func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error {
   245  	return m.Unmarshal(b)
   246  }
   247  func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   248  	if deterministic {
   249  		return xxx_messageInfo_QueryModuleStateRequest.Marshal(b, m, deterministic)
   250  	} else {
   251  		b = b[:cap(b)]
   252  		n, err := m.MarshalToSizedBuffer(b)
   253  		if err != nil {
   254  			return nil, err
   255  		}
   256  		return b[:n], nil
   257  	}
   258  }
   259  func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message) {
   260  	xxx_messageInfo_QueryModuleStateRequest.Merge(m, src)
   261  }
   262  func (m *QueryModuleStateRequest) XXX_Size() int {
   263  	return m.Size()
   264  }
   265  func (m *QueryModuleStateRequest) XXX_DiscardUnknown() {
   266  	xxx_messageInfo_QueryModuleStateRequest.DiscardUnknown(m)
   267  }
   268  
   269  var xxx_messageInfo_QueryModuleStateRequest proto.InternalMessageInfo
   270  
   271  // QueryModuleStateResponse is the response type for the
   272  // Query/AuctionModuleState RPC method.
   273  type QueryModuleStateResponse struct {
   274  	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
   275  }
   276  
   277  func (m *QueryModuleStateResponse) Reset()         { *m = QueryModuleStateResponse{} }
   278  func (m *QueryModuleStateResponse) String() string { return proto.CompactTextString(m) }
   279  func (*QueryModuleStateResponse) ProtoMessage()    {}
   280  func (*QueryModuleStateResponse) Descriptor() ([]byte, []int) {
   281  	return fileDescriptor_2ae80edbdb9fffb7, []int{5}
   282  }
   283  func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error {
   284  	return m.Unmarshal(b)
   285  }
   286  func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   287  	if deterministic {
   288  		return xxx_messageInfo_QueryModuleStateResponse.Marshal(b, m, deterministic)
   289  	} else {
   290  		b = b[:cap(b)]
   291  		n, err := m.MarshalToSizedBuffer(b)
   292  		if err != nil {
   293  			return nil, err
   294  		}
   295  		return b[:n], nil
   296  	}
   297  }
   298  func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message) {
   299  	xxx_messageInfo_QueryModuleStateResponse.Merge(m, src)
   300  }
   301  func (m *QueryModuleStateResponse) XXX_Size() int {
   302  	return m.Size()
   303  }
   304  func (m *QueryModuleStateResponse) XXX_DiscardUnknown() {
   305  	xxx_messageInfo_QueryModuleStateResponse.DiscardUnknown(m)
   306  }
   307  
   308  var xxx_messageInfo_QueryModuleStateResponse proto.InternalMessageInfo
   309  
   310  func (m *QueryModuleStateResponse) GetState() *GenesisState {
   311  	if m != nil {
   312  		return m.State
   313  	}
   314  	return nil
   315  }
   316  
   317  type QueryLastAuctionResultRequest struct {
   318  }
   319  
   320  func (m *QueryLastAuctionResultRequest) Reset()         { *m = QueryLastAuctionResultRequest{} }
   321  func (m *QueryLastAuctionResultRequest) String() string { return proto.CompactTextString(m) }
   322  func (*QueryLastAuctionResultRequest) ProtoMessage()    {}
   323  func (*QueryLastAuctionResultRequest) Descriptor() ([]byte, []int) {
   324  	return fileDescriptor_2ae80edbdb9fffb7, []int{6}
   325  }
   326  func (m *QueryLastAuctionResultRequest) XXX_Unmarshal(b []byte) error {
   327  	return m.Unmarshal(b)
   328  }
   329  func (m *QueryLastAuctionResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   330  	if deterministic {
   331  		return xxx_messageInfo_QueryLastAuctionResultRequest.Marshal(b, m, deterministic)
   332  	} else {
   333  		b = b[:cap(b)]
   334  		n, err := m.MarshalToSizedBuffer(b)
   335  		if err != nil {
   336  			return nil, err
   337  		}
   338  		return b[:n], nil
   339  	}
   340  }
   341  func (m *QueryLastAuctionResultRequest) XXX_Merge(src proto.Message) {
   342  	xxx_messageInfo_QueryLastAuctionResultRequest.Merge(m, src)
   343  }
   344  func (m *QueryLastAuctionResultRequest) XXX_Size() int {
   345  	return m.Size()
   346  }
   347  func (m *QueryLastAuctionResultRequest) XXX_DiscardUnknown() {
   348  	xxx_messageInfo_QueryLastAuctionResultRequest.DiscardUnknown(m)
   349  }
   350  
   351  var xxx_messageInfo_QueryLastAuctionResultRequest proto.InternalMessageInfo
   352  
   353  type QueryLastAuctionResultResponse struct {
   354  	LastAuctionResult *LastAuctionResult `protobuf:"bytes,1,opt,name=last_auction_result,json=lastAuctionResult,proto3" json:"last_auction_result,omitempty"`
   355  }
   356  
   357  func (m *QueryLastAuctionResultResponse) Reset()         { *m = QueryLastAuctionResultResponse{} }
   358  func (m *QueryLastAuctionResultResponse) String() string { return proto.CompactTextString(m) }
   359  func (*QueryLastAuctionResultResponse) ProtoMessage()    {}
   360  func (*QueryLastAuctionResultResponse) Descriptor() ([]byte, []int) {
   361  	return fileDescriptor_2ae80edbdb9fffb7, []int{7}
   362  }
   363  func (m *QueryLastAuctionResultResponse) XXX_Unmarshal(b []byte) error {
   364  	return m.Unmarshal(b)
   365  }
   366  func (m *QueryLastAuctionResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   367  	if deterministic {
   368  		return xxx_messageInfo_QueryLastAuctionResultResponse.Marshal(b, m, deterministic)
   369  	} else {
   370  		b = b[:cap(b)]
   371  		n, err := m.MarshalToSizedBuffer(b)
   372  		if err != nil {
   373  			return nil, err
   374  		}
   375  		return b[:n], nil
   376  	}
   377  }
   378  func (m *QueryLastAuctionResultResponse) XXX_Merge(src proto.Message) {
   379  	xxx_messageInfo_QueryLastAuctionResultResponse.Merge(m, src)
   380  }
   381  func (m *QueryLastAuctionResultResponse) XXX_Size() int {
   382  	return m.Size()
   383  }
   384  func (m *QueryLastAuctionResultResponse) XXX_DiscardUnknown() {
   385  	xxx_messageInfo_QueryLastAuctionResultResponse.DiscardUnknown(m)
   386  }
   387  
   388  var xxx_messageInfo_QueryLastAuctionResultResponse proto.InternalMessageInfo
   389  
   390  func (m *QueryLastAuctionResultResponse) GetLastAuctionResult() *LastAuctionResult {
   391  	if m != nil {
   392  		return m.LastAuctionResult
   393  	}
   394  	return nil
   395  }
   396  
   397  func init() {
   398  	proto.RegisterType((*QueryAuctionParamsRequest)(nil), "injective.auction.v1beta1.QueryAuctionParamsRequest")
   399  	proto.RegisterType((*QueryAuctionParamsResponse)(nil), "injective.auction.v1beta1.QueryAuctionParamsResponse")
   400  	proto.RegisterType((*QueryCurrentAuctionBasketRequest)(nil), "injective.auction.v1beta1.QueryCurrentAuctionBasketRequest")
   401  	proto.RegisterType((*QueryCurrentAuctionBasketResponse)(nil), "injective.auction.v1beta1.QueryCurrentAuctionBasketResponse")
   402  	proto.RegisterType((*QueryModuleStateRequest)(nil), "injective.auction.v1beta1.QueryModuleStateRequest")
   403  	proto.RegisterType((*QueryModuleStateResponse)(nil), "injective.auction.v1beta1.QueryModuleStateResponse")
   404  	proto.RegisterType((*QueryLastAuctionResultRequest)(nil), "injective.auction.v1beta1.QueryLastAuctionResultRequest")
   405  	proto.RegisterType((*QueryLastAuctionResultResponse)(nil), "injective.auction.v1beta1.QueryLastAuctionResultResponse")
   406  }
   407  
   408  func init() {
   409  	proto.RegisterFile("injective/auction/v1beta1/query.proto", fileDescriptor_2ae80edbdb9fffb7)
   410  }
   411  
   412  var fileDescriptor_2ae80edbdb9fffb7 = []byte{
   413  	// 698 bytes of a gzipped FileDescriptorProto
   414  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x4f, 0x13, 0x4d,
   415  	0x18, 0xef, 0x00, 0x25, 0x79, 0x87, 0x97, 0xe4, 0x65, 0x5e, 0x8c, 0xed, 0x2a, 0xdb, 0xb2, 0x6a,
   416  	0x28, 0x89, 0xec, 0x42, 0x51, 0xa3, 0x51, 0x63, 0x28, 0x07, 0x43, 0x02, 0x89, 0xae, 0x5e, 0x34,
   417  	0x1a, 0x32, 0xdd, 0x4e, 0xb6, 0x23, 0xdd, 0x99, 0xb2, 0x33, 0x4b, 0xc2, 0xc5, 0x83, 0x9f, 0xc0,
   418  	0xc4, 0x0f, 0x61, 0xe2, 0xc1, 0x4f, 0xe0, 0xc1, 0x23, 0x17, 0x13, 0x12, 0x2f, 0xc6, 0x03, 0x1a,
   419  	0xe0, 0x83, 0x98, 0x9d, 0x99, 0x16, 0xb0, 0xed, 0x36, 0x70, 0xea, 0xee, 0xf3, 0x3c, 0xbf, 0xdf,
   420  	0xf3, 0x7b, 0xfe, 0x6d, 0xe1, 0x0d, 0xca, 0xde, 0x90, 0x40, 0xd2, 0x1d, 0xe2, 0xe1, 0x24, 0x90,
   421  	0x94, 0x33, 0x6f, 0x67, 0xa9, 0x4e, 0x24, 0x5e, 0xf2, 0xb6, 0x13, 0x12, 0xef, 0xba, 0xed, 0x98,
   422  	0x4b, 0x8e, 0x8a, 0xdd, 0x30, 0xd7, 0x84, 0xb9, 0x26, 0xcc, 0xba, 0x1a, 0x72, 0x1e, 0xb6, 0x88,
   423  	0x87, 0xdb, 0xd4, 0xc3, 0x8c, 0x71, 0x89, 0x53, 0xb7, 0xd0, 0x40, 0x6b, 0x6e, 0x30, 0x7f, 0x87,
   424  	0x68, 0x68, 0x60, 0x48, 0x18, 0x11, 0xb4, 0xc3, 0x38, 0x1d, 0xf2, 0x90, 0xab, 0x47, 0x2f, 0x7d,
   425  	0x32, 0x56, 0x3b, 0xe0, 0x22, 0xe2, 0xc2, 0xab, 0x63, 0x41, 0xba, 0xc0, 0x80, 0x53, 0x43, 0xef,
   426  	0x5c, 0x81, 0xc5, 0xa7, 0x69, 0x3d, 0x2b, 0x9a, 0xfb, 0x09, 0x8e, 0x71, 0x24, 0x7c, 0xb2, 0x9d,
   427  	0x10, 0x21, 0x9d, 0xd7, 0xd0, 0xea, 0xe7, 0x14, 0x6d, 0xce, 0x04, 0x41, 0x8f, 0xe0, 0x78, 0x5b,
   428  	0x59, 0x0a, 0xa0, 0x0c, 0x2a, 0x13, 0xd5, 0x59, 0x77, 0x60, 0x33, 0x5c, 0x0d, 0xad, 0x8d, 0xed,
   429  	0x1d, 0x94, 0x72, 0xbe, 0x81, 0x39, 0x0e, 0x2c, 0x2b, 0xfa, 0xd5, 0x24, 0x8e, 0x09, 0x93, 0x26,
   430  	0x4b, 0x0d, 0x8b, 0x2d, 0x22, 0x3b, 0x12, 0xbe, 0x8d, 0xc0, 0xd9, 0x8c, 0x20, 0x23, 0x25, 0x80,
   431  	0xe3, 0x38, 0xe2, 0x09, 0x93, 0x05, 0x50, 0x1e, 0xad, 0x4c, 0x54, 0x8b, 0xae, 0x2e, 0xdb, 0x4d,
   432  	0xcb, 0xee, 0x8a, 0x58, 0xe5, 0x94, 0xd5, 0x16, 0x53, 0x09, 0x9f, 0x7e, 0x95, 0x2a, 0x21, 0x95,
   433  	0xcd, 0xa4, 0xee, 0x06, 0x3c, 0xf2, 0x4c, 0x8f, 0xf4, 0xcf, 0x82, 0x68, 0x6c, 0x79, 0x72, 0xb7,
   434  	0x4d, 0x84, 0x02, 0x08, 0xdf, 0x50, 0x23, 0x07, 0xfe, 0x6b, 0xca, 0xf2, 0x79, 0xc2, 0x1a, 0x85,
   435  	0x91, 0x32, 0xa8, 0x8c, 0xf9, 0x67, 0x6c, 0xc8, 0x85, 0xc8, 0xbc, 0xaf, 0xb6, 0xb8, 0xa0, 0x2c,
   436  	0x7c, 0x4e, 0x23, 0x52, 0x18, 0x2d, 0x83, 0xca, 0xa8, 0xdf, 0xc7, 0x83, 0xae, 0xc3, 0xc9, 0x26,
   437  	0x0d, 0x9b, 0x44, 0xc8, 0x1a, 0x6d, 0x34, 0x48, 0x5c, 0x18, 0x2b, 0x83, 0xca, 0x3f, 0xfe, 0x59,
   438  	0x23, 0x5a, 0x83, 0xff, 0x9d, 0x18, 0x56, 0x74, 0xa1, 0xf9, 0x34, 0xb0, 0x36, 0x93, 0x56, 0xf3,
   439  	0xf3, 0xa0, 0x74, 0x49, 0x6b, 0x17, 0x8d, 0x2d, 0x97, 0x72, 0x2f, 0xc2, 0xb2, 0xe9, 0xae, 0x31,
   440  	0xe9, 0xf7, 0xc0, 0x9c, 0x22, 0xbc, 0xac, 0xda, 0xb9, 0xc1, 0x1b, 0x49, 0x8b, 0x3c, 0x93, 0x58,
   441  	0x92, 0x4e, 0xab, 0x5f, 0xc0, 0x42, 0xaf, 0xcb, 0x34, 0xf8, 0x21, 0xcc, 0x8b, 0xd4, 0x60, 0x46,
   442  	0x3d, 0x97, 0x31, 0xea, 0xc7, 0x7a, 0x2b, 0x35, 0x5e, 0xa3, 0x9c, 0x12, 0x9c, 0x51, 0xd4, 0xeb,
   443  	0x58, 0x74, 0x26, 0xe8, 0x13, 0x91, 0xb4, 0xba, 0x63, 0x7e, 0x0b, 0xed, 0x41, 0x01, 0x46, 0xc1,
   444  	0x2b, 0xf8, 0x7f, 0x0b, 0x0b, 0xb9, 0x69, 0xd2, 0x6d, 0xc6, 0xca, 0x6d, 0xf4, 0xdc, 0xcc, 0xd0,
   445  	0xd3, 0x4b, 0x39, 0xd5, 0xfa, 0xdb, 0x54, 0x3d, 0xce, 0xc3, 0xbc, 0x12, 0x80, 0x3e, 0x02, 0x38,
   446  	0x79, 0x66, 0xdf, 0xd1, 0xad, 0x0c, 0xf2, 0x81, 0xb7, 0x63, 0xdd, 0x3e, 0x27, 0x4a, 0x97, 0xe9,
   447  	0xcc, 0xbf, 0xfb, 0x7e, 0xfc, 0x61, 0xe4, 0x1a, 0x9a, 0xf5, 0x06, 0xdf, 0xbd, 0x3e, 0x1f, 0xf4,
   448  	0x05, 0xc0, 0xe9, 0x7e, 0x57, 0x81, 0xee, 0x0f, 0x4b, 0x9d, 0x71, 0x70, 0xd6, 0x83, 0x8b, 0x81,
   449  	0xcf, 0x21, 0xbf, 0xae, 0x55, 0x7e, 0x06, 0x10, 0x19, 0x92, 0x53, 0x1b, 0x87, 0xaa, 0xc3, 0xf2,
   450  	0xf7, 0x6e, 0xae, 0xb5, 0x7c, 0x2e, 0x8c, 0x91, 0xea, 0x29, 0xa9, 0xf3, 0x68, 0x2e, 0x43, 0x6a,
   451  	0xa4, 0x70, 0x9b, 0x6a, 0x89, 0xd1, 0x57, 0x00, 0xa7, 0x7a, 0x96, 0x09, 0xdd, 0x1d, 0x96, 0x7b,
   452  	0xd0, 0xce, 0x5b, 0xf7, 0x2e, 0x80, 0x34, 0xda, 0xef, 0x28, 0xed, 0x8b, 0xc8, 0xcd, 0xd0, 0xde,
   453  	0xe7, 0x5a, 0x6a, 0xe1, 0xde, 0xa1, 0x0d, 0xf6, 0x0f, 0x6d, 0xf0, 0xfb, 0xd0, 0x06, 0xef, 0x8f,
   454  	0xec, 0xdc, 0xfe, 0x91, 0x9d, 0xfb, 0x71, 0x64, 0xe7, 0x5e, 0x6e, 0x9c, 0xfa, 0x1c, 0xae, 0x75,
   455  	0x38, 0xd7, 0x71, 0x5d, 0x9c, 0x64, 0x58, 0x08, 0x78, 0x4c, 0x4e, 0xbf, 0x36, 0x31, 0x65, 0xa6,
   456  	0x45, 0xa2, 0x9b, 0x5e, 0x7d, 0x39, 0xeb, 0xe3, 0xea, 0xdf, 0x65, 0xf9, 0x4f, 0x00, 0x00, 0x00,
   457  	0xff, 0xff, 0xa1, 0xdd, 0x40, 0x94, 0x47, 0x07, 0x00, 0x00,
   458  }
   459  
   460  // Reference imports to suppress errors if they are not otherwise used.
   461  var _ context.Context
   462  var _ grpc.ClientConn
   463  
   464  // This is a compile-time assertion to ensure that this generated file
   465  // is compatible with the grpc package it is being compiled against.
   466  const _ = grpc.SupportPackageIsVersion4
   467  
   468  // QueryClient is the client API for Query service.
   469  //
   470  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   471  type QueryClient interface {
   472  	// Retrieves auction params
   473  	AuctionParams(ctx context.Context, in *QueryAuctionParamsRequest, opts ...grpc.CallOption) (*QueryAuctionParamsResponse, error)
   474  	// Retrieves current auction basket with current highest bid and bidder
   475  	CurrentAuctionBasket(ctx context.Context, in *QueryCurrentAuctionBasketRequest, opts ...grpc.CallOption) (*QueryCurrentAuctionBasketResponse, error)
   476  	// Retrieves the entire auction module's state
   477  	AuctionModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error)
   478  	LastAuctionResult(ctx context.Context, in *QueryLastAuctionResultRequest, opts ...grpc.CallOption) (*QueryLastAuctionResultResponse, error)
   479  }
   480  
   481  type queryClient struct {
   482  	cc grpc1.ClientConn
   483  }
   484  
   485  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
   486  	return &queryClient{cc}
   487  }
   488  
   489  func (c *queryClient) AuctionParams(ctx context.Context, in *QueryAuctionParamsRequest, opts ...grpc.CallOption) (*QueryAuctionParamsResponse, error) {
   490  	out := new(QueryAuctionParamsResponse)
   491  	err := c.cc.Invoke(ctx, "/injective.auction.v1beta1.Query/AuctionParams", in, out, opts...)
   492  	if err != nil {
   493  		return nil, err
   494  	}
   495  	return out, nil
   496  }
   497  
   498  func (c *queryClient) CurrentAuctionBasket(ctx context.Context, in *QueryCurrentAuctionBasketRequest, opts ...grpc.CallOption) (*QueryCurrentAuctionBasketResponse, error) {
   499  	out := new(QueryCurrentAuctionBasketResponse)
   500  	err := c.cc.Invoke(ctx, "/injective.auction.v1beta1.Query/CurrentAuctionBasket", in, out, opts...)
   501  	if err != nil {
   502  		return nil, err
   503  	}
   504  	return out, nil
   505  }
   506  
   507  func (c *queryClient) AuctionModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) {
   508  	out := new(QueryModuleStateResponse)
   509  	err := c.cc.Invoke(ctx, "/injective.auction.v1beta1.Query/AuctionModuleState", in, out, opts...)
   510  	if err != nil {
   511  		return nil, err
   512  	}
   513  	return out, nil
   514  }
   515  
   516  func (c *queryClient) LastAuctionResult(ctx context.Context, in *QueryLastAuctionResultRequest, opts ...grpc.CallOption) (*QueryLastAuctionResultResponse, error) {
   517  	out := new(QueryLastAuctionResultResponse)
   518  	err := c.cc.Invoke(ctx, "/injective.auction.v1beta1.Query/LastAuctionResult", in, out, opts...)
   519  	if err != nil {
   520  		return nil, err
   521  	}
   522  	return out, nil
   523  }
   524  
   525  // QueryServer is the server API for Query service.
   526  type QueryServer interface {
   527  	// Retrieves auction params
   528  	AuctionParams(context.Context, *QueryAuctionParamsRequest) (*QueryAuctionParamsResponse, error)
   529  	// Retrieves current auction basket with current highest bid and bidder
   530  	CurrentAuctionBasket(context.Context, *QueryCurrentAuctionBasketRequest) (*QueryCurrentAuctionBasketResponse, error)
   531  	// Retrieves the entire auction module's state
   532  	AuctionModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
   533  	LastAuctionResult(context.Context, *QueryLastAuctionResultRequest) (*QueryLastAuctionResultResponse, error)
   534  }
   535  
   536  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
   537  type UnimplementedQueryServer struct {
   538  }
   539  
   540  func (*UnimplementedQueryServer) AuctionParams(ctx context.Context, req *QueryAuctionParamsRequest) (*QueryAuctionParamsResponse, error) {
   541  	return nil, status.Errorf(codes.Unimplemented, "method AuctionParams not implemented")
   542  }
   543  func (*UnimplementedQueryServer) CurrentAuctionBasket(ctx context.Context, req *QueryCurrentAuctionBasketRequest) (*QueryCurrentAuctionBasketResponse, error) {
   544  	return nil, status.Errorf(codes.Unimplemented, "method CurrentAuctionBasket not implemented")
   545  }
   546  func (*UnimplementedQueryServer) AuctionModuleState(ctx context.Context, req *QueryModuleStateRequest) (*QueryModuleStateResponse, error) {
   547  	return nil, status.Errorf(codes.Unimplemented, "method AuctionModuleState not implemented")
   548  }
   549  func (*UnimplementedQueryServer) LastAuctionResult(ctx context.Context, req *QueryLastAuctionResultRequest) (*QueryLastAuctionResultResponse, error) {
   550  	return nil, status.Errorf(codes.Unimplemented, "method LastAuctionResult not implemented")
   551  }
   552  
   553  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
   554  	s.RegisterService(&_Query_serviceDesc, srv)
   555  }
   556  
   557  func _Query_AuctionParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   558  	in := new(QueryAuctionParamsRequest)
   559  	if err := dec(in); err != nil {
   560  		return nil, err
   561  	}
   562  	if interceptor == nil {
   563  		return srv.(QueryServer).AuctionParams(ctx, in)
   564  	}
   565  	info := &grpc.UnaryServerInfo{
   566  		Server:     srv,
   567  		FullMethod: "/injective.auction.v1beta1.Query/AuctionParams",
   568  	}
   569  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   570  		return srv.(QueryServer).AuctionParams(ctx, req.(*QueryAuctionParamsRequest))
   571  	}
   572  	return interceptor(ctx, in, info, handler)
   573  }
   574  
   575  func _Query_CurrentAuctionBasket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   576  	in := new(QueryCurrentAuctionBasketRequest)
   577  	if err := dec(in); err != nil {
   578  		return nil, err
   579  	}
   580  	if interceptor == nil {
   581  		return srv.(QueryServer).CurrentAuctionBasket(ctx, in)
   582  	}
   583  	info := &grpc.UnaryServerInfo{
   584  		Server:     srv,
   585  		FullMethod: "/injective.auction.v1beta1.Query/CurrentAuctionBasket",
   586  	}
   587  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   588  		return srv.(QueryServer).CurrentAuctionBasket(ctx, req.(*QueryCurrentAuctionBasketRequest))
   589  	}
   590  	return interceptor(ctx, in, info, handler)
   591  }
   592  
   593  func _Query_AuctionModuleState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   594  	in := new(QueryModuleStateRequest)
   595  	if err := dec(in); err != nil {
   596  		return nil, err
   597  	}
   598  	if interceptor == nil {
   599  		return srv.(QueryServer).AuctionModuleState(ctx, in)
   600  	}
   601  	info := &grpc.UnaryServerInfo{
   602  		Server:     srv,
   603  		FullMethod: "/injective.auction.v1beta1.Query/AuctionModuleState",
   604  	}
   605  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   606  		return srv.(QueryServer).AuctionModuleState(ctx, req.(*QueryModuleStateRequest))
   607  	}
   608  	return interceptor(ctx, in, info, handler)
   609  }
   610  
   611  func _Query_LastAuctionResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   612  	in := new(QueryLastAuctionResultRequest)
   613  	if err := dec(in); err != nil {
   614  		return nil, err
   615  	}
   616  	if interceptor == nil {
   617  		return srv.(QueryServer).LastAuctionResult(ctx, in)
   618  	}
   619  	info := &grpc.UnaryServerInfo{
   620  		Server:     srv,
   621  		FullMethod: "/injective.auction.v1beta1.Query/LastAuctionResult",
   622  	}
   623  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   624  		return srv.(QueryServer).LastAuctionResult(ctx, req.(*QueryLastAuctionResultRequest))
   625  	}
   626  	return interceptor(ctx, in, info, handler)
   627  }
   628  
   629  var _Query_serviceDesc = grpc.ServiceDesc{
   630  	ServiceName: "injective.auction.v1beta1.Query",
   631  	HandlerType: (*QueryServer)(nil),
   632  	Methods: []grpc.MethodDesc{
   633  		{
   634  			MethodName: "AuctionParams",
   635  			Handler:    _Query_AuctionParams_Handler,
   636  		},
   637  		{
   638  			MethodName: "CurrentAuctionBasket",
   639  			Handler:    _Query_CurrentAuctionBasket_Handler,
   640  		},
   641  		{
   642  			MethodName: "AuctionModuleState",
   643  			Handler:    _Query_AuctionModuleState_Handler,
   644  		},
   645  		{
   646  			MethodName: "LastAuctionResult",
   647  			Handler:    _Query_LastAuctionResult_Handler,
   648  		},
   649  	},
   650  	Streams:  []grpc.StreamDesc{},
   651  	Metadata: "injective/auction/v1beta1/query.proto",
   652  }
   653  
   654  func (m *QueryAuctionParamsRequest) Marshal() (dAtA []byte, err error) {
   655  	size := m.Size()
   656  	dAtA = make([]byte, size)
   657  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   658  	if err != nil {
   659  		return nil, err
   660  	}
   661  	return dAtA[:n], nil
   662  }
   663  
   664  func (m *QueryAuctionParamsRequest) MarshalTo(dAtA []byte) (int, error) {
   665  	size := m.Size()
   666  	return m.MarshalToSizedBuffer(dAtA[:size])
   667  }
   668  
   669  func (m *QueryAuctionParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   670  	i := len(dAtA)
   671  	_ = i
   672  	var l int
   673  	_ = l
   674  	return len(dAtA) - i, nil
   675  }
   676  
   677  func (m *QueryAuctionParamsResponse) Marshal() (dAtA []byte, err error) {
   678  	size := m.Size()
   679  	dAtA = make([]byte, size)
   680  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   681  	if err != nil {
   682  		return nil, err
   683  	}
   684  	return dAtA[:n], nil
   685  }
   686  
   687  func (m *QueryAuctionParamsResponse) MarshalTo(dAtA []byte) (int, error) {
   688  	size := m.Size()
   689  	return m.MarshalToSizedBuffer(dAtA[:size])
   690  }
   691  
   692  func (m *QueryAuctionParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   693  	i := len(dAtA)
   694  	_ = i
   695  	var l int
   696  	_ = l
   697  	{
   698  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   699  		if err != nil {
   700  			return 0, err
   701  		}
   702  		i -= size
   703  		i = encodeVarintQuery(dAtA, i, uint64(size))
   704  	}
   705  	i--
   706  	dAtA[i] = 0xa
   707  	return len(dAtA) - i, nil
   708  }
   709  
   710  func (m *QueryCurrentAuctionBasketRequest) Marshal() (dAtA []byte, err error) {
   711  	size := m.Size()
   712  	dAtA = make([]byte, size)
   713  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   714  	if err != nil {
   715  		return nil, err
   716  	}
   717  	return dAtA[:n], nil
   718  }
   719  
   720  func (m *QueryCurrentAuctionBasketRequest) MarshalTo(dAtA []byte) (int, error) {
   721  	size := m.Size()
   722  	return m.MarshalToSizedBuffer(dAtA[:size])
   723  }
   724  
   725  func (m *QueryCurrentAuctionBasketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   726  	i := len(dAtA)
   727  	_ = i
   728  	var l int
   729  	_ = l
   730  	return len(dAtA) - i, nil
   731  }
   732  
   733  func (m *QueryCurrentAuctionBasketResponse) Marshal() (dAtA []byte, err error) {
   734  	size := m.Size()
   735  	dAtA = make([]byte, size)
   736  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   737  	if err != nil {
   738  		return nil, err
   739  	}
   740  	return dAtA[:n], nil
   741  }
   742  
   743  func (m *QueryCurrentAuctionBasketResponse) MarshalTo(dAtA []byte) (int, error) {
   744  	size := m.Size()
   745  	return m.MarshalToSizedBuffer(dAtA[:size])
   746  }
   747  
   748  func (m *QueryCurrentAuctionBasketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   749  	i := len(dAtA)
   750  	_ = i
   751  	var l int
   752  	_ = l
   753  	{
   754  		size := m.HighestBidAmount.Size()
   755  		i -= size
   756  		if _, err := m.HighestBidAmount.MarshalTo(dAtA[i:]); err != nil {
   757  			return 0, err
   758  		}
   759  		i = encodeVarintQuery(dAtA, i, uint64(size))
   760  	}
   761  	i--
   762  	dAtA[i] = 0x2a
   763  	if len(m.HighestBidder) > 0 {
   764  		i -= len(m.HighestBidder)
   765  		copy(dAtA[i:], m.HighestBidder)
   766  		i = encodeVarintQuery(dAtA, i, uint64(len(m.HighestBidder)))
   767  		i--
   768  		dAtA[i] = 0x22
   769  	}
   770  	if m.AuctionClosingTime != 0 {
   771  		i = encodeVarintQuery(dAtA, i, uint64(m.AuctionClosingTime))
   772  		i--
   773  		dAtA[i] = 0x18
   774  	}
   775  	if m.AuctionRound != 0 {
   776  		i = encodeVarintQuery(dAtA, i, uint64(m.AuctionRound))
   777  		i--
   778  		dAtA[i] = 0x10
   779  	}
   780  	if len(m.Amount) > 0 {
   781  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
   782  			{
   783  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   784  				if err != nil {
   785  					return 0, err
   786  				}
   787  				i -= size
   788  				i = encodeVarintQuery(dAtA, i, uint64(size))
   789  			}
   790  			i--
   791  			dAtA[i] = 0xa
   792  		}
   793  	}
   794  	return len(dAtA) - i, nil
   795  }
   796  
   797  func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error) {
   798  	size := m.Size()
   799  	dAtA = make([]byte, size)
   800  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   801  	if err != nil {
   802  		return nil, err
   803  	}
   804  	return dAtA[:n], nil
   805  }
   806  
   807  func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error) {
   808  	size := m.Size()
   809  	return m.MarshalToSizedBuffer(dAtA[:size])
   810  }
   811  
   812  func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   813  	i := len(dAtA)
   814  	_ = i
   815  	var l int
   816  	_ = l
   817  	return len(dAtA) - i, nil
   818  }
   819  
   820  func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error) {
   821  	size := m.Size()
   822  	dAtA = make([]byte, size)
   823  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   824  	if err != nil {
   825  		return nil, err
   826  	}
   827  	return dAtA[:n], nil
   828  }
   829  
   830  func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error) {
   831  	size := m.Size()
   832  	return m.MarshalToSizedBuffer(dAtA[:size])
   833  }
   834  
   835  func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   836  	i := len(dAtA)
   837  	_ = i
   838  	var l int
   839  	_ = l
   840  	if m.State != nil {
   841  		{
   842  			size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
   843  			if err != nil {
   844  				return 0, err
   845  			}
   846  			i -= size
   847  			i = encodeVarintQuery(dAtA, i, uint64(size))
   848  		}
   849  		i--
   850  		dAtA[i] = 0xa
   851  	}
   852  	return len(dAtA) - i, nil
   853  }
   854  
   855  func (m *QueryLastAuctionResultRequest) Marshal() (dAtA []byte, err error) {
   856  	size := m.Size()
   857  	dAtA = make([]byte, size)
   858  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   859  	if err != nil {
   860  		return nil, err
   861  	}
   862  	return dAtA[:n], nil
   863  }
   864  
   865  func (m *QueryLastAuctionResultRequest) MarshalTo(dAtA []byte) (int, error) {
   866  	size := m.Size()
   867  	return m.MarshalToSizedBuffer(dAtA[:size])
   868  }
   869  
   870  func (m *QueryLastAuctionResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   871  	i := len(dAtA)
   872  	_ = i
   873  	var l int
   874  	_ = l
   875  	return len(dAtA) - i, nil
   876  }
   877  
   878  func (m *QueryLastAuctionResultResponse) Marshal() (dAtA []byte, err error) {
   879  	size := m.Size()
   880  	dAtA = make([]byte, size)
   881  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   882  	if err != nil {
   883  		return nil, err
   884  	}
   885  	return dAtA[:n], nil
   886  }
   887  
   888  func (m *QueryLastAuctionResultResponse) MarshalTo(dAtA []byte) (int, error) {
   889  	size := m.Size()
   890  	return m.MarshalToSizedBuffer(dAtA[:size])
   891  }
   892  
   893  func (m *QueryLastAuctionResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   894  	i := len(dAtA)
   895  	_ = i
   896  	var l int
   897  	_ = l
   898  	if m.LastAuctionResult != nil {
   899  		{
   900  			size, err := m.LastAuctionResult.MarshalToSizedBuffer(dAtA[:i])
   901  			if err != nil {
   902  				return 0, err
   903  			}
   904  			i -= size
   905  			i = encodeVarintQuery(dAtA, i, uint64(size))
   906  		}
   907  		i--
   908  		dAtA[i] = 0xa
   909  	}
   910  	return len(dAtA) - i, nil
   911  }
   912  
   913  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
   914  	offset -= sovQuery(v)
   915  	base := offset
   916  	for v >= 1<<7 {
   917  		dAtA[offset] = uint8(v&0x7f | 0x80)
   918  		v >>= 7
   919  		offset++
   920  	}
   921  	dAtA[offset] = uint8(v)
   922  	return base
   923  }
   924  func (m *QueryAuctionParamsRequest) Size() (n int) {
   925  	if m == nil {
   926  		return 0
   927  	}
   928  	var l int
   929  	_ = l
   930  	return n
   931  }
   932  
   933  func (m *QueryAuctionParamsResponse) Size() (n int) {
   934  	if m == nil {
   935  		return 0
   936  	}
   937  	var l int
   938  	_ = l
   939  	l = m.Params.Size()
   940  	n += 1 + l + sovQuery(uint64(l))
   941  	return n
   942  }
   943  
   944  func (m *QueryCurrentAuctionBasketRequest) Size() (n int) {
   945  	if m == nil {
   946  		return 0
   947  	}
   948  	var l int
   949  	_ = l
   950  	return n
   951  }
   952  
   953  func (m *QueryCurrentAuctionBasketResponse) Size() (n int) {
   954  	if m == nil {
   955  		return 0
   956  	}
   957  	var l int
   958  	_ = l
   959  	if len(m.Amount) > 0 {
   960  		for _, e := range m.Amount {
   961  			l = e.Size()
   962  			n += 1 + l + sovQuery(uint64(l))
   963  		}
   964  	}
   965  	if m.AuctionRound != 0 {
   966  		n += 1 + sovQuery(uint64(m.AuctionRound))
   967  	}
   968  	if m.AuctionClosingTime != 0 {
   969  		n += 1 + sovQuery(uint64(m.AuctionClosingTime))
   970  	}
   971  	l = len(m.HighestBidder)
   972  	if l > 0 {
   973  		n += 1 + l + sovQuery(uint64(l))
   974  	}
   975  	l = m.HighestBidAmount.Size()
   976  	n += 1 + l + sovQuery(uint64(l))
   977  	return n
   978  }
   979  
   980  func (m *QueryModuleStateRequest) Size() (n int) {
   981  	if m == nil {
   982  		return 0
   983  	}
   984  	var l int
   985  	_ = l
   986  	return n
   987  }
   988  
   989  func (m *QueryModuleStateResponse) Size() (n int) {
   990  	if m == nil {
   991  		return 0
   992  	}
   993  	var l int
   994  	_ = l
   995  	if m.State != nil {
   996  		l = m.State.Size()
   997  		n += 1 + l + sovQuery(uint64(l))
   998  	}
   999  	return n
  1000  }
  1001  
  1002  func (m *QueryLastAuctionResultRequest) Size() (n int) {
  1003  	if m == nil {
  1004  		return 0
  1005  	}
  1006  	var l int
  1007  	_ = l
  1008  	return n
  1009  }
  1010  
  1011  func (m *QueryLastAuctionResultResponse) Size() (n int) {
  1012  	if m == nil {
  1013  		return 0
  1014  	}
  1015  	var l int
  1016  	_ = l
  1017  	if m.LastAuctionResult != nil {
  1018  		l = m.LastAuctionResult.Size()
  1019  		n += 1 + l + sovQuery(uint64(l))
  1020  	}
  1021  	return n
  1022  }
  1023  
  1024  func sovQuery(x uint64) (n int) {
  1025  	return (math_bits.Len64(x|1) + 6) / 7
  1026  }
  1027  func sozQuery(x uint64) (n int) {
  1028  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1029  }
  1030  func (m *QueryAuctionParamsRequest) Unmarshal(dAtA []byte) error {
  1031  	l := len(dAtA)
  1032  	iNdEx := 0
  1033  	for iNdEx < l {
  1034  		preIndex := iNdEx
  1035  		var wire uint64
  1036  		for shift := uint(0); ; shift += 7 {
  1037  			if shift >= 64 {
  1038  				return ErrIntOverflowQuery
  1039  			}
  1040  			if iNdEx >= l {
  1041  				return io.ErrUnexpectedEOF
  1042  			}
  1043  			b := dAtA[iNdEx]
  1044  			iNdEx++
  1045  			wire |= uint64(b&0x7F) << shift
  1046  			if b < 0x80 {
  1047  				break
  1048  			}
  1049  		}
  1050  		fieldNum := int32(wire >> 3)
  1051  		wireType := int(wire & 0x7)
  1052  		if wireType == 4 {
  1053  			return fmt.Errorf("proto: QueryAuctionParamsRequest: wiretype end group for non-group")
  1054  		}
  1055  		if fieldNum <= 0 {
  1056  			return fmt.Errorf("proto: QueryAuctionParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1057  		}
  1058  		switch fieldNum {
  1059  		default:
  1060  			iNdEx = preIndex
  1061  			skippy, err := skipQuery(dAtA[iNdEx:])
  1062  			if err != nil {
  1063  				return err
  1064  			}
  1065  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1066  				return ErrInvalidLengthQuery
  1067  			}
  1068  			if (iNdEx + skippy) > l {
  1069  				return io.ErrUnexpectedEOF
  1070  			}
  1071  			iNdEx += skippy
  1072  		}
  1073  	}
  1074  
  1075  	if iNdEx > l {
  1076  		return io.ErrUnexpectedEOF
  1077  	}
  1078  	return nil
  1079  }
  1080  func (m *QueryAuctionParamsResponse) Unmarshal(dAtA []byte) error {
  1081  	l := len(dAtA)
  1082  	iNdEx := 0
  1083  	for iNdEx < l {
  1084  		preIndex := iNdEx
  1085  		var wire uint64
  1086  		for shift := uint(0); ; shift += 7 {
  1087  			if shift >= 64 {
  1088  				return ErrIntOverflowQuery
  1089  			}
  1090  			if iNdEx >= l {
  1091  				return io.ErrUnexpectedEOF
  1092  			}
  1093  			b := dAtA[iNdEx]
  1094  			iNdEx++
  1095  			wire |= uint64(b&0x7F) << shift
  1096  			if b < 0x80 {
  1097  				break
  1098  			}
  1099  		}
  1100  		fieldNum := int32(wire >> 3)
  1101  		wireType := int(wire & 0x7)
  1102  		if wireType == 4 {
  1103  			return fmt.Errorf("proto: QueryAuctionParamsResponse: wiretype end group for non-group")
  1104  		}
  1105  		if fieldNum <= 0 {
  1106  			return fmt.Errorf("proto: QueryAuctionParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1107  		}
  1108  		switch fieldNum {
  1109  		case 1:
  1110  			if wireType != 2 {
  1111  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  1112  			}
  1113  			var msglen int
  1114  			for shift := uint(0); ; shift += 7 {
  1115  				if shift >= 64 {
  1116  					return ErrIntOverflowQuery
  1117  				}
  1118  				if iNdEx >= l {
  1119  					return io.ErrUnexpectedEOF
  1120  				}
  1121  				b := dAtA[iNdEx]
  1122  				iNdEx++
  1123  				msglen |= int(b&0x7F) << shift
  1124  				if b < 0x80 {
  1125  					break
  1126  				}
  1127  			}
  1128  			if msglen < 0 {
  1129  				return ErrInvalidLengthQuery
  1130  			}
  1131  			postIndex := iNdEx + msglen
  1132  			if postIndex < 0 {
  1133  				return ErrInvalidLengthQuery
  1134  			}
  1135  			if postIndex > l {
  1136  				return io.ErrUnexpectedEOF
  1137  			}
  1138  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1139  				return err
  1140  			}
  1141  			iNdEx = postIndex
  1142  		default:
  1143  			iNdEx = preIndex
  1144  			skippy, err := skipQuery(dAtA[iNdEx:])
  1145  			if err != nil {
  1146  				return err
  1147  			}
  1148  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1149  				return ErrInvalidLengthQuery
  1150  			}
  1151  			if (iNdEx + skippy) > l {
  1152  				return io.ErrUnexpectedEOF
  1153  			}
  1154  			iNdEx += skippy
  1155  		}
  1156  	}
  1157  
  1158  	if iNdEx > l {
  1159  		return io.ErrUnexpectedEOF
  1160  	}
  1161  	return nil
  1162  }
  1163  func (m *QueryCurrentAuctionBasketRequest) Unmarshal(dAtA []byte) error {
  1164  	l := len(dAtA)
  1165  	iNdEx := 0
  1166  	for iNdEx < l {
  1167  		preIndex := iNdEx
  1168  		var wire uint64
  1169  		for shift := uint(0); ; shift += 7 {
  1170  			if shift >= 64 {
  1171  				return ErrIntOverflowQuery
  1172  			}
  1173  			if iNdEx >= l {
  1174  				return io.ErrUnexpectedEOF
  1175  			}
  1176  			b := dAtA[iNdEx]
  1177  			iNdEx++
  1178  			wire |= uint64(b&0x7F) << shift
  1179  			if b < 0x80 {
  1180  				break
  1181  			}
  1182  		}
  1183  		fieldNum := int32(wire >> 3)
  1184  		wireType := int(wire & 0x7)
  1185  		if wireType == 4 {
  1186  			return fmt.Errorf("proto: QueryCurrentAuctionBasketRequest: wiretype end group for non-group")
  1187  		}
  1188  		if fieldNum <= 0 {
  1189  			return fmt.Errorf("proto: QueryCurrentAuctionBasketRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1190  		}
  1191  		switch fieldNum {
  1192  		default:
  1193  			iNdEx = preIndex
  1194  			skippy, err := skipQuery(dAtA[iNdEx:])
  1195  			if err != nil {
  1196  				return err
  1197  			}
  1198  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1199  				return ErrInvalidLengthQuery
  1200  			}
  1201  			if (iNdEx + skippy) > l {
  1202  				return io.ErrUnexpectedEOF
  1203  			}
  1204  			iNdEx += skippy
  1205  		}
  1206  	}
  1207  
  1208  	if iNdEx > l {
  1209  		return io.ErrUnexpectedEOF
  1210  	}
  1211  	return nil
  1212  }
  1213  func (m *QueryCurrentAuctionBasketResponse) Unmarshal(dAtA []byte) error {
  1214  	l := len(dAtA)
  1215  	iNdEx := 0
  1216  	for iNdEx < l {
  1217  		preIndex := iNdEx
  1218  		var wire uint64
  1219  		for shift := uint(0); ; shift += 7 {
  1220  			if shift >= 64 {
  1221  				return ErrIntOverflowQuery
  1222  			}
  1223  			if iNdEx >= l {
  1224  				return io.ErrUnexpectedEOF
  1225  			}
  1226  			b := dAtA[iNdEx]
  1227  			iNdEx++
  1228  			wire |= uint64(b&0x7F) << shift
  1229  			if b < 0x80 {
  1230  				break
  1231  			}
  1232  		}
  1233  		fieldNum := int32(wire >> 3)
  1234  		wireType := int(wire & 0x7)
  1235  		if wireType == 4 {
  1236  			return fmt.Errorf("proto: QueryCurrentAuctionBasketResponse: wiretype end group for non-group")
  1237  		}
  1238  		if fieldNum <= 0 {
  1239  			return fmt.Errorf("proto: QueryCurrentAuctionBasketResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1240  		}
  1241  		switch fieldNum {
  1242  		case 1:
  1243  			if wireType != 2 {
  1244  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  1245  			}
  1246  			var msglen int
  1247  			for shift := uint(0); ; shift += 7 {
  1248  				if shift >= 64 {
  1249  					return ErrIntOverflowQuery
  1250  				}
  1251  				if iNdEx >= l {
  1252  					return io.ErrUnexpectedEOF
  1253  				}
  1254  				b := dAtA[iNdEx]
  1255  				iNdEx++
  1256  				msglen |= int(b&0x7F) << shift
  1257  				if b < 0x80 {
  1258  					break
  1259  				}
  1260  			}
  1261  			if msglen < 0 {
  1262  				return ErrInvalidLengthQuery
  1263  			}
  1264  			postIndex := iNdEx + msglen
  1265  			if postIndex < 0 {
  1266  				return ErrInvalidLengthQuery
  1267  			}
  1268  			if postIndex > l {
  1269  				return io.ErrUnexpectedEOF
  1270  			}
  1271  			m.Amount = append(m.Amount, types.Coin{})
  1272  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1273  				return err
  1274  			}
  1275  			iNdEx = postIndex
  1276  		case 2:
  1277  			if wireType != 0 {
  1278  				return fmt.Errorf("proto: wrong wireType = %d for field AuctionRound", wireType)
  1279  			}
  1280  			m.AuctionRound = 0
  1281  			for shift := uint(0); ; shift += 7 {
  1282  				if shift >= 64 {
  1283  					return ErrIntOverflowQuery
  1284  				}
  1285  				if iNdEx >= l {
  1286  					return io.ErrUnexpectedEOF
  1287  				}
  1288  				b := dAtA[iNdEx]
  1289  				iNdEx++
  1290  				m.AuctionRound |= uint64(b&0x7F) << shift
  1291  				if b < 0x80 {
  1292  					break
  1293  				}
  1294  			}
  1295  		case 3:
  1296  			if wireType != 0 {
  1297  				return fmt.Errorf("proto: wrong wireType = %d for field AuctionClosingTime", wireType)
  1298  			}
  1299  			m.AuctionClosingTime = 0
  1300  			for shift := uint(0); ; shift += 7 {
  1301  				if shift >= 64 {
  1302  					return ErrIntOverflowQuery
  1303  				}
  1304  				if iNdEx >= l {
  1305  					return io.ErrUnexpectedEOF
  1306  				}
  1307  				b := dAtA[iNdEx]
  1308  				iNdEx++
  1309  				m.AuctionClosingTime |= int64(b&0x7F) << shift
  1310  				if b < 0x80 {
  1311  					break
  1312  				}
  1313  			}
  1314  		case 4:
  1315  			if wireType != 2 {
  1316  				return fmt.Errorf("proto: wrong wireType = %d for field HighestBidder", wireType)
  1317  			}
  1318  			var stringLen uint64
  1319  			for shift := uint(0); ; shift += 7 {
  1320  				if shift >= 64 {
  1321  					return ErrIntOverflowQuery
  1322  				}
  1323  				if iNdEx >= l {
  1324  					return io.ErrUnexpectedEOF
  1325  				}
  1326  				b := dAtA[iNdEx]
  1327  				iNdEx++
  1328  				stringLen |= uint64(b&0x7F) << shift
  1329  				if b < 0x80 {
  1330  					break
  1331  				}
  1332  			}
  1333  			intStringLen := int(stringLen)
  1334  			if intStringLen < 0 {
  1335  				return ErrInvalidLengthQuery
  1336  			}
  1337  			postIndex := iNdEx + intStringLen
  1338  			if postIndex < 0 {
  1339  				return ErrInvalidLengthQuery
  1340  			}
  1341  			if postIndex > l {
  1342  				return io.ErrUnexpectedEOF
  1343  			}
  1344  			m.HighestBidder = string(dAtA[iNdEx:postIndex])
  1345  			iNdEx = postIndex
  1346  		case 5:
  1347  			if wireType != 2 {
  1348  				return fmt.Errorf("proto: wrong wireType = %d for field HighestBidAmount", wireType)
  1349  			}
  1350  			var stringLen uint64
  1351  			for shift := uint(0); ; shift += 7 {
  1352  				if shift >= 64 {
  1353  					return ErrIntOverflowQuery
  1354  				}
  1355  				if iNdEx >= l {
  1356  					return io.ErrUnexpectedEOF
  1357  				}
  1358  				b := dAtA[iNdEx]
  1359  				iNdEx++
  1360  				stringLen |= uint64(b&0x7F) << shift
  1361  				if b < 0x80 {
  1362  					break
  1363  				}
  1364  			}
  1365  			intStringLen := int(stringLen)
  1366  			if intStringLen < 0 {
  1367  				return ErrInvalidLengthQuery
  1368  			}
  1369  			postIndex := iNdEx + intStringLen
  1370  			if postIndex < 0 {
  1371  				return ErrInvalidLengthQuery
  1372  			}
  1373  			if postIndex > l {
  1374  				return io.ErrUnexpectedEOF
  1375  			}
  1376  			if err := m.HighestBidAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1377  				return err
  1378  			}
  1379  			iNdEx = postIndex
  1380  		default:
  1381  			iNdEx = preIndex
  1382  			skippy, err := skipQuery(dAtA[iNdEx:])
  1383  			if err != nil {
  1384  				return err
  1385  			}
  1386  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1387  				return ErrInvalidLengthQuery
  1388  			}
  1389  			if (iNdEx + skippy) > l {
  1390  				return io.ErrUnexpectedEOF
  1391  			}
  1392  			iNdEx += skippy
  1393  		}
  1394  	}
  1395  
  1396  	if iNdEx > l {
  1397  		return io.ErrUnexpectedEOF
  1398  	}
  1399  	return nil
  1400  }
  1401  func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error {
  1402  	l := len(dAtA)
  1403  	iNdEx := 0
  1404  	for iNdEx < l {
  1405  		preIndex := iNdEx
  1406  		var wire uint64
  1407  		for shift := uint(0); ; shift += 7 {
  1408  			if shift >= 64 {
  1409  				return ErrIntOverflowQuery
  1410  			}
  1411  			if iNdEx >= l {
  1412  				return io.ErrUnexpectedEOF
  1413  			}
  1414  			b := dAtA[iNdEx]
  1415  			iNdEx++
  1416  			wire |= uint64(b&0x7F) << shift
  1417  			if b < 0x80 {
  1418  				break
  1419  			}
  1420  		}
  1421  		fieldNum := int32(wire >> 3)
  1422  		wireType := int(wire & 0x7)
  1423  		if wireType == 4 {
  1424  			return fmt.Errorf("proto: QueryModuleStateRequest: wiretype end group for non-group")
  1425  		}
  1426  		if fieldNum <= 0 {
  1427  			return fmt.Errorf("proto: QueryModuleStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1428  		}
  1429  		switch fieldNum {
  1430  		default:
  1431  			iNdEx = preIndex
  1432  			skippy, err := skipQuery(dAtA[iNdEx:])
  1433  			if err != nil {
  1434  				return err
  1435  			}
  1436  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1437  				return ErrInvalidLengthQuery
  1438  			}
  1439  			if (iNdEx + skippy) > l {
  1440  				return io.ErrUnexpectedEOF
  1441  			}
  1442  			iNdEx += skippy
  1443  		}
  1444  	}
  1445  
  1446  	if iNdEx > l {
  1447  		return io.ErrUnexpectedEOF
  1448  	}
  1449  	return nil
  1450  }
  1451  func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error {
  1452  	l := len(dAtA)
  1453  	iNdEx := 0
  1454  	for iNdEx < l {
  1455  		preIndex := iNdEx
  1456  		var wire uint64
  1457  		for shift := uint(0); ; shift += 7 {
  1458  			if shift >= 64 {
  1459  				return ErrIntOverflowQuery
  1460  			}
  1461  			if iNdEx >= l {
  1462  				return io.ErrUnexpectedEOF
  1463  			}
  1464  			b := dAtA[iNdEx]
  1465  			iNdEx++
  1466  			wire |= uint64(b&0x7F) << shift
  1467  			if b < 0x80 {
  1468  				break
  1469  			}
  1470  		}
  1471  		fieldNum := int32(wire >> 3)
  1472  		wireType := int(wire & 0x7)
  1473  		if wireType == 4 {
  1474  			return fmt.Errorf("proto: QueryModuleStateResponse: wiretype end group for non-group")
  1475  		}
  1476  		if fieldNum <= 0 {
  1477  			return fmt.Errorf("proto: QueryModuleStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1478  		}
  1479  		switch fieldNum {
  1480  		case 1:
  1481  			if wireType != 2 {
  1482  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1483  			}
  1484  			var msglen int
  1485  			for shift := uint(0); ; shift += 7 {
  1486  				if shift >= 64 {
  1487  					return ErrIntOverflowQuery
  1488  				}
  1489  				if iNdEx >= l {
  1490  					return io.ErrUnexpectedEOF
  1491  				}
  1492  				b := dAtA[iNdEx]
  1493  				iNdEx++
  1494  				msglen |= int(b&0x7F) << shift
  1495  				if b < 0x80 {
  1496  					break
  1497  				}
  1498  			}
  1499  			if msglen < 0 {
  1500  				return ErrInvalidLengthQuery
  1501  			}
  1502  			postIndex := iNdEx + msglen
  1503  			if postIndex < 0 {
  1504  				return ErrInvalidLengthQuery
  1505  			}
  1506  			if postIndex > l {
  1507  				return io.ErrUnexpectedEOF
  1508  			}
  1509  			if m.State == nil {
  1510  				m.State = &GenesisState{}
  1511  			}
  1512  			if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1513  				return err
  1514  			}
  1515  			iNdEx = postIndex
  1516  		default:
  1517  			iNdEx = preIndex
  1518  			skippy, err := skipQuery(dAtA[iNdEx:])
  1519  			if err != nil {
  1520  				return err
  1521  			}
  1522  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1523  				return ErrInvalidLengthQuery
  1524  			}
  1525  			if (iNdEx + skippy) > l {
  1526  				return io.ErrUnexpectedEOF
  1527  			}
  1528  			iNdEx += skippy
  1529  		}
  1530  	}
  1531  
  1532  	if iNdEx > l {
  1533  		return io.ErrUnexpectedEOF
  1534  	}
  1535  	return nil
  1536  }
  1537  func (m *QueryLastAuctionResultRequest) Unmarshal(dAtA []byte) error {
  1538  	l := len(dAtA)
  1539  	iNdEx := 0
  1540  	for iNdEx < l {
  1541  		preIndex := iNdEx
  1542  		var wire uint64
  1543  		for shift := uint(0); ; shift += 7 {
  1544  			if shift >= 64 {
  1545  				return ErrIntOverflowQuery
  1546  			}
  1547  			if iNdEx >= l {
  1548  				return io.ErrUnexpectedEOF
  1549  			}
  1550  			b := dAtA[iNdEx]
  1551  			iNdEx++
  1552  			wire |= uint64(b&0x7F) << shift
  1553  			if b < 0x80 {
  1554  				break
  1555  			}
  1556  		}
  1557  		fieldNum := int32(wire >> 3)
  1558  		wireType := int(wire & 0x7)
  1559  		if wireType == 4 {
  1560  			return fmt.Errorf("proto: QueryLastAuctionResultRequest: wiretype end group for non-group")
  1561  		}
  1562  		if fieldNum <= 0 {
  1563  			return fmt.Errorf("proto: QueryLastAuctionResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1564  		}
  1565  		switch fieldNum {
  1566  		default:
  1567  			iNdEx = preIndex
  1568  			skippy, err := skipQuery(dAtA[iNdEx:])
  1569  			if err != nil {
  1570  				return err
  1571  			}
  1572  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1573  				return ErrInvalidLengthQuery
  1574  			}
  1575  			if (iNdEx + skippy) > l {
  1576  				return io.ErrUnexpectedEOF
  1577  			}
  1578  			iNdEx += skippy
  1579  		}
  1580  	}
  1581  
  1582  	if iNdEx > l {
  1583  		return io.ErrUnexpectedEOF
  1584  	}
  1585  	return nil
  1586  }
  1587  func (m *QueryLastAuctionResultResponse) Unmarshal(dAtA []byte) error {
  1588  	l := len(dAtA)
  1589  	iNdEx := 0
  1590  	for iNdEx < l {
  1591  		preIndex := iNdEx
  1592  		var wire uint64
  1593  		for shift := uint(0); ; shift += 7 {
  1594  			if shift >= 64 {
  1595  				return ErrIntOverflowQuery
  1596  			}
  1597  			if iNdEx >= l {
  1598  				return io.ErrUnexpectedEOF
  1599  			}
  1600  			b := dAtA[iNdEx]
  1601  			iNdEx++
  1602  			wire |= uint64(b&0x7F) << shift
  1603  			if b < 0x80 {
  1604  				break
  1605  			}
  1606  		}
  1607  		fieldNum := int32(wire >> 3)
  1608  		wireType := int(wire & 0x7)
  1609  		if wireType == 4 {
  1610  			return fmt.Errorf("proto: QueryLastAuctionResultResponse: wiretype end group for non-group")
  1611  		}
  1612  		if fieldNum <= 0 {
  1613  			return fmt.Errorf("proto: QueryLastAuctionResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1614  		}
  1615  		switch fieldNum {
  1616  		case 1:
  1617  			if wireType != 2 {
  1618  				return fmt.Errorf("proto: wrong wireType = %d for field LastAuctionResult", wireType)
  1619  			}
  1620  			var msglen int
  1621  			for shift := uint(0); ; shift += 7 {
  1622  				if shift >= 64 {
  1623  					return ErrIntOverflowQuery
  1624  				}
  1625  				if iNdEx >= l {
  1626  					return io.ErrUnexpectedEOF
  1627  				}
  1628  				b := dAtA[iNdEx]
  1629  				iNdEx++
  1630  				msglen |= int(b&0x7F) << shift
  1631  				if b < 0x80 {
  1632  					break
  1633  				}
  1634  			}
  1635  			if msglen < 0 {
  1636  				return ErrInvalidLengthQuery
  1637  			}
  1638  			postIndex := iNdEx + msglen
  1639  			if postIndex < 0 {
  1640  				return ErrInvalidLengthQuery
  1641  			}
  1642  			if postIndex > l {
  1643  				return io.ErrUnexpectedEOF
  1644  			}
  1645  			if m.LastAuctionResult == nil {
  1646  				m.LastAuctionResult = &LastAuctionResult{}
  1647  			}
  1648  			if err := m.LastAuctionResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1649  				return err
  1650  			}
  1651  			iNdEx = postIndex
  1652  		default:
  1653  			iNdEx = preIndex
  1654  			skippy, err := skipQuery(dAtA[iNdEx:])
  1655  			if err != nil {
  1656  				return err
  1657  			}
  1658  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1659  				return ErrInvalidLengthQuery
  1660  			}
  1661  			if (iNdEx + skippy) > l {
  1662  				return io.ErrUnexpectedEOF
  1663  			}
  1664  			iNdEx += skippy
  1665  		}
  1666  	}
  1667  
  1668  	if iNdEx > l {
  1669  		return io.ErrUnexpectedEOF
  1670  	}
  1671  	return nil
  1672  }
  1673  func skipQuery(dAtA []byte) (n int, err error) {
  1674  	l := len(dAtA)
  1675  	iNdEx := 0
  1676  	depth := 0
  1677  	for iNdEx < l {
  1678  		var wire uint64
  1679  		for shift := uint(0); ; shift += 7 {
  1680  			if shift >= 64 {
  1681  				return 0, ErrIntOverflowQuery
  1682  			}
  1683  			if iNdEx >= l {
  1684  				return 0, io.ErrUnexpectedEOF
  1685  			}
  1686  			b := dAtA[iNdEx]
  1687  			iNdEx++
  1688  			wire |= (uint64(b) & 0x7F) << shift
  1689  			if b < 0x80 {
  1690  				break
  1691  			}
  1692  		}
  1693  		wireType := int(wire & 0x7)
  1694  		switch wireType {
  1695  		case 0:
  1696  			for shift := uint(0); ; shift += 7 {
  1697  				if shift >= 64 {
  1698  					return 0, ErrIntOverflowQuery
  1699  				}
  1700  				if iNdEx >= l {
  1701  					return 0, io.ErrUnexpectedEOF
  1702  				}
  1703  				iNdEx++
  1704  				if dAtA[iNdEx-1] < 0x80 {
  1705  					break
  1706  				}
  1707  			}
  1708  		case 1:
  1709  			iNdEx += 8
  1710  		case 2:
  1711  			var length int
  1712  			for shift := uint(0); ; shift += 7 {
  1713  				if shift >= 64 {
  1714  					return 0, ErrIntOverflowQuery
  1715  				}
  1716  				if iNdEx >= l {
  1717  					return 0, io.ErrUnexpectedEOF
  1718  				}
  1719  				b := dAtA[iNdEx]
  1720  				iNdEx++
  1721  				length |= (int(b) & 0x7F) << shift
  1722  				if b < 0x80 {
  1723  					break
  1724  				}
  1725  			}
  1726  			if length < 0 {
  1727  				return 0, ErrInvalidLengthQuery
  1728  			}
  1729  			iNdEx += length
  1730  		case 3:
  1731  			depth++
  1732  		case 4:
  1733  			if depth == 0 {
  1734  				return 0, ErrUnexpectedEndOfGroupQuery
  1735  			}
  1736  			depth--
  1737  		case 5:
  1738  			iNdEx += 4
  1739  		default:
  1740  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1741  		}
  1742  		if iNdEx < 0 {
  1743  			return 0, ErrInvalidLengthQuery
  1744  		}
  1745  		if depth == 0 {
  1746  			return iNdEx, nil
  1747  		}
  1748  	}
  1749  	return 0, io.ErrUnexpectedEOF
  1750  }
  1751  
  1752  var (
  1753  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  1754  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  1755  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  1756  )