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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/insurance/v1beta1/query.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types "github.com/cosmos/cosmos-sdk/types"
    10  	_ "github.com/cosmos/gogoproto/gogoproto"
    11  	grpc1 "github.com/cosmos/gogoproto/grpc"
    12  	proto "github.com/cosmos/gogoproto/proto"
    13  	_ "google.golang.org/genproto/googleapis/api/annotations"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // QueryInsuranceParamsRequest is the request type for the Query/InsuranceParams
    34  // RPC method.
    35  type QueryInsuranceParamsRequest struct {
    36  }
    37  
    38  func (m *QueryInsuranceParamsRequest) Reset()         { *m = QueryInsuranceParamsRequest{} }
    39  func (m *QueryInsuranceParamsRequest) String() string { return proto.CompactTextString(m) }
    40  func (*QueryInsuranceParamsRequest) ProtoMessage()    {}
    41  func (*QueryInsuranceParamsRequest) Descriptor() ([]byte, []int) {
    42  	return fileDescriptor_74cebfe4cd18bca2, []int{0}
    43  }
    44  func (m *QueryInsuranceParamsRequest) XXX_Unmarshal(b []byte) error {
    45  	return m.Unmarshal(b)
    46  }
    47  func (m *QueryInsuranceParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	if deterministic {
    49  		return xxx_messageInfo_QueryInsuranceParamsRequest.Marshal(b, m, deterministic)
    50  	} else {
    51  		b = b[:cap(b)]
    52  		n, err := m.MarshalToSizedBuffer(b)
    53  		if err != nil {
    54  			return nil, err
    55  		}
    56  		return b[:n], nil
    57  	}
    58  }
    59  func (m *QueryInsuranceParamsRequest) XXX_Merge(src proto.Message) {
    60  	xxx_messageInfo_QueryInsuranceParamsRequest.Merge(m, src)
    61  }
    62  func (m *QueryInsuranceParamsRequest) XXX_Size() int {
    63  	return m.Size()
    64  }
    65  func (m *QueryInsuranceParamsRequest) XXX_DiscardUnknown() {
    66  	xxx_messageInfo_QueryInsuranceParamsRequest.DiscardUnknown(m)
    67  }
    68  
    69  var xxx_messageInfo_QueryInsuranceParamsRequest proto.InternalMessageInfo
    70  
    71  // QueryInsuranceParamsRequest is the response type for the
    72  // Query/InsuranceParams RPC method.
    73  type QueryInsuranceParamsResponse struct {
    74  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    75  }
    76  
    77  func (m *QueryInsuranceParamsResponse) Reset()         { *m = QueryInsuranceParamsResponse{} }
    78  func (m *QueryInsuranceParamsResponse) String() string { return proto.CompactTextString(m) }
    79  func (*QueryInsuranceParamsResponse) ProtoMessage()    {}
    80  func (*QueryInsuranceParamsResponse) Descriptor() ([]byte, []int) {
    81  	return fileDescriptor_74cebfe4cd18bca2, []int{1}
    82  }
    83  func (m *QueryInsuranceParamsResponse) XXX_Unmarshal(b []byte) error {
    84  	return m.Unmarshal(b)
    85  }
    86  func (m *QueryInsuranceParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    87  	if deterministic {
    88  		return xxx_messageInfo_QueryInsuranceParamsResponse.Marshal(b, m, deterministic)
    89  	} else {
    90  		b = b[:cap(b)]
    91  		n, err := m.MarshalToSizedBuffer(b)
    92  		if err != nil {
    93  			return nil, err
    94  		}
    95  		return b[:n], nil
    96  	}
    97  }
    98  func (m *QueryInsuranceParamsResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_QueryInsuranceParamsResponse.Merge(m, src)
   100  }
   101  func (m *QueryInsuranceParamsResponse) XXX_Size() int {
   102  	return m.Size()
   103  }
   104  func (m *QueryInsuranceParamsResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_QueryInsuranceParamsResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_QueryInsuranceParamsResponse proto.InternalMessageInfo
   109  
   110  func (m *QueryInsuranceParamsResponse) GetParams() Params {
   111  	if m != nil {
   112  		return m.Params
   113  	}
   114  	return Params{}
   115  }
   116  
   117  // QueryInsuranceFundRequest is the request type for the Query/InsuranceFunds
   118  // RPC method.
   119  type QueryInsuranceFundRequest struct {
   120  	// Market ID for the market
   121  	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
   122  }
   123  
   124  func (m *QueryInsuranceFundRequest) Reset()         { *m = QueryInsuranceFundRequest{} }
   125  func (m *QueryInsuranceFundRequest) String() string { return proto.CompactTextString(m) }
   126  func (*QueryInsuranceFundRequest) ProtoMessage()    {}
   127  func (*QueryInsuranceFundRequest) Descriptor() ([]byte, []int) {
   128  	return fileDescriptor_74cebfe4cd18bca2, []int{2}
   129  }
   130  func (m *QueryInsuranceFundRequest) XXX_Unmarshal(b []byte) error {
   131  	return m.Unmarshal(b)
   132  }
   133  func (m *QueryInsuranceFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   134  	if deterministic {
   135  		return xxx_messageInfo_QueryInsuranceFundRequest.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 *QueryInsuranceFundRequest) XXX_Merge(src proto.Message) {
   146  	xxx_messageInfo_QueryInsuranceFundRequest.Merge(m, src)
   147  }
   148  func (m *QueryInsuranceFundRequest) XXX_Size() int {
   149  	return m.Size()
   150  }
   151  func (m *QueryInsuranceFundRequest) XXX_DiscardUnknown() {
   152  	xxx_messageInfo_QueryInsuranceFundRequest.DiscardUnknown(m)
   153  }
   154  
   155  var xxx_messageInfo_QueryInsuranceFundRequest proto.InternalMessageInfo
   156  
   157  func (m *QueryInsuranceFundRequest) GetMarketId() string {
   158  	if m != nil {
   159  		return m.MarketId
   160  	}
   161  	return ""
   162  }
   163  
   164  // QueryInsuranceFundResponse is the response type for the Query/InsuranceFund
   165  // RPC method.
   166  type QueryInsuranceFundResponse struct {
   167  	Fund *InsuranceFund `protobuf:"bytes,1,opt,name=fund,proto3" json:"fund,omitempty"`
   168  }
   169  
   170  func (m *QueryInsuranceFundResponse) Reset()         { *m = QueryInsuranceFundResponse{} }
   171  func (m *QueryInsuranceFundResponse) String() string { return proto.CompactTextString(m) }
   172  func (*QueryInsuranceFundResponse) ProtoMessage()    {}
   173  func (*QueryInsuranceFundResponse) Descriptor() ([]byte, []int) {
   174  	return fileDescriptor_74cebfe4cd18bca2, []int{3}
   175  }
   176  func (m *QueryInsuranceFundResponse) XXX_Unmarshal(b []byte) error {
   177  	return m.Unmarshal(b)
   178  }
   179  func (m *QueryInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   180  	if deterministic {
   181  		return xxx_messageInfo_QueryInsuranceFundResponse.Marshal(b, m, deterministic)
   182  	} else {
   183  		b = b[:cap(b)]
   184  		n, err := m.MarshalToSizedBuffer(b)
   185  		if err != nil {
   186  			return nil, err
   187  		}
   188  		return b[:n], nil
   189  	}
   190  }
   191  func (m *QueryInsuranceFundResponse) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_QueryInsuranceFundResponse.Merge(m, src)
   193  }
   194  func (m *QueryInsuranceFundResponse) XXX_Size() int {
   195  	return m.Size()
   196  }
   197  func (m *QueryInsuranceFundResponse) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_QueryInsuranceFundResponse.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_QueryInsuranceFundResponse proto.InternalMessageInfo
   202  
   203  func (m *QueryInsuranceFundResponse) GetFund() *InsuranceFund {
   204  	if m != nil {
   205  		return m.Fund
   206  	}
   207  	return nil
   208  }
   209  
   210  // QueryInsuranceFundsRequest is the request type for the Query/InsuranceFunds
   211  // RPC method.
   212  type QueryInsuranceFundsRequest struct {
   213  }
   214  
   215  func (m *QueryInsuranceFundsRequest) Reset()         { *m = QueryInsuranceFundsRequest{} }
   216  func (m *QueryInsuranceFundsRequest) String() string { return proto.CompactTextString(m) }
   217  func (*QueryInsuranceFundsRequest) ProtoMessage()    {}
   218  func (*QueryInsuranceFundsRequest) Descriptor() ([]byte, []int) {
   219  	return fileDescriptor_74cebfe4cd18bca2, []int{4}
   220  }
   221  func (m *QueryInsuranceFundsRequest) XXX_Unmarshal(b []byte) error {
   222  	return m.Unmarshal(b)
   223  }
   224  func (m *QueryInsuranceFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   225  	if deterministic {
   226  		return xxx_messageInfo_QueryInsuranceFundsRequest.Marshal(b, m, deterministic)
   227  	} else {
   228  		b = b[:cap(b)]
   229  		n, err := m.MarshalToSizedBuffer(b)
   230  		if err != nil {
   231  			return nil, err
   232  		}
   233  		return b[:n], nil
   234  	}
   235  }
   236  func (m *QueryInsuranceFundsRequest) XXX_Merge(src proto.Message) {
   237  	xxx_messageInfo_QueryInsuranceFundsRequest.Merge(m, src)
   238  }
   239  func (m *QueryInsuranceFundsRequest) XXX_Size() int {
   240  	return m.Size()
   241  }
   242  func (m *QueryInsuranceFundsRequest) XXX_DiscardUnknown() {
   243  	xxx_messageInfo_QueryInsuranceFundsRequest.DiscardUnknown(m)
   244  }
   245  
   246  var xxx_messageInfo_QueryInsuranceFundsRequest proto.InternalMessageInfo
   247  
   248  // QueryInsuranceFundsResponse is the response type for the Query/InsuranceFunds
   249  // RPC method.
   250  type QueryInsuranceFundsResponse struct {
   251  	Funds []InsuranceFund `protobuf:"bytes,1,rep,name=funds,proto3" json:"funds"`
   252  }
   253  
   254  func (m *QueryInsuranceFundsResponse) Reset()         { *m = QueryInsuranceFundsResponse{} }
   255  func (m *QueryInsuranceFundsResponse) String() string { return proto.CompactTextString(m) }
   256  func (*QueryInsuranceFundsResponse) ProtoMessage()    {}
   257  func (*QueryInsuranceFundsResponse) Descriptor() ([]byte, []int) {
   258  	return fileDescriptor_74cebfe4cd18bca2, []int{5}
   259  }
   260  func (m *QueryInsuranceFundsResponse) XXX_Unmarshal(b []byte) error {
   261  	return m.Unmarshal(b)
   262  }
   263  func (m *QueryInsuranceFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   264  	if deterministic {
   265  		return xxx_messageInfo_QueryInsuranceFundsResponse.Marshal(b, m, deterministic)
   266  	} else {
   267  		b = b[:cap(b)]
   268  		n, err := m.MarshalToSizedBuffer(b)
   269  		if err != nil {
   270  			return nil, err
   271  		}
   272  		return b[:n], nil
   273  	}
   274  }
   275  func (m *QueryInsuranceFundsResponse) XXX_Merge(src proto.Message) {
   276  	xxx_messageInfo_QueryInsuranceFundsResponse.Merge(m, src)
   277  }
   278  func (m *QueryInsuranceFundsResponse) XXX_Size() int {
   279  	return m.Size()
   280  }
   281  func (m *QueryInsuranceFundsResponse) XXX_DiscardUnknown() {
   282  	xxx_messageInfo_QueryInsuranceFundsResponse.DiscardUnknown(m)
   283  }
   284  
   285  var xxx_messageInfo_QueryInsuranceFundsResponse proto.InternalMessageInfo
   286  
   287  func (m *QueryInsuranceFundsResponse) GetFunds() []InsuranceFund {
   288  	if m != nil {
   289  		return m.Funds
   290  	}
   291  	return nil
   292  }
   293  
   294  // QueryEstimatedRedemptionsRequest is the request type for the
   295  // Query/EstimatedRedemptions RPC method.
   296  type QueryEstimatedRedemptionsRequest struct {
   297  	MarketId string `protobuf:"bytes,1,opt,name=marketId,proto3" json:"marketId,omitempty"`
   298  	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   299  }
   300  
   301  func (m *QueryEstimatedRedemptionsRequest) Reset()         { *m = QueryEstimatedRedemptionsRequest{} }
   302  func (m *QueryEstimatedRedemptionsRequest) String() string { return proto.CompactTextString(m) }
   303  func (*QueryEstimatedRedemptionsRequest) ProtoMessage()    {}
   304  func (*QueryEstimatedRedemptionsRequest) Descriptor() ([]byte, []int) {
   305  	return fileDescriptor_74cebfe4cd18bca2, []int{6}
   306  }
   307  func (m *QueryEstimatedRedemptionsRequest) XXX_Unmarshal(b []byte) error {
   308  	return m.Unmarshal(b)
   309  }
   310  func (m *QueryEstimatedRedemptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   311  	if deterministic {
   312  		return xxx_messageInfo_QueryEstimatedRedemptionsRequest.Marshal(b, m, deterministic)
   313  	} else {
   314  		b = b[:cap(b)]
   315  		n, err := m.MarshalToSizedBuffer(b)
   316  		if err != nil {
   317  			return nil, err
   318  		}
   319  		return b[:n], nil
   320  	}
   321  }
   322  func (m *QueryEstimatedRedemptionsRequest) XXX_Merge(src proto.Message) {
   323  	xxx_messageInfo_QueryEstimatedRedemptionsRequest.Merge(m, src)
   324  }
   325  func (m *QueryEstimatedRedemptionsRequest) XXX_Size() int {
   326  	return m.Size()
   327  }
   328  func (m *QueryEstimatedRedemptionsRequest) XXX_DiscardUnknown() {
   329  	xxx_messageInfo_QueryEstimatedRedemptionsRequest.DiscardUnknown(m)
   330  }
   331  
   332  var xxx_messageInfo_QueryEstimatedRedemptionsRequest proto.InternalMessageInfo
   333  
   334  func (m *QueryEstimatedRedemptionsRequest) GetMarketId() string {
   335  	if m != nil {
   336  		return m.MarketId
   337  	}
   338  	return ""
   339  }
   340  
   341  func (m *QueryEstimatedRedemptionsRequest) GetAddress() string {
   342  	if m != nil {
   343  		return m.Address
   344  	}
   345  	return ""
   346  }
   347  
   348  // QueryEstimatedRedemptionsResponse is the response type for the
   349  // Query/EstimatedRedemptions RPC method.
   350  type QueryEstimatedRedemptionsResponse struct {
   351  	Amount []types.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"`
   352  }
   353  
   354  func (m *QueryEstimatedRedemptionsResponse) Reset()         { *m = QueryEstimatedRedemptionsResponse{} }
   355  func (m *QueryEstimatedRedemptionsResponse) String() string { return proto.CompactTextString(m) }
   356  func (*QueryEstimatedRedemptionsResponse) ProtoMessage()    {}
   357  func (*QueryEstimatedRedemptionsResponse) Descriptor() ([]byte, []int) {
   358  	return fileDescriptor_74cebfe4cd18bca2, []int{7}
   359  }
   360  func (m *QueryEstimatedRedemptionsResponse) XXX_Unmarshal(b []byte) error {
   361  	return m.Unmarshal(b)
   362  }
   363  func (m *QueryEstimatedRedemptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   364  	if deterministic {
   365  		return xxx_messageInfo_QueryEstimatedRedemptionsResponse.Marshal(b, m, deterministic)
   366  	} else {
   367  		b = b[:cap(b)]
   368  		n, err := m.MarshalToSizedBuffer(b)
   369  		if err != nil {
   370  			return nil, err
   371  		}
   372  		return b[:n], nil
   373  	}
   374  }
   375  func (m *QueryEstimatedRedemptionsResponse) XXX_Merge(src proto.Message) {
   376  	xxx_messageInfo_QueryEstimatedRedemptionsResponse.Merge(m, src)
   377  }
   378  func (m *QueryEstimatedRedemptionsResponse) XXX_Size() int {
   379  	return m.Size()
   380  }
   381  func (m *QueryEstimatedRedemptionsResponse) XXX_DiscardUnknown() {
   382  	xxx_messageInfo_QueryEstimatedRedemptionsResponse.DiscardUnknown(m)
   383  }
   384  
   385  var xxx_messageInfo_QueryEstimatedRedemptionsResponse proto.InternalMessageInfo
   386  
   387  func (m *QueryEstimatedRedemptionsResponse) GetAmount() []types.Coin {
   388  	if m != nil {
   389  		return m.Amount
   390  	}
   391  	return nil
   392  }
   393  
   394  // QueryPendingRedemptionsRequest is the request type for the
   395  // Query/PendingRedemptions RPC method.
   396  type QueryPendingRedemptionsRequest struct {
   397  	MarketId string `protobuf:"bytes,1,opt,name=marketId,proto3" json:"marketId,omitempty"`
   398  	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   399  }
   400  
   401  func (m *QueryPendingRedemptionsRequest) Reset()         { *m = QueryPendingRedemptionsRequest{} }
   402  func (m *QueryPendingRedemptionsRequest) String() string { return proto.CompactTextString(m) }
   403  func (*QueryPendingRedemptionsRequest) ProtoMessage()    {}
   404  func (*QueryPendingRedemptionsRequest) Descriptor() ([]byte, []int) {
   405  	return fileDescriptor_74cebfe4cd18bca2, []int{8}
   406  }
   407  func (m *QueryPendingRedemptionsRequest) XXX_Unmarshal(b []byte) error {
   408  	return m.Unmarshal(b)
   409  }
   410  func (m *QueryPendingRedemptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   411  	if deterministic {
   412  		return xxx_messageInfo_QueryPendingRedemptionsRequest.Marshal(b, m, deterministic)
   413  	} else {
   414  		b = b[:cap(b)]
   415  		n, err := m.MarshalToSizedBuffer(b)
   416  		if err != nil {
   417  			return nil, err
   418  		}
   419  		return b[:n], nil
   420  	}
   421  }
   422  func (m *QueryPendingRedemptionsRequest) XXX_Merge(src proto.Message) {
   423  	xxx_messageInfo_QueryPendingRedemptionsRequest.Merge(m, src)
   424  }
   425  func (m *QueryPendingRedemptionsRequest) XXX_Size() int {
   426  	return m.Size()
   427  }
   428  func (m *QueryPendingRedemptionsRequest) XXX_DiscardUnknown() {
   429  	xxx_messageInfo_QueryPendingRedemptionsRequest.DiscardUnknown(m)
   430  }
   431  
   432  var xxx_messageInfo_QueryPendingRedemptionsRequest proto.InternalMessageInfo
   433  
   434  func (m *QueryPendingRedemptionsRequest) GetMarketId() string {
   435  	if m != nil {
   436  		return m.MarketId
   437  	}
   438  	return ""
   439  }
   440  
   441  func (m *QueryPendingRedemptionsRequest) GetAddress() string {
   442  	if m != nil {
   443  		return m.Address
   444  	}
   445  	return ""
   446  }
   447  
   448  // QueryPendingRedemptionsResponse is the response type for the
   449  // Query/PendingRedemptions RPC method.
   450  type QueryPendingRedemptionsResponse struct {
   451  	Amount []types.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount"`
   452  }
   453  
   454  func (m *QueryPendingRedemptionsResponse) Reset()         { *m = QueryPendingRedemptionsResponse{} }
   455  func (m *QueryPendingRedemptionsResponse) String() string { return proto.CompactTextString(m) }
   456  func (*QueryPendingRedemptionsResponse) ProtoMessage()    {}
   457  func (*QueryPendingRedemptionsResponse) Descriptor() ([]byte, []int) {
   458  	return fileDescriptor_74cebfe4cd18bca2, []int{9}
   459  }
   460  func (m *QueryPendingRedemptionsResponse) XXX_Unmarshal(b []byte) error {
   461  	return m.Unmarshal(b)
   462  }
   463  func (m *QueryPendingRedemptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   464  	if deterministic {
   465  		return xxx_messageInfo_QueryPendingRedemptionsResponse.Marshal(b, m, deterministic)
   466  	} else {
   467  		b = b[:cap(b)]
   468  		n, err := m.MarshalToSizedBuffer(b)
   469  		if err != nil {
   470  			return nil, err
   471  		}
   472  		return b[:n], nil
   473  	}
   474  }
   475  func (m *QueryPendingRedemptionsResponse) XXX_Merge(src proto.Message) {
   476  	xxx_messageInfo_QueryPendingRedemptionsResponse.Merge(m, src)
   477  }
   478  func (m *QueryPendingRedemptionsResponse) XXX_Size() int {
   479  	return m.Size()
   480  }
   481  func (m *QueryPendingRedemptionsResponse) XXX_DiscardUnknown() {
   482  	xxx_messageInfo_QueryPendingRedemptionsResponse.DiscardUnknown(m)
   483  }
   484  
   485  var xxx_messageInfo_QueryPendingRedemptionsResponse proto.InternalMessageInfo
   486  
   487  func (m *QueryPendingRedemptionsResponse) GetAmount() []types.Coin {
   488  	if m != nil {
   489  		return m.Amount
   490  	}
   491  	return nil
   492  }
   493  
   494  // QueryModuleStateRequest is the request type for the
   495  // Query/InsuranceModuleState RPC method.
   496  type QueryModuleStateRequest struct {
   497  }
   498  
   499  func (m *QueryModuleStateRequest) Reset()         { *m = QueryModuleStateRequest{} }
   500  func (m *QueryModuleStateRequest) String() string { return proto.CompactTextString(m) }
   501  func (*QueryModuleStateRequest) ProtoMessage()    {}
   502  func (*QueryModuleStateRequest) Descriptor() ([]byte, []int) {
   503  	return fileDescriptor_74cebfe4cd18bca2, []int{10}
   504  }
   505  func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error {
   506  	return m.Unmarshal(b)
   507  }
   508  func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   509  	if deterministic {
   510  		return xxx_messageInfo_QueryModuleStateRequest.Marshal(b, m, deterministic)
   511  	} else {
   512  		b = b[:cap(b)]
   513  		n, err := m.MarshalToSizedBuffer(b)
   514  		if err != nil {
   515  			return nil, err
   516  		}
   517  		return b[:n], nil
   518  	}
   519  }
   520  func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message) {
   521  	xxx_messageInfo_QueryModuleStateRequest.Merge(m, src)
   522  }
   523  func (m *QueryModuleStateRequest) XXX_Size() int {
   524  	return m.Size()
   525  }
   526  func (m *QueryModuleStateRequest) XXX_DiscardUnknown() {
   527  	xxx_messageInfo_QueryModuleStateRequest.DiscardUnknown(m)
   528  }
   529  
   530  var xxx_messageInfo_QueryModuleStateRequest proto.InternalMessageInfo
   531  
   532  // QueryModuleStateResponse is the response type for the
   533  // Query/InsuranceModuleState RPC method.
   534  type QueryModuleStateResponse struct {
   535  	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
   536  }
   537  
   538  func (m *QueryModuleStateResponse) Reset()         { *m = QueryModuleStateResponse{} }
   539  func (m *QueryModuleStateResponse) String() string { return proto.CompactTextString(m) }
   540  func (*QueryModuleStateResponse) ProtoMessage()    {}
   541  func (*QueryModuleStateResponse) Descriptor() ([]byte, []int) {
   542  	return fileDescriptor_74cebfe4cd18bca2, []int{11}
   543  }
   544  func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error {
   545  	return m.Unmarshal(b)
   546  }
   547  func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   548  	if deterministic {
   549  		return xxx_messageInfo_QueryModuleStateResponse.Marshal(b, m, deterministic)
   550  	} else {
   551  		b = b[:cap(b)]
   552  		n, err := m.MarshalToSizedBuffer(b)
   553  		if err != nil {
   554  			return nil, err
   555  		}
   556  		return b[:n], nil
   557  	}
   558  }
   559  func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message) {
   560  	xxx_messageInfo_QueryModuleStateResponse.Merge(m, src)
   561  }
   562  func (m *QueryModuleStateResponse) XXX_Size() int {
   563  	return m.Size()
   564  }
   565  func (m *QueryModuleStateResponse) XXX_DiscardUnknown() {
   566  	xxx_messageInfo_QueryModuleStateResponse.DiscardUnknown(m)
   567  }
   568  
   569  var xxx_messageInfo_QueryModuleStateResponse proto.InternalMessageInfo
   570  
   571  func (m *QueryModuleStateResponse) GetState() *GenesisState {
   572  	if m != nil {
   573  		return m.State
   574  	}
   575  	return nil
   576  }
   577  
   578  func init() {
   579  	proto.RegisterType((*QueryInsuranceParamsRequest)(nil), "injective.insurance.v1beta1.QueryInsuranceParamsRequest")
   580  	proto.RegisterType((*QueryInsuranceParamsResponse)(nil), "injective.insurance.v1beta1.QueryInsuranceParamsResponse")
   581  	proto.RegisterType((*QueryInsuranceFundRequest)(nil), "injective.insurance.v1beta1.QueryInsuranceFundRequest")
   582  	proto.RegisterType((*QueryInsuranceFundResponse)(nil), "injective.insurance.v1beta1.QueryInsuranceFundResponse")
   583  	proto.RegisterType((*QueryInsuranceFundsRequest)(nil), "injective.insurance.v1beta1.QueryInsuranceFundsRequest")
   584  	proto.RegisterType((*QueryInsuranceFundsResponse)(nil), "injective.insurance.v1beta1.QueryInsuranceFundsResponse")
   585  	proto.RegisterType((*QueryEstimatedRedemptionsRequest)(nil), "injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest")
   586  	proto.RegisterType((*QueryEstimatedRedemptionsResponse)(nil), "injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse")
   587  	proto.RegisterType((*QueryPendingRedemptionsRequest)(nil), "injective.insurance.v1beta1.QueryPendingRedemptionsRequest")
   588  	proto.RegisterType((*QueryPendingRedemptionsResponse)(nil), "injective.insurance.v1beta1.QueryPendingRedemptionsResponse")
   589  	proto.RegisterType((*QueryModuleStateRequest)(nil), "injective.insurance.v1beta1.QueryModuleStateRequest")
   590  	proto.RegisterType((*QueryModuleStateResponse)(nil), "injective.insurance.v1beta1.QueryModuleStateResponse")
   591  }
   592  
   593  func init() {
   594  	proto.RegisterFile("injective/insurance/v1beta1/query.proto", fileDescriptor_74cebfe4cd18bca2)
   595  }
   596  
   597  var fileDescriptor_74cebfe4cd18bca2 = []byte{
   598  	// 727 bytes of a gzipped FileDescriptorProto
   599  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x4b, 0x14, 0x41,
   600  	0x1c, 0xbf, 0x35, 0xb5, 0x9c, 0xa8, 0x60, 0x10, 0x3a, 0x57, 0x5b, 0x6d, 0x25, 0xca, 0xac, 0xdd,
   601  	0xbc, 0x2c, 0xcf, 0x7e, 0x28, 0x19, 0x19, 0x42, 0x91, 0x5d, 0x10, 0x61, 0xc2, 0x31, 0x77, 0x3b,
   602  	0xad, 0x53, 0xee, 0xcc, 0xb9, 0x33, 0x2b, 0x48, 0xf4, 0xd2, 0x5f, 0x10, 0x04, 0xfd, 0x23, 0x41,
   603  	0xd0, 0x63, 0x6f, 0xf6, 0x66, 0xf4, 0xd2, 0x53, 0x84, 0xf6, 0x87, 0xc4, 0xce, 0xce, 0xae, 0x77,
   604  	0x7a, 0x8e, 0xed, 0xd5, 0xdb, 0xed, 0xcc, 0x7c, 0x7e, 0x7d, 0x67, 0xbe, 0x5f, 0x0e, 0x9c, 0x27,
   605  	0xf4, 0x25, 0xae, 0x0b, 0xb2, 0x8e, 0x5d, 0x42, 0x79, 0x14, 0x22, 0x5a, 0xc7, 0xee, 0xfa, 0x44,
   606  	0x0d, 0x0b, 0x34, 0xe1, 0xae, 0x45, 0x38, 0xdc, 0x70, 0x1a, 0x21, 0x13, 0x0c, 0x0e, 0x66, 0x07,
   607  	0x9d, 0xec, 0xa0, 0xa3, 0x0e, 0x9a, 0x43, 0x3e, 0x63, 0xfe, 0x2a, 0x76, 0x51, 0x83, 0xb8, 0x88,
   608  	0x52, 0x26, 0x90, 0x20, 0x8c, 0xf2, 0x04, 0x6a, 0x8e, 0xeb, 0x34, 0x76, 0xc9, 0x92, 0xc3, 0xfd,
   609  	0x3e, 0xf3, 0x99, 0xfc, 0xe9, 0xc6, 0xbf, 0xd4, 0xaa, 0x55, 0x67, 0x3c, 0x60, 0xdc, 0xad, 0x21,
   610  	0xbe, 0x0b, 0xad, 0x33, 0x42, 0xd5, 0xfe, 0x98, 0x4e, 0xc2, 0xc7, 0x14, 0x73, 0xa2, 0xdc, 0xd8,
   611  	0x67, 0xc0, 0xe0, 0xe3, 0x38, 0xd7, 0x42, 0x7a, 0x6e, 0x11, 0x85, 0x28, 0xe0, 0x15, 0xbc, 0x16,
   612  	0x61, 0x2e, 0x6c, 0x04, 0x86, 0xda, 0x6f, 0xf3, 0x06, 0xa3, 0x1c, 0xc3, 0x3b, 0xa0, 0xb7, 0x21,
   613  	0x57, 0x8a, 0xc6, 0x88, 0x71, 0xe1, 0x78, 0x69, 0xd4, 0xd1, 0x14, 0xc6, 0x49, 0xc0, 0x73, 0xdd,
   614  	0x9b, 0x3f, 0x87, 0x0b, 0x15, 0x05, 0xb4, 0xcb, 0x60, 0xa0, 0x55, 0x62, 0x3e, 0xa2, 0x9e, 0xd2,
   615  	0x87, 0x83, 0xa0, 0x2f, 0x40, 0xe1, 0x2b, 0x2c, 0xaa, 0xc4, 0x93, 0x12, 0x7d, 0x95, 0x63, 0xc9,
   616  	0xc2, 0x82, 0x67, 0x2f, 0x03, 0xb3, 0x1d, 0x52, 0x59, 0x9b, 0x01, 0xdd, 0x2f, 0x22, 0xea, 0x29,
   617  	0x63, 0x17, 0xb5, 0xc6, 0x5a, 0x19, 0x24, 0xce, 0x1e, 0x6a, 0xc7, 0x9e, 0x15, 0x06, 0xef, 0xad,
   618  	0x9b, 0xda, 0x55, 0xe2, 0xf3, 0xa0, 0x27, 0x26, 0x89, 0xcb, 0x72, 0x24, 0x9f, 0xba, 0xaa, 0x4e,
   619  	0x02, 0xb7, 0x9f, 0x81, 0x11, 0x29, 0x73, 0x8f, 0x0b, 0x12, 0x20, 0x81, 0xbd, 0x0a, 0xf6, 0x70,
   620  	0xd0, 0x90, 0xef, 0x29, 0xad, 0x91, 0x09, 0xb2, 0x92, 0xec, 0x2d, 0x11, 0x2c, 0x82, 0xa3, 0xc8,
   621  	0xf3, 0x42, 0xcc, 0x79, 0xb1, 0x4b, 0x6e, 0xa5, 0x9f, 0xf6, 0x32, 0x38, 0xab, 0x61, 0x56, 0x31,
   622  	0xa6, 0x40, 0x2f, 0x0a, 0x58, 0x44, 0x85, 0xca, 0x31, 0xe0, 0x24, 0x2f, 0xcf, 0x89, 0x5f, 0x5e,
   623  	0xe6, 0xff, 0x2e, 0x23, 0x34, 0xbd, 0xd4, 0xe4, 0xb8, 0xfd, 0x14, 0x58, 0x92, 0x7d, 0x11, 0x53,
   624  	0x8f, 0x50, 0xff, 0xbf, 0xb9, 0x5e, 0x02, 0xc3, 0x07, 0xf2, 0xfe, 0xab, 0xe7, 0x01, 0x70, 0x5a,
   625  	0x72, 0x3f, 0x64, 0x5e, 0xb4, 0x8a, 0x9f, 0x08, 0x24, 0x70, 0x7a, 0xdb, 0xcf, 0x41, 0x71, 0xff,
   626  	0x96, 0xd2, 0x9b, 0x05, 0x3d, 0x3c, 0x5e, 0x50, 0x0f, 0x6d, 0x4c, 0x7b, 0xd5, 0xf7, 0x93, 0xe6,
   627  	0x4b, 0x18, 0x12, 0x5c, 0xe9, 0x43, 0x1f, 0xe8, 0x91, 0xec, 0xf0, 0xa3, 0x01, 0x4e, 0xed, 0xe9,
   628  	0x34, 0x58, 0xd6, 0xf2, 0x69, 0x7a, 0xd7, 0x9c, 0xee, 0x00, 0x99, 0x64, 0xb2, 0xc7, 0xdf, 0x7e,
   629  	0xff, 0xfd, 0xbe, 0xeb, 0x1c, 0x1c, 0x75, 0x75, 0x93, 0x24, 0x69, 0x60, 0xf8, 0xc5, 0x00, 0x27,
   630  	0x5a, 0x9e, 0x30, 0xbc, 0x9e, 0x43, 0xb9, 0xa9, 0xdb, 0xcd, 0xa9, 0xdc, 0x38, 0xe5, 0x77, 0x56,
   631  	0xfa, 0x9d, 0x86, 0x53, 0xee, 0x5f, 0x0d, 0xd7, 0x6a, 0xdc, 0x5c, 0xee, 0xeb, 0x6c, 0xb2, 0xbc,
   632  	0x81, 0x9f, 0x0d, 0x70, 0xb2, 0xb5, 0x95, 0x61, 0x5e, 0x33, 0x59, 0xdd, 0xcb, 0xf9, 0x81, 0x2a,
   633  	0xc6, 0xa4, 0x8c, 0xe1, 0xc0, 0x4b, 0x39, 0x62, 0x70, 0xf8, 0xcd, 0x00, 0xfd, 0xed, 0xba, 0x18,
   634  	0xde, 0x3e, 0xdc, 0x88, 0x66, 0xae, 0x98, 0x33, 0x9d, 0xc2, 0x55, 0x9a, 0x1b, 0x32, 0xcd, 0x24,
   635  	0x2c, 0x69, 0xd3, 0xe0, 0x94, 0xa2, 0x1a, 0x36, 0x59, 0xff, 0x6a, 0x00, 0xb8, 0xbf, 0xc7, 0xe1,
   636  	0xcd, 0xc3, 0x2d, 0x1d, 0x38, 0x71, 0xcc, 0x5b, 0x9d, 0x81, 0x55, 0x9a, 0xb2, 0x4c, 0x53, 0x82,
   637  	0x57, 0xf4, 0x2d, 0x91, 0x10, 0xb4, 0x64, 0xf9, 0x64, 0x80, 0xfe, 0xec, 0xc2, 0x9b, 0x26, 0x08,
   638  	0x9c, 0x3c, 0xdc, 0xd0, 0xfe, 0x59, 0x64, 0x5e, 0xcb, 0x89, 0x52, 0xfe, 0x27, 0xa4, 0xff, 0x71,
   639  	0x38, 0xa6, 0xf5, 0x1f, 0x48, 0x64, 0x55, 0x0e, 0xa6, 0x39, 0xb2, 0xb9, 0x6d, 0x19, 0x5b, 0xdb,
   640  	0x96, 0xf1, 0x6b, 0xdb, 0x32, 0xde, 0xed, 0x58, 0x85, 0xad, 0x1d, 0xab, 0xf0, 0x63, 0xc7, 0x2a,
   641  	0x2c, 0x3d, 0xf2, 0x89, 0x58, 0x89, 0x6a, 0x4e, 0x9d, 0x05, 0xee, 0x42, 0x4a, 0xf7, 0x00, 0xd5,
   642  	0xf8, 0x2e, 0xf9, 0xe5, 0x3a, 0x0b, 0x71, 0xf3, 0xe7, 0x0a, 0x22, 0x54, 0xf1, 0xf3, 0x26, 0x65,
   643  	0xb1, 0xd1, 0xc0, 0xbc, 0xd6, 0x2b, 0xff, 0x8d, 0x5c, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x23,
   644  	0x60, 0x60, 0x91, 0x81, 0x09, 0x00, 0x00,
   645  }
   646  
   647  // Reference imports to suppress errors if they are not otherwise used.
   648  var _ context.Context
   649  var _ grpc.ClientConn
   650  
   651  // This is a compile-time assertion to ensure that this generated file
   652  // is compatible with the grpc package it is being compiled against.
   653  const _ = grpc.SupportPackageIsVersion4
   654  
   655  // QueryClient is the client API for Query service.
   656  //
   657  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   658  type QueryClient interface {
   659  	// Retrieves insurance params
   660  	InsuranceParams(ctx context.Context, in *QueryInsuranceParamsRequest, opts ...grpc.CallOption) (*QueryInsuranceParamsResponse, error)
   661  	// Retrieves individual insurance fund information from market id
   662  	InsuranceFund(ctx context.Context, in *QueryInsuranceFundRequest, opts ...grpc.CallOption) (*QueryInsuranceFundResponse, error)
   663  	// Retrieves all insurance funds
   664  	InsuranceFunds(ctx context.Context, in *QueryInsuranceFundsRequest, opts ...grpc.CallOption) (*QueryInsuranceFundsResponse, error)
   665  	// Retrives the value of insurance fund share token at current price (not
   666  	// pending redemption)
   667  	EstimatedRedemptions(ctx context.Context, in *QueryEstimatedRedemptionsRequest, opts ...grpc.CallOption) (*QueryEstimatedRedemptionsResponse, error)
   668  	// Retrieves pending redemptions' share token at current price
   669  	PendingRedemptions(ctx context.Context, in *QueryPendingRedemptionsRequest, opts ...grpc.CallOption) (*QueryPendingRedemptionsResponse, error)
   670  	// Retrieves the entire insurance module's state
   671  	InsuranceModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error)
   672  }
   673  
   674  type queryClient struct {
   675  	cc grpc1.ClientConn
   676  }
   677  
   678  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
   679  	return &queryClient{cc}
   680  }
   681  
   682  func (c *queryClient) InsuranceParams(ctx context.Context, in *QueryInsuranceParamsRequest, opts ...grpc.CallOption) (*QueryInsuranceParamsResponse, error) {
   683  	out := new(QueryInsuranceParamsResponse)
   684  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/InsuranceParams", in, out, opts...)
   685  	if err != nil {
   686  		return nil, err
   687  	}
   688  	return out, nil
   689  }
   690  
   691  func (c *queryClient) InsuranceFund(ctx context.Context, in *QueryInsuranceFundRequest, opts ...grpc.CallOption) (*QueryInsuranceFundResponse, error) {
   692  	out := new(QueryInsuranceFundResponse)
   693  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/InsuranceFund", in, out, opts...)
   694  	if err != nil {
   695  		return nil, err
   696  	}
   697  	return out, nil
   698  }
   699  
   700  func (c *queryClient) InsuranceFunds(ctx context.Context, in *QueryInsuranceFundsRequest, opts ...grpc.CallOption) (*QueryInsuranceFundsResponse, error) {
   701  	out := new(QueryInsuranceFundsResponse)
   702  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/InsuranceFunds", in, out, opts...)
   703  	if err != nil {
   704  		return nil, err
   705  	}
   706  	return out, nil
   707  }
   708  
   709  func (c *queryClient) EstimatedRedemptions(ctx context.Context, in *QueryEstimatedRedemptionsRequest, opts ...grpc.CallOption) (*QueryEstimatedRedemptionsResponse, error) {
   710  	out := new(QueryEstimatedRedemptionsResponse)
   711  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/EstimatedRedemptions", in, out, opts...)
   712  	if err != nil {
   713  		return nil, err
   714  	}
   715  	return out, nil
   716  }
   717  
   718  func (c *queryClient) PendingRedemptions(ctx context.Context, in *QueryPendingRedemptionsRequest, opts ...grpc.CallOption) (*QueryPendingRedemptionsResponse, error) {
   719  	out := new(QueryPendingRedemptionsResponse)
   720  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/PendingRedemptions", in, out, opts...)
   721  	if err != nil {
   722  		return nil, err
   723  	}
   724  	return out, nil
   725  }
   726  
   727  func (c *queryClient) InsuranceModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) {
   728  	out := new(QueryModuleStateResponse)
   729  	err := c.cc.Invoke(ctx, "/injective.insurance.v1beta1.Query/InsuranceModuleState", in, out, opts...)
   730  	if err != nil {
   731  		return nil, err
   732  	}
   733  	return out, nil
   734  }
   735  
   736  // QueryServer is the server API for Query service.
   737  type QueryServer interface {
   738  	// Retrieves insurance params
   739  	InsuranceParams(context.Context, *QueryInsuranceParamsRequest) (*QueryInsuranceParamsResponse, error)
   740  	// Retrieves individual insurance fund information from market id
   741  	InsuranceFund(context.Context, *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
   742  	// Retrieves all insurance funds
   743  	InsuranceFunds(context.Context, *QueryInsuranceFundsRequest) (*QueryInsuranceFundsResponse, error)
   744  	// Retrives the value of insurance fund share token at current price (not
   745  	// pending redemption)
   746  	EstimatedRedemptions(context.Context, *QueryEstimatedRedemptionsRequest) (*QueryEstimatedRedemptionsResponse, error)
   747  	// Retrieves pending redemptions' share token at current price
   748  	PendingRedemptions(context.Context, *QueryPendingRedemptionsRequest) (*QueryPendingRedemptionsResponse, error)
   749  	// Retrieves the entire insurance module's state
   750  	InsuranceModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
   751  }
   752  
   753  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
   754  type UnimplementedQueryServer struct {
   755  }
   756  
   757  func (*UnimplementedQueryServer) InsuranceParams(ctx context.Context, req *QueryInsuranceParamsRequest) (*QueryInsuranceParamsResponse, error) {
   758  	return nil, status.Errorf(codes.Unimplemented, "method InsuranceParams not implemented")
   759  }
   760  func (*UnimplementedQueryServer) InsuranceFund(ctx context.Context, req *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error) {
   761  	return nil, status.Errorf(codes.Unimplemented, "method InsuranceFund not implemented")
   762  }
   763  func (*UnimplementedQueryServer) InsuranceFunds(ctx context.Context, req *QueryInsuranceFundsRequest) (*QueryInsuranceFundsResponse, error) {
   764  	return nil, status.Errorf(codes.Unimplemented, "method InsuranceFunds not implemented")
   765  }
   766  func (*UnimplementedQueryServer) EstimatedRedemptions(ctx context.Context, req *QueryEstimatedRedemptionsRequest) (*QueryEstimatedRedemptionsResponse, error) {
   767  	return nil, status.Errorf(codes.Unimplemented, "method EstimatedRedemptions not implemented")
   768  }
   769  func (*UnimplementedQueryServer) PendingRedemptions(ctx context.Context, req *QueryPendingRedemptionsRequest) (*QueryPendingRedemptionsResponse, error) {
   770  	return nil, status.Errorf(codes.Unimplemented, "method PendingRedemptions not implemented")
   771  }
   772  func (*UnimplementedQueryServer) InsuranceModuleState(ctx context.Context, req *QueryModuleStateRequest) (*QueryModuleStateResponse, error) {
   773  	return nil, status.Errorf(codes.Unimplemented, "method InsuranceModuleState not implemented")
   774  }
   775  
   776  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
   777  	s.RegisterService(&_Query_serviceDesc, srv)
   778  }
   779  
   780  func _Query_InsuranceParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   781  	in := new(QueryInsuranceParamsRequest)
   782  	if err := dec(in); err != nil {
   783  		return nil, err
   784  	}
   785  	if interceptor == nil {
   786  		return srv.(QueryServer).InsuranceParams(ctx, in)
   787  	}
   788  	info := &grpc.UnaryServerInfo{
   789  		Server:     srv,
   790  		FullMethod: "/injective.insurance.v1beta1.Query/InsuranceParams",
   791  	}
   792  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   793  		return srv.(QueryServer).InsuranceParams(ctx, req.(*QueryInsuranceParamsRequest))
   794  	}
   795  	return interceptor(ctx, in, info, handler)
   796  }
   797  
   798  func _Query_InsuranceFund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   799  	in := new(QueryInsuranceFundRequest)
   800  	if err := dec(in); err != nil {
   801  		return nil, err
   802  	}
   803  	if interceptor == nil {
   804  		return srv.(QueryServer).InsuranceFund(ctx, in)
   805  	}
   806  	info := &grpc.UnaryServerInfo{
   807  		Server:     srv,
   808  		FullMethod: "/injective.insurance.v1beta1.Query/InsuranceFund",
   809  	}
   810  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   811  		return srv.(QueryServer).InsuranceFund(ctx, req.(*QueryInsuranceFundRequest))
   812  	}
   813  	return interceptor(ctx, in, info, handler)
   814  }
   815  
   816  func _Query_InsuranceFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   817  	in := new(QueryInsuranceFundsRequest)
   818  	if err := dec(in); err != nil {
   819  		return nil, err
   820  	}
   821  	if interceptor == nil {
   822  		return srv.(QueryServer).InsuranceFunds(ctx, in)
   823  	}
   824  	info := &grpc.UnaryServerInfo{
   825  		Server:     srv,
   826  		FullMethod: "/injective.insurance.v1beta1.Query/InsuranceFunds",
   827  	}
   828  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   829  		return srv.(QueryServer).InsuranceFunds(ctx, req.(*QueryInsuranceFundsRequest))
   830  	}
   831  	return interceptor(ctx, in, info, handler)
   832  }
   833  
   834  func _Query_EstimatedRedemptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   835  	in := new(QueryEstimatedRedemptionsRequest)
   836  	if err := dec(in); err != nil {
   837  		return nil, err
   838  	}
   839  	if interceptor == nil {
   840  		return srv.(QueryServer).EstimatedRedemptions(ctx, in)
   841  	}
   842  	info := &grpc.UnaryServerInfo{
   843  		Server:     srv,
   844  		FullMethod: "/injective.insurance.v1beta1.Query/EstimatedRedemptions",
   845  	}
   846  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   847  		return srv.(QueryServer).EstimatedRedemptions(ctx, req.(*QueryEstimatedRedemptionsRequest))
   848  	}
   849  	return interceptor(ctx, in, info, handler)
   850  }
   851  
   852  func _Query_PendingRedemptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   853  	in := new(QueryPendingRedemptionsRequest)
   854  	if err := dec(in); err != nil {
   855  		return nil, err
   856  	}
   857  	if interceptor == nil {
   858  		return srv.(QueryServer).PendingRedemptions(ctx, in)
   859  	}
   860  	info := &grpc.UnaryServerInfo{
   861  		Server:     srv,
   862  		FullMethod: "/injective.insurance.v1beta1.Query/PendingRedemptions",
   863  	}
   864  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   865  		return srv.(QueryServer).PendingRedemptions(ctx, req.(*QueryPendingRedemptionsRequest))
   866  	}
   867  	return interceptor(ctx, in, info, handler)
   868  }
   869  
   870  func _Query_InsuranceModuleState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   871  	in := new(QueryModuleStateRequest)
   872  	if err := dec(in); err != nil {
   873  		return nil, err
   874  	}
   875  	if interceptor == nil {
   876  		return srv.(QueryServer).InsuranceModuleState(ctx, in)
   877  	}
   878  	info := &grpc.UnaryServerInfo{
   879  		Server:     srv,
   880  		FullMethod: "/injective.insurance.v1beta1.Query/InsuranceModuleState",
   881  	}
   882  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   883  		return srv.(QueryServer).InsuranceModuleState(ctx, req.(*QueryModuleStateRequest))
   884  	}
   885  	return interceptor(ctx, in, info, handler)
   886  }
   887  
   888  var _Query_serviceDesc = grpc.ServiceDesc{
   889  	ServiceName: "injective.insurance.v1beta1.Query",
   890  	HandlerType: (*QueryServer)(nil),
   891  	Methods: []grpc.MethodDesc{
   892  		{
   893  			MethodName: "InsuranceParams",
   894  			Handler:    _Query_InsuranceParams_Handler,
   895  		},
   896  		{
   897  			MethodName: "InsuranceFund",
   898  			Handler:    _Query_InsuranceFund_Handler,
   899  		},
   900  		{
   901  			MethodName: "InsuranceFunds",
   902  			Handler:    _Query_InsuranceFunds_Handler,
   903  		},
   904  		{
   905  			MethodName: "EstimatedRedemptions",
   906  			Handler:    _Query_EstimatedRedemptions_Handler,
   907  		},
   908  		{
   909  			MethodName: "PendingRedemptions",
   910  			Handler:    _Query_PendingRedemptions_Handler,
   911  		},
   912  		{
   913  			MethodName: "InsuranceModuleState",
   914  			Handler:    _Query_InsuranceModuleState_Handler,
   915  		},
   916  	},
   917  	Streams:  []grpc.StreamDesc{},
   918  	Metadata: "injective/insurance/v1beta1/query.proto",
   919  }
   920  
   921  func (m *QueryInsuranceParamsRequest) Marshal() (dAtA []byte, err error) {
   922  	size := m.Size()
   923  	dAtA = make([]byte, size)
   924  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   925  	if err != nil {
   926  		return nil, err
   927  	}
   928  	return dAtA[:n], nil
   929  }
   930  
   931  func (m *QueryInsuranceParamsRequest) MarshalTo(dAtA []byte) (int, error) {
   932  	size := m.Size()
   933  	return m.MarshalToSizedBuffer(dAtA[:size])
   934  }
   935  
   936  func (m *QueryInsuranceParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   937  	i := len(dAtA)
   938  	_ = i
   939  	var l int
   940  	_ = l
   941  	return len(dAtA) - i, nil
   942  }
   943  
   944  func (m *QueryInsuranceParamsResponse) Marshal() (dAtA []byte, err error) {
   945  	size := m.Size()
   946  	dAtA = make([]byte, size)
   947  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   948  	if err != nil {
   949  		return nil, err
   950  	}
   951  	return dAtA[:n], nil
   952  }
   953  
   954  func (m *QueryInsuranceParamsResponse) MarshalTo(dAtA []byte) (int, error) {
   955  	size := m.Size()
   956  	return m.MarshalToSizedBuffer(dAtA[:size])
   957  }
   958  
   959  func (m *QueryInsuranceParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   960  	i := len(dAtA)
   961  	_ = i
   962  	var l int
   963  	_ = l
   964  	{
   965  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   966  		if err != nil {
   967  			return 0, err
   968  		}
   969  		i -= size
   970  		i = encodeVarintQuery(dAtA, i, uint64(size))
   971  	}
   972  	i--
   973  	dAtA[i] = 0xa
   974  	return len(dAtA) - i, nil
   975  }
   976  
   977  func (m *QueryInsuranceFundRequest) Marshal() (dAtA []byte, err error) {
   978  	size := m.Size()
   979  	dAtA = make([]byte, size)
   980  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   981  	if err != nil {
   982  		return nil, err
   983  	}
   984  	return dAtA[:n], nil
   985  }
   986  
   987  func (m *QueryInsuranceFundRequest) MarshalTo(dAtA []byte) (int, error) {
   988  	size := m.Size()
   989  	return m.MarshalToSizedBuffer(dAtA[:size])
   990  }
   991  
   992  func (m *QueryInsuranceFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   993  	i := len(dAtA)
   994  	_ = i
   995  	var l int
   996  	_ = l
   997  	if len(m.MarketId) > 0 {
   998  		i -= len(m.MarketId)
   999  		copy(dAtA[i:], m.MarketId)
  1000  		i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId)))
  1001  		i--
  1002  		dAtA[i] = 0xa
  1003  	}
  1004  	return len(dAtA) - i, nil
  1005  }
  1006  
  1007  func (m *QueryInsuranceFundResponse) Marshal() (dAtA []byte, err error) {
  1008  	size := m.Size()
  1009  	dAtA = make([]byte, size)
  1010  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1011  	if err != nil {
  1012  		return nil, err
  1013  	}
  1014  	return dAtA[:n], nil
  1015  }
  1016  
  1017  func (m *QueryInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error) {
  1018  	size := m.Size()
  1019  	return m.MarshalToSizedBuffer(dAtA[:size])
  1020  }
  1021  
  1022  func (m *QueryInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1023  	i := len(dAtA)
  1024  	_ = i
  1025  	var l int
  1026  	_ = l
  1027  	if m.Fund != nil {
  1028  		{
  1029  			size, err := m.Fund.MarshalToSizedBuffer(dAtA[:i])
  1030  			if err != nil {
  1031  				return 0, err
  1032  			}
  1033  			i -= size
  1034  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1035  		}
  1036  		i--
  1037  		dAtA[i] = 0xa
  1038  	}
  1039  	return len(dAtA) - i, nil
  1040  }
  1041  
  1042  func (m *QueryInsuranceFundsRequest) Marshal() (dAtA []byte, err error) {
  1043  	size := m.Size()
  1044  	dAtA = make([]byte, size)
  1045  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1046  	if err != nil {
  1047  		return nil, err
  1048  	}
  1049  	return dAtA[:n], nil
  1050  }
  1051  
  1052  func (m *QueryInsuranceFundsRequest) MarshalTo(dAtA []byte) (int, error) {
  1053  	size := m.Size()
  1054  	return m.MarshalToSizedBuffer(dAtA[:size])
  1055  }
  1056  
  1057  func (m *QueryInsuranceFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1058  	i := len(dAtA)
  1059  	_ = i
  1060  	var l int
  1061  	_ = l
  1062  	return len(dAtA) - i, nil
  1063  }
  1064  
  1065  func (m *QueryInsuranceFundsResponse) Marshal() (dAtA []byte, err error) {
  1066  	size := m.Size()
  1067  	dAtA = make([]byte, size)
  1068  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1069  	if err != nil {
  1070  		return nil, err
  1071  	}
  1072  	return dAtA[:n], nil
  1073  }
  1074  
  1075  func (m *QueryInsuranceFundsResponse) MarshalTo(dAtA []byte) (int, error) {
  1076  	size := m.Size()
  1077  	return m.MarshalToSizedBuffer(dAtA[:size])
  1078  }
  1079  
  1080  func (m *QueryInsuranceFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1081  	i := len(dAtA)
  1082  	_ = i
  1083  	var l int
  1084  	_ = l
  1085  	if len(m.Funds) > 0 {
  1086  		for iNdEx := len(m.Funds) - 1; iNdEx >= 0; iNdEx-- {
  1087  			{
  1088  				size, err := m.Funds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1089  				if err != nil {
  1090  					return 0, err
  1091  				}
  1092  				i -= size
  1093  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1094  			}
  1095  			i--
  1096  			dAtA[i] = 0xa
  1097  		}
  1098  	}
  1099  	return len(dAtA) - i, nil
  1100  }
  1101  
  1102  func (m *QueryEstimatedRedemptionsRequest) Marshal() (dAtA []byte, err error) {
  1103  	size := m.Size()
  1104  	dAtA = make([]byte, size)
  1105  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1106  	if err != nil {
  1107  		return nil, err
  1108  	}
  1109  	return dAtA[:n], nil
  1110  }
  1111  
  1112  func (m *QueryEstimatedRedemptionsRequest) MarshalTo(dAtA []byte) (int, error) {
  1113  	size := m.Size()
  1114  	return m.MarshalToSizedBuffer(dAtA[:size])
  1115  }
  1116  
  1117  func (m *QueryEstimatedRedemptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1118  	i := len(dAtA)
  1119  	_ = i
  1120  	var l int
  1121  	_ = l
  1122  	if len(m.Address) > 0 {
  1123  		i -= len(m.Address)
  1124  		copy(dAtA[i:], m.Address)
  1125  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  1126  		i--
  1127  		dAtA[i] = 0x12
  1128  	}
  1129  	if len(m.MarketId) > 0 {
  1130  		i -= len(m.MarketId)
  1131  		copy(dAtA[i:], m.MarketId)
  1132  		i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId)))
  1133  		i--
  1134  		dAtA[i] = 0xa
  1135  	}
  1136  	return len(dAtA) - i, nil
  1137  }
  1138  
  1139  func (m *QueryEstimatedRedemptionsResponse) Marshal() (dAtA []byte, err error) {
  1140  	size := m.Size()
  1141  	dAtA = make([]byte, size)
  1142  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1143  	if err != nil {
  1144  		return nil, err
  1145  	}
  1146  	return dAtA[:n], nil
  1147  }
  1148  
  1149  func (m *QueryEstimatedRedemptionsResponse) MarshalTo(dAtA []byte) (int, error) {
  1150  	size := m.Size()
  1151  	return m.MarshalToSizedBuffer(dAtA[:size])
  1152  }
  1153  
  1154  func (m *QueryEstimatedRedemptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1155  	i := len(dAtA)
  1156  	_ = i
  1157  	var l int
  1158  	_ = l
  1159  	if len(m.Amount) > 0 {
  1160  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1161  			{
  1162  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1163  				if err != nil {
  1164  					return 0, err
  1165  				}
  1166  				i -= size
  1167  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1168  			}
  1169  			i--
  1170  			dAtA[i] = 0xa
  1171  		}
  1172  	}
  1173  	return len(dAtA) - i, nil
  1174  }
  1175  
  1176  func (m *QueryPendingRedemptionsRequest) Marshal() (dAtA []byte, err error) {
  1177  	size := m.Size()
  1178  	dAtA = make([]byte, size)
  1179  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1180  	if err != nil {
  1181  		return nil, err
  1182  	}
  1183  	return dAtA[:n], nil
  1184  }
  1185  
  1186  func (m *QueryPendingRedemptionsRequest) MarshalTo(dAtA []byte) (int, error) {
  1187  	size := m.Size()
  1188  	return m.MarshalToSizedBuffer(dAtA[:size])
  1189  }
  1190  
  1191  func (m *QueryPendingRedemptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1192  	i := len(dAtA)
  1193  	_ = i
  1194  	var l int
  1195  	_ = l
  1196  	if len(m.Address) > 0 {
  1197  		i -= len(m.Address)
  1198  		copy(dAtA[i:], m.Address)
  1199  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  1200  		i--
  1201  		dAtA[i] = 0x12
  1202  	}
  1203  	if len(m.MarketId) > 0 {
  1204  		i -= len(m.MarketId)
  1205  		copy(dAtA[i:], m.MarketId)
  1206  		i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId)))
  1207  		i--
  1208  		dAtA[i] = 0xa
  1209  	}
  1210  	return len(dAtA) - i, nil
  1211  }
  1212  
  1213  func (m *QueryPendingRedemptionsResponse) Marshal() (dAtA []byte, err error) {
  1214  	size := m.Size()
  1215  	dAtA = make([]byte, size)
  1216  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1217  	if err != nil {
  1218  		return nil, err
  1219  	}
  1220  	return dAtA[:n], nil
  1221  }
  1222  
  1223  func (m *QueryPendingRedemptionsResponse) MarshalTo(dAtA []byte) (int, error) {
  1224  	size := m.Size()
  1225  	return m.MarshalToSizedBuffer(dAtA[:size])
  1226  }
  1227  
  1228  func (m *QueryPendingRedemptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1229  	i := len(dAtA)
  1230  	_ = i
  1231  	var l int
  1232  	_ = l
  1233  	if len(m.Amount) > 0 {
  1234  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1235  			{
  1236  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1237  				if err != nil {
  1238  					return 0, err
  1239  				}
  1240  				i -= size
  1241  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1242  			}
  1243  			i--
  1244  			dAtA[i] = 0xa
  1245  		}
  1246  	}
  1247  	return len(dAtA) - i, nil
  1248  }
  1249  
  1250  func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error) {
  1251  	size := m.Size()
  1252  	dAtA = make([]byte, size)
  1253  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1254  	if err != nil {
  1255  		return nil, err
  1256  	}
  1257  	return dAtA[:n], nil
  1258  }
  1259  
  1260  func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error) {
  1261  	size := m.Size()
  1262  	return m.MarshalToSizedBuffer(dAtA[:size])
  1263  }
  1264  
  1265  func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1266  	i := len(dAtA)
  1267  	_ = i
  1268  	var l int
  1269  	_ = l
  1270  	return len(dAtA) - i, nil
  1271  }
  1272  
  1273  func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error) {
  1274  	size := m.Size()
  1275  	dAtA = make([]byte, size)
  1276  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1277  	if err != nil {
  1278  		return nil, err
  1279  	}
  1280  	return dAtA[:n], nil
  1281  }
  1282  
  1283  func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error) {
  1284  	size := m.Size()
  1285  	return m.MarshalToSizedBuffer(dAtA[:size])
  1286  }
  1287  
  1288  func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1289  	i := len(dAtA)
  1290  	_ = i
  1291  	var l int
  1292  	_ = l
  1293  	if m.State != nil {
  1294  		{
  1295  			size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
  1296  			if err != nil {
  1297  				return 0, err
  1298  			}
  1299  			i -= size
  1300  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1301  		}
  1302  		i--
  1303  		dAtA[i] = 0xa
  1304  	}
  1305  	return len(dAtA) - i, nil
  1306  }
  1307  
  1308  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  1309  	offset -= sovQuery(v)
  1310  	base := offset
  1311  	for v >= 1<<7 {
  1312  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1313  		v >>= 7
  1314  		offset++
  1315  	}
  1316  	dAtA[offset] = uint8(v)
  1317  	return base
  1318  }
  1319  func (m *QueryInsuranceParamsRequest) Size() (n int) {
  1320  	if m == nil {
  1321  		return 0
  1322  	}
  1323  	var l int
  1324  	_ = l
  1325  	return n
  1326  }
  1327  
  1328  func (m *QueryInsuranceParamsResponse) Size() (n int) {
  1329  	if m == nil {
  1330  		return 0
  1331  	}
  1332  	var l int
  1333  	_ = l
  1334  	l = m.Params.Size()
  1335  	n += 1 + l + sovQuery(uint64(l))
  1336  	return n
  1337  }
  1338  
  1339  func (m *QueryInsuranceFundRequest) Size() (n int) {
  1340  	if m == nil {
  1341  		return 0
  1342  	}
  1343  	var l int
  1344  	_ = l
  1345  	l = len(m.MarketId)
  1346  	if l > 0 {
  1347  		n += 1 + l + sovQuery(uint64(l))
  1348  	}
  1349  	return n
  1350  }
  1351  
  1352  func (m *QueryInsuranceFundResponse) Size() (n int) {
  1353  	if m == nil {
  1354  		return 0
  1355  	}
  1356  	var l int
  1357  	_ = l
  1358  	if m.Fund != nil {
  1359  		l = m.Fund.Size()
  1360  		n += 1 + l + sovQuery(uint64(l))
  1361  	}
  1362  	return n
  1363  }
  1364  
  1365  func (m *QueryInsuranceFundsRequest) Size() (n int) {
  1366  	if m == nil {
  1367  		return 0
  1368  	}
  1369  	var l int
  1370  	_ = l
  1371  	return n
  1372  }
  1373  
  1374  func (m *QueryInsuranceFundsResponse) Size() (n int) {
  1375  	if m == nil {
  1376  		return 0
  1377  	}
  1378  	var l int
  1379  	_ = l
  1380  	if len(m.Funds) > 0 {
  1381  		for _, e := range m.Funds {
  1382  			l = e.Size()
  1383  			n += 1 + l + sovQuery(uint64(l))
  1384  		}
  1385  	}
  1386  	return n
  1387  }
  1388  
  1389  func (m *QueryEstimatedRedemptionsRequest) Size() (n int) {
  1390  	if m == nil {
  1391  		return 0
  1392  	}
  1393  	var l int
  1394  	_ = l
  1395  	l = len(m.MarketId)
  1396  	if l > 0 {
  1397  		n += 1 + l + sovQuery(uint64(l))
  1398  	}
  1399  	l = len(m.Address)
  1400  	if l > 0 {
  1401  		n += 1 + l + sovQuery(uint64(l))
  1402  	}
  1403  	return n
  1404  }
  1405  
  1406  func (m *QueryEstimatedRedemptionsResponse) Size() (n int) {
  1407  	if m == nil {
  1408  		return 0
  1409  	}
  1410  	var l int
  1411  	_ = l
  1412  	if len(m.Amount) > 0 {
  1413  		for _, e := range m.Amount {
  1414  			l = e.Size()
  1415  			n += 1 + l + sovQuery(uint64(l))
  1416  		}
  1417  	}
  1418  	return n
  1419  }
  1420  
  1421  func (m *QueryPendingRedemptionsRequest) Size() (n int) {
  1422  	if m == nil {
  1423  		return 0
  1424  	}
  1425  	var l int
  1426  	_ = l
  1427  	l = len(m.MarketId)
  1428  	if l > 0 {
  1429  		n += 1 + l + sovQuery(uint64(l))
  1430  	}
  1431  	l = len(m.Address)
  1432  	if l > 0 {
  1433  		n += 1 + l + sovQuery(uint64(l))
  1434  	}
  1435  	return n
  1436  }
  1437  
  1438  func (m *QueryPendingRedemptionsResponse) Size() (n int) {
  1439  	if m == nil {
  1440  		return 0
  1441  	}
  1442  	var l int
  1443  	_ = l
  1444  	if len(m.Amount) > 0 {
  1445  		for _, e := range m.Amount {
  1446  			l = e.Size()
  1447  			n += 1 + l + sovQuery(uint64(l))
  1448  		}
  1449  	}
  1450  	return n
  1451  }
  1452  
  1453  func (m *QueryModuleStateRequest) Size() (n int) {
  1454  	if m == nil {
  1455  		return 0
  1456  	}
  1457  	var l int
  1458  	_ = l
  1459  	return n
  1460  }
  1461  
  1462  func (m *QueryModuleStateResponse) Size() (n int) {
  1463  	if m == nil {
  1464  		return 0
  1465  	}
  1466  	var l int
  1467  	_ = l
  1468  	if m.State != nil {
  1469  		l = m.State.Size()
  1470  		n += 1 + l + sovQuery(uint64(l))
  1471  	}
  1472  	return n
  1473  }
  1474  
  1475  func sovQuery(x uint64) (n int) {
  1476  	return (math_bits.Len64(x|1) + 6) / 7
  1477  }
  1478  func sozQuery(x uint64) (n int) {
  1479  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1480  }
  1481  func (m *QueryInsuranceParamsRequest) Unmarshal(dAtA []byte) error {
  1482  	l := len(dAtA)
  1483  	iNdEx := 0
  1484  	for iNdEx < l {
  1485  		preIndex := iNdEx
  1486  		var wire uint64
  1487  		for shift := uint(0); ; shift += 7 {
  1488  			if shift >= 64 {
  1489  				return ErrIntOverflowQuery
  1490  			}
  1491  			if iNdEx >= l {
  1492  				return io.ErrUnexpectedEOF
  1493  			}
  1494  			b := dAtA[iNdEx]
  1495  			iNdEx++
  1496  			wire |= uint64(b&0x7F) << shift
  1497  			if b < 0x80 {
  1498  				break
  1499  			}
  1500  		}
  1501  		fieldNum := int32(wire >> 3)
  1502  		wireType := int(wire & 0x7)
  1503  		if wireType == 4 {
  1504  			return fmt.Errorf("proto: QueryInsuranceParamsRequest: wiretype end group for non-group")
  1505  		}
  1506  		if fieldNum <= 0 {
  1507  			return fmt.Errorf("proto: QueryInsuranceParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1508  		}
  1509  		switch fieldNum {
  1510  		default:
  1511  			iNdEx = preIndex
  1512  			skippy, err := skipQuery(dAtA[iNdEx:])
  1513  			if err != nil {
  1514  				return err
  1515  			}
  1516  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1517  				return ErrInvalidLengthQuery
  1518  			}
  1519  			if (iNdEx + skippy) > l {
  1520  				return io.ErrUnexpectedEOF
  1521  			}
  1522  			iNdEx += skippy
  1523  		}
  1524  	}
  1525  
  1526  	if iNdEx > l {
  1527  		return io.ErrUnexpectedEOF
  1528  	}
  1529  	return nil
  1530  }
  1531  func (m *QueryInsuranceParamsResponse) Unmarshal(dAtA []byte) error {
  1532  	l := len(dAtA)
  1533  	iNdEx := 0
  1534  	for iNdEx < l {
  1535  		preIndex := iNdEx
  1536  		var wire uint64
  1537  		for shift := uint(0); ; shift += 7 {
  1538  			if shift >= 64 {
  1539  				return ErrIntOverflowQuery
  1540  			}
  1541  			if iNdEx >= l {
  1542  				return io.ErrUnexpectedEOF
  1543  			}
  1544  			b := dAtA[iNdEx]
  1545  			iNdEx++
  1546  			wire |= uint64(b&0x7F) << shift
  1547  			if b < 0x80 {
  1548  				break
  1549  			}
  1550  		}
  1551  		fieldNum := int32(wire >> 3)
  1552  		wireType := int(wire & 0x7)
  1553  		if wireType == 4 {
  1554  			return fmt.Errorf("proto: QueryInsuranceParamsResponse: wiretype end group for non-group")
  1555  		}
  1556  		if fieldNum <= 0 {
  1557  			return fmt.Errorf("proto: QueryInsuranceParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1558  		}
  1559  		switch fieldNum {
  1560  		case 1:
  1561  			if wireType != 2 {
  1562  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  1563  			}
  1564  			var msglen int
  1565  			for shift := uint(0); ; shift += 7 {
  1566  				if shift >= 64 {
  1567  					return ErrIntOverflowQuery
  1568  				}
  1569  				if iNdEx >= l {
  1570  					return io.ErrUnexpectedEOF
  1571  				}
  1572  				b := dAtA[iNdEx]
  1573  				iNdEx++
  1574  				msglen |= int(b&0x7F) << shift
  1575  				if b < 0x80 {
  1576  					break
  1577  				}
  1578  			}
  1579  			if msglen < 0 {
  1580  				return ErrInvalidLengthQuery
  1581  			}
  1582  			postIndex := iNdEx + msglen
  1583  			if postIndex < 0 {
  1584  				return ErrInvalidLengthQuery
  1585  			}
  1586  			if postIndex > l {
  1587  				return io.ErrUnexpectedEOF
  1588  			}
  1589  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1590  				return err
  1591  			}
  1592  			iNdEx = postIndex
  1593  		default:
  1594  			iNdEx = preIndex
  1595  			skippy, err := skipQuery(dAtA[iNdEx:])
  1596  			if err != nil {
  1597  				return err
  1598  			}
  1599  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1600  				return ErrInvalidLengthQuery
  1601  			}
  1602  			if (iNdEx + skippy) > l {
  1603  				return io.ErrUnexpectedEOF
  1604  			}
  1605  			iNdEx += skippy
  1606  		}
  1607  	}
  1608  
  1609  	if iNdEx > l {
  1610  		return io.ErrUnexpectedEOF
  1611  	}
  1612  	return nil
  1613  }
  1614  func (m *QueryInsuranceFundRequest) Unmarshal(dAtA []byte) error {
  1615  	l := len(dAtA)
  1616  	iNdEx := 0
  1617  	for iNdEx < l {
  1618  		preIndex := iNdEx
  1619  		var wire uint64
  1620  		for shift := uint(0); ; shift += 7 {
  1621  			if shift >= 64 {
  1622  				return ErrIntOverflowQuery
  1623  			}
  1624  			if iNdEx >= l {
  1625  				return io.ErrUnexpectedEOF
  1626  			}
  1627  			b := dAtA[iNdEx]
  1628  			iNdEx++
  1629  			wire |= uint64(b&0x7F) << shift
  1630  			if b < 0x80 {
  1631  				break
  1632  			}
  1633  		}
  1634  		fieldNum := int32(wire >> 3)
  1635  		wireType := int(wire & 0x7)
  1636  		if wireType == 4 {
  1637  			return fmt.Errorf("proto: QueryInsuranceFundRequest: wiretype end group for non-group")
  1638  		}
  1639  		if fieldNum <= 0 {
  1640  			return fmt.Errorf("proto: QueryInsuranceFundRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1641  		}
  1642  		switch fieldNum {
  1643  		case 1:
  1644  			if wireType != 2 {
  1645  				return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType)
  1646  			}
  1647  			var stringLen uint64
  1648  			for shift := uint(0); ; shift += 7 {
  1649  				if shift >= 64 {
  1650  					return ErrIntOverflowQuery
  1651  				}
  1652  				if iNdEx >= l {
  1653  					return io.ErrUnexpectedEOF
  1654  				}
  1655  				b := dAtA[iNdEx]
  1656  				iNdEx++
  1657  				stringLen |= uint64(b&0x7F) << shift
  1658  				if b < 0x80 {
  1659  					break
  1660  				}
  1661  			}
  1662  			intStringLen := int(stringLen)
  1663  			if intStringLen < 0 {
  1664  				return ErrInvalidLengthQuery
  1665  			}
  1666  			postIndex := iNdEx + intStringLen
  1667  			if postIndex < 0 {
  1668  				return ErrInvalidLengthQuery
  1669  			}
  1670  			if postIndex > l {
  1671  				return io.ErrUnexpectedEOF
  1672  			}
  1673  			m.MarketId = string(dAtA[iNdEx:postIndex])
  1674  			iNdEx = postIndex
  1675  		default:
  1676  			iNdEx = preIndex
  1677  			skippy, err := skipQuery(dAtA[iNdEx:])
  1678  			if err != nil {
  1679  				return err
  1680  			}
  1681  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1682  				return ErrInvalidLengthQuery
  1683  			}
  1684  			if (iNdEx + skippy) > l {
  1685  				return io.ErrUnexpectedEOF
  1686  			}
  1687  			iNdEx += skippy
  1688  		}
  1689  	}
  1690  
  1691  	if iNdEx > l {
  1692  		return io.ErrUnexpectedEOF
  1693  	}
  1694  	return nil
  1695  }
  1696  func (m *QueryInsuranceFundResponse) Unmarshal(dAtA []byte) error {
  1697  	l := len(dAtA)
  1698  	iNdEx := 0
  1699  	for iNdEx < l {
  1700  		preIndex := iNdEx
  1701  		var wire uint64
  1702  		for shift := uint(0); ; shift += 7 {
  1703  			if shift >= 64 {
  1704  				return ErrIntOverflowQuery
  1705  			}
  1706  			if iNdEx >= l {
  1707  				return io.ErrUnexpectedEOF
  1708  			}
  1709  			b := dAtA[iNdEx]
  1710  			iNdEx++
  1711  			wire |= uint64(b&0x7F) << shift
  1712  			if b < 0x80 {
  1713  				break
  1714  			}
  1715  		}
  1716  		fieldNum := int32(wire >> 3)
  1717  		wireType := int(wire & 0x7)
  1718  		if wireType == 4 {
  1719  			return fmt.Errorf("proto: QueryInsuranceFundResponse: wiretype end group for non-group")
  1720  		}
  1721  		if fieldNum <= 0 {
  1722  			return fmt.Errorf("proto: QueryInsuranceFundResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1723  		}
  1724  		switch fieldNum {
  1725  		case 1:
  1726  			if wireType != 2 {
  1727  				return fmt.Errorf("proto: wrong wireType = %d for field Fund", wireType)
  1728  			}
  1729  			var msglen int
  1730  			for shift := uint(0); ; shift += 7 {
  1731  				if shift >= 64 {
  1732  					return ErrIntOverflowQuery
  1733  				}
  1734  				if iNdEx >= l {
  1735  					return io.ErrUnexpectedEOF
  1736  				}
  1737  				b := dAtA[iNdEx]
  1738  				iNdEx++
  1739  				msglen |= int(b&0x7F) << shift
  1740  				if b < 0x80 {
  1741  					break
  1742  				}
  1743  			}
  1744  			if msglen < 0 {
  1745  				return ErrInvalidLengthQuery
  1746  			}
  1747  			postIndex := iNdEx + msglen
  1748  			if postIndex < 0 {
  1749  				return ErrInvalidLengthQuery
  1750  			}
  1751  			if postIndex > l {
  1752  				return io.ErrUnexpectedEOF
  1753  			}
  1754  			if m.Fund == nil {
  1755  				m.Fund = &InsuranceFund{}
  1756  			}
  1757  			if err := m.Fund.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1758  				return err
  1759  			}
  1760  			iNdEx = postIndex
  1761  		default:
  1762  			iNdEx = preIndex
  1763  			skippy, err := skipQuery(dAtA[iNdEx:])
  1764  			if err != nil {
  1765  				return err
  1766  			}
  1767  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1768  				return ErrInvalidLengthQuery
  1769  			}
  1770  			if (iNdEx + skippy) > l {
  1771  				return io.ErrUnexpectedEOF
  1772  			}
  1773  			iNdEx += skippy
  1774  		}
  1775  	}
  1776  
  1777  	if iNdEx > l {
  1778  		return io.ErrUnexpectedEOF
  1779  	}
  1780  	return nil
  1781  }
  1782  func (m *QueryInsuranceFundsRequest) Unmarshal(dAtA []byte) error {
  1783  	l := len(dAtA)
  1784  	iNdEx := 0
  1785  	for iNdEx < l {
  1786  		preIndex := iNdEx
  1787  		var wire uint64
  1788  		for shift := uint(0); ; shift += 7 {
  1789  			if shift >= 64 {
  1790  				return ErrIntOverflowQuery
  1791  			}
  1792  			if iNdEx >= l {
  1793  				return io.ErrUnexpectedEOF
  1794  			}
  1795  			b := dAtA[iNdEx]
  1796  			iNdEx++
  1797  			wire |= uint64(b&0x7F) << shift
  1798  			if b < 0x80 {
  1799  				break
  1800  			}
  1801  		}
  1802  		fieldNum := int32(wire >> 3)
  1803  		wireType := int(wire & 0x7)
  1804  		if wireType == 4 {
  1805  			return fmt.Errorf("proto: QueryInsuranceFundsRequest: wiretype end group for non-group")
  1806  		}
  1807  		if fieldNum <= 0 {
  1808  			return fmt.Errorf("proto: QueryInsuranceFundsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1809  		}
  1810  		switch fieldNum {
  1811  		default:
  1812  			iNdEx = preIndex
  1813  			skippy, err := skipQuery(dAtA[iNdEx:])
  1814  			if err != nil {
  1815  				return err
  1816  			}
  1817  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1818  				return ErrInvalidLengthQuery
  1819  			}
  1820  			if (iNdEx + skippy) > l {
  1821  				return io.ErrUnexpectedEOF
  1822  			}
  1823  			iNdEx += skippy
  1824  		}
  1825  	}
  1826  
  1827  	if iNdEx > l {
  1828  		return io.ErrUnexpectedEOF
  1829  	}
  1830  	return nil
  1831  }
  1832  func (m *QueryInsuranceFundsResponse) Unmarshal(dAtA []byte) error {
  1833  	l := len(dAtA)
  1834  	iNdEx := 0
  1835  	for iNdEx < l {
  1836  		preIndex := iNdEx
  1837  		var wire uint64
  1838  		for shift := uint(0); ; shift += 7 {
  1839  			if shift >= 64 {
  1840  				return ErrIntOverflowQuery
  1841  			}
  1842  			if iNdEx >= l {
  1843  				return io.ErrUnexpectedEOF
  1844  			}
  1845  			b := dAtA[iNdEx]
  1846  			iNdEx++
  1847  			wire |= uint64(b&0x7F) << shift
  1848  			if b < 0x80 {
  1849  				break
  1850  			}
  1851  		}
  1852  		fieldNum := int32(wire >> 3)
  1853  		wireType := int(wire & 0x7)
  1854  		if wireType == 4 {
  1855  			return fmt.Errorf("proto: QueryInsuranceFundsResponse: wiretype end group for non-group")
  1856  		}
  1857  		if fieldNum <= 0 {
  1858  			return fmt.Errorf("proto: QueryInsuranceFundsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1859  		}
  1860  		switch fieldNum {
  1861  		case 1:
  1862  			if wireType != 2 {
  1863  				return fmt.Errorf("proto: wrong wireType = %d for field Funds", wireType)
  1864  			}
  1865  			var msglen int
  1866  			for shift := uint(0); ; shift += 7 {
  1867  				if shift >= 64 {
  1868  					return ErrIntOverflowQuery
  1869  				}
  1870  				if iNdEx >= l {
  1871  					return io.ErrUnexpectedEOF
  1872  				}
  1873  				b := dAtA[iNdEx]
  1874  				iNdEx++
  1875  				msglen |= int(b&0x7F) << shift
  1876  				if b < 0x80 {
  1877  					break
  1878  				}
  1879  			}
  1880  			if msglen < 0 {
  1881  				return ErrInvalidLengthQuery
  1882  			}
  1883  			postIndex := iNdEx + msglen
  1884  			if postIndex < 0 {
  1885  				return ErrInvalidLengthQuery
  1886  			}
  1887  			if postIndex > l {
  1888  				return io.ErrUnexpectedEOF
  1889  			}
  1890  			m.Funds = append(m.Funds, InsuranceFund{})
  1891  			if err := m.Funds[len(m.Funds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1892  				return err
  1893  			}
  1894  			iNdEx = postIndex
  1895  		default:
  1896  			iNdEx = preIndex
  1897  			skippy, err := skipQuery(dAtA[iNdEx:])
  1898  			if err != nil {
  1899  				return err
  1900  			}
  1901  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1902  				return ErrInvalidLengthQuery
  1903  			}
  1904  			if (iNdEx + skippy) > l {
  1905  				return io.ErrUnexpectedEOF
  1906  			}
  1907  			iNdEx += skippy
  1908  		}
  1909  	}
  1910  
  1911  	if iNdEx > l {
  1912  		return io.ErrUnexpectedEOF
  1913  	}
  1914  	return nil
  1915  }
  1916  func (m *QueryEstimatedRedemptionsRequest) Unmarshal(dAtA []byte) error {
  1917  	l := len(dAtA)
  1918  	iNdEx := 0
  1919  	for iNdEx < l {
  1920  		preIndex := iNdEx
  1921  		var wire uint64
  1922  		for shift := uint(0); ; shift += 7 {
  1923  			if shift >= 64 {
  1924  				return ErrIntOverflowQuery
  1925  			}
  1926  			if iNdEx >= l {
  1927  				return io.ErrUnexpectedEOF
  1928  			}
  1929  			b := dAtA[iNdEx]
  1930  			iNdEx++
  1931  			wire |= uint64(b&0x7F) << shift
  1932  			if b < 0x80 {
  1933  				break
  1934  			}
  1935  		}
  1936  		fieldNum := int32(wire >> 3)
  1937  		wireType := int(wire & 0x7)
  1938  		if wireType == 4 {
  1939  			return fmt.Errorf("proto: QueryEstimatedRedemptionsRequest: wiretype end group for non-group")
  1940  		}
  1941  		if fieldNum <= 0 {
  1942  			return fmt.Errorf("proto: QueryEstimatedRedemptionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1943  		}
  1944  		switch fieldNum {
  1945  		case 1:
  1946  			if wireType != 2 {
  1947  				return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType)
  1948  			}
  1949  			var stringLen uint64
  1950  			for shift := uint(0); ; shift += 7 {
  1951  				if shift >= 64 {
  1952  					return ErrIntOverflowQuery
  1953  				}
  1954  				if iNdEx >= l {
  1955  					return io.ErrUnexpectedEOF
  1956  				}
  1957  				b := dAtA[iNdEx]
  1958  				iNdEx++
  1959  				stringLen |= uint64(b&0x7F) << shift
  1960  				if b < 0x80 {
  1961  					break
  1962  				}
  1963  			}
  1964  			intStringLen := int(stringLen)
  1965  			if intStringLen < 0 {
  1966  				return ErrInvalidLengthQuery
  1967  			}
  1968  			postIndex := iNdEx + intStringLen
  1969  			if postIndex < 0 {
  1970  				return ErrInvalidLengthQuery
  1971  			}
  1972  			if postIndex > l {
  1973  				return io.ErrUnexpectedEOF
  1974  			}
  1975  			m.MarketId = string(dAtA[iNdEx:postIndex])
  1976  			iNdEx = postIndex
  1977  		case 2:
  1978  			if wireType != 2 {
  1979  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  1980  			}
  1981  			var stringLen uint64
  1982  			for shift := uint(0); ; shift += 7 {
  1983  				if shift >= 64 {
  1984  					return ErrIntOverflowQuery
  1985  				}
  1986  				if iNdEx >= l {
  1987  					return io.ErrUnexpectedEOF
  1988  				}
  1989  				b := dAtA[iNdEx]
  1990  				iNdEx++
  1991  				stringLen |= uint64(b&0x7F) << shift
  1992  				if b < 0x80 {
  1993  					break
  1994  				}
  1995  			}
  1996  			intStringLen := int(stringLen)
  1997  			if intStringLen < 0 {
  1998  				return ErrInvalidLengthQuery
  1999  			}
  2000  			postIndex := iNdEx + intStringLen
  2001  			if postIndex < 0 {
  2002  				return ErrInvalidLengthQuery
  2003  			}
  2004  			if postIndex > l {
  2005  				return io.ErrUnexpectedEOF
  2006  			}
  2007  			m.Address = string(dAtA[iNdEx:postIndex])
  2008  			iNdEx = postIndex
  2009  		default:
  2010  			iNdEx = preIndex
  2011  			skippy, err := skipQuery(dAtA[iNdEx:])
  2012  			if err != nil {
  2013  				return err
  2014  			}
  2015  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2016  				return ErrInvalidLengthQuery
  2017  			}
  2018  			if (iNdEx + skippy) > l {
  2019  				return io.ErrUnexpectedEOF
  2020  			}
  2021  			iNdEx += skippy
  2022  		}
  2023  	}
  2024  
  2025  	if iNdEx > l {
  2026  		return io.ErrUnexpectedEOF
  2027  	}
  2028  	return nil
  2029  }
  2030  func (m *QueryEstimatedRedemptionsResponse) Unmarshal(dAtA []byte) error {
  2031  	l := len(dAtA)
  2032  	iNdEx := 0
  2033  	for iNdEx < l {
  2034  		preIndex := iNdEx
  2035  		var wire uint64
  2036  		for shift := uint(0); ; shift += 7 {
  2037  			if shift >= 64 {
  2038  				return ErrIntOverflowQuery
  2039  			}
  2040  			if iNdEx >= l {
  2041  				return io.ErrUnexpectedEOF
  2042  			}
  2043  			b := dAtA[iNdEx]
  2044  			iNdEx++
  2045  			wire |= uint64(b&0x7F) << shift
  2046  			if b < 0x80 {
  2047  				break
  2048  			}
  2049  		}
  2050  		fieldNum := int32(wire >> 3)
  2051  		wireType := int(wire & 0x7)
  2052  		if wireType == 4 {
  2053  			return fmt.Errorf("proto: QueryEstimatedRedemptionsResponse: wiretype end group for non-group")
  2054  		}
  2055  		if fieldNum <= 0 {
  2056  			return fmt.Errorf("proto: QueryEstimatedRedemptionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2057  		}
  2058  		switch fieldNum {
  2059  		case 1:
  2060  			if wireType != 2 {
  2061  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2062  			}
  2063  			var msglen int
  2064  			for shift := uint(0); ; shift += 7 {
  2065  				if shift >= 64 {
  2066  					return ErrIntOverflowQuery
  2067  				}
  2068  				if iNdEx >= l {
  2069  					return io.ErrUnexpectedEOF
  2070  				}
  2071  				b := dAtA[iNdEx]
  2072  				iNdEx++
  2073  				msglen |= int(b&0x7F) << shift
  2074  				if b < 0x80 {
  2075  					break
  2076  				}
  2077  			}
  2078  			if msglen < 0 {
  2079  				return ErrInvalidLengthQuery
  2080  			}
  2081  			postIndex := iNdEx + msglen
  2082  			if postIndex < 0 {
  2083  				return ErrInvalidLengthQuery
  2084  			}
  2085  			if postIndex > l {
  2086  				return io.ErrUnexpectedEOF
  2087  			}
  2088  			m.Amount = append(m.Amount, types.Coin{})
  2089  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2090  				return err
  2091  			}
  2092  			iNdEx = postIndex
  2093  		default:
  2094  			iNdEx = preIndex
  2095  			skippy, err := skipQuery(dAtA[iNdEx:])
  2096  			if err != nil {
  2097  				return err
  2098  			}
  2099  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2100  				return ErrInvalidLengthQuery
  2101  			}
  2102  			if (iNdEx + skippy) > l {
  2103  				return io.ErrUnexpectedEOF
  2104  			}
  2105  			iNdEx += skippy
  2106  		}
  2107  	}
  2108  
  2109  	if iNdEx > l {
  2110  		return io.ErrUnexpectedEOF
  2111  	}
  2112  	return nil
  2113  }
  2114  func (m *QueryPendingRedemptionsRequest) Unmarshal(dAtA []byte) error {
  2115  	l := len(dAtA)
  2116  	iNdEx := 0
  2117  	for iNdEx < l {
  2118  		preIndex := iNdEx
  2119  		var wire uint64
  2120  		for shift := uint(0); ; shift += 7 {
  2121  			if shift >= 64 {
  2122  				return ErrIntOverflowQuery
  2123  			}
  2124  			if iNdEx >= l {
  2125  				return io.ErrUnexpectedEOF
  2126  			}
  2127  			b := dAtA[iNdEx]
  2128  			iNdEx++
  2129  			wire |= uint64(b&0x7F) << shift
  2130  			if b < 0x80 {
  2131  				break
  2132  			}
  2133  		}
  2134  		fieldNum := int32(wire >> 3)
  2135  		wireType := int(wire & 0x7)
  2136  		if wireType == 4 {
  2137  			return fmt.Errorf("proto: QueryPendingRedemptionsRequest: wiretype end group for non-group")
  2138  		}
  2139  		if fieldNum <= 0 {
  2140  			return fmt.Errorf("proto: QueryPendingRedemptionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2141  		}
  2142  		switch fieldNum {
  2143  		case 1:
  2144  			if wireType != 2 {
  2145  				return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType)
  2146  			}
  2147  			var stringLen uint64
  2148  			for shift := uint(0); ; shift += 7 {
  2149  				if shift >= 64 {
  2150  					return ErrIntOverflowQuery
  2151  				}
  2152  				if iNdEx >= l {
  2153  					return io.ErrUnexpectedEOF
  2154  				}
  2155  				b := dAtA[iNdEx]
  2156  				iNdEx++
  2157  				stringLen |= uint64(b&0x7F) << shift
  2158  				if b < 0x80 {
  2159  					break
  2160  				}
  2161  			}
  2162  			intStringLen := int(stringLen)
  2163  			if intStringLen < 0 {
  2164  				return ErrInvalidLengthQuery
  2165  			}
  2166  			postIndex := iNdEx + intStringLen
  2167  			if postIndex < 0 {
  2168  				return ErrInvalidLengthQuery
  2169  			}
  2170  			if postIndex > l {
  2171  				return io.ErrUnexpectedEOF
  2172  			}
  2173  			m.MarketId = string(dAtA[iNdEx:postIndex])
  2174  			iNdEx = postIndex
  2175  		case 2:
  2176  			if wireType != 2 {
  2177  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  2178  			}
  2179  			var stringLen uint64
  2180  			for shift := uint(0); ; shift += 7 {
  2181  				if shift >= 64 {
  2182  					return ErrIntOverflowQuery
  2183  				}
  2184  				if iNdEx >= l {
  2185  					return io.ErrUnexpectedEOF
  2186  				}
  2187  				b := dAtA[iNdEx]
  2188  				iNdEx++
  2189  				stringLen |= uint64(b&0x7F) << shift
  2190  				if b < 0x80 {
  2191  					break
  2192  				}
  2193  			}
  2194  			intStringLen := int(stringLen)
  2195  			if intStringLen < 0 {
  2196  				return ErrInvalidLengthQuery
  2197  			}
  2198  			postIndex := iNdEx + intStringLen
  2199  			if postIndex < 0 {
  2200  				return ErrInvalidLengthQuery
  2201  			}
  2202  			if postIndex > l {
  2203  				return io.ErrUnexpectedEOF
  2204  			}
  2205  			m.Address = string(dAtA[iNdEx:postIndex])
  2206  			iNdEx = postIndex
  2207  		default:
  2208  			iNdEx = preIndex
  2209  			skippy, err := skipQuery(dAtA[iNdEx:])
  2210  			if err != nil {
  2211  				return err
  2212  			}
  2213  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2214  				return ErrInvalidLengthQuery
  2215  			}
  2216  			if (iNdEx + skippy) > l {
  2217  				return io.ErrUnexpectedEOF
  2218  			}
  2219  			iNdEx += skippy
  2220  		}
  2221  	}
  2222  
  2223  	if iNdEx > l {
  2224  		return io.ErrUnexpectedEOF
  2225  	}
  2226  	return nil
  2227  }
  2228  func (m *QueryPendingRedemptionsResponse) Unmarshal(dAtA []byte) error {
  2229  	l := len(dAtA)
  2230  	iNdEx := 0
  2231  	for iNdEx < l {
  2232  		preIndex := iNdEx
  2233  		var wire uint64
  2234  		for shift := uint(0); ; shift += 7 {
  2235  			if shift >= 64 {
  2236  				return ErrIntOverflowQuery
  2237  			}
  2238  			if iNdEx >= l {
  2239  				return io.ErrUnexpectedEOF
  2240  			}
  2241  			b := dAtA[iNdEx]
  2242  			iNdEx++
  2243  			wire |= uint64(b&0x7F) << shift
  2244  			if b < 0x80 {
  2245  				break
  2246  			}
  2247  		}
  2248  		fieldNum := int32(wire >> 3)
  2249  		wireType := int(wire & 0x7)
  2250  		if wireType == 4 {
  2251  			return fmt.Errorf("proto: QueryPendingRedemptionsResponse: wiretype end group for non-group")
  2252  		}
  2253  		if fieldNum <= 0 {
  2254  			return fmt.Errorf("proto: QueryPendingRedemptionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2255  		}
  2256  		switch fieldNum {
  2257  		case 1:
  2258  			if wireType != 2 {
  2259  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2260  			}
  2261  			var msglen int
  2262  			for shift := uint(0); ; shift += 7 {
  2263  				if shift >= 64 {
  2264  					return ErrIntOverflowQuery
  2265  				}
  2266  				if iNdEx >= l {
  2267  					return io.ErrUnexpectedEOF
  2268  				}
  2269  				b := dAtA[iNdEx]
  2270  				iNdEx++
  2271  				msglen |= int(b&0x7F) << shift
  2272  				if b < 0x80 {
  2273  					break
  2274  				}
  2275  			}
  2276  			if msglen < 0 {
  2277  				return ErrInvalidLengthQuery
  2278  			}
  2279  			postIndex := iNdEx + msglen
  2280  			if postIndex < 0 {
  2281  				return ErrInvalidLengthQuery
  2282  			}
  2283  			if postIndex > l {
  2284  				return io.ErrUnexpectedEOF
  2285  			}
  2286  			m.Amount = append(m.Amount, types.Coin{})
  2287  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2288  				return err
  2289  			}
  2290  			iNdEx = postIndex
  2291  		default:
  2292  			iNdEx = preIndex
  2293  			skippy, err := skipQuery(dAtA[iNdEx:])
  2294  			if err != nil {
  2295  				return err
  2296  			}
  2297  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2298  				return ErrInvalidLengthQuery
  2299  			}
  2300  			if (iNdEx + skippy) > l {
  2301  				return io.ErrUnexpectedEOF
  2302  			}
  2303  			iNdEx += skippy
  2304  		}
  2305  	}
  2306  
  2307  	if iNdEx > l {
  2308  		return io.ErrUnexpectedEOF
  2309  	}
  2310  	return nil
  2311  }
  2312  func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error {
  2313  	l := len(dAtA)
  2314  	iNdEx := 0
  2315  	for iNdEx < l {
  2316  		preIndex := iNdEx
  2317  		var wire uint64
  2318  		for shift := uint(0); ; shift += 7 {
  2319  			if shift >= 64 {
  2320  				return ErrIntOverflowQuery
  2321  			}
  2322  			if iNdEx >= l {
  2323  				return io.ErrUnexpectedEOF
  2324  			}
  2325  			b := dAtA[iNdEx]
  2326  			iNdEx++
  2327  			wire |= uint64(b&0x7F) << shift
  2328  			if b < 0x80 {
  2329  				break
  2330  			}
  2331  		}
  2332  		fieldNum := int32(wire >> 3)
  2333  		wireType := int(wire & 0x7)
  2334  		if wireType == 4 {
  2335  			return fmt.Errorf("proto: QueryModuleStateRequest: wiretype end group for non-group")
  2336  		}
  2337  		if fieldNum <= 0 {
  2338  			return fmt.Errorf("proto: QueryModuleStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2339  		}
  2340  		switch fieldNum {
  2341  		default:
  2342  			iNdEx = preIndex
  2343  			skippy, err := skipQuery(dAtA[iNdEx:])
  2344  			if err != nil {
  2345  				return err
  2346  			}
  2347  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2348  				return ErrInvalidLengthQuery
  2349  			}
  2350  			if (iNdEx + skippy) > l {
  2351  				return io.ErrUnexpectedEOF
  2352  			}
  2353  			iNdEx += skippy
  2354  		}
  2355  	}
  2356  
  2357  	if iNdEx > l {
  2358  		return io.ErrUnexpectedEOF
  2359  	}
  2360  	return nil
  2361  }
  2362  func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error {
  2363  	l := len(dAtA)
  2364  	iNdEx := 0
  2365  	for iNdEx < l {
  2366  		preIndex := iNdEx
  2367  		var wire uint64
  2368  		for shift := uint(0); ; shift += 7 {
  2369  			if shift >= 64 {
  2370  				return ErrIntOverflowQuery
  2371  			}
  2372  			if iNdEx >= l {
  2373  				return io.ErrUnexpectedEOF
  2374  			}
  2375  			b := dAtA[iNdEx]
  2376  			iNdEx++
  2377  			wire |= uint64(b&0x7F) << shift
  2378  			if b < 0x80 {
  2379  				break
  2380  			}
  2381  		}
  2382  		fieldNum := int32(wire >> 3)
  2383  		wireType := int(wire & 0x7)
  2384  		if wireType == 4 {
  2385  			return fmt.Errorf("proto: QueryModuleStateResponse: wiretype end group for non-group")
  2386  		}
  2387  		if fieldNum <= 0 {
  2388  			return fmt.Errorf("proto: QueryModuleStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2389  		}
  2390  		switch fieldNum {
  2391  		case 1:
  2392  			if wireType != 2 {
  2393  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  2394  			}
  2395  			var msglen int
  2396  			for shift := uint(0); ; shift += 7 {
  2397  				if shift >= 64 {
  2398  					return ErrIntOverflowQuery
  2399  				}
  2400  				if iNdEx >= l {
  2401  					return io.ErrUnexpectedEOF
  2402  				}
  2403  				b := dAtA[iNdEx]
  2404  				iNdEx++
  2405  				msglen |= int(b&0x7F) << shift
  2406  				if b < 0x80 {
  2407  					break
  2408  				}
  2409  			}
  2410  			if msglen < 0 {
  2411  				return ErrInvalidLengthQuery
  2412  			}
  2413  			postIndex := iNdEx + msglen
  2414  			if postIndex < 0 {
  2415  				return ErrInvalidLengthQuery
  2416  			}
  2417  			if postIndex > l {
  2418  				return io.ErrUnexpectedEOF
  2419  			}
  2420  			if m.State == nil {
  2421  				m.State = &GenesisState{}
  2422  			}
  2423  			if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2424  				return err
  2425  			}
  2426  			iNdEx = postIndex
  2427  		default:
  2428  			iNdEx = preIndex
  2429  			skippy, err := skipQuery(dAtA[iNdEx:])
  2430  			if err != nil {
  2431  				return err
  2432  			}
  2433  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2434  				return ErrInvalidLengthQuery
  2435  			}
  2436  			if (iNdEx + skippy) > l {
  2437  				return io.ErrUnexpectedEOF
  2438  			}
  2439  			iNdEx += skippy
  2440  		}
  2441  	}
  2442  
  2443  	if iNdEx > l {
  2444  		return io.ErrUnexpectedEOF
  2445  	}
  2446  	return nil
  2447  }
  2448  func skipQuery(dAtA []byte) (n int, err error) {
  2449  	l := len(dAtA)
  2450  	iNdEx := 0
  2451  	depth := 0
  2452  	for iNdEx < l {
  2453  		var wire uint64
  2454  		for shift := uint(0); ; shift += 7 {
  2455  			if shift >= 64 {
  2456  				return 0, ErrIntOverflowQuery
  2457  			}
  2458  			if iNdEx >= l {
  2459  				return 0, io.ErrUnexpectedEOF
  2460  			}
  2461  			b := dAtA[iNdEx]
  2462  			iNdEx++
  2463  			wire |= (uint64(b) & 0x7F) << shift
  2464  			if b < 0x80 {
  2465  				break
  2466  			}
  2467  		}
  2468  		wireType := int(wire & 0x7)
  2469  		switch wireType {
  2470  		case 0:
  2471  			for shift := uint(0); ; shift += 7 {
  2472  				if shift >= 64 {
  2473  					return 0, ErrIntOverflowQuery
  2474  				}
  2475  				if iNdEx >= l {
  2476  					return 0, io.ErrUnexpectedEOF
  2477  				}
  2478  				iNdEx++
  2479  				if dAtA[iNdEx-1] < 0x80 {
  2480  					break
  2481  				}
  2482  			}
  2483  		case 1:
  2484  			iNdEx += 8
  2485  		case 2:
  2486  			var length int
  2487  			for shift := uint(0); ; shift += 7 {
  2488  				if shift >= 64 {
  2489  					return 0, ErrIntOverflowQuery
  2490  				}
  2491  				if iNdEx >= l {
  2492  					return 0, io.ErrUnexpectedEOF
  2493  				}
  2494  				b := dAtA[iNdEx]
  2495  				iNdEx++
  2496  				length |= (int(b) & 0x7F) << shift
  2497  				if b < 0x80 {
  2498  					break
  2499  				}
  2500  			}
  2501  			if length < 0 {
  2502  				return 0, ErrInvalidLengthQuery
  2503  			}
  2504  			iNdEx += length
  2505  		case 3:
  2506  			depth++
  2507  		case 4:
  2508  			if depth == 0 {
  2509  				return 0, ErrUnexpectedEndOfGroupQuery
  2510  			}
  2511  			depth--
  2512  		case 5:
  2513  			iNdEx += 4
  2514  		default:
  2515  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2516  		}
  2517  		if iNdEx < 0 {
  2518  			return 0, ErrInvalidLengthQuery
  2519  		}
  2520  		if depth == 0 {
  2521  			return iNdEx, nil
  2522  		}
  2523  	}
  2524  	return 0, io.ErrUnexpectedEOF
  2525  }
  2526  
  2527  var (
  2528  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  2529  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  2530  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  2531  )