github.com/Finschia/finschia-sdk@v0.48.1/x/collection/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/collection/v1/query.proto
     3  
     4  package collection
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types "github.com/Finschia/finschia-sdk/codec/types"
    10  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    11  	query "github.com/Finschia/finschia-sdk/types/query"
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	grpc1 "github.com/gogo/protobuf/grpc"
    14  	proto "github.com/gogo/protobuf/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  // QueryBalanceRequest is the request type for the Query/Balance RPC method.
    36  type QueryBalanceRequest struct {
    37  	// contract id associated with the contract.
    38  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
    39  	// address is the address to query the balance for.
    40  	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
    41  	// token id associated with the token.
    42  	TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
    43  }
    44  
    45  func (m *QueryBalanceRequest) Reset()         { *m = QueryBalanceRequest{} }
    46  func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) }
    47  func (*QueryBalanceRequest) ProtoMessage()    {}
    48  func (*QueryBalanceRequest) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_a09de688aac2ee73, []int{0}
    50  }
    51  func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error {
    52  	return m.Unmarshal(b)
    53  }
    54  func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    55  	if deterministic {
    56  		return xxx_messageInfo_QueryBalanceRequest.Marshal(b, m, deterministic)
    57  	} else {
    58  		b = b[:cap(b)]
    59  		n, err := m.MarshalToSizedBuffer(b)
    60  		if err != nil {
    61  			return nil, err
    62  		}
    63  		return b[:n], nil
    64  	}
    65  }
    66  func (m *QueryBalanceRequest) XXX_Merge(src proto.Message) {
    67  	xxx_messageInfo_QueryBalanceRequest.Merge(m, src)
    68  }
    69  func (m *QueryBalanceRequest) XXX_Size() int {
    70  	return m.Size()
    71  }
    72  func (m *QueryBalanceRequest) XXX_DiscardUnknown() {
    73  	xxx_messageInfo_QueryBalanceRequest.DiscardUnknown(m)
    74  }
    75  
    76  var xxx_messageInfo_QueryBalanceRequest proto.InternalMessageInfo
    77  
    78  func (m *QueryBalanceRequest) GetContractId() string {
    79  	if m != nil {
    80  		return m.ContractId
    81  	}
    82  	return ""
    83  }
    84  
    85  func (m *QueryBalanceRequest) GetAddress() string {
    86  	if m != nil {
    87  		return m.Address
    88  	}
    89  	return ""
    90  }
    91  
    92  func (m *QueryBalanceRequest) GetTokenId() string {
    93  	if m != nil {
    94  		return m.TokenId
    95  	}
    96  	return ""
    97  }
    98  
    99  // QueryBalanceResponse is the response type for the Query/Balance RPC method.
   100  type QueryBalanceResponse struct {
   101  	// balance is the balance of the token.
   102  	Balance Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance"`
   103  }
   104  
   105  func (m *QueryBalanceResponse) Reset()         { *m = QueryBalanceResponse{} }
   106  func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) }
   107  func (*QueryBalanceResponse) ProtoMessage()    {}
   108  func (*QueryBalanceResponse) Descriptor() ([]byte, []int) {
   109  	return fileDescriptor_a09de688aac2ee73, []int{1}
   110  }
   111  func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error {
   112  	return m.Unmarshal(b)
   113  }
   114  func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   115  	if deterministic {
   116  		return xxx_messageInfo_QueryBalanceResponse.Marshal(b, m, deterministic)
   117  	} else {
   118  		b = b[:cap(b)]
   119  		n, err := m.MarshalToSizedBuffer(b)
   120  		if err != nil {
   121  			return nil, err
   122  		}
   123  		return b[:n], nil
   124  	}
   125  }
   126  func (m *QueryBalanceResponse) XXX_Merge(src proto.Message) {
   127  	xxx_messageInfo_QueryBalanceResponse.Merge(m, src)
   128  }
   129  func (m *QueryBalanceResponse) XXX_Size() int {
   130  	return m.Size()
   131  }
   132  func (m *QueryBalanceResponse) XXX_DiscardUnknown() {
   133  	xxx_messageInfo_QueryBalanceResponse.DiscardUnknown(m)
   134  }
   135  
   136  var xxx_messageInfo_QueryBalanceResponse proto.InternalMessageInfo
   137  
   138  func (m *QueryBalanceResponse) GetBalance() Coin {
   139  	if m != nil {
   140  		return m.Balance
   141  	}
   142  	return Coin{}
   143  }
   144  
   145  // QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method.
   146  type QueryAllBalancesRequest struct {
   147  	// contract id associated with the contract.
   148  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   149  	// address is the address to query the balances for.
   150  	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   151  	// pagination defines an optional pagination for the request.
   152  	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
   153  }
   154  
   155  func (m *QueryAllBalancesRequest) Reset()         { *m = QueryAllBalancesRequest{} }
   156  func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) }
   157  func (*QueryAllBalancesRequest) ProtoMessage()    {}
   158  func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) {
   159  	return fileDescriptor_a09de688aac2ee73, []int{2}
   160  }
   161  func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error {
   162  	return m.Unmarshal(b)
   163  }
   164  func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   165  	if deterministic {
   166  		return xxx_messageInfo_QueryAllBalancesRequest.Marshal(b, m, deterministic)
   167  	} else {
   168  		b = b[:cap(b)]
   169  		n, err := m.MarshalToSizedBuffer(b)
   170  		if err != nil {
   171  			return nil, err
   172  		}
   173  		return b[:n], nil
   174  	}
   175  }
   176  func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message) {
   177  	xxx_messageInfo_QueryAllBalancesRequest.Merge(m, src)
   178  }
   179  func (m *QueryAllBalancesRequest) XXX_Size() int {
   180  	return m.Size()
   181  }
   182  func (m *QueryAllBalancesRequest) XXX_DiscardUnknown() {
   183  	xxx_messageInfo_QueryAllBalancesRequest.DiscardUnknown(m)
   184  }
   185  
   186  var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo
   187  
   188  func (m *QueryAllBalancesRequest) GetContractId() string {
   189  	if m != nil {
   190  		return m.ContractId
   191  	}
   192  	return ""
   193  }
   194  
   195  func (m *QueryAllBalancesRequest) GetAddress() string {
   196  	if m != nil {
   197  		return m.Address
   198  	}
   199  	return ""
   200  }
   201  
   202  func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest {
   203  	if m != nil {
   204  		return m.Pagination
   205  	}
   206  	return nil
   207  }
   208  
   209  // QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.
   210  type QueryAllBalancesResponse struct {
   211  	// balances is the balalces of all the tokens.
   212  	Balances []Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"`
   213  	// pagination defines the pagination in the response.
   214  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   215  }
   216  
   217  func (m *QueryAllBalancesResponse) Reset()         { *m = QueryAllBalancesResponse{} }
   218  func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) }
   219  func (*QueryAllBalancesResponse) ProtoMessage()    {}
   220  func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) {
   221  	return fileDescriptor_a09de688aac2ee73, []int{3}
   222  }
   223  func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error {
   224  	return m.Unmarshal(b)
   225  }
   226  func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   227  	if deterministic {
   228  		return xxx_messageInfo_QueryAllBalancesResponse.Marshal(b, m, deterministic)
   229  	} else {
   230  		b = b[:cap(b)]
   231  		n, err := m.MarshalToSizedBuffer(b)
   232  		if err != nil {
   233  			return nil, err
   234  		}
   235  		return b[:n], nil
   236  	}
   237  }
   238  func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message) {
   239  	xxx_messageInfo_QueryAllBalancesResponse.Merge(m, src)
   240  }
   241  func (m *QueryAllBalancesResponse) XXX_Size() int {
   242  	return m.Size()
   243  }
   244  func (m *QueryAllBalancesResponse) XXX_DiscardUnknown() {
   245  	xxx_messageInfo_QueryAllBalancesResponse.DiscardUnknown(m)
   246  }
   247  
   248  var xxx_messageInfo_QueryAllBalancesResponse proto.InternalMessageInfo
   249  
   250  func (m *QueryAllBalancesResponse) GetBalances() []Coin {
   251  	if m != nil {
   252  		return m.Balances
   253  	}
   254  	return nil
   255  }
   256  
   257  func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse {
   258  	if m != nil {
   259  		return m.Pagination
   260  	}
   261  	return nil
   262  }
   263  
   264  // QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method.
   265  type QueryFTSupplyRequest struct {
   266  	// contract id associated with the contract.
   267  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   268  	// token id associated with the fungible token.
   269  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
   270  }
   271  
   272  func (m *QueryFTSupplyRequest) Reset()         { *m = QueryFTSupplyRequest{} }
   273  func (m *QueryFTSupplyRequest) String() string { return proto.CompactTextString(m) }
   274  func (*QueryFTSupplyRequest) ProtoMessage()    {}
   275  func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) {
   276  	return fileDescriptor_a09de688aac2ee73, []int{4}
   277  }
   278  func (m *QueryFTSupplyRequest) XXX_Unmarshal(b []byte) error {
   279  	return m.Unmarshal(b)
   280  }
   281  func (m *QueryFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   282  	if deterministic {
   283  		return xxx_messageInfo_QueryFTSupplyRequest.Marshal(b, m, deterministic)
   284  	} else {
   285  		b = b[:cap(b)]
   286  		n, err := m.MarshalToSizedBuffer(b)
   287  		if err != nil {
   288  			return nil, err
   289  		}
   290  		return b[:n], nil
   291  	}
   292  }
   293  func (m *QueryFTSupplyRequest) XXX_Merge(src proto.Message) {
   294  	xxx_messageInfo_QueryFTSupplyRequest.Merge(m, src)
   295  }
   296  func (m *QueryFTSupplyRequest) XXX_Size() int {
   297  	return m.Size()
   298  }
   299  func (m *QueryFTSupplyRequest) XXX_DiscardUnknown() {
   300  	xxx_messageInfo_QueryFTSupplyRequest.DiscardUnknown(m)
   301  }
   302  
   303  var xxx_messageInfo_QueryFTSupplyRequest proto.InternalMessageInfo
   304  
   305  func (m *QueryFTSupplyRequest) GetContractId() string {
   306  	if m != nil {
   307  		return m.ContractId
   308  	}
   309  	return ""
   310  }
   311  
   312  func (m *QueryFTSupplyRequest) GetTokenId() string {
   313  	if m != nil {
   314  		return m.TokenId
   315  	}
   316  	return ""
   317  }
   318  
   319  // QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method.
   320  type QueryFTSupplyResponse struct {
   321  	// supply is the supply of the tokens.
   322  	Supply github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"supply"`
   323  }
   324  
   325  func (m *QueryFTSupplyResponse) Reset()         { *m = QueryFTSupplyResponse{} }
   326  func (m *QueryFTSupplyResponse) String() string { return proto.CompactTextString(m) }
   327  func (*QueryFTSupplyResponse) ProtoMessage()    {}
   328  func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) {
   329  	return fileDescriptor_a09de688aac2ee73, []int{5}
   330  }
   331  func (m *QueryFTSupplyResponse) XXX_Unmarshal(b []byte) error {
   332  	return m.Unmarshal(b)
   333  }
   334  func (m *QueryFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   335  	if deterministic {
   336  		return xxx_messageInfo_QueryFTSupplyResponse.Marshal(b, m, deterministic)
   337  	} else {
   338  		b = b[:cap(b)]
   339  		n, err := m.MarshalToSizedBuffer(b)
   340  		if err != nil {
   341  			return nil, err
   342  		}
   343  		return b[:n], nil
   344  	}
   345  }
   346  func (m *QueryFTSupplyResponse) XXX_Merge(src proto.Message) {
   347  	xxx_messageInfo_QueryFTSupplyResponse.Merge(m, src)
   348  }
   349  func (m *QueryFTSupplyResponse) XXX_Size() int {
   350  	return m.Size()
   351  }
   352  func (m *QueryFTSupplyResponse) XXX_DiscardUnknown() {
   353  	xxx_messageInfo_QueryFTSupplyResponse.DiscardUnknown(m)
   354  }
   355  
   356  var xxx_messageInfo_QueryFTSupplyResponse proto.InternalMessageInfo
   357  
   358  // QueryFTMintedRequest is the request type for the Query/FTMinted RPC method.
   359  type QueryFTMintedRequest struct {
   360  	// contract id associated with the contract.
   361  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   362  	// token id associated with the fungible token.
   363  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
   364  }
   365  
   366  func (m *QueryFTMintedRequest) Reset()         { *m = QueryFTMintedRequest{} }
   367  func (m *QueryFTMintedRequest) String() string { return proto.CompactTextString(m) }
   368  func (*QueryFTMintedRequest) ProtoMessage()    {}
   369  func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) {
   370  	return fileDescriptor_a09de688aac2ee73, []int{6}
   371  }
   372  func (m *QueryFTMintedRequest) XXX_Unmarshal(b []byte) error {
   373  	return m.Unmarshal(b)
   374  }
   375  func (m *QueryFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   376  	if deterministic {
   377  		return xxx_messageInfo_QueryFTMintedRequest.Marshal(b, m, deterministic)
   378  	} else {
   379  		b = b[:cap(b)]
   380  		n, err := m.MarshalToSizedBuffer(b)
   381  		if err != nil {
   382  			return nil, err
   383  		}
   384  		return b[:n], nil
   385  	}
   386  }
   387  func (m *QueryFTMintedRequest) XXX_Merge(src proto.Message) {
   388  	xxx_messageInfo_QueryFTMintedRequest.Merge(m, src)
   389  }
   390  func (m *QueryFTMintedRequest) XXX_Size() int {
   391  	return m.Size()
   392  }
   393  func (m *QueryFTMintedRequest) XXX_DiscardUnknown() {
   394  	xxx_messageInfo_QueryFTMintedRequest.DiscardUnknown(m)
   395  }
   396  
   397  var xxx_messageInfo_QueryFTMintedRequest proto.InternalMessageInfo
   398  
   399  func (m *QueryFTMintedRequest) GetContractId() string {
   400  	if m != nil {
   401  		return m.ContractId
   402  	}
   403  	return ""
   404  }
   405  
   406  func (m *QueryFTMintedRequest) GetTokenId() string {
   407  	if m != nil {
   408  		return m.TokenId
   409  	}
   410  	return ""
   411  }
   412  
   413  // QueryFTMintedResponse is the response type for the Query/FTMinted RPC method.
   414  type QueryFTMintedResponse struct {
   415  	// minted is the amount of the minted tokens.
   416  	Minted github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"minted"`
   417  }
   418  
   419  func (m *QueryFTMintedResponse) Reset()         { *m = QueryFTMintedResponse{} }
   420  func (m *QueryFTMintedResponse) String() string { return proto.CompactTextString(m) }
   421  func (*QueryFTMintedResponse) ProtoMessage()    {}
   422  func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) {
   423  	return fileDescriptor_a09de688aac2ee73, []int{7}
   424  }
   425  func (m *QueryFTMintedResponse) XXX_Unmarshal(b []byte) error {
   426  	return m.Unmarshal(b)
   427  }
   428  func (m *QueryFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   429  	if deterministic {
   430  		return xxx_messageInfo_QueryFTMintedResponse.Marshal(b, m, deterministic)
   431  	} else {
   432  		b = b[:cap(b)]
   433  		n, err := m.MarshalToSizedBuffer(b)
   434  		if err != nil {
   435  			return nil, err
   436  		}
   437  		return b[:n], nil
   438  	}
   439  }
   440  func (m *QueryFTMintedResponse) XXX_Merge(src proto.Message) {
   441  	xxx_messageInfo_QueryFTMintedResponse.Merge(m, src)
   442  }
   443  func (m *QueryFTMintedResponse) XXX_Size() int {
   444  	return m.Size()
   445  }
   446  func (m *QueryFTMintedResponse) XXX_DiscardUnknown() {
   447  	xxx_messageInfo_QueryFTMintedResponse.DiscardUnknown(m)
   448  }
   449  
   450  var xxx_messageInfo_QueryFTMintedResponse proto.InternalMessageInfo
   451  
   452  // QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method.
   453  type QueryFTBurntRequest struct {
   454  	// contract id associated with the contract.
   455  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   456  	// token id associated with the fungible token.
   457  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
   458  }
   459  
   460  func (m *QueryFTBurntRequest) Reset()         { *m = QueryFTBurntRequest{} }
   461  func (m *QueryFTBurntRequest) String() string { return proto.CompactTextString(m) }
   462  func (*QueryFTBurntRequest) ProtoMessage()    {}
   463  func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) {
   464  	return fileDescriptor_a09de688aac2ee73, []int{8}
   465  }
   466  func (m *QueryFTBurntRequest) XXX_Unmarshal(b []byte) error {
   467  	return m.Unmarshal(b)
   468  }
   469  func (m *QueryFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   470  	if deterministic {
   471  		return xxx_messageInfo_QueryFTBurntRequest.Marshal(b, m, deterministic)
   472  	} else {
   473  		b = b[:cap(b)]
   474  		n, err := m.MarshalToSizedBuffer(b)
   475  		if err != nil {
   476  			return nil, err
   477  		}
   478  		return b[:n], nil
   479  	}
   480  }
   481  func (m *QueryFTBurntRequest) XXX_Merge(src proto.Message) {
   482  	xxx_messageInfo_QueryFTBurntRequest.Merge(m, src)
   483  }
   484  func (m *QueryFTBurntRequest) XXX_Size() int {
   485  	return m.Size()
   486  }
   487  func (m *QueryFTBurntRequest) XXX_DiscardUnknown() {
   488  	xxx_messageInfo_QueryFTBurntRequest.DiscardUnknown(m)
   489  }
   490  
   491  var xxx_messageInfo_QueryFTBurntRequest proto.InternalMessageInfo
   492  
   493  func (m *QueryFTBurntRequest) GetContractId() string {
   494  	if m != nil {
   495  		return m.ContractId
   496  	}
   497  	return ""
   498  }
   499  
   500  func (m *QueryFTBurntRequest) GetTokenId() string {
   501  	if m != nil {
   502  		return m.TokenId
   503  	}
   504  	return ""
   505  }
   506  
   507  // QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method.
   508  type QueryFTBurntResponse struct {
   509  	// burnt is the amount of the burnt tokens.
   510  	Burnt github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"burnt"`
   511  }
   512  
   513  func (m *QueryFTBurntResponse) Reset()         { *m = QueryFTBurntResponse{} }
   514  func (m *QueryFTBurntResponse) String() string { return proto.CompactTextString(m) }
   515  func (*QueryFTBurntResponse) ProtoMessage()    {}
   516  func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) {
   517  	return fileDescriptor_a09de688aac2ee73, []int{9}
   518  }
   519  func (m *QueryFTBurntResponse) XXX_Unmarshal(b []byte) error {
   520  	return m.Unmarshal(b)
   521  }
   522  func (m *QueryFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   523  	if deterministic {
   524  		return xxx_messageInfo_QueryFTBurntResponse.Marshal(b, m, deterministic)
   525  	} else {
   526  		b = b[:cap(b)]
   527  		n, err := m.MarshalToSizedBuffer(b)
   528  		if err != nil {
   529  			return nil, err
   530  		}
   531  		return b[:n], nil
   532  	}
   533  }
   534  func (m *QueryFTBurntResponse) XXX_Merge(src proto.Message) {
   535  	xxx_messageInfo_QueryFTBurntResponse.Merge(m, src)
   536  }
   537  func (m *QueryFTBurntResponse) XXX_Size() int {
   538  	return m.Size()
   539  }
   540  func (m *QueryFTBurntResponse) XXX_DiscardUnknown() {
   541  	xxx_messageInfo_QueryFTBurntResponse.DiscardUnknown(m)
   542  }
   543  
   544  var xxx_messageInfo_QueryFTBurntResponse proto.InternalMessageInfo
   545  
   546  // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method.
   547  type QueryNFTSupplyRequest struct {
   548  	// contract id associated with the contract.
   549  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   550  	// token type associated with the token type.
   551  	// refer to TokenType for the definition.
   552  	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
   553  }
   554  
   555  func (m *QueryNFTSupplyRequest) Reset()         { *m = QueryNFTSupplyRequest{} }
   556  func (m *QueryNFTSupplyRequest) String() string { return proto.CompactTextString(m) }
   557  func (*QueryNFTSupplyRequest) ProtoMessage()    {}
   558  func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) {
   559  	return fileDescriptor_a09de688aac2ee73, []int{10}
   560  }
   561  func (m *QueryNFTSupplyRequest) XXX_Unmarshal(b []byte) error {
   562  	return m.Unmarshal(b)
   563  }
   564  func (m *QueryNFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   565  	if deterministic {
   566  		return xxx_messageInfo_QueryNFTSupplyRequest.Marshal(b, m, deterministic)
   567  	} else {
   568  		b = b[:cap(b)]
   569  		n, err := m.MarshalToSizedBuffer(b)
   570  		if err != nil {
   571  			return nil, err
   572  		}
   573  		return b[:n], nil
   574  	}
   575  }
   576  func (m *QueryNFTSupplyRequest) XXX_Merge(src proto.Message) {
   577  	xxx_messageInfo_QueryNFTSupplyRequest.Merge(m, src)
   578  }
   579  func (m *QueryNFTSupplyRequest) XXX_Size() int {
   580  	return m.Size()
   581  }
   582  func (m *QueryNFTSupplyRequest) XXX_DiscardUnknown() {
   583  	xxx_messageInfo_QueryNFTSupplyRequest.DiscardUnknown(m)
   584  }
   585  
   586  var xxx_messageInfo_QueryNFTSupplyRequest proto.InternalMessageInfo
   587  
   588  func (m *QueryNFTSupplyRequest) GetContractId() string {
   589  	if m != nil {
   590  		return m.ContractId
   591  	}
   592  	return ""
   593  }
   594  
   595  func (m *QueryNFTSupplyRequest) GetTokenType() string {
   596  	if m != nil {
   597  		return m.TokenType
   598  	}
   599  	return ""
   600  }
   601  
   602  // QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method.
   603  type QueryNFTSupplyResponse struct {
   604  	// supply is the supply of the non-fungible token.
   605  	Supply github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"supply"`
   606  }
   607  
   608  func (m *QueryNFTSupplyResponse) Reset()         { *m = QueryNFTSupplyResponse{} }
   609  func (m *QueryNFTSupplyResponse) String() string { return proto.CompactTextString(m) }
   610  func (*QueryNFTSupplyResponse) ProtoMessage()    {}
   611  func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) {
   612  	return fileDescriptor_a09de688aac2ee73, []int{11}
   613  }
   614  func (m *QueryNFTSupplyResponse) XXX_Unmarshal(b []byte) error {
   615  	return m.Unmarshal(b)
   616  }
   617  func (m *QueryNFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   618  	if deterministic {
   619  		return xxx_messageInfo_QueryNFTSupplyResponse.Marshal(b, m, deterministic)
   620  	} else {
   621  		b = b[:cap(b)]
   622  		n, err := m.MarshalToSizedBuffer(b)
   623  		if err != nil {
   624  			return nil, err
   625  		}
   626  		return b[:n], nil
   627  	}
   628  }
   629  func (m *QueryNFTSupplyResponse) XXX_Merge(src proto.Message) {
   630  	xxx_messageInfo_QueryNFTSupplyResponse.Merge(m, src)
   631  }
   632  func (m *QueryNFTSupplyResponse) XXX_Size() int {
   633  	return m.Size()
   634  }
   635  func (m *QueryNFTSupplyResponse) XXX_DiscardUnknown() {
   636  	xxx_messageInfo_QueryNFTSupplyResponse.DiscardUnknown(m)
   637  }
   638  
   639  var xxx_messageInfo_QueryNFTSupplyResponse proto.InternalMessageInfo
   640  
   641  // QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method.
   642  type QueryNFTMintedRequest struct {
   643  	// contract id associated with the contract.
   644  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   645  	// token type associated with the token type.
   646  	// refer to TokenType for the definition.
   647  	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
   648  }
   649  
   650  func (m *QueryNFTMintedRequest) Reset()         { *m = QueryNFTMintedRequest{} }
   651  func (m *QueryNFTMintedRequest) String() string { return proto.CompactTextString(m) }
   652  func (*QueryNFTMintedRequest) ProtoMessage()    {}
   653  func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) {
   654  	return fileDescriptor_a09de688aac2ee73, []int{12}
   655  }
   656  func (m *QueryNFTMintedRequest) XXX_Unmarshal(b []byte) error {
   657  	return m.Unmarshal(b)
   658  }
   659  func (m *QueryNFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   660  	if deterministic {
   661  		return xxx_messageInfo_QueryNFTMintedRequest.Marshal(b, m, deterministic)
   662  	} else {
   663  		b = b[:cap(b)]
   664  		n, err := m.MarshalToSizedBuffer(b)
   665  		if err != nil {
   666  			return nil, err
   667  		}
   668  		return b[:n], nil
   669  	}
   670  }
   671  func (m *QueryNFTMintedRequest) XXX_Merge(src proto.Message) {
   672  	xxx_messageInfo_QueryNFTMintedRequest.Merge(m, src)
   673  }
   674  func (m *QueryNFTMintedRequest) XXX_Size() int {
   675  	return m.Size()
   676  }
   677  func (m *QueryNFTMintedRequest) XXX_DiscardUnknown() {
   678  	xxx_messageInfo_QueryNFTMintedRequest.DiscardUnknown(m)
   679  }
   680  
   681  var xxx_messageInfo_QueryNFTMintedRequest proto.InternalMessageInfo
   682  
   683  func (m *QueryNFTMintedRequest) GetContractId() string {
   684  	if m != nil {
   685  		return m.ContractId
   686  	}
   687  	return ""
   688  }
   689  
   690  func (m *QueryNFTMintedRequest) GetTokenType() string {
   691  	if m != nil {
   692  		return m.TokenType
   693  	}
   694  	return ""
   695  }
   696  
   697  // QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method.
   698  type QueryNFTMintedResponse struct {
   699  	// minted is the amount of minted tokens.
   700  	Minted github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"minted"`
   701  }
   702  
   703  func (m *QueryNFTMintedResponse) Reset()         { *m = QueryNFTMintedResponse{} }
   704  func (m *QueryNFTMintedResponse) String() string { return proto.CompactTextString(m) }
   705  func (*QueryNFTMintedResponse) ProtoMessage()    {}
   706  func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) {
   707  	return fileDescriptor_a09de688aac2ee73, []int{13}
   708  }
   709  func (m *QueryNFTMintedResponse) XXX_Unmarshal(b []byte) error {
   710  	return m.Unmarshal(b)
   711  }
   712  func (m *QueryNFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   713  	if deterministic {
   714  		return xxx_messageInfo_QueryNFTMintedResponse.Marshal(b, m, deterministic)
   715  	} else {
   716  		b = b[:cap(b)]
   717  		n, err := m.MarshalToSizedBuffer(b)
   718  		if err != nil {
   719  			return nil, err
   720  		}
   721  		return b[:n], nil
   722  	}
   723  }
   724  func (m *QueryNFTMintedResponse) XXX_Merge(src proto.Message) {
   725  	xxx_messageInfo_QueryNFTMintedResponse.Merge(m, src)
   726  }
   727  func (m *QueryNFTMintedResponse) XXX_Size() int {
   728  	return m.Size()
   729  }
   730  func (m *QueryNFTMintedResponse) XXX_DiscardUnknown() {
   731  	xxx_messageInfo_QueryNFTMintedResponse.DiscardUnknown(m)
   732  }
   733  
   734  var xxx_messageInfo_QueryNFTMintedResponse proto.InternalMessageInfo
   735  
   736  // QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method.
   737  type QueryNFTBurntRequest struct {
   738  	// contract id associated with the contract.
   739  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   740  	// token type associated with the token type.
   741  	// refer to TokenType for the definition.
   742  	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
   743  }
   744  
   745  func (m *QueryNFTBurntRequest) Reset()         { *m = QueryNFTBurntRequest{} }
   746  func (m *QueryNFTBurntRequest) String() string { return proto.CompactTextString(m) }
   747  func (*QueryNFTBurntRequest) ProtoMessage()    {}
   748  func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) {
   749  	return fileDescriptor_a09de688aac2ee73, []int{14}
   750  }
   751  func (m *QueryNFTBurntRequest) XXX_Unmarshal(b []byte) error {
   752  	return m.Unmarshal(b)
   753  }
   754  func (m *QueryNFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   755  	if deterministic {
   756  		return xxx_messageInfo_QueryNFTBurntRequest.Marshal(b, m, deterministic)
   757  	} else {
   758  		b = b[:cap(b)]
   759  		n, err := m.MarshalToSizedBuffer(b)
   760  		if err != nil {
   761  			return nil, err
   762  		}
   763  		return b[:n], nil
   764  	}
   765  }
   766  func (m *QueryNFTBurntRequest) XXX_Merge(src proto.Message) {
   767  	xxx_messageInfo_QueryNFTBurntRequest.Merge(m, src)
   768  }
   769  func (m *QueryNFTBurntRequest) XXX_Size() int {
   770  	return m.Size()
   771  }
   772  func (m *QueryNFTBurntRequest) XXX_DiscardUnknown() {
   773  	xxx_messageInfo_QueryNFTBurntRequest.DiscardUnknown(m)
   774  }
   775  
   776  var xxx_messageInfo_QueryNFTBurntRequest proto.InternalMessageInfo
   777  
   778  func (m *QueryNFTBurntRequest) GetContractId() string {
   779  	if m != nil {
   780  		return m.ContractId
   781  	}
   782  	return ""
   783  }
   784  
   785  func (m *QueryNFTBurntRequest) GetTokenType() string {
   786  	if m != nil {
   787  		return m.TokenType
   788  	}
   789  	return ""
   790  }
   791  
   792  // QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method.
   793  type QueryNFTBurntResponse struct {
   794  	// burnt is the amount of the burnt tokens.
   795  	Burnt github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"burnt"`
   796  }
   797  
   798  func (m *QueryNFTBurntResponse) Reset()         { *m = QueryNFTBurntResponse{} }
   799  func (m *QueryNFTBurntResponse) String() string { return proto.CompactTextString(m) }
   800  func (*QueryNFTBurntResponse) ProtoMessage()    {}
   801  func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) {
   802  	return fileDescriptor_a09de688aac2ee73, []int{15}
   803  }
   804  func (m *QueryNFTBurntResponse) XXX_Unmarshal(b []byte) error {
   805  	return m.Unmarshal(b)
   806  }
   807  func (m *QueryNFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   808  	if deterministic {
   809  		return xxx_messageInfo_QueryNFTBurntResponse.Marshal(b, m, deterministic)
   810  	} else {
   811  		b = b[:cap(b)]
   812  		n, err := m.MarshalToSizedBuffer(b)
   813  		if err != nil {
   814  			return nil, err
   815  		}
   816  		return b[:n], nil
   817  	}
   818  }
   819  func (m *QueryNFTBurntResponse) XXX_Merge(src proto.Message) {
   820  	xxx_messageInfo_QueryNFTBurntResponse.Merge(m, src)
   821  }
   822  func (m *QueryNFTBurntResponse) XXX_Size() int {
   823  	return m.Size()
   824  }
   825  func (m *QueryNFTBurntResponse) XXX_DiscardUnknown() {
   826  	xxx_messageInfo_QueryNFTBurntResponse.DiscardUnknown(m)
   827  }
   828  
   829  var xxx_messageInfo_QueryNFTBurntResponse proto.InternalMessageInfo
   830  
   831  // QueryContractRequest is the request type for the Query/Contract RPC method.
   832  type QueryContractRequest struct {
   833  	// contract id associated with the contract.
   834  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   835  }
   836  
   837  func (m *QueryContractRequest) Reset()         { *m = QueryContractRequest{} }
   838  func (m *QueryContractRequest) String() string { return proto.CompactTextString(m) }
   839  func (*QueryContractRequest) ProtoMessage()    {}
   840  func (*QueryContractRequest) Descriptor() ([]byte, []int) {
   841  	return fileDescriptor_a09de688aac2ee73, []int{16}
   842  }
   843  func (m *QueryContractRequest) XXX_Unmarshal(b []byte) error {
   844  	return m.Unmarshal(b)
   845  }
   846  func (m *QueryContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   847  	if deterministic {
   848  		return xxx_messageInfo_QueryContractRequest.Marshal(b, m, deterministic)
   849  	} else {
   850  		b = b[:cap(b)]
   851  		n, err := m.MarshalToSizedBuffer(b)
   852  		if err != nil {
   853  			return nil, err
   854  		}
   855  		return b[:n], nil
   856  	}
   857  }
   858  func (m *QueryContractRequest) XXX_Merge(src proto.Message) {
   859  	xxx_messageInfo_QueryContractRequest.Merge(m, src)
   860  }
   861  func (m *QueryContractRequest) XXX_Size() int {
   862  	return m.Size()
   863  }
   864  func (m *QueryContractRequest) XXX_DiscardUnknown() {
   865  	xxx_messageInfo_QueryContractRequest.DiscardUnknown(m)
   866  }
   867  
   868  var xxx_messageInfo_QueryContractRequest proto.InternalMessageInfo
   869  
   870  func (m *QueryContractRequest) GetContractId() string {
   871  	if m != nil {
   872  		return m.ContractId
   873  	}
   874  	return ""
   875  }
   876  
   877  // QueryContractResponse is the response type for the Query/Contract RPC method.
   878  type QueryContractResponse struct {
   879  	// contract is the information of the contract.
   880  	Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"`
   881  }
   882  
   883  func (m *QueryContractResponse) Reset()         { *m = QueryContractResponse{} }
   884  func (m *QueryContractResponse) String() string { return proto.CompactTextString(m) }
   885  func (*QueryContractResponse) ProtoMessage()    {}
   886  func (*QueryContractResponse) Descriptor() ([]byte, []int) {
   887  	return fileDescriptor_a09de688aac2ee73, []int{17}
   888  }
   889  func (m *QueryContractResponse) XXX_Unmarshal(b []byte) error {
   890  	return m.Unmarshal(b)
   891  }
   892  func (m *QueryContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   893  	if deterministic {
   894  		return xxx_messageInfo_QueryContractResponse.Marshal(b, m, deterministic)
   895  	} else {
   896  		b = b[:cap(b)]
   897  		n, err := m.MarshalToSizedBuffer(b)
   898  		if err != nil {
   899  			return nil, err
   900  		}
   901  		return b[:n], nil
   902  	}
   903  }
   904  func (m *QueryContractResponse) XXX_Merge(src proto.Message) {
   905  	xxx_messageInfo_QueryContractResponse.Merge(m, src)
   906  }
   907  func (m *QueryContractResponse) XXX_Size() int {
   908  	return m.Size()
   909  }
   910  func (m *QueryContractResponse) XXX_DiscardUnknown() {
   911  	xxx_messageInfo_QueryContractResponse.DiscardUnknown(m)
   912  }
   913  
   914  var xxx_messageInfo_QueryContractResponse proto.InternalMessageInfo
   915  
   916  func (m *QueryContractResponse) GetContract() Contract {
   917  	if m != nil {
   918  		return m.Contract
   919  	}
   920  	return Contract{}
   921  }
   922  
   923  // QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method.
   924  //
   925  // Since: 0.46.0 (finschia)
   926  type QueryTokenClassTypeNameRequest struct {
   927  	// contract id associated with the contract.
   928  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   929  	// class id associated with the token class.
   930  	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
   931  }
   932  
   933  func (m *QueryTokenClassTypeNameRequest) Reset()         { *m = QueryTokenClassTypeNameRequest{} }
   934  func (m *QueryTokenClassTypeNameRequest) String() string { return proto.CompactTextString(m) }
   935  func (*QueryTokenClassTypeNameRequest) ProtoMessage()    {}
   936  func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) {
   937  	return fileDescriptor_a09de688aac2ee73, []int{18}
   938  }
   939  func (m *QueryTokenClassTypeNameRequest) XXX_Unmarshal(b []byte) error {
   940  	return m.Unmarshal(b)
   941  }
   942  func (m *QueryTokenClassTypeNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   943  	if deterministic {
   944  		return xxx_messageInfo_QueryTokenClassTypeNameRequest.Marshal(b, m, deterministic)
   945  	} else {
   946  		b = b[:cap(b)]
   947  		n, err := m.MarshalToSizedBuffer(b)
   948  		if err != nil {
   949  			return nil, err
   950  		}
   951  		return b[:n], nil
   952  	}
   953  }
   954  func (m *QueryTokenClassTypeNameRequest) XXX_Merge(src proto.Message) {
   955  	xxx_messageInfo_QueryTokenClassTypeNameRequest.Merge(m, src)
   956  }
   957  func (m *QueryTokenClassTypeNameRequest) XXX_Size() int {
   958  	return m.Size()
   959  }
   960  func (m *QueryTokenClassTypeNameRequest) XXX_DiscardUnknown() {
   961  	xxx_messageInfo_QueryTokenClassTypeNameRequest.DiscardUnknown(m)
   962  }
   963  
   964  var xxx_messageInfo_QueryTokenClassTypeNameRequest proto.InternalMessageInfo
   965  
   966  func (m *QueryTokenClassTypeNameRequest) GetContractId() string {
   967  	if m != nil {
   968  		return m.ContractId
   969  	}
   970  	return ""
   971  }
   972  
   973  func (m *QueryTokenClassTypeNameRequest) GetClassId() string {
   974  	if m != nil {
   975  		return m.ClassId
   976  	}
   977  	return ""
   978  }
   979  
   980  // QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method.
   981  //
   982  // Since: 0.46.0 (finschia)
   983  type QueryTokenClassTypeNameResponse struct {
   984  	// type name of the token class.
   985  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   986  }
   987  
   988  func (m *QueryTokenClassTypeNameResponse) Reset()         { *m = QueryTokenClassTypeNameResponse{} }
   989  func (m *QueryTokenClassTypeNameResponse) String() string { return proto.CompactTextString(m) }
   990  func (*QueryTokenClassTypeNameResponse) ProtoMessage()    {}
   991  func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) {
   992  	return fileDescriptor_a09de688aac2ee73, []int{19}
   993  }
   994  func (m *QueryTokenClassTypeNameResponse) XXX_Unmarshal(b []byte) error {
   995  	return m.Unmarshal(b)
   996  }
   997  func (m *QueryTokenClassTypeNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   998  	if deterministic {
   999  		return xxx_messageInfo_QueryTokenClassTypeNameResponse.Marshal(b, m, deterministic)
  1000  	} else {
  1001  		b = b[:cap(b)]
  1002  		n, err := m.MarshalToSizedBuffer(b)
  1003  		if err != nil {
  1004  			return nil, err
  1005  		}
  1006  		return b[:n], nil
  1007  	}
  1008  }
  1009  func (m *QueryTokenClassTypeNameResponse) XXX_Merge(src proto.Message) {
  1010  	xxx_messageInfo_QueryTokenClassTypeNameResponse.Merge(m, src)
  1011  }
  1012  func (m *QueryTokenClassTypeNameResponse) XXX_Size() int {
  1013  	return m.Size()
  1014  }
  1015  func (m *QueryTokenClassTypeNameResponse) XXX_DiscardUnknown() {
  1016  	xxx_messageInfo_QueryTokenClassTypeNameResponse.DiscardUnknown(m)
  1017  }
  1018  
  1019  var xxx_messageInfo_QueryTokenClassTypeNameResponse proto.InternalMessageInfo
  1020  
  1021  func (m *QueryTokenClassTypeNameResponse) GetName() string {
  1022  	if m != nil {
  1023  		return m.Name
  1024  	}
  1025  	return ""
  1026  }
  1027  
  1028  // QueryTokenTypeRequest is the request type for the Query/TokenType RPC method.
  1029  type QueryTokenTypeRequest struct {
  1030  	// contract id associated with the contract.
  1031  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1032  	// token type associated with the token type.
  1033  	// refer to TokenType for the definition.
  1034  	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
  1035  }
  1036  
  1037  func (m *QueryTokenTypeRequest) Reset()         { *m = QueryTokenTypeRequest{} }
  1038  func (m *QueryTokenTypeRequest) String() string { return proto.CompactTextString(m) }
  1039  func (*QueryTokenTypeRequest) ProtoMessage()    {}
  1040  func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) {
  1041  	return fileDescriptor_a09de688aac2ee73, []int{20}
  1042  }
  1043  func (m *QueryTokenTypeRequest) XXX_Unmarshal(b []byte) error {
  1044  	return m.Unmarshal(b)
  1045  }
  1046  func (m *QueryTokenTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1047  	if deterministic {
  1048  		return xxx_messageInfo_QueryTokenTypeRequest.Marshal(b, m, deterministic)
  1049  	} else {
  1050  		b = b[:cap(b)]
  1051  		n, err := m.MarshalToSizedBuffer(b)
  1052  		if err != nil {
  1053  			return nil, err
  1054  		}
  1055  		return b[:n], nil
  1056  	}
  1057  }
  1058  func (m *QueryTokenTypeRequest) XXX_Merge(src proto.Message) {
  1059  	xxx_messageInfo_QueryTokenTypeRequest.Merge(m, src)
  1060  }
  1061  func (m *QueryTokenTypeRequest) XXX_Size() int {
  1062  	return m.Size()
  1063  }
  1064  func (m *QueryTokenTypeRequest) XXX_DiscardUnknown() {
  1065  	xxx_messageInfo_QueryTokenTypeRequest.DiscardUnknown(m)
  1066  }
  1067  
  1068  var xxx_messageInfo_QueryTokenTypeRequest proto.InternalMessageInfo
  1069  
  1070  func (m *QueryTokenTypeRequest) GetContractId() string {
  1071  	if m != nil {
  1072  		return m.ContractId
  1073  	}
  1074  	return ""
  1075  }
  1076  
  1077  func (m *QueryTokenTypeRequest) GetTokenType() string {
  1078  	if m != nil {
  1079  		return m.TokenType
  1080  	}
  1081  	return ""
  1082  }
  1083  
  1084  // QueryTokenTypeResponse is the response type for the Query/TokenType RPC method.
  1085  type QueryTokenTypeResponse struct {
  1086  	// token type is the information of the token type.
  1087  	TokenType TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type"`
  1088  }
  1089  
  1090  func (m *QueryTokenTypeResponse) Reset()         { *m = QueryTokenTypeResponse{} }
  1091  func (m *QueryTokenTypeResponse) String() string { return proto.CompactTextString(m) }
  1092  func (*QueryTokenTypeResponse) ProtoMessage()    {}
  1093  func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) {
  1094  	return fileDescriptor_a09de688aac2ee73, []int{21}
  1095  }
  1096  func (m *QueryTokenTypeResponse) XXX_Unmarshal(b []byte) error {
  1097  	return m.Unmarshal(b)
  1098  }
  1099  func (m *QueryTokenTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1100  	if deterministic {
  1101  		return xxx_messageInfo_QueryTokenTypeResponse.Marshal(b, m, deterministic)
  1102  	} else {
  1103  		b = b[:cap(b)]
  1104  		n, err := m.MarshalToSizedBuffer(b)
  1105  		if err != nil {
  1106  			return nil, err
  1107  		}
  1108  		return b[:n], nil
  1109  	}
  1110  }
  1111  func (m *QueryTokenTypeResponse) XXX_Merge(src proto.Message) {
  1112  	xxx_messageInfo_QueryTokenTypeResponse.Merge(m, src)
  1113  }
  1114  func (m *QueryTokenTypeResponse) XXX_Size() int {
  1115  	return m.Size()
  1116  }
  1117  func (m *QueryTokenTypeResponse) XXX_DiscardUnknown() {
  1118  	xxx_messageInfo_QueryTokenTypeResponse.DiscardUnknown(m)
  1119  }
  1120  
  1121  var xxx_messageInfo_QueryTokenTypeResponse proto.InternalMessageInfo
  1122  
  1123  func (m *QueryTokenTypeResponse) GetTokenType() TokenType {
  1124  	if m != nil {
  1125  		return m.TokenType
  1126  	}
  1127  	return TokenType{}
  1128  }
  1129  
  1130  // QueryTokenRequest is the request type for the Query/Token RPC method.
  1131  type QueryTokenRequest struct {
  1132  	// contract id associated with the contract.
  1133  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1134  	// token id associated with the fungible token.
  1135  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
  1136  }
  1137  
  1138  func (m *QueryTokenRequest) Reset()         { *m = QueryTokenRequest{} }
  1139  func (m *QueryTokenRequest) String() string { return proto.CompactTextString(m) }
  1140  func (*QueryTokenRequest) ProtoMessage()    {}
  1141  func (*QueryTokenRequest) Descriptor() ([]byte, []int) {
  1142  	return fileDescriptor_a09de688aac2ee73, []int{22}
  1143  }
  1144  func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error {
  1145  	return m.Unmarshal(b)
  1146  }
  1147  func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1148  	if deterministic {
  1149  		return xxx_messageInfo_QueryTokenRequest.Marshal(b, m, deterministic)
  1150  	} else {
  1151  		b = b[:cap(b)]
  1152  		n, err := m.MarshalToSizedBuffer(b)
  1153  		if err != nil {
  1154  			return nil, err
  1155  		}
  1156  		return b[:n], nil
  1157  	}
  1158  }
  1159  func (m *QueryTokenRequest) XXX_Merge(src proto.Message) {
  1160  	xxx_messageInfo_QueryTokenRequest.Merge(m, src)
  1161  }
  1162  func (m *QueryTokenRequest) XXX_Size() int {
  1163  	return m.Size()
  1164  }
  1165  func (m *QueryTokenRequest) XXX_DiscardUnknown() {
  1166  	xxx_messageInfo_QueryTokenRequest.DiscardUnknown(m)
  1167  }
  1168  
  1169  var xxx_messageInfo_QueryTokenRequest proto.InternalMessageInfo
  1170  
  1171  func (m *QueryTokenRequest) GetContractId() string {
  1172  	if m != nil {
  1173  		return m.ContractId
  1174  	}
  1175  	return ""
  1176  }
  1177  
  1178  func (m *QueryTokenRequest) GetTokenId() string {
  1179  	if m != nil {
  1180  		return m.TokenId
  1181  	}
  1182  	return ""
  1183  }
  1184  
  1185  // QueryTokenResponse is the response type for the Query/Token RPC method.
  1186  type QueryTokenResponse struct {
  1187  	// information of the token.
  1188  	Token types.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
  1189  }
  1190  
  1191  func (m *QueryTokenResponse) Reset()         { *m = QueryTokenResponse{} }
  1192  func (m *QueryTokenResponse) String() string { return proto.CompactTextString(m) }
  1193  func (*QueryTokenResponse) ProtoMessage()    {}
  1194  func (*QueryTokenResponse) Descriptor() ([]byte, []int) {
  1195  	return fileDescriptor_a09de688aac2ee73, []int{23}
  1196  }
  1197  func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error {
  1198  	return m.Unmarshal(b)
  1199  }
  1200  func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1201  	if deterministic {
  1202  		return xxx_messageInfo_QueryTokenResponse.Marshal(b, m, deterministic)
  1203  	} else {
  1204  		b = b[:cap(b)]
  1205  		n, err := m.MarshalToSizedBuffer(b)
  1206  		if err != nil {
  1207  			return nil, err
  1208  		}
  1209  		return b[:n], nil
  1210  	}
  1211  }
  1212  func (m *QueryTokenResponse) XXX_Merge(src proto.Message) {
  1213  	xxx_messageInfo_QueryTokenResponse.Merge(m, src)
  1214  }
  1215  func (m *QueryTokenResponse) XXX_Size() int {
  1216  	return m.Size()
  1217  }
  1218  func (m *QueryTokenResponse) XXX_DiscardUnknown() {
  1219  	xxx_messageInfo_QueryTokenResponse.DiscardUnknown(m)
  1220  }
  1221  
  1222  var xxx_messageInfo_QueryTokenResponse proto.InternalMessageInfo
  1223  
  1224  func (m *QueryTokenResponse) GetToken() types.Any {
  1225  	if m != nil {
  1226  		return m.Token
  1227  	}
  1228  	return types.Any{}
  1229  }
  1230  
  1231  // QueryRootRequest is the request type for the Query/Root RPC method.
  1232  type QueryRootRequest struct {
  1233  	// contract id associated with the contract.
  1234  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1235  	// token id associated with the non-fungible token.
  1236  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
  1237  }
  1238  
  1239  func (m *QueryRootRequest) Reset()         { *m = QueryRootRequest{} }
  1240  func (m *QueryRootRequest) String() string { return proto.CompactTextString(m) }
  1241  func (*QueryRootRequest) ProtoMessage()    {}
  1242  func (*QueryRootRequest) Descriptor() ([]byte, []int) {
  1243  	return fileDescriptor_a09de688aac2ee73, []int{24}
  1244  }
  1245  func (m *QueryRootRequest) XXX_Unmarshal(b []byte) error {
  1246  	return m.Unmarshal(b)
  1247  }
  1248  func (m *QueryRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1249  	if deterministic {
  1250  		return xxx_messageInfo_QueryRootRequest.Marshal(b, m, deterministic)
  1251  	} else {
  1252  		b = b[:cap(b)]
  1253  		n, err := m.MarshalToSizedBuffer(b)
  1254  		if err != nil {
  1255  			return nil, err
  1256  		}
  1257  		return b[:n], nil
  1258  	}
  1259  }
  1260  func (m *QueryRootRequest) XXX_Merge(src proto.Message) {
  1261  	xxx_messageInfo_QueryRootRequest.Merge(m, src)
  1262  }
  1263  func (m *QueryRootRequest) XXX_Size() int {
  1264  	return m.Size()
  1265  }
  1266  func (m *QueryRootRequest) XXX_DiscardUnknown() {
  1267  	xxx_messageInfo_QueryRootRequest.DiscardUnknown(m)
  1268  }
  1269  
  1270  var xxx_messageInfo_QueryRootRequest proto.InternalMessageInfo
  1271  
  1272  func (m *QueryRootRequest) GetContractId() string {
  1273  	if m != nil {
  1274  		return m.ContractId
  1275  	}
  1276  	return ""
  1277  }
  1278  
  1279  func (m *QueryRootRequest) GetTokenId() string {
  1280  	if m != nil {
  1281  		return m.TokenId
  1282  	}
  1283  	return ""
  1284  }
  1285  
  1286  // QueryRootResponse is the response type for the Query/Root RPC method.
  1287  type QueryRootResponse struct {
  1288  	// root is the information of the root token.
  1289  	// it would return itself if it's the root token.
  1290  	Root NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root"`
  1291  }
  1292  
  1293  func (m *QueryRootResponse) Reset()         { *m = QueryRootResponse{} }
  1294  func (m *QueryRootResponse) String() string { return proto.CompactTextString(m) }
  1295  func (*QueryRootResponse) ProtoMessage()    {}
  1296  func (*QueryRootResponse) Descriptor() ([]byte, []int) {
  1297  	return fileDescriptor_a09de688aac2ee73, []int{25}
  1298  }
  1299  func (m *QueryRootResponse) XXX_Unmarshal(b []byte) error {
  1300  	return m.Unmarshal(b)
  1301  }
  1302  func (m *QueryRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1303  	if deterministic {
  1304  		return xxx_messageInfo_QueryRootResponse.Marshal(b, m, deterministic)
  1305  	} else {
  1306  		b = b[:cap(b)]
  1307  		n, err := m.MarshalToSizedBuffer(b)
  1308  		if err != nil {
  1309  			return nil, err
  1310  		}
  1311  		return b[:n], nil
  1312  	}
  1313  }
  1314  func (m *QueryRootResponse) XXX_Merge(src proto.Message) {
  1315  	xxx_messageInfo_QueryRootResponse.Merge(m, src)
  1316  }
  1317  func (m *QueryRootResponse) XXX_Size() int {
  1318  	return m.Size()
  1319  }
  1320  func (m *QueryRootResponse) XXX_DiscardUnknown() {
  1321  	xxx_messageInfo_QueryRootResponse.DiscardUnknown(m)
  1322  }
  1323  
  1324  var xxx_messageInfo_QueryRootResponse proto.InternalMessageInfo
  1325  
  1326  func (m *QueryRootResponse) GetRoot() NFT {
  1327  	if m != nil {
  1328  		return m.Root
  1329  	}
  1330  	return NFT{}
  1331  }
  1332  
  1333  // QueryHasParentRequest is the request type for the Query/HasParent RPC method.
  1334  type QueryHasParentRequest struct {
  1335  	// contract id associated with the contract.
  1336  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1337  	// token id associated wit the non-fungible token.
  1338  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
  1339  }
  1340  
  1341  func (m *QueryHasParentRequest) Reset()         { *m = QueryHasParentRequest{} }
  1342  func (m *QueryHasParentRequest) String() string { return proto.CompactTextString(m) }
  1343  func (*QueryHasParentRequest) ProtoMessage()    {}
  1344  func (*QueryHasParentRequest) Descriptor() ([]byte, []int) {
  1345  	return fileDescriptor_a09de688aac2ee73, []int{26}
  1346  }
  1347  func (m *QueryHasParentRequest) XXX_Unmarshal(b []byte) error {
  1348  	return m.Unmarshal(b)
  1349  }
  1350  func (m *QueryHasParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1351  	if deterministic {
  1352  		return xxx_messageInfo_QueryHasParentRequest.Marshal(b, m, deterministic)
  1353  	} else {
  1354  		b = b[:cap(b)]
  1355  		n, err := m.MarshalToSizedBuffer(b)
  1356  		if err != nil {
  1357  			return nil, err
  1358  		}
  1359  		return b[:n], nil
  1360  	}
  1361  }
  1362  func (m *QueryHasParentRequest) XXX_Merge(src proto.Message) {
  1363  	xxx_messageInfo_QueryHasParentRequest.Merge(m, src)
  1364  }
  1365  func (m *QueryHasParentRequest) XXX_Size() int {
  1366  	return m.Size()
  1367  }
  1368  func (m *QueryHasParentRequest) XXX_DiscardUnknown() {
  1369  	xxx_messageInfo_QueryHasParentRequest.DiscardUnknown(m)
  1370  }
  1371  
  1372  var xxx_messageInfo_QueryHasParentRequest proto.InternalMessageInfo
  1373  
  1374  func (m *QueryHasParentRequest) GetContractId() string {
  1375  	if m != nil {
  1376  		return m.ContractId
  1377  	}
  1378  	return ""
  1379  }
  1380  
  1381  func (m *QueryHasParentRequest) GetTokenId() string {
  1382  	if m != nil {
  1383  		return m.TokenId
  1384  	}
  1385  	return ""
  1386  }
  1387  
  1388  // QueryHasParentResponse is the response type for the Query/HasParent RPC method.
  1389  type QueryHasParentResponse struct {
  1390  	// whether the token has its parent.
  1391  	HasParent bool `protobuf:"varint,1,opt,name=has_parent,json=hasParent,proto3" json:"has_parent,omitempty"`
  1392  }
  1393  
  1394  func (m *QueryHasParentResponse) Reset()         { *m = QueryHasParentResponse{} }
  1395  func (m *QueryHasParentResponse) String() string { return proto.CompactTextString(m) }
  1396  func (*QueryHasParentResponse) ProtoMessage()    {}
  1397  func (*QueryHasParentResponse) Descriptor() ([]byte, []int) {
  1398  	return fileDescriptor_a09de688aac2ee73, []int{27}
  1399  }
  1400  func (m *QueryHasParentResponse) XXX_Unmarshal(b []byte) error {
  1401  	return m.Unmarshal(b)
  1402  }
  1403  func (m *QueryHasParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1404  	if deterministic {
  1405  		return xxx_messageInfo_QueryHasParentResponse.Marshal(b, m, deterministic)
  1406  	} else {
  1407  		b = b[:cap(b)]
  1408  		n, err := m.MarshalToSizedBuffer(b)
  1409  		if err != nil {
  1410  			return nil, err
  1411  		}
  1412  		return b[:n], nil
  1413  	}
  1414  }
  1415  func (m *QueryHasParentResponse) XXX_Merge(src proto.Message) {
  1416  	xxx_messageInfo_QueryHasParentResponse.Merge(m, src)
  1417  }
  1418  func (m *QueryHasParentResponse) XXX_Size() int {
  1419  	return m.Size()
  1420  }
  1421  func (m *QueryHasParentResponse) XXX_DiscardUnknown() {
  1422  	xxx_messageInfo_QueryHasParentResponse.DiscardUnknown(m)
  1423  }
  1424  
  1425  var xxx_messageInfo_QueryHasParentResponse proto.InternalMessageInfo
  1426  
  1427  func (m *QueryHasParentResponse) GetHasParent() bool {
  1428  	if m != nil {
  1429  		return m.HasParent
  1430  	}
  1431  	return false
  1432  }
  1433  
  1434  // QueryParentRequest is the request type for the Query/Parent RPC method.
  1435  type QueryParentRequest struct {
  1436  	// contract id associated with the contract.
  1437  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1438  	// token id associated wit the non-fungible token.
  1439  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
  1440  }
  1441  
  1442  func (m *QueryParentRequest) Reset()         { *m = QueryParentRequest{} }
  1443  func (m *QueryParentRequest) String() string { return proto.CompactTextString(m) }
  1444  func (*QueryParentRequest) ProtoMessage()    {}
  1445  func (*QueryParentRequest) Descriptor() ([]byte, []int) {
  1446  	return fileDescriptor_a09de688aac2ee73, []int{28}
  1447  }
  1448  func (m *QueryParentRequest) XXX_Unmarshal(b []byte) error {
  1449  	return m.Unmarshal(b)
  1450  }
  1451  func (m *QueryParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1452  	if deterministic {
  1453  		return xxx_messageInfo_QueryParentRequest.Marshal(b, m, deterministic)
  1454  	} else {
  1455  		b = b[:cap(b)]
  1456  		n, err := m.MarshalToSizedBuffer(b)
  1457  		if err != nil {
  1458  			return nil, err
  1459  		}
  1460  		return b[:n], nil
  1461  	}
  1462  }
  1463  func (m *QueryParentRequest) XXX_Merge(src proto.Message) {
  1464  	xxx_messageInfo_QueryParentRequest.Merge(m, src)
  1465  }
  1466  func (m *QueryParentRequest) XXX_Size() int {
  1467  	return m.Size()
  1468  }
  1469  func (m *QueryParentRequest) XXX_DiscardUnknown() {
  1470  	xxx_messageInfo_QueryParentRequest.DiscardUnknown(m)
  1471  }
  1472  
  1473  var xxx_messageInfo_QueryParentRequest proto.InternalMessageInfo
  1474  
  1475  func (m *QueryParentRequest) GetContractId() string {
  1476  	if m != nil {
  1477  		return m.ContractId
  1478  	}
  1479  	return ""
  1480  }
  1481  
  1482  func (m *QueryParentRequest) GetTokenId() string {
  1483  	if m != nil {
  1484  		return m.TokenId
  1485  	}
  1486  	return ""
  1487  }
  1488  
  1489  // QueryParentResponse is the response type for the Query/Parent RPC method.
  1490  type QueryParentResponse struct {
  1491  	// parent is the information of the parent token.
  1492  	Parent NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent"`
  1493  }
  1494  
  1495  func (m *QueryParentResponse) Reset()         { *m = QueryParentResponse{} }
  1496  func (m *QueryParentResponse) String() string { return proto.CompactTextString(m) }
  1497  func (*QueryParentResponse) ProtoMessage()    {}
  1498  func (*QueryParentResponse) Descriptor() ([]byte, []int) {
  1499  	return fileDescriptor_a09de688aac2ee73, []int{29}
  1500  }
  1501  func (m *QueryParentResponse) XXX_Unmarshal(b []byte) error {
  1502  	return m.Unmarshal(b)
  1503  }
  1504  func (m *QueryParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1505  	if deterministic {
  1506  		return xxx_messageInfo_QueryParentResponse.Marshal(b, m, deterministic)
  1507  	} else {
  1508  		b = b[:cap(b)]
  1509  		n, err := m.MarshalToSizedBuffer(b)
  1510  		if err != nil {
  1511  			return nil, err
  1512  		}
  1513  		return b[:n], nil
  1514  	}
  1515  }
  1516  func (m *QueryParentResponse) XXX_Merge(src proto.Message) {
  1517  	xxx_messageInfo_QueryParentResponse.Merge(m, src)
  1518  }
  1519  func (m *QueryParentResponse) XXX_Size() int {
  1520  	return m.Size()
  1521  }
  1522  func (m *QueryParentResponse) XXX_DiscardUnknown() {
  1523  	xxx_messageInfo_QueryParentResponse.DiscardUnknown(m)
  1524  }
  1525  
  1526  var xxx_messageInfo_QueryParentResponse proto.InternalMessageInfo
  1527  
  1528  func (m *QueryParentResponse) GetParent() NFT {
  1529  	if m != nil {
  1530  		return m.Parent
  1531  	}
  1532  	return NFT{}
  1533  }
  1534  
  1535  // QueryChildrenRequest is the request type for the Query/Children RPC method.
  1536  type QueryChildrenRequest struct {
  1537  	// contract id associated with the contract.
  1538  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1539  	// token id associated with the non-fungible token.
  1540  	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
  1541  	// pagination defines an optional pagination for the request.
  1542  	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1543  }
  1544  
  1545  func (m *QueryChildrenRequest) Reset()         { *m = QueryChildrenRequest{} }
  1546  func (m *QueryChildrenRequest) String() string { return proto.CompactTextString(m) }
  1547  func (*QueryChildrenRequest) ProtoMessage()    {}
  1548  func (*QueryChildrenRequest) Descriptor() ([]byte, []int) {
  1549  	return fileDescriptor_a09de688aac2ee73, []int{30}
  1550  }
  1551  func (m *QueryChildrenRequest) XXX_Unmarshal(b []byte) error {
  1552  	return m.Unmarshal(b)
  1553  }
  1554  func (m *QueryChildrenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1555  	if deterministic {
  1556  		return xxx_messageInfo_QueryChildrenRequest.Marshal(b, m, deterministic)
  1557  	} else {
  1558  		b = b[:cap(b)]
  1559  		n, err := m.MarshalToSizedBuffer(b)
  1560  		if err != nil {
  1561  			return nil, err
  1562  		}
  1563  		return b[:n], nil
  1564  	}
  1565  }
  1566  func (m *QueryChildrenRequest) XXX_Merge(src proto.Message) {
  1567  	xxx_messageInfo_QueryChildrenRequest.Merge(m, src)
  1568  }
  1569  func (m *QueryChildrenRequest) XXX_Size() int {
  1570  	return m.Size()
  1571  }
  1572  func (m *QueryChildrenRequest) XXX_DiscardUnknown() {
  1573  	xxx_messageInfo_QueryChildrenRequest.DiscardUnknown(m)
  1574  }
  1575  
  1576  var xxx_messageInfo_QueryChildrenRequest proto.InternalMessageInfo
  1577  
  1578  func (m *QueryChildrenRequest) GetContractId() string {
  1579  	if m != nil {
  1580  		return m.ContractId
  1581  	}
  1582  	return ""
  1583  }
  1584  
  1585  func (m *QueryChildrenRequest) GetTokenId() string {
  1586  	if m != nil {
  1587  		return m.TokenId
  1588  	}
  1589  	return ""
  1590  }
  1591  
  1592  func (m *QueryChildrenRequest) GetPagination() *query.PageRequest {
  1593  	if m != nil {
  1594  		return m.Pagination
  1595  	}
  1596  	return nil
  1597  }
  1598  
  1599  // QueryChildrenResponse is the response type for the Query/Children RPC method.
  1600  type QueryChildrenResponse struct {
  1601  	// children is the information of the child tokens.
  1602  	Children []NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children"`
  1603  	// pagination defines the pagination in the response.
  1604  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1605  }
  1606  
  1607  func (m *QueryChildrenResponse) Reset()         { *m = QueryChildrenResponse{} }
  1608  func (m *QueryChildrenResponse) String() string { return proto.CompactTextString(m) }
  1609  func (*QueryChildrenResponse) ProtoMessage()    {}
  1610  func (*QueryChildrenResponse) Descriptor() ([]byte, []int) {
  1611  	return fileDescriptor_a09de688aac2ee73, []int{31}
  1612  }
  1613  func (m *QueryChildrenResponse) XXX_Unmarshal(b []byte) error {
  1614  	return m.Unmarshal(b)
  1615  }
  1616  func (m *QueryChildrenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1617  	if deterministic {
  1618  		return xxx_messageInfo_QueryChildrenResponse.Marshal(b, m, deterministic)
  1619  	} else {
  1620  		b = b[:cap(b)]
  1621  		n, err := m.MarshalToSizedBuffer(b)
  1622  		if err != nil {
  1623  			return nil, err
  1624  		}
  1625  		return b[:n], nil
  1626  	}
  1627  }
  1628  func (m *QueryChildrenResponse) XXX_Merge(src proto.Message) {
  1629  	xxx_messageInfo_QueryChildrenResponse.Merge(m, src)
  1630  }
  1631  func (m *QueryChildrenResponse) XXX_Size() int {
  1632  	return m.Size()
  1633  }
  1634  func (m *QueryChildrenResponse) XXX_DiscardUnknown() {
  1635  	xxx_messageInfo_QueryChildrenResponse.DiscardUnknown(m)
  1636  }
  1637  
  1638  var xxx_messageInfo_QueryChildrenResponse proto.InternalMessageInfo
  1639  
  1640  func (m *QueryChildrenResponse) GetChildren() []NFT {
  1641  	if m != nil {
  1642  		return m.Children
  1643  	}
  1644  	return nil
  1645  }
  1646  
  1647  func (m *QueryChildrenResponse) GetPagination() *query.PageResponse {
  1648  	if m != nil {
  1649  		return m.Pagination
  1650  	}
  1651  	return nil
  1652  }
  1653  
  1654  // QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
  1655  type QueryGranteeGrantsRequest struct {
  1656  	// contract id associated with the contract.
  1657  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1658  	// the address of the grantee.
  1659  	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
  1660  	// pagination defines an optional pagination for the request.
  1661  	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1662  }
  1663  
  1664  func (m *QueryGranteeGrantsRequest) Reset()         { *m = QueryGranteeGrantsRequest{} }
  1665  func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) }
  1666  func (*QueryGranteeGrantsRequest) ProtoMessage()    {}
  1667  func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) {
  1668  	return fileDescriptor_a09de688aac2ee73, []int{32}
  1669  }
  1670  func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error {
  1671  	return m.Unmarshal(b)
  1672  }
  1673  func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1674  	if deterministic {
  1675  		return xxx_messageInfo_QueryGranteeGrantsRequest.Marshal(b, m, deterministic)
  1676  	} else {
  1677  		b = b[:cap(b)]
  1678  		n, err := m.MarshalToSizedBuffer(b)
  1679  		if err != nil {
  1680  			return nil, err
  1681  		}
  1682  		return b[:n], nil
  1683  	}
  1684  }
  1685  func (m *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) {
  1686  	xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src)
  1687  }
  1688  func (m *QueryGranteeGrantsRequest) XXX_Size() int {
  1689  	return m.Size()
  1690  }
  1691  func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() {
  1692  	xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m)
  1693  }
  1694  
  1695  var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo
  1696  
  1697  func (m *QueryGranteeGrantsRequest) GetContractId() string {
  1698  	if m != nil {
  1699  		return m.ContractId
  1700  	}
  1701  	return ""
  1702  }
  1703  
  1704  func (m *QueryGranteeGrantsRequest) GetGrantee() string {
  1705  	if m != nil {
  1706  		return m.Grantee
  1707  	}
  1708  	return ""
  1709  }
  1710  
  1711  func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest {
  1712  	if m != nil {
  1713  		return m.Pagination
  1714  	}
  1715  	return nil
  1716  }
  1717  
  1718  // QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
  1719  type QueryGranteeGrantsResponse struct {
  1720  	Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"`
  1721  	// pagination defines the pagination in the response.
  1722  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1723  }
  1724  
  1725  func (m *QueryGranteeGrantsResponse) Reset()         { *m = QueryGranteeGrantsResponse{} }
  1726  func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) }
  1727  func (*QueryGranteeGrantsResponse) ProtoMessage()    {}
  1728  func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) {
  1729  	return fileDescriptor_a09de688aac2ee73, []int{33}
  1730  }
  1731  func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error {
  1732  	return m.Unmarshal(b)
  1733  }
  1734  func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1735  	if deterministic {
  1736  		return xxx_messageInfo_QueryGranteeGrantsResponse.Marshal(b, m, deterministic)
  1737  	} else {
  1738  		b = b[:cap(b)]
  1739  		n, err := m.MarshalToSizedBuffer(b)
  1740  		if err != nil {
  1741  			return nil, err
  1742  		}
  1743  		return b[:n], nil
  1744  	}
  1745  }
  1746  func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) {
  1747  	xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src)
  1748  }
  1749  func (m *QueryGranteeGrantsResponse) XXX_Size() int {
  1750  	return m.Size()
  1751  }
  1752  func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() {
  1753  	xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m)
  1754  }
  1755  
  1756  var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo
  1757  
  1758  func (m *QueryGranteeGrantsResponse) GetGrants() []Grant {
  1759  	if m != nil {
  1760  		return m.Grants
  1761  	}
  1762  	return nil
  1763  }
  1764  
  1765  func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse {
  1766  	if m != nil {
  1767  		return m.Pagination
  1768  	}
  1769  	return nil
  1770  }
  1771  
  1772  // QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method.
  1773  type QueryIsOperatorForRequest struct {
  1774  	// contract id associated with the contract.
  1775  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1776  	// the address of the operator.
  1777  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
  1778  	// the address of the token holder.
  1779  	Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"`
  1780  }
  1781  
  1782  func (m *QueryIsOperatorForRequest) Reset()         { *m = QueryIsOperatorForRequest{} }
  1783  func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) }
  1784  func (*QueryIsOperatorForRequest) ProtoMessage()    {}
  1785  func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) {
  1786  	return fileDescriptor_a09de688aac2ee73, []int{34}
  1787  }
  1788  func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error {
  1789  	return m.Unmarshal(b)
  1790  }
  1791  func (m *QueryIsOperatorForRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1792  	if deterministic {
  1793  		return xxx_messageInfo_QueryIsOperatorForRequest.Marshal(b, m, deterministic)
  1794  	} else {
  1795  		b = b[:cap(b)]
  1796  		n, err := m.MarshalToSizedBuffer(b)
  1797  		if err != nil {
  1798  			return nil, err
  1799  		}
  1800  		return b[:n], nil
  1801  	}
  1802  }
  1803  func (m *QueryIsOperatorForRequest) XXX_Merge(src proto.Message) {
  1804  	xxx_messageInfo_QueryIsOperatorForRequest.Merge(m, src)
  1805  }
  1806  func (m *QueryIsOperatorForRequest) XXX_Size() int {
  1807  	return m.Size()
  1808  }
  1809  func (m *QueryIsOperatorForRequest) XXX_DiscardUnknown() {
  1810  	xxx_messageInfo_QueryIsOperatorForRequest.DiscardUnknown(m)
  1811  }
  1812  
  1813  var xxx_messageInfo_QueryIsOperatorForRequest proto.InternalMessageInfo
  1814  
  1815  func (m *QueryIsOperatorForRequest) GetContractId() string {
  1816  	if m != nil {
  1817  		return m.ContractId
  1818  	}
  1819  	return ""
  1820  }
  1821  
  1822  func (m *QueryIsOperatorForRequest) GetOperator() string {
  1823  	if m != nil {
  1824  		return m.Operator
  1825  	}
  1826  	return ""
  1827  }
  1828  
  1829  func (m *QueryIsOperatorForRequest) GetHolder() string {
  1830  	if m != nil {
  1831  		return m.Holder
  1832  	}
  1833  	return ""
  1834  }
  1835  
  1836  // QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method.
  1837  type QueryIsOperatorForResponse struct {
  1838  	Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
  1839  }
  1840  
  1841  func (m *QueryIsOperatorForResponse) Reset()         { *m = QueryIsOperatorForResponse{} }
  1842  func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) }
  1843  func (*QueryIsOperatorForResponse) ProtoMessage()    {}
  1844  func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) {
  1845  	return fileDescriptor_a09de688aac2ee73, []int{35}
  1846  }
  1847  func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error {
  1848  	return m.Unmarshal(b)
  1849  }
  1850  func (m *QueryIsOperatorForResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1851  	if deterministic {
  1852  		return xxx_messageInfo_QueryIsOperatorForResponse.Marshal(b, m, deterministic)
  1853  	} else {
  1854  		b = b[:cap(b)]
  1855  		n, err := m.MarshalToSizedBuffer(b)
  1856  		if err != nil {
  1857  			return nil, err
  1858  		}
  1859  		return b[:n], nil
  1860  	}
  1861  }
  1862  func (m *QueryIsOperatorForResponse) XXX_Merge(src proto.Message) {
  1863  	xxx_messageInfo_QueryIsOperatorForResponse.Merge(m, src)
  1864  }
  1865  func (m *QueryIsOperatorForResponse) XXX_Size() int {
  1866  	return m.Size()
  1867  }
  1868  func (m *QueryIsOperatorForResponse) XXX_DiscardUnknown() {
  1869  	xxx_messageInfo_QueryIsOperatorForResponse.DiscardUnknown(m)
  1870  }
  1871  
  1872  var xxx_messageInfo_QueryIsOperatorForResponse proto.InternalMessageInfo
  1873  
  1874  func (m *QueryIsOperatorForResponse) GetAuthorized() bool {
  1875  	if m != nil {
  1876  		return m.Authorized
  1877  	}
  1878  	return false
  1879  }
  1880  
  1881  // QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method.
  1882  type QueryHoldersByOperatorRequest struct {
  1883  	// contract id associated with the contract.
  1884  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
  1885  	// address of the operator.
  1886  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
  1887  	// pagination defines an optional pagination for the request.
  1888  	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1889  }
  1890  
  1891  func (m *QueryHoldersByOperatorRequest) Reset()         { *m = QueryHoldersByOperatorRequest{} }
  1892  func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) }
  1893  func (*QueryHoldersByOperatorRequest) ProtoMessage()    {}
  1894  func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) {
  1895  	return fileDescriptor_a09de688aac2ee73, []int{36}
  1896  }
  1897  func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error {
  1898  	return m.Unmarshal(b)
  1899  }
  1900  func (m *QueryHoldersByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1901  	if deterministic {
  1902  		return xxx_messageInfo_QueryHoldersByOperatorRequest.Marshal(b, m, deterministic)
  1903  	} else {
  1904  		b = b[:cap(b)]
  1905  		n, err := m.MarshalToSizedBuffer(b)
  1906  		if err != nil {
  1907  			return nil, err
  1908  		}
  1909  		return b[:n], nil
  1910  	}
  1911  }
  1912  func (m *QueryHoldersByOperatorRequest) XXX_Merge(src proto.Message) {
  1913  	xxx_messageInfo_QueryHoldersByOperatorRequest.Merge(m, src)
  1914  }
  1915  func (m *QueryHoldersByOperatorRequest) XXX_Size() int {
  1916  	return m.Size()
  1917  }
  1918  func (m *QueryHoldersByOperatorRequest) XXX_DiscardUnknown() {
  1919  	xxx_messageInfo_QueryHoldersByOperatorRequest.DiscardUnknown(m)
  1920  }
  1921  
  1922  var xxx_messageInfo_QueryHoldersByOperatorRequest proto.InternalMessageInfo
  1923  
  1924  func (m *QueryHoldersByOperatorRequest) GetContractId() string {
  1925  	if m != nil {
  1926  		return m.ContractId
  1927  	}
  1928  	return ""
  1929  }
  1930  
  1931  func (m *QueryHoldersByOperatorRequest) GetOperator() string {
  1932  	if m != nil {
  1933  		return m.Operator
  1934  	}
  1935  	return ""
  1936  }
  1937  
  1938  func (m *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest {
  1939  	if m != nil {
  1940  		return m.Pagination
  1941  	}
  1942  	return nil
  1943  }
  1944  
  1945  // QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method.
  1946  type QueryHoldersByOperatorResponse struct {
  1947  	Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"`
  1948  	// pagination defines the pagination in the response.
  1949  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1950  }
  1951  
  1952  func (m *QueryHoldersByOperatorResponse) Reset()         { *m = QueryHoldersByOperatorResponse{} }
  1953  func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) }
  1954  func (*QueryHoldersByOperatorResponse) ProtoMessage()    {}
  1955  func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) {
  1956  	return fileDescriptor_a09de688aac2ee73, []int{37}
  1957  }
  1958  func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error {
  1959  	return m.Unmarshal(b)
  1960  }
  1961  func (m *QueryHoldersByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1962  	if deterministic {
  1963  		return xxx_messageInfo_QueryHoldersByOperatorResponse.Marshal(b, m, deterministic)
  1964  	} else {
  1965  		b = b[:cap(b)]
  1966  		n, err := m.MarshalToSizedBuffer(b)
  1967  		if err != nil {
  1968  			return nil, err
  1969  		}
  1970  		return b[:n], nil
  1971  	}
  1972  }
  1973  func (m *QueryHoldersByOperatorResponse) XXX_Merge(src proto.Message) {
  1974  	xxx_messageInfo_QueryHoldersByOperatorResponse.Merge(m, src)
  1975  }
  1976  func (m *QueryHoldersByOperatorResponse) XXX_Size() int {
  1977  	return m.Size()
  1978  }
  1979  func (m *QueryHoldersByOperatorResponse) XXX_DiscardUnknown() {
  1980  	xxx_messageInfo_QueryHoldersByOperatorResponse.DiscardUnknown(m)
  1981  }
  1982  
  1983  var xxx_messageInfo_QueryHoldersByOperatorResponse proto.InternalMessageInfo
  1984  
  1985  func (m *QueryHoldersByOperatorResponse) GetHolders() []string {
  1986  	if m != nil {
  1987  		return m.Holders
  1988  	}
  1989  	return nil
  1990  }
  1991  
  1992  func (m *QueryHoldersByOperatorResponse) GetPagination() *query.PageResponse {
  1993  	if m != nil {
  1994  		return m.Pagination
  1995  	}
  1996  	return nil
  1997  }
  1998  
  1999  func init() {
  2000  	proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest")
  2001  	proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse")
  2002  	proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest")
  2003  	proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse")
  2004  	proto.RegisterType((*QueryFTSupplyRequest)(nil), "lbm.collection.v1.QueryFTSupplyRequest")
  2005  	proto.RegisterType((*QueryFTSupplyResponse)(nil), "lbm.collection.v1.QueryFTSupplyResponse")
  2006  	proto.RegisterType((*QueryFTMintedRequest)(nil), "lbm.collection.v1.QueryFTMintedRequest")
  2007  	proto.RegisterType((*QueryFTMintedResponse)(nil), "lbm.collection.v1.QueryFTMintedResponse")
  2008  	proto.RegisterType((*QueryFTBurntRequest)(nil), "lbm.collection.v1.QueryFTBurntRequest")
  2009  	proto.RegisterType((*QueryFTBurntResponse)(nil), "lbm.collection.v1.QueryFTBurntResponse")
  2010  	proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest")
  2011  	proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse")
  2012  	proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest")
  2013  	proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse")
  2014  	proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest")
  2015  	proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse")
  2016  	proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest")
  2017  	proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse")
  2018  	proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest")
  2019  	proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse")
  2020  	proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest")
  2021  	proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse")
  2022  	proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest")
  2023  	proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse")
  2024  	proto.RegisterType((*QueryRootRequest)(nil), "lbm.collection.v1.QueryRootRequest")
  2025  	proto.RegisterType((*QueryRootResponse)(nil), "lbm.collection.v1.QueryRootResponse")
  2026  	proto.RegisterType((*QueryHasParentRequest)(nil), "lbm.collection.v1.QueryHasParentRequest")
  2027  	proto.RegisterType((*QueryHasParentResponse)(nil), "lbm.collection.v1.QueryHasParentResponse")
  2028  	proto.RegisterType((*QueryParentRequest)(nil), "lbm.collection.v1.QueryParentRequest")
  2029  	proto.RegisterType((*QueryParentResponse)(nil), "lbm.collection.v1.QueryParentResponse")
  2030  	proto.RegisterType((*QueryChildrenRequest)(nil), "lbm.collection.v1.QueryChildrenRequest")
  2031  	proto.RegisterType((*QueryChildrenResponse)(nil), "lbm.collection.v1.QueryChildrenResponse")
  2032  	proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest")
  2033  	proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse")
  2034  	proto.RegisterType((*QueryIsOperatorForRequest)(nil), "lbm.collection.v1.QueryIsOperatorForRequest")
  2035  	proto.RegisterType((*QueryIsOperatorForResponse)(nil), "lbm.collection.v1.QueryIsOperatorForResponse")
  2036  	proto.RegisterType((*QueryHoldersByOperatorRequest)(nil), "lbm.collection.v1.QueryHoldersByOperatorRequest")
  2037  	proto.RegisterType((*QueryHoldersByOperatorResponse)(nil), "lbm.collection.v1.QueryHoldersByOperatorResponse")
  2038  }
  2039  
  2040  func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) }
  2041  
  2042  var fileDescriptor_a09de688aac2ee73 = []byte{
  2043  	// 1561 bytes of a gzipped FileDescriptorProto
  2044  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdb, 0x6f, 0x1b, 0xc5,
  2045  	0x17, 0xc7, 0x33, 0x69, 0x2e, 0xf6, 0x89, 0x2a, 0xfd, 0x3a, 0xbf, 0xd2, 0xba, 0x4b, 0xe3, 0x54,
  2046  	0x4b, 0xe9, 0x25, 0xb4, 0xbb, 0x4d, 0xb8, 0x14, 0x44, 0x4b, 0x89, 0x43, 0x2e, 0x6e, 0x69, 0x92,
  2047  	0xba, 0xa1, 0x48, 0x80, 0x54, 0xd6, 0xf6, 0xd6, 0xb6, 0x6a, 0xef, 0xb8, 0xbb, 0xeb, 0x8a, 0x34,
  2048  	0xca, 0x0b, 0xfc, 0x03, 0x20, 0xde, 0x2a, 0xe8, 0x03, 0x20, 0x21, 0x21, 0x10, 0x20, 0xf1, 0x47,
  2049  	0xf4, 0xb1, 0x82, 0x17, 0xc4, 0x43, 0x85, 0x5a, 0xfe, 0x08, 0x1e, 0xd1, 0xce, 0x9c, 0x59, 0xef,
  2050  	0xae, 0xbd, 0xbe, 0x34, 0x9b, 0xa7, 0x78, 0x66, 0xcf, 0x9c, 0xf9, 0xcc, 0x39, 0x67, 0xcf, 0xce,
  2051  	0x37, 0x30, 0x5d, 0x2f, 0x36, 0xf4, 0x12, 0xab, 0xd7, 0xcd, 0x92, 0x5b, 0x63, 0x96, 0x7e, 0x77,
  2052  	0x4e, 0xbf, 0xd3, 0x32, 0xed, 0x2d, 0xad, 0x69, 0x33, 0x97, 0xd1, 0x03, 0xf5, 0x62, 0x43, 0x6b,
  2053  	0x3f, 0xd6, 0xee, 0xce, 0x29, 0xb3, 0x25, 0xe6, 0x34, 0x98, 0xa3, 0x17, 0x0d, 0xc7, 0x14, 0xb6,
  2054  	0xfa, 0xdd, 0xb9, 0xa2, 0xe9, 0x1a, 0x73, 0x7a, 0xd3, 0xa8, 0xd4, 0x2c, 0x83, 0x1b, 0xf2, 0xe5,
  2055  	0xca, 0xd1, 0x0a, 0x63, 0x95, 0xba, 0xa9, 0x1b, 0xcd, 0x9a, 0x6e, 0x58, 0x16, 0x73, 0xf9, 0x43,
  2056  	0x07, 0x9f, 0xaa, 0x9d, 0x7b, 0x07, 0xb6, 0x12, 0x36, 0x47, 0xd0, 0x03, 0x1f, 0x15, 0x5b, 0xb7,
  2057  	0x74, 0xc3, 0x42, 0x36, 0xe5, 0x60, 0x85, 0x55, 0x18, 0xff, 0xa9, 0x7b, 0xbf, 0xc4, 0xac, 0x7a,
  2058  	0x1b, 0xfe, 0x7f, 0xcd, 0x83, 0xca, 0x19, 0x75, 0xc3, 0x2a, 0x99, 0x05, 0xf3, 0x4e, 0xcb, 0x74,
  2059  	0x5c, 0x3a, 0x03, 0x53, 0x25, 0x66, 0xb9, 0xb6, 0x51, 0x72, 0x6f, 0xd6, 0xca, 0x19, 0x72, 0x8c,
  2060  	0x9c, 0x4a, 0x17, 0x40, 0x4e, 0xe5, 0xcb, 0x34, 0x03, 0x93, 0x46, 0xb9, 0x6c, 0x9b, 0x8e, 0x93,
  2061  	0x19, 0xe5, 0x0f, 0xe5, 0x90, 0x1e, 0x81, 0x94, 0xcb, 0x6e, 0x9b, 0x96, 0xb7, 0x6e, 0x9f, 0x78,
  2062  	0xc4, 0xc7, 0xf9, 0xb2, 0xba, 0x0e, 0x07, 0xc3, 0x9b, 0x39, 0x4d, 0x66, 0x39, 0x26, 0x3d, 0x0f,
  2063  	0x93, 0x45, 0x31, 0xc5, 0x77, 0x9a, 0x9a, 0x3f, 0xac, 0x75, 0x04, 0x52, 0x5b, 0x64, 0x35, 0x2b,
  2064  	0x37, 0xf6, 0xf0, 0xf1, 0xcc, 0x48, 0x41, 0x5a, 0xab, 0x5f, 0x11, 0x38, 0xcc, 0x3d, 0x2e, 0xd4,
  2065  	0xeb, 0xe8, 0xd4, 0x49, 0xe0, 0x08, 0xcb, 0x00, 0xed, 0xdc, 0xf0, 0x43, 0x4c, 0xcd, 0x9f, 0xd0,
  2066  	0x44, 0x22, 0x35, 0x2f, 0x91, 0x9a, 0x48, 0x3a, 0x26, 0x52, 0xdb, 0x30, 0x2a, 0x32, 0x72, 0x85,
  2067  	0xc0, 0x4a, 0xf5, 0x01, 0x81, 0x4c, 0x27, 0x1e, 0x1e, 0xfa, 0x0d, 0x48, 0xe1, 0x31, 0x9c, 0x0c,
  2068  	0x39, 0xb6, 0xaf, 0xff, 0xa9, 0x7d, 0x73, 0xba, 0x12, 0xe2, 0x1b, 0xe5, 0x7c, 0x27, 0xfb, 0xf2,
  2069  	0x89, 0x7d, 0x43, 0x80, 0x05, 0x4c, 0xc8, 0xf2, 0xe6, 0xf5, 0x56, 0xb3, 0x59, 0xdf, 0x1a, 0x38,
  2070  	0x76, 0xc1, 0x24, 0x8f, 0x86, 0x93, 0x5c, 0x82, 0xe7, 0x22, 0x3e, 0xf1, 0xc0, 0x97, 0x61, 0xc2,
  2071  	0xe1, 0x33, 0xc2, 0x5f, 0x6e, 0xde, 0x3b, 0xd5, 0x5f, 0x8f, 0x67, 0x66, 0x2b, 0x35, 0xb7, 0xda,
  2072  	0x2a, 0x6a, 0x25, 0xd6, 0xd0, 0x97, 0x6b, 0x96, 0x53, 0xaa, 0xd6, 0x0c, 0xfd, 0x16, 0xfe, 0x38,
  2073  	0xeb, 0x94, 0x6f, 0xeb, 0xee, 0x56, 0xd3, 0x74, 0xb4, 0xbc, 0xe5, 0x16, 0xd0, 0x43, 0x00, 0xfc,
  2074  	0x6a, 0xcd, 0x72, 0xcd, 0x72, 0xb2, 0xe0, 0xd2, 0x67, 0x1b, 0xbc, 0xc1, 0x67, 0x76, 0x03, 0x2e,
  2075  	0x3c, 0xa8, 0xd7, 0xf0, 0x7d, 0x5b, 0xde, 0xcc, 0xb5, 0x6c, 0xcb, 0x4d, 0x82, 0xfb, 0x63, 0x3f,
  2076  	0x16, 0xe8, 0x12, 0xb1, 0x57, 0x61, 0xbc, 0xe8, 0x4d, 0xec, 0x82, 0x5a, 0x38, 0x50, 0xdf, 0xc7,
  2077  	0xc8, 0xac, 0x0d, 0x5d, 0x27, 0xd3, 0x00, 0x02, 0xdb, 0xf3, 0x89, 0xe0, 0x69, 0x3e, 0xb3, 0xb9,
  2078  	0xd5, 0x34, 0xd5, 0x32, 0x1c, 0x8a, 0x3a, 0xde, 0x83, 0x62, 0x09, 0xe0, 0x0f, 0x59, 0x2d, 0x83,
  2079  	0xe3, 0xef, 0x61, 0xc9, 0xdc, 0xc0, 0xfc, 0xae, 0x0d, 0x5b, 0x33, 0x7d, 0xe8, 0x8d, 0x76, 0x58,
  2080  	0xf6, 0xaa, 0x70, 0xce, 0x23, 0xfa, 0x22, 0x42, 0x0d, 0x8a, 0xae, 0xde, 0x40, 0xb6, 0xf6, 0x42,
  2081  	0x64, 0xbb, 0x08, 0x29, 0x69, 0x86, 0xdf, 0x8a, 0xe7, 0xbb, 0x76, 0x4d, 0x61, 0x22, 0x3b, 0xa7,
  2082  	0x5c, 0xa2, 0x7e, 0x04, 0x59, 0xee, 0x77, 0xd3, 0x8b, 0xc2, 0x62, 0xdd, 0x70, 0x1c, 0x2f, 0x14,
  2083  	0x6b, 0x46, 0xc3, 0x1c, 0xe6, 0x4d, 0x2c, 0x79, 0x0b, 0x03, 0x6f, 0x22, 0x1f, 0xe7, 0xcb, 0xea,
  2084  	0xab, 0x30, 0x13, 0xeb, 0x1d, 0xf9, 0x29, 0x8c, 0x59, 0x46, 0xc3, 0x44, 0xbf, 0xfc, 0xb7, 0x5f,
  2085  	0x9f, 0x9b, 0x32, 0x35, 0x49, 0x65, 0xf8, 0x43, 0xac, 0xcf, 0x80, 0x63, 0xc4, 0x58, 0x08, 0x2d,
  2086  	0x14, 0x81, 0x3c, 0xda, 0x25, 0x90, 0xfe, 0x4a, 0x8c, 0x64, 0xc0, 0xf9, 0x3a, 0x1c, 0x68, 0x3b,
  2087  	0x4f, 0xa2, 0x8f, 0x2d, 0x03, 0x0d, 0x3a, 0x44, 0xd2, 0x73, 0x30, 0xce, 0x0d, 0x10, 0xf2, 0xa0,
  2088  	0x26, 0x6e, 0x38, 0x9a, 0xbc, 0xe1, 0x68, 0x0b, 0xd6, 0x16, 0xc2, 0x09, 0x43, 0x75, 0x0d, 0xfe,
  2089  	0xc7, 0xfd, 0x14, 0x18, 0x4b, 0xa4, 0xbf, 0x2e, 0xe1, 0x41, 0x85, 0x3f, 0x1f, 0x6b, 0xcc, 0x66,
  2090  	0x4c, 0xd6, 0xe0, 0xa1, 0x2e, 0xa1, 0xf3, 0x5e, 0x2b, 0xc1, 0xc5, 0x2d, 0xd5, 0xeb, 0x98, 0xe5,
  2091  	0x55, 0xc3, 0xd9, 0x30, 0x6c, 0x33, 0x99, 0xde, 0x7f, 0x1e, 0x33, 0x1c, 0x70, 0x8a, 0x80, 0xd3,
  2092  	0x00, 0x55, 0xc3, 0xb9, 0xd9, 0xe4, 0xb3, 0xdc, 0x69, 0xaa, 0x90, 0xae, 0x4a, 0x33, 0x75, 0x03,
  2093  	0x83, 0x9d, 0x1c, 0xca, 0x15, 0xfc, 0xb2, 0x45, 0x38, 0x5e, 0x81, 0x89, 0x00, 0x43, 0xbf, 0x50,
  2094  	0xa1, 0xad, 0x7a, 0x9f, 0xc8, 0xce, 0x51, 0xad, 0xd5, 0xcb, 0x76, 0x22, 0x05, 0x96, 0xd8, 0xb5,
  2095  	0xee, 0x3e, 0x91, 0xdd, 0xc9, 0x87, 0xc3, 0xc3, 0xbe, 0x0e, 0xa9, 0x12, 0xce, 0xe1, 0x9d, 0xae,
  2096  	0xf7, 0x71, 0x7d, 0xeb, 0xe4, 0xae, 0x74, 0x0f, 0x08, 0x1c, 0xe1, 0x70, 0x2b, 0xb6, 0x61, 0xb9,
  2097  	0xa6, 0xc9, 0xff, 0x0c, 0x75, 0x29, 0xae, 0x88, 0x85, 0x32, 0x7a, 0x38, 0x4c, 0x2c, 0x7a, 0x5f,
  2098  	0x13, 0x50, 0xba, 0x01, 0x62, 0x08, 0x5f, 0x83, 0x09, 0xbe, 0xa3, 0xbc, 0x14, 0x67, 0xba, 0x04,
  2099  	0x90, 0x2f, 0x91, 0x15, 0x23, 0xac, 0x93, 0x0b, 0x60, 0x13, 0xe3, 0x97, 0x77, 0xd6, 0x9b, 0xa6,
  2100  	0x6d, 0xb8, 0xcc, 0x5e, 0x66, 0xf6, 0xc0, 0xf1, 0x53, 0x20, 0xc5, 0x70, 0x19, 0x06, 0xd0, 0x1f,
  2101  	0xd3, 0x43, 0x30, 0x51, 0x65, 0xf5, 0xb2, 0x69, 0xa3, 0x2e, 0xc2, 0x91, 0x7a, 0x01, 0x03, 0x12,
  2102  	0xd9, 0x11, 0x03, 0x92, 0x05, 0x30, 0x5a, 0x6e, 0x95, 0xd9, 0xb5, 0x7b, 0x78, 0x9d, 0x48, 0x15,
  2103  	0x02, 0x33, 0xea, 0x77, 0x04, 0xa6, 0x45, 0x0f, 0xe0, 0xde, 0x9c, 0xdc, 0x96, 0xf4, 0x92, 0x08,
  2104  	0x74, 0x52, 0x69, 0xff, 0x8c, 0xe0, 0xa7, 0xb7, 0x0b, 0x26, 0x9e, 0x34, 0x03, 0x93, 0x22, 0x22,
  2105  	0x22, 0xf7, 0xe9, 0x82, 0x1c, 0x26, 0x96, 0xdc, 0xf9, 0x7f, 0x33, 0x30, 0xce, 0x29, 0xe8, 0x8f,
  2106  	0x04, 0x26, 0x51, 0x93, 0xd1, 0x13, 0x5d, 0x6a, 0xac, 0x8b, 0x2a, 0x56, 0x4e, 0xf6, 0xb5, 0x13,
  2107  	0x5b, 0xaa, 0x1b, 0x9f, 0xfe, 0xf1, 0xcf, 0x97, 0xa3, 0x97, 0xe9, 0xaa, 0xde, 0x4d, 0xb3, 0x8b,
  2108  	0xb8, 0x3b, 0xfa, 0x76, 0x20, 0x2b, 0x3b, 0xba, 0x54, 0x77, 0xfa, 0x36, 0xca, 0xd0, 0x1d, 0x7d,
  2109  	0x5b, 0x76, 0xb2, 0x1d, 0xfa, 0x13, 0x81, 0xa9, 0x80, 0x8a, 0xa4, 0xb3, 0x71, 0x28, 0x9d, 0x4a,
  2110  	0x58, 0x79, 0x69, 0x20, 0x5b, 0x44, 0x5f, 0xe2, 0xe8, 0x97, 0xe8, 0xc5, 0x5d, 0xa1, 0xd3, 0xef,
  2111  	0x09, 0xa4, 0xe4, 0xa5, 0x9e, 0xc6, 0xc6, 0x2d, 0xa2, 0x27, 0x94, 0x53, 0xfd, 0x0d, 0x11, 0x73,
  2112  	0x95, 0x63, 0xe6, 0xe8, 0xdb, 0x43, 0x60, 0xde, 0xf2, 0x66, 0xfc, 0x90, 0xea, 0x42, 0x1d, 0x20,
  2113  	0xa9, 0xb8, 0xbf, 0xf7, 0x22, 0x0d, 0x49, 0x87, 0x5e, 0xa4, 0x61, 0x29, 0x90, 0x04, 0xa9, 0x10,
  2114  	0x02, 0xf4, 0x5b, 0x02, 0x93, 0x78, 0x57, 0x8f, 0x2f, 0xd9, 0xb0, 0x48, 0x50, 0x4e, 0xf6, 0xb5,
  2115  	0x43, 0xcc, 0x15, 0x8e, 0xb9, 0x40, 0x2f, 0x3d, 0x3b, 0x26, 0xbf, 0xf3, 0xd3, 0xdf, 0x08, 0xa4,
  2116  	0x7d, 0x3d, 0x47, 0x63, 0xe3, 0x14, 0xd5, 0x92, 0xca, 0xe9, 0x01, 0x2c, 0x91, 0xb5, 0xc0, 0x59,
  2117  	0xdf, 0xa5, 0x97, 0x87, 0x60, 0x6d, 0x5f, 0x77, 0x7d, 0x66, 0x6f, 0xe0, 0x97, 0x01, 0x62, 0x63,
  2118  	0x1d, 0xf4, 0xc2, 0x0e, 0x17, 0xc2, 0xe9, 0x01, 0x2c, 0xf7, 0x02, 0x1b, 0x6b, 0xe2, 0x17, 0x02,
  2119  	0x29, 0x29, 0xe0, 0xe2, 0xab, 0x37, 0x22, 0x1d, 0x95, 0x53, 0xfd, 0x0d, 0x91, 0xf9, 0x1a, 0x67,
  2120  	0xbe, 0x42, 0xf3, 0x49, 0x30, 0x8b, 0x02, 0xf9, 0x82, 0x40, 0x4a, 0x0a, 0xb4, 0x78, 0xe4, 0x88,
  2121  	0x64, 0x8c, 0x47, 0x8e, 0x4a, 0x44, 0x75, 0x9e, 0x23, 0x9f, 0xa1, 0xb3, 0x83, 0x23, 0xd3, 0xdf,
  2122  	0x09, 0xd0, 0x4e, 0xd5, 0x46, 0xe7, 0xe2, 0x36, 0x8d, 0xd5, 0x8f, 0xca, 0xfc, 0x30, 0x4b, 0x90,
  2123  	0xf8, 0x3d, 0x4e, 0xbc, 0x4e, 0xaf, 0x0e, 0x1d, 0x64, 0xae, 0x3c, 0xbd, 0x30, 0x4b, 0x49, 0xba,
  2124  	0xc3, 0x45, 0xf8, 0x4d, 0x4f, 0x57, 0x7a, 0xdf, 0x8c, 0xb4, 0x2f, 0xe0, 0xe2, 0x4b, 0x3a, 0x2a,
  2125  	0x3b, 0xe3, 0x4b, 0xba, 0x43, 0x47, 0xaa, 0x57, 0x38, 0xf9, 0x12, 0x5d, 0x4c, 0xa0, 0x3c, 0xe8,
  2126  	0x7d, 0x02, 0xe3, 0x7c, 0x0b, 0x7a, 0xbc, 0x27, 0x81, 0xe4, 0x7c, 0xb1, 0x8f, 0x15, 0x32, 0xbe,
  2127  	0xc3, 0x19, 0xdf, 0xa2, 0x17, 0x86, 0x65, 0x0c, 0x36, 0x37, 0x0f, 0x6e, 0xcc, 0x53, 0x80, 0xf4,
  2128  	0x85, 0xb8, 0x5d, 0x03, 0x7a, 0x53, 0x39, 0xde, 0xdb, 0x68, 0x17, 0x3d, 0xd7, 0x8a, 0x34, 0x5d,
  2129  	0x4f, 0x5b, 0xd2, 0x9f, 0x09, 0xa4, 0x7d, 0x09, 0x18, 0x9f, 0xe9, 0xa8, 0xf4, 0x8c, 0xcf, 0x74,
  2130  	0x87, 0x9e, 0x54, 0xaf, 0x72, 0xd6, 0x15, 0xba, 0xb4, 0x0b, 0xd6, 0xb6, 0x20, 0xa5, 0xdf, 0x10,
  2131  	0x98, 0x40, 0xdc, 0xd8, 0x34, 0x86, 0x59, 0x4f, 0xf4, 0x33, 0x43, 0xd0, 0x3c, 0x07, 0x5d, 0xa4,
  2132  	0x0b, 0xbb, 0x00, 0x45, 0xc8, 0x1f, 0xbc, 0x4e, 0x25, 0x15, 0x5a, 0x7c, 0xa7, 0x0a, 0x4b, 0xd4,
  2133  	0x1e, 0x9d, 0x2a, 0x22, 0x17, 0x9f, 0xe9, 0xed, 0x89, 0xa2, 0xfa, 0x0a, 0xf2, 0x57, 0x02, 0xfb,
  2134  	0x43, 0x92, 0x8a, 0x9e, 0x89, 0x03, 0xe9, 0x26, 0x0d, 0x95, 0xb3, 0x03, 0x5a, 0x23, 0xfb, 0x22,
  2135  	0x67, 0xbf, 0x48, 0xdf, 0x1c, 0x82, 0x5d, 0x48, 0x35, 0x7d, 0x1b, 0x25, 0xe5, 0x0e, 0xb5, 0x60,
  2136  	0x7f, 0x48, 0xf4, 0xc4, 0x23, 0x77, 0x53, 0x63, 0xf1, 0xc8, 0x5d, 0x95, 0x94, 0x3a, 0x42, 0xef,
  2137  	0xc1, 0x81, 0x0e, 0xf9, 0x41, 0xcf, 0xc5, 0xbe, 0x04, 0x31, 0x82, 0x4a, 0x99, 0x1b, 0x62, 0x85,
  2138  	0xdc, 0x3b, 0xb7, 0xf2, 0xf0, 0x49, 0x96, 0x3c, 0x7a, 0x92, 0x25, 0x7f, 0x3f, 0xc9, 0x92, 0xcf,
  2139  	0x9f, 0x66, 0x47, 0x1e, 0x3d, 0xcd, 0x8e, 0xfc, 0xf9, 0x34, 0x3b, 0xf2, 0xc1, 0xd9, 0xbe, 0xff,
  2140  	0x58, 0xfd, 0x24, 0x10, 0xe0, 0xe2, 0x04, 0xff, 0xd7, 0xd7, 0xcb, 0xff, 0x05, 0x00, 0x00, 0xff,
  2141  	0xff, 0x47, 0x9c, 0x47, 0x89, 0x8c, 0x1c, 0x00, 0x00,
  2142  }
  2143  
  2144  // Reference imports to suppress errors if they are not otherwise used.
  2145  var _ context.Context
  2146  var _ grpc.ClientConn
  2147  
  2148  // This is a compile-time assertion to ensure that this generated file
  2149  // is compatible with the grpc package it is being compiled against.
  2150  const _ = grpc.SupportPackageIsVersion4
  2151  
  2152  // QueryClient is the client API for Query service.
  2153  //
  2154  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2155  type QueryClient interface {
  2156  	// Balance queries the balance of a single token class for a single account.
  2157  	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
  2158  	// AllBalances queries the balance of all token classes for a single account.
  2159  	AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error)
  2160  	// FTSupply queries the number of tokens from a given contract id and token id.
  2161  	FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error)
  2162  	// FTMinted queries the number of minted tokens from a given contract id and token id.
  2163  	FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error)
  2164  	// FTBurnt queries the number of burnt tokens from a given contract id and token id.
  2165  	FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error)
  2166  	// NFTSupply queries the number of tokens from a given contract id and token type.
  2167  	NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error)
  2168  	// NFTMinted queries the number of minted tokens from a given contract id and token type.
  2169  	NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error)
  2170  	// NFTBurnt queries the number of burnt tokens from a given contract id and token type.
  2171  	NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error)
  2172  	// Contract queries a contract metadata based on its contract id.
  2173  	Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error)
  2174  	// TokenClassTypeName queries the fully qualified message type name of a token class from its class id.
  2175  	//
  2176  	// Since: 0.46.0 (finschia)
  2177  	TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error)
  2178  	// TokenType queries metadata of a token type.
  2179  	TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error)
  2180  	// Token queries a metadata of a token from its token id.
  2181  	Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error)
  2182  	// Root queries the root of a given nft.
  2183  	Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error)
  2184  	// HasParent queries whether a given nft has its parent.
  2185  	HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error)
  2186  	// Parent queries the parent of a given nft.
  2187  	Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error)
  2188  	// Children queries the children of a given nft.
  2189  	Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error)
  2190  	// GranteeGrants queries all permissions on a given grantee.
  2191  	GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error)
  2192  	// IsOperatorFor queries whether the operator is authorized by the holder.
  2193  	IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error)
  2194  	// HoldersByOperator queries holders of a given operator.
  2195  	HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error)
  2196  }
  2197  
  2198  type queryClient struct {
  2199  	cc grpc1.ClientConn
  2200  }
  2201  
  2202  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
  2203  	return &queryClient{cc}
  2204  }
  2205  
  2206  func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) {
  2207  	out := new(QueryBalanceResponse)
  2208  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...)
  2209  	if err != nil {
  2210  		return nil, err
  2211  	}
  2212  	return out, nil
  2213  }
  2214  
  2215  func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) {
  2216  	out := new(QueryAllBalancesResponse)
  2217  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...)
  2218  	if err != nil {
  2219  		return nil, err
  2220  	}
  2221  	return out, nil
  2222  }
  2223  
  2224  func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) {
  2225  	out := new(QueryFTSupplyResponse)
  2226  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTSupply", in, out, opts...)
  2227  	if err != nil {
  2228  		return nil, err
  2229  	}
  2230  	return out, nil
  2231  }
  2232  
  2233  func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) {
  2234  	out := new(QueryFTMintedResponse)
  2235  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTMinted", in, out, opts...)
  2236  	if err != nil {
  2237  		return nil, err
  2238  	}
  2239  	return out, nil
  2240  }
  2241  
  2242  func (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) {
  2243  	out := new(QueryFTBurntResponse)
  2244  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTBurnt", in, out, opts...)
  2245  	if err != nil {
  2246  		return nil, err
  2247  	}
  2248  	return out, nil
  2249  }
  2250  
  2251  func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) {
  2252  	out := new(QueryNFTSupplyResponse)
  2253  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTSupply", in, out, opts...)
  2254  	if err != nil {
  2255  		return nil, err
  2256  	}
  2257  	return out, nil
  2258  }
  2259  
  2260  func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) {
  2261  	out := new(QueryNFTMintedResponse)
  2262  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...)
  2263  	if err != nil {
  2264  		return nil, err
  2265  	}
  2266  	return out, nil
  2267  }
  2268  
  2269  func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) {
  2270  	out := new(QueryNFTBurntResponse)
  2271  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...)
  2272  	if err != nil {
  2273  		return nil, err
  2274  	}
  2275  	return out, nil
  2276  }
  2277  
  2278  func (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) {
  2279  	out := new(QueryContractResponse)
  2280  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...)
  2281  	if err != nil {
  2282  		return nil, err
  2283  	}
  2284  	return out, nil
  2285  }
  2286  
  2287  func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) {
  2288  	out := new(QueryTokenClassTypeNameResponse)
  2289  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...)
  2290  	if err != nil {
  2291  		return nil, err
  2292  	}
  2293  	return out, nil
  2294  }
  2295  
  2296  func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) {
  2297  	out := new(QueryTokenTypeResponse)
  2298  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...)
  2299  	if err != nil {
  2300  		return nil, err
  2301  	}
  2302  	return out, nil
  2303  }
  2304  
  2305  func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) {
  2306  	out := new(QueryTokenResponse)
  2307  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...)
  2308  	if err != nil {
  2309  		return nil, err
  2310  	}
  2311  	return out, nil
  2312  }
  2313  
  2314  func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) {
  2315  	out := new(QueryRootResponse)
  2316  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Root", in, out, opts...)
  2317  	if err != nil {
  2318  		return nil, err
  2319  	}
  2320  	return out, nil
  2321  }
  2322  
  2323  func (c *queryClient) HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) {
  2324  	out := new(QueryHasParentResponse)
  2325  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HasParent", in, out, opts...)
  2326  	if err != nil {
  2327  		return nil, err
  2328  	}
  2329  	return out, nil
  2330  }
  2331  
  2332  func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) {
  2333  	out := new(QueryParentResponse)
  2334  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Parent", in, out, opts...)
  2335  	if err != nil {
  2336  		return nil, err
  2337  	}
  2338  	return out, nil
  2339  }
  2340  
  2341  func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) {
  2342  	out := new(QueryChildrenResponse)
  2343  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Children", in, out, opts...)
  2344  	if err != nil {
  2345  		return nil, err
  2346  	}
  2347  	return out, nil
  2348  }
  2349  
  2350  func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) {
  2351  	out := new(QueryGranteeGrantsResponse)
  2352  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...)
  2353  	if err != nil {
  2354  		return nil, err
  2355  	}
  2356  	return out, nil
  2357  }
  2358  
  2359  func (c *queryClient) IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) {
  2360  	out := new(QueryIsOperatorForResponse)
  2361  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/IsOperatorFor", in, out, opts...)
  2362  	if err != nil {
  2363  		return nil, err
  2364  	}
  2365  	return out, nil
  2366  }
  2367  
  2368  func (c *queryClient) HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) {
  2369  	out := new(QueryHoldersByOperatorResponse)
  2370  	err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HoldersByOperator", in, out, opts...)
  2371  	if err != nil {
  2372  		return nil, err
  2373  	}
  2374  	return out, nil
  2375  }
  2376  
  2377  // QueryServer is the server API for Query service.
  2378  type QueryServer interface {
  2379  	// Balance queries the balance of a single token class for a single account.
  2380  	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
  2381  	// AllBalances queries the balance of all token classes for a single account.
  2382  	AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
  2383  	// FTSupply queries the number of tokens from a given contract id and token id.
  2384  	FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error)
  2385  	// FTMinted queries the number of minted tokens from a given contract id and token id.
  2386  	FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error)
  2387  	// FTBurnt queries the number of burnt tokens from a given contract id and token id.
  2388  	FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error)
  2389  	// NFTSupply queries the number of tokens from a given contract id and token type.
  2390  	NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error)
  2391  	// NFTMinted queries the number of minted tokens from a given contract id and token type.
  2392  	NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error)
  2393  	// NFTBurnt queries the number of burnt tokens from a given contract id and token type.
  2394  	NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error)
  2395  	// Contract queries a contract metadata based on its contract id.
  2396  	Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error)
  2397  	// TokenClassTypeName queries the fully qualified message type name of a token class from its class id.
  2398  	//
  2399  	// Since: 0.46.0 (finschia)
  2400  	TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error)
  2401  	// TokenType queries metadata of a token type.
  2402  	TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error)
  2403  	// Token queries a metadata of a token from its token id.
  2404  	Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error)
  2405  	// Root queries the root of a given nft.
  2406  	Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error)
  2407  	// HasParent queries whether a given nft has its parent.
  2408  	HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error)
  2409  	// Parent queries the parent of a given nft.
  2410  	Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error)
  2411  	// Children queries the children of a given nft.
  2412  	Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error)
  2413  	// GranteeGrants queries all permissions on a given grantee.
  2414  	GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error)
  2415  	// IsOperatorFor queries whether the operator is authorized by the holder.
  2416  	IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error)
  2417  	// HoldersByOperator queries holders of a given operator.
  2418  	HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error)
  2419  }
  2420  
  2421  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  2422  type UnimplementedQueryServer struct {
  2423  }
  2424  
  2425  func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) {
  2426  	return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented")
  2427  }
  2428  func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) {
  2429  	return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented")
  2430  }
  2431  func (*UnimplementedQueryServer) FTSupply(ctx context.Context, req *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) {
  2432  	return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented")
  2433  }
  2434  func (*UnimplementedQueryServer) FTMinted(ctx context.Context, req *QueryFTMintedRequest) (*QueryFTMintedResponse, error) {
  2435  	return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented")
  2436  }
  2437  func (*UnimplementedQueryServer) FTBurnt(ctx context.Context, req *QueryFTBurntRequest) (*QueryFTBurntResponse, error) {
  2438  	return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented")
  2439  }
  2440  func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) {
  2441  	return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented")
  2442  }
  2443  func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) {
  2444  	return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented")
  2445  }
  2446  func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) {
  2447  	return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented")
  2448  }
  2449  func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) {
  2450  	return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented")
  2451  }
  2452  func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) {
  2453  	return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented")
  2454  }
  2455  func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) {
  2456  	return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented")
  2457  }
  2458  func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) {
  2459  	return nil, status.Errorf(codes.Unimplemented, "method Token not implemented")
  2460  }
  2461  func (*UnimplementedQueryServer) Root(ctx context.Context, req *QueryRootRequest) (*QueryRootResponse, error) {
  2462  	return nil, status.Errorf(codes.Unimplemented, "method Root not implemented")
  2463  }
  2464  func (*UnimplementedQueryServer) HasParent(ctx context.Context, req *QueryHasParentRequest) (*QueryHasParentResponse, error) {
  2465  	return nil, status.Errorf(codes.Unimplemented, "method HasParent not implemented")
  2466  }
  2467  func (*UnimplementedQueryServer) Parent(ctx context.Context, req *QueryParentRequest) (*QueryParentResponse, error) {
  2468  	return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented")
  2469  }
  2470  func (*UnimplementedQueryServer) Children(ctx context.Context, req *QueryChildrenRequest) (*QueryChildrenResponse, error) {
  2471  	return nil, status.Errorf(codes.Unimplemented, "method Children not implemented")
  2472  }
  2473  func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) {
  2474  	return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented")
  2475  }
  2476  func (*UnimplementedQueryServer) IsOperatorFor(ctx context.Context, req *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) {
  2477  	return nil, status.Errorf(codes.Unimplemented, "method IsOperatorFor not implemented")
  2478  }
  2479  func (*UnimplementedQueryServer) HoldersByOperator(ctx context.Context, req *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) {
  2480  	return nil, status.Errorf(codes.Unimplemented, "method HoldersByOperator not implemented")
  2481  }
  2482  
  2483  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  2484  	s.RegisterService(&_Query_serviceDesc, srv)
  2485  }
  2486  
  2487  func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2488  	in := new(QueryBalanceRequest)
  2489  	if err := dec(in); err != nil {
  2490  		return nil, err
  2491  	}
  2492  	if interceptor == nil {
  2493  		return srv.(QueryServer).Balance(ctx, in)
  2494  	}
  2495  	info := &grpc.UnaryServerInfo{
  2496  		Server:     srv,
  2497  		FullMethod: "/lbm.collection.v1.Query/Balance",
  2498  	}
  2499  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2500  		return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest))
  2501  	}
  2502  	return interceptor(ctx, in, info, handler)
  2503  }
  2504  
  2505  func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2506  	in := new(QueryAllBalancesRequest)
  2507  	if err := dec(in); err != nil {
  2508  		return nil, err
  2509  	}
  2510  	if interceptor == nil {
  2511  		return srv.(QueryServer).AllBalances(ctx, in)
  2512  	}
  2513  	info := &grpc.UnaryServerInfo{
  2514  		Server:     srv,
  2515  		FullMethod: "/lbm.collection.v1.Query/AllBalances",
  2516  	}
  2517  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2518  		return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest))
  2519  	}
  2520  	return interceptor(ctx, in, info, handler)
  2521  }
  2522  
  2523  func _Query_FTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2524  	in := new(QueryFTSupplyRequest)
  2525  	if err := dec(in); err != nil {
  2526  		return nil, err
  2527  	}
  2528  	if interceptor == nil {
  2529  		return srv.(QueryServer).FTSupply(ctx, in)
  2530  	}
  2531  	info := &grpc.UnaryServerInfo{
  2532  		Server:     srv,
  2533  		FullMethod: "/lbm.collection.v1.Query/FTSupply",
  2534  	}
  2535  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2536  		return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest))
  2537  	}
  2538  	return interceptor(ctx, in, info, handler)
  2539  }
  2540  
  2541  func _Query_FTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2542  	in := new(QueryFTMintedRequest)
  2543  	if err := dec(in); err != nil {
  2544  		return nil, err
  2545  	}
  2546  	if interceptor == nil {
  2547  		return srv.(QueryServer).FTMinted(ctx, in)
  2548  	}
  2549  	info := &grpc.UnaryServerInfo{
  2550  		Server:     srv,
  2551  		FullMethod: "/lbm.collection.v1.Query/FTMinted",
  2552  	}
  2553  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2554  		return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest))
  2555  	}
  2556  	return interceptor(ctx, in, info, handler)
  2557  }
  2558  
  2559  func _Query_FTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2560  	in := new(QueryFTBurntRequest)
  2561  	if err := dec(in); err != nil {
  2562  		return nil, err
  2563  	}
  2564  	if interceptor == nil {
  2565  		return srv.(QueryServer).FTBurnt(ctx, in)
  2566  	}
  2567  	info := &grpc.UnaryServerInfo{
  2568  		Server:     srv,
  2569  		FullMethod: "/lbm.collection.v1.Query/FTBurnt",
  2570  	}
  2571  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2572  		return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest))
  2573  	}
  2574  	return interceptor(ctx, in, info, handler)
  2575  }
  2576  
  2577  func _Query_NFTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2578  	in := new(QueryNFTSupplyRequest)
  2579  	if err := dec(in); err != nil {
  2580  		return nil, err
  2581  	}
  2582  	if interceptor == nil {
  2583  		return srv.(QueryServer).NFTSupply(ctx, in)
  2584  	}
  2585  	info := &grpc.UnaryServerInfo{
  2586  		Server:     srv,
  2587  		FullMethod: "/lbm.collection.v1.Query/NFTSupply",
  2588  	}
  2589  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2590  		return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest))
  2591  	}
  2592  	return interceptor(ctx, in, info, handler)
  2593  }
  2594  
  2595  func _Query_NFTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2596  	in := new(QueryNFTMintedRequest)
  2597  	if err := dec(in); err != nil {
  2598  		return nil, err
  2599  	}
  2600  	if interceptor == nil {
  2601  		return srv.(QueryServer).NFTMinted(ctx, in)
  2602  	}
  2603  	info := &grpc.UnaryServerInfo{
  2604  		Server:     srv,
  2605  		FullMethod: "/lbm.collection.v1.Query/NFTMinted",
  2606  	}
  2607  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2608  		return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest))
  2609  	}
  2610  	return interceptor(ctx, in, info, handler)
  2611  }
  2612  
  2613  func _Query_NFTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2614  	in := new(QueryNFTBurntRequest)
  2615  	if err := dec(in); err != nil {
  2616  		return nil, err
  2617  	}
  2618  	if interceptor == nil {
  2619  		return srv.(QueryServer).NFTBurnt(ctx, in)
  2620  	}
  2621  	info := &grpc.UnaryServerInfo{
  2622  		Server:     srv,
  2623  		FullMethod: "/lbm.collection.v1.Query/NFTBurnt",
  2624  	}
  2625  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2626  		return srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest))
  2627  	}
  2628  	return interceptor(ctx, in, info, handler)
  2629  }
  2630  
  2631  func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2632  	in := new(QueryContractRequest)
  2633  	if err := dec(in); err != nil {
  2634  		return nil, err
  2635  	}
  2636  	if interceptor == nil {
  2637  		return srv.(QueryServer).Contract(ctx, in)
  2638  	}
  2639  	info := &grpc.UnaryServerInfo{
  2640  		Server:     srv,
  2641  		FullMethod: "/lbm.collection.v1.Query/Contract",
  2642  	}
  2643  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2644  		return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest))
  2645  	}
  2646  	return interceptor(ctx, in, info, handler)
  2647  }
  2648  
  2649  func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2650  	in := new(QueryTokenClassTypeNameRequest)
  2651  	if err := dec(in); err != nil {
  2652  		return nil, err
  2653  	}
  2654  	if interceptor == nil {
  2655  		return srv.(QueryServer).TokenClassTypeName(ctx, in)
  2656  	}
  2657  	info := &grpc.UnaryServerInfo{
  2658  		Server:     srv,
  2659  		FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName",
  2660  	}
  2661  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2662  		return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest))
  2663  	}
  2664  	return interceptor(ctx, in, info, handler)
  2665  }
  2666  
  2667  func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2668  	in := new(QueryTokenTypeRequest)
  2669  	if err := dec(in); err != nil {
  2670  		return nil, err
  2671  	}
  2672  	if interceptor == nil {
  2673  		return srv.(QueryServer).TokenType(ctx, in)
  2674  	}
  2675  	info := &grpc.UnaryServerInfo{
  2676  		Server:     srv,
  2677  		FullMethod: "/lbm.collection.v1.Query/TokenType",
  2678  	}
  2679  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2680  		return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest))
  2681  	}
  2682  	return interceptor(ctx, in, info, handler)
  2683  }
  2684  
  2685  func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2686  	in := new(QueryTokenRequest)
  2687  	if err := dec(in); err != nil {
  2688  		return nil, err
  2689  	}
  2690  	if interceptor == nil {
  2691  		return srv.(QueryServer).Token(ctx, in)
  2692  	}
  2693  	info := &grpc.UnaryServerInfo{
  2694  		Server:     srv,
  2695  		FullMethod: "/lbm.collection.v1.Query/Token",
  2696  	}
  2697  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2698  		return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest))
  2699  	}
  2700  	return interceptor(ctx, in, info, handler)
  2701  }
  2702  
  2703  func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2704  	in := new(QueryRootRequest)
  2705  	if err := dec(in); err != nil {
  2706  		return nil, err
  2707  	}
  2708  	if interceptor == nil {
  2709  		return srv.(QueryServer).Root(ctx, in)
  2710  	}
  2711  	info := &grpc.UnaryServerInfo{
  2712  		Server:     srv,
  2713  		FullMethod: "/lbm.collection.v1.Query/Root",
  2714  	}
  2715  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2716  		return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest))
  2717  	}
  2718  	return interceptor(ctx, in, info, handler)
  2719  }
  2720  
  2721  func _Query_HasParent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2722  	in := new(QueryHasParentRequest)
  2723  	if err := dec(in); err != nil {
  2724  		return nil, err
  2725  	}
  2726  	if interceptor == nil {
  2727  		return srv.(QueryServer).HasParent(ctx, in)
  2728  	}
  2729  	info := &grpc.UnaryServerInfo{
  2730  		Server:     srv,
  2731  		FullMethod: "/lbm.collection.v1.Query/HasParent",
  2732  	}
  2733  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2734  		return srv.(QueryServer).HasParent(ctx, req.(*QueryHasParentRequest))
  2735  	}
  2736  	return interceptor(ctx, in, info, handler)
  2737  }
  2738  
  2739  func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2740  	in := new(QueryParentRequest)
  2741  	if err := dec(in); err != nil {
  2742  		return nil, err
  2743  	}
  2744  	if interceptor == nil {
  2745  		return srv.(QueryServer).Parent(ctx, in)
  2746  	}
  2747  	info := &grpc.UnaryServerInfo{
  2748  		Server:     srv,
  2749  		FullMethod: "/lbm.collection.v1.Query/Parent",
  2750  	}
  2751  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2752  		return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest))
  2753  	}
  2754  	return interceptor(ctx, in, info, handler)
  2755  }
  2756  
  2757  func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2758  	in := new(QueryChildrenRequest)
  2759  	if err := dec(in); err != nil {
  2760  		return nil, err
  2761  	}
  2762  	if interceptor == nil {
  2763  		return srv.(QueryServer).Children(ctx, in)
  2764  	}
  2765  	info := &grpc.UnaryServerInfo{
  2766  		Server:     srv,
  2767  		FullMethod: "/lbm.collection.v1.Query/Children",
  2768  	}
  2769  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2770  		return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest))
  2771  	}
  2772  	return interceptor(ctx, in, info, handler)
  2773  }
  2774  
  2775  func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2776  	in := new(QueryGranteeGrantsRequest)
  2777  	if err := dec(in); err != nil {
  2778  		return nil, err
  2779  	}
  2780  	if interceptor == nil {
  2781  		return srv.(QueryServer).GranteeGrants(ctx, in)
  2782  	}
  2783  	info := &grpc.UnaryServerInfo{
  2784  		Server:     srv,
  2785  		FullMethod: "/lbm.collection.v1.Query/GranteeGrants",
  2786  	}
  2787  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2788  		return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest))
  2789  	}
  2790  	return interceptor(ctx, in, info, handler)
  2791  }
  2792  
  2793  func _Query_IsOperatorFor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2794  	in := new(QueryIsOperatorForRequest)
  2795  	if err := dec(in); err != nil {
  2796  		return nil, err
  2797  	}
  2798  	if interceptor == nil {
  2799  		return srv.(QueryServer).IsOperatorFor(ctx, in)
  2800  	}
  2801  	info := &grpc.UnaryServerInfo{
  2802  		Server:     srv,
  2803  		FullMethod: "/lbm.collection.v1.Query/IsOperatorFor",
  2804  	}
  2805  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2806  		return srv.(QueryServer).IsOperatorFor(ctx, req.(*QueryIsOperatorForRequest))
  2807  	}
  2808  	return interceptor(ctx, in, info, handler)
  2809  }
  2810  
  2811  func _Query_HoldersByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2812  	in := new(QueryHoldersByOperatorRequest)
  2813  	if err := dec(in); err != nil {
  2814  		return nil, err
  2815  	}
  2816  	if interceptor == nil {
  2817  		return srv.(QueryServer).HoldersByOperator(ctx, in)
  2818  	}
  2819  	info := &grpc.UnaryServerInfo{
  2820  		Server:     srv,
  2821  		FullMethod: "/lbm.collection.v1.Query/HoldersByOperator",
  2822  	}
  2823  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2824  		return srv.(QueryServer).HoldersByOperator(ctx, req.(*QueryHoldersByOperatorRequest))
  2825  	}
  2826  	return interceptor(ctx, in, info, handler)
  2827  }
  2828  
  2829  var _Query_serviceDesc = grpc.ServiceDesc{
  2830  	ServiceName: "lbm.collection.v1.Query",
  2831  	HandlerType: (*QueryServer)(nil),
  2832  	Methods: []grpc.MethodDesc{
  2833  		{
  2834  			MethodName: "Balance",
  2835  			Handler:    _Query_Balance_Handler,
  2836  		},
  2837  		{
  2838  			MethodName: "AllBalances",
  2839  			Handler:    _Query_AllBalances_Handler,
  2840  		},
  2841  		{
  2842  			MethodName: "FTSupply",
  2843  			Handler:    _Query_FTSupply_Handler,
  2844  		},
  2845  		{
  2846  			MethodName: "FTMinted",
  2847  			Handler:    _Query_FTMinted_Handler,
  2848  		},
  2849  		{
  2850  			MethodName: "FTBurnt",
  2851  			Handler:    _Query_FTBurnt_Handler,
  2852  		},
  2853  		{
  2854  			MethodName: "NFTSupply",
  2855  			Handler:    _Query_NFTSupply_Handler,
  2856  		},
  2857  		{
  2858  			MethodName: "NFTMinted",
  2859  			Handler:    _Query_NFTMinted_Handler,
  2860  		},
  2861  		{
  2862  			MethodName: "NFTBurnt",
  2863  			Handler:    _Query_NFTBurnt_Handler,
  2864  		},
  2865  		{
  2866  			MethodName: "Contract",
  2867  			Handler:    _Query_Contract_Handler,
  2868  		},
  2869  		{
  2870  			MethodName: "TokenClassTypeName",
  2871  			Handler:    _Query_TokenClassTypeName_Handler,
  2872  		},
  2873  		{
  2874  			MethodName: "TokenType",
  2875  			Handler:    _Query_TokenType_Handler,
  2876  		},
  2877  		{
  2878  			MethodName: "Token",
  2879  			Handler:    _Query_Token_Handler,
  2880  		},
  2881  		{
  2882  			MethodName: "Root",
  2883  			Handler:    _Query_Root_Handler,
  2884  		},
  2885  		{
  2886  			MethodName: "HasParent",
  2887  			Handler:    _Query_HasParent_Handler,
  2888  		},
  2889  		{
  2890  			MethodName: "Parent",
  2891  			Handler:    _Query_Parent_Handler,
  2892  		},
  2893  		{
  2894  			MethodName: "Children",
  2895  			Handler:    _Query_Children_Handler,
  2896  		},
  2897  		{
  2898  			MethodName: "GranteeGrants",
  2899  			Handler:    _Query_GranteeGrants_Handler,
  2900  		},
  2901  		{
  2902  			MethodName: "IsOperatorFor",
  2903  			Handler:    _Query_IsOperatorFor_Handler,
  2904  		},
  2905  		{
  2906  			MethodName: "HoldersByOperator",
  2907  			Handler:    _Query_HoldersByOperator_Handler,
  2908  		},
  2909  	},
  2910  	Streams:  []grpc.StreamDesc{},
  2911  	Metadata: "lbm/collection/v1/query.proto",
  2912  }
  2913  
  2914  func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) {
  2915  	size := m.Size()
  2916  	dAtA = make([]byte, size)
  2917  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2918  	if err != nil {
  2919  		return nil, err
  2920  	}
  2921  	return dAtA[:n], nil
  2922  }
  2923  
  2924  func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) {
  2925  	size := m.Size()
  2926  	return m.MarshalToSizedBuffer(dAtA[:size])
  2927  }
  2928  
  2929  func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2930  	i := len(dAtA)
  2931  	_ = i
  2932  	var l int
  2933  	_ = l
  2934  	if len(m.TokenId) > 0 {
  2935  		i -= len(m.TokenId)
  2936  		copy(dAtA[i:], m.TokenId)
  2937  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  2938  		i--
  2939  		dAtA[i] = 0x1a
  2940  	}
  2941  	if len(m.Address) > 0 {
  2942  		i -= len(m.Address)
  2943  		copy(dAtA[i:], m.Address)
  2944  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  2945  		i--
  2946  		dAtA[i] = 0x12
  2947  	}
  2948  	if len(m.ContractId) > 0 {
  2949  		i -= len(m.ContractId)
  2950  		copy(dAtA[i:], m.ContractId)
  2951  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  2952  		i--
  2953  		dAtA[i] = 0xa
  2954  	}
  2955  	return len(dAtA) - i, nil
  2956  }
  2957  
  2958  func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) {
  2959  	size := m.Size()
  2960  	dAtA = make([]byte, size)
  2961  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2962  	if err != nil {
  2963  		return nil, err
  2964  	}
  2965  	return dAtA[:n], nil
  2966  }
  2967  
  2968  func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) {
  2969  	size := m.Size()
  2970  	return m.MarshalToSizedBuffer(dAtA[:size])
  2971  }
  2972  
  2973  func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2974  	i := len(dAtA)
  2975  	_ = i
  2976  	var l int
  2977  	_ = l
  2978  	{
  2979  		size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i])
  2980  		if err != nil {
  2981  			return 0, err
  2982  		}
  2983  		i -= size
  2984  		i = encodeVarintQuery(dAtA, i, uint64(size))
  2985  	}
  2986  	i--
  2987  	dAtA[i] = 0xa
  2988  	return len(dAtA) - i, nil
  2989  }
  2990  
  2991  func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error) {
  2992  	size := m.Size()
  2993  	dAtA = make([]byte, size)
  2994  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2995  	if err != nil {
  2996  		return nil, err
  2997  	}
  2998  	return dAtA[:n], nil
  2999  }
  3000  
  3001  func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error) {
  3002  	size := m.Size()
  3003  	return m.MarshalToSizedBuffer(dAtA[:size])
  3004  }
  3005  
  3006  func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3007  	i := len(dAtA)
  3008  	_ = i
  3009  	var l int
  3010  	_ = l
  3011  	if m.Pagination != nil {
  3012  		{
  3013  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3014  			if err != nil {
  3015  				return 0, err
  3016  			}
  3017  			i -= size
  3018  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3019  		}
  3020  		i--
  3021  		dAtA[i] = 0x1a
  3022  	}
  3023  	if len(m.Address) > 0 {
  3024  		i -= len(m.Address)
  3025  		copy(dAtA[i:], m.Address)
  3026  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  3027  		i--
  3028  		dAtA[i] = 0x12
  3029  	}
  3030  	if len(m.ContractId) > 0 {
  3031  		i -= len(m.ContractId)
  3032  		copy(dAtA[i:], m.ContractId)
  3033  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3034  		i--
  3035  		dAtA[i] = 0xa
  3036  	}
  3037  	return len(dAtA) - i, nil
  3038  }
  3039  
  3040  func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error) {
  3041  	size := m.Size()
  3042  	dAtA = make([]byte, size)
  3043  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3044  	if err != nil {
  3045  		return nil, err
  3046  	}
  3047  	return dAtA[:n], nil
  3048  }
  3049  
  3050  func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error) {
  3051  	size := m.Size()
  3052  	return m.MarshalToSizedBuffer(dAtA[:size])
  3053  }
  3054  
  3055  func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3056  	i := len(dAtA)
  3057  	_ = i
  3058  	var l int
  3059  	_ = l
  3060  	if m.Pagination != nil {
  3061  		{
  3062  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3063  			if err != nil {
  3064  				return 0, err
  3065  			}
  3066  			i -= size
  3067  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3068  		}
  3069  		i--
  3070  		dAtA[i] = 0x12
  3071  	}
  3072  	if len(m.Balances) > 0 {
  3073  		for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- {
  3074  			{
  3075  				size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3076  				if err != nil {
  3077  					return 0, err
  3078  				}
  3079  				i -= size
  3080  				i = encodeVarintQuery(dAtA, i, uint64(size))
  3081  			}
  3082  			i--
  3083  			dAtA[i] = 0xa
  3084  		}
  3085  	}
  3086  	return len(dAtA) - i, nil
  3087  }
  3088  
  3089  func (m *QueryFTSupplyRequest) Marshal() (dAtA []byte, err error) {
  3090  	size := m.Size()
  3091  	dAtA = make([]byte, size)
  3092  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3093  	if err != nil {
  3094  		return nil, err
  3095  	}
  3096  	return dAtA[:n], nil
  3097  }
  3098  
  3099  func (m *QueryFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) {
  3100  	size := m.Size()
  3101  	return m.MarshalToSizedBuffer(dAtA[:size])
  3102  }
  3103  
  3104  func (m *QueryFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3105  	i := len(dAtA)
  3106  	_ = i
  3107  	var l int
  3108  	_ = l
  3109  	if len(m.TokenId) > 0 {
  3110  		i -= len(m.TokenId)
  3111  		copy(dAtA[i:], m.TokenId)
  3112  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3113  		i--
  3114  		dAtA[i] = 0x12
  3115  	}
  3116  	if len(m.ContractId) > 0 {
  3117  		i -= len(m.ContractId)
  3118  		copy(dAtA[i:], m.ContractId)
  3119  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3120  		i--
  3121  		dAtA[i] = 0xa
  3122  	}
  3123  	return len(dAtA) - i, nil
  3124  }
  3125  
  3126  func (m *QueryFTSupplyResponse) Marshal() (dAtA []byte, err error) {
  3127  	size := m.Size()
  3128  	dAtA = make([]byte, size)
  3129  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3130  	if err != nil {
  3131  		return nil, err
  3132  	}
  3133  	return dAtA[:n], nil
  3134  }
  3135  
  3136  func (m *QueryFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) {
  3137  	size := m.Size()
  3138  	return m.MarshalToSizedBuffer(dAtA[:size])
  3139  }
  3140  
  3141  func (m *QueryFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3142  	i := len(dAtA)
  3143  	_ = i
  3144  	var l int
  3145  	_ = l
  3146  	{
  3147  		size := m.Supply.Size()
  3148  		i -= size
  3149  		if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil {
  3150  			return 0, err
  3151  		}
  3152  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3153  	}
  3154  	i--
  3155  	dAtA[i] = 0xa
  3156  	return len(dAtA) - i, nil
  3157  }
  3158  
  3159  func (m *QueryFTMintedRequest) Marshal() (dAtA []byte, err error) {
  3160  	size := m.Size()
  3161  	dAtA = make([]byte, size)
  3162  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3163  	if err != nil {
  3164  		return nil, err
  3165  	}
  3166  	return dAtA[:n], nil
  3167  }
  3168  
  3169  func (m *QueryFTMintedRequest) MarshalTo(dAtA []byte) (int, error) {
  3170  	size := m.Size()
  3171  	return m.MarshalToSizedBuffer(dAtA[:size])
  3172  }
  3173  
  3174  func (m *QueryFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3175  	i := len(dAtA)
  3176  	_ = i
  3177  	var l int
  3178  	_ = l
  3179  	if len(m.TokenId) > 0 {
  3180  		i -= len(m.TokenId)
  3181  		copy(dAtA[i:], m.TokenId)
  3182  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3183  		i--
  3184  		dAtA[i] = 0x12
  3185  	}
  3186  	if len(m.ContractId) > 0 {
  3187  		i -= len(m.ContractId)
  3188  		copy(dAtA[i:], m.ContractId)
  3189  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3190  		i--
  3191  		dAtA[i] = 0xa
  3192  	}
  3193  	return len(dAtA) - i, nil
  3194  }
  3195  
  3196  func (m *QueryFTMintedResponse) Marshal() (dAtA []byte, err error) {
  3197  	size := m.Size()
  3198  	dAtA = make([]byte, size)
  3199  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3200  	if err != nil {
  3201  		return nil, err
  3202  	}
  3203  	return dAtA[:n], nil
  3204  }
  3205  
  3206  func (m *QueryFTMintedResponse) MarshalTo(dAtA []byte) (int, error) {
  3207  	size := m.Size()
  3208  	return m.MarshalToSizedBuffer(dAtA[:size])
  3209  }
  3210  
  3211  func (m *QueryFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3212  	i := len(dAtA)
  3213  	_ = i
  3214  	var l int
  3215  	_ = l
  3216  	{
  3217  		size := m.Minted.Size()
  3218  		i -= size
  3219  		if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil {
  3220  			return 0, err
  3221  		}
  3222  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3223  	}
  3224  	i--
  3225  	dAtA[i] = 0xa
  3226  	return len(dAtA) - i, nil
  3227  }
  3228  
  3229  func (m *QueryFTBurntRequest) Marshal() (dAtA []byte, err error) {
  3230  	size := m.Size()
  3231  	dAtA = make([]byte, size)
  3232  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3233  	if err != nil {
  3234  		return nil, err
  3235  	}
  3236  	return dAtA[:n], nil
  3237  }
  3238  
  3239  func (m *QueryFTBurntRequest) MarshalTo(dAtA []byte) (int, error) {
  3240  	size := m.Size()
  3241  	return m.MarshalToSizedBuffer(dAtA[:size])
  3242  }
  3243  
  3244  func (m *QueryFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3245  	i := len(dAtA)
  3246  	_ = i
  3247  	var l int
  3248  	_ = l
  3249  	if len(m.TokenId) > 0 {
  3250  		i -= len(m.TokenId)
  3251  		copy(dAtA[i:], m.TokenId)
  3252  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3253  		i--
  3254  		dAtA[i] = 0x12
  3255  	}
  3256  	if len(m.ContractId) > 0 {
  3257  		i -= len(m.ContractId)
  3258  		copy(dAtA[i:], m.ContractId)
  3259  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3260  		i--
  3261  		dAtA[i] = 0xa
  3262  	}
  3263  	return len(dAtA) - i, nil
  3264  }
  3265  
  3266  func (m *QueryFTBurntResponse) Marshal() (dAtA []byte, err error) {
  3267  	size := m.Size()
  3268  	dAtA = make([]byte, size)
  3269  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3270  	if err != nil {
  3271  		return nil, err
  3272  	}
  3273  	return dAtA[:n], nil
  3274  }
  3275  
  3276  func (m *QueryFTBurntResponse) MarshalTo(dAtA []byte) (int, error) {
  3277  	size := m.Size()
  3278  	return m.MarshalToSizedBuffer(dAtA[:size])
  3279  }
  3280  
  3281  func (m *QueryFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3282  	i := len(dAtA)
  3283  	_ = i
  3284  	var l int
  3285  	_ = l
  3286  	{
  3287  		size := m.Burnt.Size()
  3288  		i -= size
  3289  		if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil {
  3290  			return 0, err
  3291  		}
  3292  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3293  	}
  3294  	i--
  3295  	dAtA[i] = 0xa
  3296  	return len(dAtA) - i, nil
  3297  }
  3298  
  3299  func (m *QueryNFTSupplyRequest) Marshal() (dAtA []byte, err error) {
  3300  	size := m.Size()
  3301  	dAtA = make([]byte, size)
  3302  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3303  	if err != nil {
  3304  		return nil, err
  3305  	}
  3306  	return dAtA[:n], nil
  3307  }
  3308  
  3309  func (m *QueryNFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) {
  3310  	size := m.Size()
  3311  	return m.MarshalToSizedBuffer(dAtA[:size])
  3312  }
  3313  
  3314  func (m *QueryNFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3315  	i := len(dAtA)
  3316  	_ = i
  3317  	var l int
  3318  	_ = l
  3319  	if len(m.TokenType) > 0 {
  3320  		i -= len(m.TokenType)
  3321  		copy(dAtA[i:], m.TokenType)
  3322  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType)))
  3323  		i--
  3324  		dAtA[i] = 0x12
  3325  	}
  3326  	if len(m.ContractId) > 0 {
  3327  		i -= len(m.ContractId)
  3328  		copy(dAtA[i:], m.ContractId)
  3329  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3330  		i--
  3331  		dAtA[i] = 0xa
  3332  	}
  3333  	return len(dAtA) - i, nil
  3334  }
  3335  
  3336  func (m *QueryNFTSupplyResponse) Marshal() (dAtA []byte, err error) {
  3337  	size := m.Size()
  3338  	dAtA = make([]byte, size)
  3339  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3340  	if err != nil {
  3341  		return nil, err
  3342  	}
  3343  	return dAtA[:n], nil
  3344  }
  3345  
  3346  func (m *QueryNFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) {
  3347  	size := m.Size()
  3348  	return m.MarshalToSizedBuffer(dAtA[:size])
  3349  }
  3350  
  3351  func (m *QueryNFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3352  	i := len(dAtA)
  3353  	_ = i
  3354  	var l int
  3355  	_ = l
  3356  	{
  3357  		size := m.Supply.Size()
  3358  		i -= size
  3359  		if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil {
  3360  			return 0, err
  3361  		}
  3362  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3363  	}
  3364  	i--
  3365  	dAtA[i] = 0xa
  3366  	return len(dAtA) - i, nil
  3367  }
  3368  
  3369  func (m *QueryNFTMintedRequest) Marshal() (dAtA []byte, err error) {
  3370  	size := m.Size()
  3371  	dAtA = make([]byte, size)
  3372  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3373  	if err != nil {
  3374  		return nil, err
  3375  	}
  3376  	return dAtA[:n], nil
  3377  }
  3378  
  3379  func (m *QueryNFTMintedRequest) MarshalTo(dAtA []byte) (int, error) {
  3380  	size := m.Size()
  3381  	return m.MarshalToSizedBuffer(dAtA[:size])
  3382  }
  3383  
  3384  func (m *QueryNFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3385  	i := len(dAtA)
  3386  	_ = i
  3387  	var l int
  3388  	_ = l
  3389  	if len(m.TokenType) > 0 {
  3390  		i -= len(m.TokenType)
  3391  		copy(dAtA[i:], m.TokenType)
  3392  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType)))
  3393  		i--
  3394  		dAtA[i] = 0x12
  3395  	}
  3396  	if len(m.ContractId) > 0 {
  3397  		i -= len(m.ContractId)
  3398  		copy(dAtA[i:], m.ContractId)
  3399  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3400  		i--
  3401  		dAtA[i] = 0xa
  3402  	}
  3403  	return len(dAtA) - i, nil
  3404  }
  3405  
  3406  func (m *QueryNFTMintedResponse) Marshal() (dAtA []byte, err error) {
  3407  	size := m.Size()
  3408  	dAtA = make([]byte, size)
  3409  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3410  	if err != nil {
  3411  		return nil, err
  3412  	}
  3413  	return dAtA[:n], nil
  3414  }
  3415  
  3416  func (m *QueryNFTMintedResponse) MarshalTo(dAtA []byte) (int, error) {
  3417  	size := m.Size()
  3418  	return m.MarshalToSizedBuffer(dAtA[:size])
  3419  }
  3420  
  3421  func (m *QueryNFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3422  	i := len(dAtA)
  3423  	_ = i
  3424  	var l int
  3425  	_ = l
  3426  	{
  3427  		size := m.Minted.Size()
  3428  		i -= size
  3429  		if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil {
  3430  			return 0, err
  3431  		}
  3432  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3433  	}
  3434  	i--
  3435  	dAtA[i] = 0xa
  3436  	return len(dAtA) - i, nil
  3437  }
  3438  
  3439  func (m *QueryNFTBurntRequest) Marshal() (dAtA []byte, err error) {
  3440  	size := m.Size()
  3441  	dAtA = make([]byte, size)
  3442  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3443  	if err != nil {
  3444  		return nil, err
  3445  	}
  3446  	return dAtA[:n], nil
  3447  }
  3448  
  3449  func (m *QueryNFTBurntRequest) MarshalTo(dAtA []byte) (int, error) {
  3450  	size := m.Size()
  3451  	return m.MarshalToSizedBuffer(dAtA[:size])
  3452  }
  3453  
  3454  func (m *QueryNFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3455  	i := len(dAtA)
  3456  	_ = i
  3457  	var l int
  3458  	_ = l
  3459  	if len(m.TokenType) > 0 {
  3460  		i -= len(m.TokenType)
  3461  		copy(dAtA[i:], m.TokenType)
  3462  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType)))
  3463  		i--
  3464  		dAtA[i] = 0x12
  3465  	}
  3466  	if len(m.ContractId) > 0 {
  3467  		i -= len(m.ContractId)
  3468  		copy(dAtA[i:], m.ContractId)
  3469  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3470  		i--
  3471  		dAtA[i] = 0xa
  3472  	}
  3473  	return len(dAtA) - i, nil
  3474  }
  3475  
  3476  func (m *QueryNFTBurntResponse) Marshal() (dAtA []byte, err error) {
  3477  	size := m.Size()
  3478  	dAtA = make([]byte, size)
  3479  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3480  	if err != nil {
  3481  		return nil, err
  3482  	}
  3483  	return dAtA[:n], nil
  3484  }
  3485  
  3486  func (m *QueryNFTBurntResponse) MarshalTo(dAtA []byte) (int, error) {
  3487  	size := m.Size()
  3488  	return m.MarshalToSizedBuffer(dAtA[:size])
  3489  }
  3490  
  3491  func (m *QueryNFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3492  	i := len(dAtA)
  3493  	_ = i
  3494  	var l int
  3495  	_ = l
  3496  	{
  3497  		size := m.Burnt.Size()
  3498  		i -= size
  3499  		if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil {
  3500  			return 0, err
  3501  		}
  3502  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3503  	}
  3504  	i--
  3505  	dAtA[i] = 0xa
  3506  	return len(dAtA) - i, nil
  3507  }
  3508  
  3509  func (m *QueryContractRequest) Marshal() (dAtA []byte, err error) {
  3510  	size := m.Size()
  3511  	dAtA = make([]byte, size)
  3512  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3513  	if err != nil {
  3514  		return nil, err
  3515  	}
  3516  	return dAtA[:n], nil
  3517  }
  3518  
  3519  func (m *QueryContractRequest) MarshalTo(dAtA []byte) (int, error) {
  3520  	size := m.Size()
  3521  	return m.MarshalToSizedBuffer(dAtA[:size])
  3522  }
  3523  
  3524  func (m *QueryContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3525  	i := len(dAtA)
  3526  	_ = i
  3527  	var l int
  3528  	_ = l
  3529  	if len(m.ContractId) > 0 {
  3530  		i -= len(m.ContractId)
  3531  		copy(dAtA[i:], m.ContractId)
  3532  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3533  		i--
  3534  		dAtA[i] = 0xa
  3535  	}
  3536  	return len(dAtA) - i, nil
  3537  }
  3538  
  3539  func (m *QueryContractResponse) Marshal() (dAtA []byte, err error) {
  3540  	size := m.Size()
  3541  	dAtA = make([]byte, size)
  3542  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3543  	if err != nil {
  3544  		return nil, err
  3545  	}
  3546  	return dAtA[:n], nil
  3547  }
  3548  
  3549  func (m *QueryContractResponse) MarshalTo(dAtA []byte) (int, error) {
  3550  	size := m.Size()
  3551  	return m.MarshalToSizedBuffer(dAtA[:size])
  3552  }
  3553  
  3554  func (m *QueryContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3555  	i := len(dAtA)
  3556  	_ = i
  3557  	var l int
  3558  	_ = l
  3559  	{
  3560  		size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i])
  3561  		if err != nil {
  3562  			return 0, err
  3563  		}
  3564  		i -= size
  3565  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3566  	}
  3567  	i--
  3568  	dAtA[i] = 0xa
  3569  	return len(dAtA) - i, nil
  3570  }
  3571  
  3572  func (m *QueryTokenClassTypeNameRequest) Marshal() (dAtA []byte, err error) {
  3573  	size := m.Size()
  3574  	dAtA = make([]byte, size)
  3575  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3576  	if err != nil {
  3577  		return nil, err
  3578  	}
  3579  	return dAtA[:n], nil
  3580  }
  3581  
  3582  func (m *QueryTokenClassTypeNameRequest) MarshalTo(dAtA []byte) (int, error) {
  3583  	size := m.Size()
  3584  	return m.MarshalToSizedBuffer(dAtA[:size])
  3585  }
  3586  
  3587  func (m *QueryTokenClassTypeNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3588  	i := len(dAtA)
  3589  	_ = i
  3590  	var l int
  3591  	_ = l
  3592  	if len(m.ClassId) > 0 {
  3593  		i -= len(m.ClassId)
  3594  		copy(dAtA[i:], m.ClassId)
  3595  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId)))
  3596  		i--
  3597  		dAtA[i] = 0x12
  3598  	}
  3599  	if len(m.ContractId) > 0 {
  3600  		i -= len(m.ContractId)
  3601  		copy(dAtA[i:], m.ContractId)
  3602  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3603  		i--
  3604  		dAtA[i] = 0xa
  3605  	}
  3606  	return len(dAtA) - i, nil
  3607  }
  3608  
  3609  func (m *QueryTokenClassTypeNameResponse) Marshal() (dAtA []byte, err error) {
  3610  	size := m.Size()
  3611  	dAtA = make([]byte, size)
  3612  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3613  	if err != nil {
  3614  		return nil, err
  3615  	}
  3616  	return dAtA[:n], nil
  3617  }
  3618  
  3619  func (m *QueryTokenClassTypeNameResponse) MarshalTo(dAtA []byte) (int, error) {
  3620  	size := m.Size()
  3621  	return m.MarshalToSizedBuffer(dAtA[:size])
  3622  }
  3623  
  3624  func (m *QueryTokenClassTypeNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3625  	i := len(dAtA)
  3626  	_ = i
  3627  	var l int
  3628  	_ = l
  3629  	if len(m.Name) > 0 {
  3630  		i -= len(m.Name)
  3631  		copy(dAtA[i:], m.Name)
  3632  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Name)))
  3633  		i--
  3634  		dAtA[i] = 0xa
  3635  	}
  3636  	return len(dAtA) - i, nil
  3637  }
  3638  
  3639  func (m *QueryTokenTypeRequest) Marshal() (dAtA []byte, err error) {
  3640  	size := m.Size()
  3641  	dAtA = make([]byte, size)
  3642  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3643  	if err != nil {
  3644  		return nil, err
  3645  	}
  3646  	return dAtA[:n], nil
  3647  }
  3648  
  3649  func (m *QueryTokenTypeRequest) MarshalTo(dAtA []byte) (int, error) {
  3650  	size := m.Size()
  3651  	return m.MarshalToSizedBuffer(dAtA[:size])
  3652  }
  3653  
  3654  func (m *QueryTokenTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3655  	i := len(dAtA)
  3656  	_ = i
  3657  	var l int
  3658  	_ = l
  3659  	if len(m.TokenType) > 0 {
  3660  		i -= len(m.TokenType)
  3661  		copy(dAtA[i:], m.TokenType)
  3662  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType)))
  3663  		i--
  3664  		dAtA[i] = 0x12
  3665  	}
  3666  	if len(m.ContractId) > 0 {
  3667  		i -= len(m.ContractId)
  3668  		copy(dAtA[i:], m.ContractId)
  3669  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3670  		i--
  3671  		dAtA[i] = 0xa
  3672  	}
  3673  	return len(dAtA) - i, nil
  3674  }
  3675  
  3676  func (m *QueryTokenTypeResponse) Marshal() (dAtA []byte, err error) {
  3677  	size := m.Size()
  3678  	dAtA = make([]byte, size)
  3679  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3680  	if err != nil {
  3681  		return nil, err
  3682  	}
  3683  	return dAtA[:n], nil
  3684  }
  3685  
  3686  func (m *QueryTokenTypeResponse) MarshalTo(dAtA []byte) (int, error) {
  3687  	size := m.Size()
  3688  	return m.MarshalToSizedBuffer(dAtA[:size])
  3689  }
  3690  
  3691  func (m *QueryTokenTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3692  	i := len(dAtA)
  3693  	_ = i
  3694  	var l int
  3695  	_ = l
  3696  	{
  3697  		size, err := m.TokenType.MarshalToSizedBuffer(dAtA[:i])
  3698  		if err != nil {
  3699  			return 0, err
  3700  		}
  3701  		i -= size
  3702  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3703  	}
  3704  	i--
  3705  	dAtA[i] = 0xa
  3706  	return len(dAtA) - i, nil
  3707  }
  3708  
  3709  func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error) {
  3710  	size := m.Size()
  3711  	dAtA = make([]byte, size)
  3712  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3713  	if err != nil {
  3714  		return nil, err
  3715  	}
  3716  	return dAtA[:n], nil
  3717  }
  3718  
  3719  func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error) {
  3720  	size := m.Size()
  3721  	return m.MarshalToSizedBuffer(dAtA[:size])
  3722  }
  3723  
  3724  func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3725  	i := len(dAtA)
  3726  	_ = i
  3727  	var l int
  3728  	_ = l
  3729  	if len(m.TokenId) > 0 {
  3730  		i -= len(m.TokenId)
  3731  		copy(dAtA[i:], m.TokenId)
  3732  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3733  		i--
  3734  		dAtA[i] = 0x12
  3735  	}
  3736  	if len(m.ContractId) > 0 {
  3737  		i -= len(m.ContractId)
  3738  		copy(dAtA[i:], m.ContractId)
  3739  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3740  		i--
  3741  		dAtA[i] = 0xa
  3742  	}
  3743  	return len(dAtA) - i, nil
  3744  }
  3745  
  3746  func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error) {
  3747  	size := m.Size()
  3748  	dAtA = make([]byte, size)
  3749  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3750  	if err != nil {
  3751  		return nil, err
  3752  	}
  3753  	return dAtA[:n], nil
  3754  }
  3755  
  3756  func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error) {
  3757  	size := m.Size()
  3758  	return m.MarshalToSizedBuffer(dAtA[:size])
  3759  }
  3760  
  3761  func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3762  	i := len(dAtA)
  3763  	_ = i
  3764  	var l int
  3765  	_ = l
  3766  	{
  3767  		size, err := m.Token.MarshalToSizedBuffer(dAtA[:i])
  3768  		if err != nil {
  3769  			return 0, err
  3770  		}
  3771  		i -= size
  3772  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3773  	}
  3774  	i--
  3775  	dAtA[i] = 0xa
  3776  	return len(dAtA) - i, nil
  3777  }
  3778  
  3779  func (m *QueryRootRequest) Marshal() (dAtA []byte, err error) {
  3780  	size := m.Size()
  3781  	dAtA = make([]byte, size)
  3782  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3783  	if err != nil {
  3784  		return nil, err
  3785  	}
  3786  	return dAtA[:n], nil
  3787  }
  3788  
  3789  func (m *QueryRootRequest) MarshalTo(dAtA []byte) (int, error) {
  3790  	size := m.Size()
  3791  	return m.MarshalToSizedBuffer(dAtA[:size])
  3792  }
  3793  
  3794  func (m *QueryRootRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3795  	i := len(dAtA)
  3796  	_ = i
  3797  	var l int
  3798  	_ = l
  3799  	if len(m.TokenId) > 0 {
  3800  		i -= len(m.TokenId)
  3801  		copy(dAtA[i:], m.TokenId)
  3802  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3803  		i--
  3804  		dAtA[i] = 0x12
  3805  	}
  3806  	if len(m.ContractId) > 0 {
  3807  		i -= len(m.ContractId)
  3808  		copy(dAtA[i:], m.ContractId)
  3809  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3810  		i--
  3811  		dAtA[i] = 0xa
  3812  	}
  3813  	return len(dAtA) - i, nil
  3814  }
  3815  
  3816  func (m *QueryRootResponse) Marshal() (dAtA []byte, err error) {
  3817  	size := m.Size()
  3818  	dAtA = make([]byte, size)
  3819  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3820  	if err != nil {
  3821  		return nil, err
  3822  	}
  3823  	return dAtA[:n], nil
  3824  }
  3825  
  3826  func (m *QueryRootResponse) MarshalTo(dAtA []byte) (int, error) {
  3827  	size := m.Size()
  3828  	return m.MarshalToSizedBuffer(dAtA[:size])
  3829  }
  3830  
  3831  func (m *QueryRootResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3832  	i := len(dAtA)
  3833  	_ = i
  3834  	var l int
  3835  	_ = l
  3836  	{
  3837  		size, err := m.Root.MarshalToSizedBuffer(dAtA[:i])
  3838  		if err != nil {
  3839  			return 0, err
  3840  		}
  3841  		i -= size
  3842  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3843  	}
  3844  	i--
  3845  	dAtA[i] = 0xa
  3846  	return len(dAtA) - i, nil
  3847  }
  3848  
  3849  func (m *QueryHasParentRequest) Marshal() (dAtA []byte, err error) {
  3850  	size := m.Size()
  3851  	dAtA = make([]byte, size)
  3852  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3853  	if err != nil {
  3854  		return nil, err
  3855  	}
  3856  	return dAtA[:n], nil
  3857  }
  3858  
  3859  func (m *QueryHasParentRequest) MarshalTo(dAtA []byte) (int, error) {
  3860  	size := m.Size()
  3861  	return m.MarshalToSizedBuffer(dAtA[:size])
  3862  }
  3863  
  3864  func (m *QueryHasParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3865  	i := len(dAtA)
  3866  	_ = i
  3867  	var l int
  3868  	_ = l
  3869  	if len(m.TokenId) > 0 {
  3870  		i -= len(m.TokenId)
  3871  		copy(dAtA[i:], m.TokenId)
  3872  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3873  		i--
  3874  		dAtA[i] = 0x12
  3875  	}
  3876  	if len(m.ContractId) > 0 {
  3877  		i -= len(m.ContractId)
  3878  		copy(dAtA[i:], m.ContractId)
  3879  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3880  		i--
  3881  		dAtA[i] = 0xa
  3882  	}
  3883  	return len(dAtA) - i, nil
  3884  }
  3885  
  3886  func (m *QueryHasParentResponse) Marshal() (dAtA []byte, err error) {
  3887  	size := m.Size()
  3888  	dAtA = make([]byte, size)
  3889  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3890  	if err != nil {
  3891  		return nil, err
  3892  	}
  3893  	return dAtA[:n], nil
  3894  }
  3895  
  3896  func (m *QueryHasParentResponse) MarshalTo(dAtA []byte) (int, error) {
  3897  	size := m.Size()
  3898  	return m.MarshalToSizedBuffer(dAtA[:size])
  3899  }
  3900  
  3901  func (m *QueryHasParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3902  	i := len(dAtA)
  3903  	_ = i
  3904  	var l int
  3905  	_ = l
  3906  	if m.HasParent {
  3907  		i--
  3908  		if m.HasParent {
  3909  			dAtA[i] = 1
  3910  		} else {
  3911  			dAtA[i] = 0
  3912  		}
  3913  		i--
  3914  		dAtA[i] = 0x8
  3915  	}
  3916  	return len(dAtA) - i, nil
  3917  }
  3918  
  3919  func (m *QueryParentRequest) Marshal() (dAtA []byte, err error) {
  3920  	size := m.Size()
  3921  	dAtA = make([]byte, size)
  3922  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3923  	if err != nil {
  3924  		return nil, err
  3925  	}
  3926  	return dAtA[:n], nil
  3927  }
  3928  
  3929  func (m *QueryParentRequest) MarshalTo(dAtA []byte) (int, error) {
  3930  	size := m.Size()
  3931  	return m.MarshalToSizedBuffer(dAtA[:size])
  3932  }
  3933  
  3934  func (m *QueryParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3935  	i := len(dAtA)
  3936  	_ = i
  3937  	var l int
  3938  	_ = l
  3939  	if len(m.TokenId) > 0 {
  3940  		i -= len(m.TokenId)
  3941  		copy(dAtA[i:], m.TokenId)
  3942  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  3943  		i--
  3944  		dAtA[i] = 0x12
  3945  	}
  3946  	if len(m.ContractId) > 0 {
  3947  		i -= len(m.ContractId)
  3948  		copy(dAtA[i:], m.ContractId)
  3949  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  3950  		i--
  3951  		dAtA[i] = 0xa
  3952  	}
  3953  	return len(dAtA) - i, nil
  3954  }
  3955  
  3956  func (m *QueryParentResponse) Marshal() (dAtA []byte, err error) {
  3957  	size := m.Size()
  3958  	dAtA = make([]byte, size)
  3959  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3960  	if err != nil {
  3961  		return nil, err
  3962  	}
  3963  	return dAtA[:n], nil
  3964  }
  3965  
  3966  func (m *QueryParentResponse) MarshalTo(dAtA []byte) (int, error) {
  3967  	size := m.Size()
  3968  	return m.MarshalToSizedBuffer(dAtA[:size])
  3969  }
  3970  
  3971  func (m *QueryParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3972  	i := len(dAtA)
  3973  	_ = i
  3974  	var l int
  3975  	_ = l
  3976  	{
  3977  		size, err := m.Parent.MarshalToSizedBuffer(dAtA[:i])
  3978  		if err != nil {
  3979  			return 0, err
  3980  		}
  3981  		i -= size
  3982  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3983  	}
  3984  	i--
  3985  	dAtA[i] = 0xa
  3986  	return len(dAtA) - i, nil
  3987  }
  3988  
  3989  func (m *QueryChildrenRequest) Marshal() (dAtA []byte, err error) {
  3990  	size := m.Size()
  3991  	dAtA = make([]byte, size)
  3992  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3993  	if err != nil {
  3994  		return nil, err
  3995  	}
  3996  	return dAtA[:n], nil
  3997  }
  3998  
  3999  func (m *QueryChildrenRequest) MarshalTo(dAtA []byte) (int, error) {
  4000  	size := m.Size()
  4001  	return m.MarshalToSizedBuffer(dAtA[:size])
  4002  }
  4003  
  4004  func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4005  	i := len(dAtA)
  4006  	_ = i
  4007  	var l int
  4008  	_ = l
  4009  	if m.Pagination != nil {
  4010  		{
  4011  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4012  			if err != nil {
  4013  				return 0, err
  4014  			}
  4015  			i -= size
  4016  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4017  		}
  4018  		i--
  4019  		dAtA[i] = 0x1a
  4020  	}
  4021  	if len(m.TokenId) > 0 {
  4022  		i -= len(m.TokenId)
  4023  		copy(dAtA[i:], m.TokenId)
  4024  		i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId)))
  4025  		i--
  4026  		dAtA[i] = 0x12
  4027  	}
  4028  	if len(m.ContractId) > 0 {
  4029  		i -= len(m.ContractId)
  4030  		copy(dAtA[i:], m.ContractId)
  4031  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  4032  		i--
  4033  		dAtA[i] = 0xa
  4034  	}
  4035  	return len(dAtA) - i, nil
  4036  }
  4037  
  4038  func (m *QueryChildrenResponse) Marshal() (dAtA []byte, err error) {
  4039  	size := m.Size()
  4040  	dAtA = make([]byte, size)
  4041  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4042  	if err != nil {
  4043  		return nil, err
  4044  	}
  4045  	return dAtA[:n], nil
  4046  }
  4047  
  4048  func (m *QueryChildrenResponse) MarshalTo(dAtA []byte) (int, error) {
  4049  	size := m.Size()
  4050  	return m.MarshalToSizedBuffer(dAtA[:size])
  4051  }
  4052  
  4053  func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4054  	i := len(dAtA)
  4055  	_ = i
  4056  	var l int
  4057  	_ = l
  4058  	if m.Pagination != nil {
  4059  		{
  4060  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4061  			if err != nil {
  4062  				return 0, err
  4063  			}
  4064  			i -= size
  4065  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4066  		}
  4067  		i--
  4068  		dAtA[i] = 0x12
  4069  	}
  4070  	if len(m.Children) > 0 {
  4071  		for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- {
  4072  			{
  4073  				size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4074  				if err != nil {
  4075  					return 0, err
  4076  				}
  4077  				i -= size
  4078  				i = encodeVarintQuery(dAtA, i, uint64(size))
  4079  			}
  4080  			i--
  4081  			dAtA[i] = 0xa
  4082  		}
  4083  	}
  4084  	return len(dAtA) - i, nil
  4085  }
  4086  
  4087  func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) {
  4088  	size := m.Size()
  4089  	dAtA = make([]byte, size)
  4090  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4091  	if err != nil {
  4092  		return nil, err
  4093  	}
  4094  	return dAtA[:n], nil
  4095  }
  4096  
  4097  func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) {
  4098  	size := m.Size()
  4099  	return m.MarshalToSizedBuffer(dAtA[:size])
  4100  }
  4101  
  4102  func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4103  	i := len(dAtA)
  4104  	_ = i
  4105  	var l int
  4106  	_ = l
  4107  	if m.Pagination != nil {
  4108  		{
  4109  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4110  			if err != nil {
  4111  				return 0, err
  4112  			}
  4113  			i -= size
  4114  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4115  		}
  4116  		i--
  4117  		dAtA[i] = 0x1a
  4118  	}
  4119  	if len(m.Grantee) > 0 {
  4120  		i -= len(m.Grantee)
  4121  		copy(dAtA[i:], m.Grantee)
  4122  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee)))
  4123  		i--
  4124  		dAtA[i] = 0x12
  4125  	}
  4126  	if len(m.ContractId) > 0 {
  4127  		i -= len(m.ContractId)
  4128  		copy(dAtA[i:], m.ContractId)
  4129  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  4130  		i--
  4131  		dAtA[i] = 0xa
  4132  	}
  4133  	return len(dAtA) - i, nil
  4134  }
  4135  
  4136  func (m *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) {
  4137  	size := m.Size()
  4138  	dAtA = make([]byte, size)
  4139  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4140  	if err != nil {
  4141  		return nil, err
  4142  	}
  4143  	return dAtA[:n], nil
  4144  }
  4145  
  4146  func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) {
  4147  	size := m.Size()
  4148  	return m.MarshalToSizedBuffer(dAtA[:size])
  4149  }
  4150  
  4151  func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4152  	i := len(dAtA)
  4153  	_ = i
  4154  	var l int
  4155  	_ = l
  4156  	if m.Pagination != nil {
  4157  		{
  4158  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4159  			if err != nil {
  4160  				return 0, err
  4161  			}
  4162  			i -= size
  4163  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4164  		}
  4165  		i--
  4166  		dAtA[i] = 0x12
  4167  	}
  4168  	if len(m.Grants) > 0 {
  4169  		for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- {
  4170  			{
  4171  				size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4172  				if err != nil {
  4173  					return 0, err
  4174  				}
  4175  				i -= size
  4176  				i = encodeVarintQuery(dAtA, i, uint64(size))
  4177  			}
  4178  			i--
  4179  			dAtA[i] = 0xa
  4180  		}
  4181  	}
  4182  	return len(dAtA) - i, nil
  4183  }
  4184  
  4185  func (m *QueryIsOperatorForRequest) Marshal() (dAtA []byte, err error) {
  4186  	size := m.Size()
  4187  	dAtA = make([]byte, size)
  4188  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4189  	if err != nil {
  4190  		return nil, err
  4191  	}
  4192  	return dAtA[:n], nil
  4193  }
  4194  
  4195  func (m *QueryIsOperatorForRequest) MarshalTo(dAtA []byte) (int, error) {
  4196  	size := m.Size()
  4197  	return m.MarshalToSizedBuffer(dAtA[:size])
  4198  }
  4199  
  4200  func (m *QueryIsOperatorForRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4201  	i := len(dAtA)
  4202  	_ = i
  4203  	var l int
  4204  	_ = l
  4205  	if len(m.Holder) > 0 {
  4206  		i -= len(m.Holder)
  4207  		copy(dAtA[i:], m.Holder)
  4208  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder)))
  4209  		i--
  4210  		dAtA[i] = 0x1a
  4211  	}
  4212  	if len(m.Operator) > 0 {
  4213  		i -= len(m.Operator)
  4214  		copy(dAtA[i:], m.Operator)
  4215  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator)))
  4216  		i--
  4217  		dAtA[i] = 0x12
  4218  	}
  4219  	if len(m.ContractId) > 0 {
  4220  		i -= len(m.ContractId)
  4221  		copy(dAtA[i:], m.ContractId)
  4222  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  4223  		i--
  4224  		dAtA[i] = 0xa
  4225  	}
  4226  	return len(dAtA) - i, nil
  4227  }
  4228  
  4229  func (m *QueryIsOperatorForResponse) Marshal() (dAtA []byte, err error) {
  4230  	size := m.Size()
  4231  	dAtA = make([]byte, size)
  4232  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4233  	if err != nil {
  4234  		return nil, err
  4235  	}
  4236  	return dAtA[:n], nil
  4237  }
  4238  
  4239  func (m *QueryIsOperatorForResponse) MarshalTo(dAtA []byte) (int, error) {
  4240  	size := m.Size()
  4241  	return m.MarshalToSizedBuffer(dAtA[:size])
  4242  }
  4243  
  4244  func (m *QueryIsOperatorForResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4245  	i := len(dAtA)
  4246  	_ = i
  4247  	var l int
  4248  	_ = l
  4249  	if m.Authorized {
  4250  		i--
  4251  		if m.Authorized {
  4252  			dAtA[i] = 1
  4253  		} else {
  4254  			dAtA[i] = 0
  4255  		}
  4256  		i--
  4257  		dAtA[i] = 0x8
  4258  	}
  4259  	return len(dAtA) - i, nil
  4260  }
  4261  
  4262  func (m *QueryHoldersByOperatorRequest) Marshal() (dAtA []byte, err error) {
  4263  	size := m.Size()
  4264  	dAtA = make([]byte, size)
  4265  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4266  	if err != nil {
  4267  		return nil, err
  4268  	}
  4269  	return dAtA[:n], nil
  4270  }
  4271  
  4272  func (m *QueryHoldersByOperatorRequest) MarshalTo(dAtA []byte) (int, error) {
  4273  	size := m.Size()
  4274  	return m.MarshalToSizedBuffer(dAtA[:size])
  4275  }
  4276  
  4277  func (m *QueryHoldersByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4278  	i := len(dAtA)
  4279  	_ = i
  4280  	var l int
  4281  	_ = l
  4282  	if m.Pagination != nil {
  4283  		{
  4284  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4285  			if err != nil {
  4286  				return 0, err
  4287  			}
  4288  			i -= size
  4289  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4290  		}
  4291  		i--
  4292  		dAtA[i] = 0x1a
  4293  	}
  4294  	if len(m.Operator) > 0 {
  4295  		i -= len(m.Operator)
  4296  		copy(dAtA[i:], m.Operator)
  4297  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator)))
  4298  		i--
  4299  		dAtA[i] = 0x12
  4300  	}
  4301  	if len(m.ContractId) > 0 {
  4302  		i -= len(m.ContractId)
  4303  		copy(dAtA[i:], m.ContractId)
  4304  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId)))
  4305  		i--
  4306  		dAtA[i] = 0xa
  4307  	}
  4308  	return len(dAtA) - i, nil
  4309  }
  4310  
  4311  func (m *QueryHoldersByOperatorResponse) Marshal() (dAtA []byte, err error) {
  4312  	size := m.Size()
  4313  	dAtA = make([]byte, size)
  4314  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4315  	if err != nil {
  4316  		return nil, err
  4317  	}
  4318  	return dAtA[:n], nil
  4319  }
  4320  
  4321  func (m *QueryHoldersByOperatorResponse) MarshalTo(dAtA []byte) (int, error) {
  4322  	size := m.Size()
  4323  	return m.MarshalToSizedBuffer(dAtA[:size])
  4324  }
  4325  
  4326  func (m *QueryHoldersByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4327  	i := len(dAtA)
  4328  	_ = i
  4329  	var l int
  4330  	_ = l
  4331  	if m.Pagination != nil {
  4332  		{
  4333  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  4334  			if err != nil {
  4335  				return 0, err
  4336  			}
  4337  			i -= size
  4338  			i = encodeVarintQuery(dAtA, i, uint64(size))
  4339  		}
  4340  		i--
  4341  		dAtA[i] = 0x12
  4342  	}
  4343  	if len(m.Holders) > 0 {
  4344  		for iNdEx := len(m.Holders) - 1; iNdEx >= 0; iNdEx-- {
  4345  			i -= len(m.Holders[iNdEx])
  4346  			copy(dAtA[i:], m.Holders[iNdEx])
  4347  			i = encodeVarintQuery(dAtA, i, uint64(len(m.Holders[iNdEx])))
  4348  			i--
  4349  			dAtA[i] = 0xa
  4350  		}
  4351  	}
  4352  	return len(dAtA) - i, nil
  4353  }
  4354  
  4355  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  4356  	offset -= sovQuery(v)
  4357  	base := offset
  4358  	for v >= 1<<7 {
  4359  		dAtA[offset] = uint8(v&0x7f | 0x80)
  4360  		v >>= 7
  4361  		offset++
  4362  	}
  4363  	dAtA[offset] = uint8(v)
  4364  	return base
  4365  }
  4366  func (m *QueryBalanceRequest) Size() (n int) {
  4367  	if m == nil {
  4368  		return 0
  4369  	}
  4370  	var l int
  4371  	_ = l
  4372  	l = len(m.ContractId)
  4373  	if l > 0 {
  4374  		n += 1 + l + sovQuery(uint64(l))
  4375  	}
  4376  	l = len(m.Address)
  4377  	if l > 0 {
  4378  		n += 1 + l + sovQuery(uint64(l))
  4379  	}
  4380  	l = len(m.TokenId)
  4381  	if l > 0 {
  4382  		n += 1 + l + sovQuery(uint64(l))
  4383  	}
  4384  	return n
  4385  }
  4386  
  4387  func (m *QueryBalanceResponse) Size() (n int) {
  4388  	if m == nil {
  4389  		return 0
  4390  	}
  4391  	var l int
  4392  	_ = l
  4393  	l = m.Balance.Size()
  4394  	n += 1 + l + sovQuery(uint64(l))
  4395  	return n
  4396  }
  4397  
  4398  func (m *QueryAllBalancesRequest) Size() (n int) {
  4399  	if m == nil {
  4400  		return 0
  4401  	}
  4402  	var l int
  4403  	_ = l
  4404  	l = len(m.ContractId)
  4405  	if l > 0 {
  4406  		n += 1 + l + sovQuery(uint64(l))
  4407  	}
  4408  	l = len(m.Address)
  4409  	if l > 0 {
  4410  		n += 1 + l + sovQuery(uint64(l))
  4411  	}
  4412  	if m.Pagination != nil {
  4413  		l = m.Pagination.Size()
  4414  		n += 1 + l + sovQuery(uint64(l))
  4415  	}
  4416  	return n
  4417  }
  4418  
  4419  func (m *QueryAllBalancesResponse) Size() (n int) {
  4420  	if m == nil {
  4421  		return 0
  4422  	}
  4423  	var l int
  4424  	_ = l
  4425  	if len(m.Balances) > 0 {
  4426  		for _, e := range m.Balances {
  4427  			l = e.Size()
  4428  			n += 1 + l + sovQuery(uint64(l))
  4429  		}
  4430  	}
  4431  	if m.Pagination != nil {
  4432  		l = m.Pagination.Size()
  4433  		n += 1 + l + sovQuery(uint64(l))
  4434  	}
  4435  	return n
  4436  }
  4437  
  4438  func (m *QueryFTSupplyRequest) Size() (n int) {
  4439  	if m == nil {
  4440  		return 0
  4441  	}
  4442  	var l int
  4443  	_ = l
  4444  	l = len(m.ContractId)
  4445  	if l > 0 {
  4446  		n += 1 + l + sovQuery(uint64(l))
  4447  	}
  4448  	l = len(m.TokenId)
  4449  	if l > 0 {
  4450  		n += 1 + l + sovQuery(uint64(l))
  4451  	}
  4452  	return n
  4453  }
  4454  
  4455  func (m *QueryFTSupplyResponse) Size() (n int) {
  4456  	if m == nil {
  4457  		return 0
  4458  	}
  4459  	var l int
  4460  	_ = l
  4461  	l = m.Supply.Size()
  4462  	n += 1 + l + sovQuery(uint64(l))
  4463  	return n
  4464  }
  4465  
  4466  func (m *QueryFTMintedRequest) Size() (n int) {
  4467  	if m == nil {
  4468  		return 0
  4469  	}
  4470  	var l int
  4471  	_ = l
  4472  	l = len(m.ContractId)
  4473  	if l > 0 {
  4474  		n += 1 + l + sovQuery(uint64(l))
  4475  	}
  4476  	l = len(m.TokenId)
  4477  	if l > 0 {
  4478  		n += 1 + l + sovQuery(uint64(l))
  4479  	}
  4480  	return n
  4481  }
  4482  
  4483  func (m *QueryFTMintedResponse) Size() (n int) {
  4484  	if m == nil {
  4485  		return 0
  4486  	}
  4487  	var l int
  4488  	_ = l
  4489  	l = m.Minted.Size()
  4490  	n += 1 + l + sovQuery(uint64(l))
  4491  	return n
  4492  }
  4493  
  4494  func (m *QueryFTBurntRequest) Size() (n int) {
  4495  	if m == nil {
  4496  		return 0
  4497  	}
  4498  	var l int
  4499  	_ = l
  4500  	l = len(m.ContractId)
  4501  	if l > 0 {
  4502  		n += 1 + l + sovQuery(uint64(l))
  4503  	}
  4504  	l = len(m.TokenId)
  4505  	if l > 0 {
  4506  		n += 1 + l + sovQuery(uint64(l))
  4507  	}
  4508  	return n
  4509  }
  4510  
  4511  func (m *QueryFTBurntResponse) Size() (n int) {
  4512  	if m == nil {
  4513  		return 0
  4514  	}
  4515  	var l int
  4516  	_ = l
  4517  	l = m.Burnt.Size()
  4518  	n += 1 + l + sovQuery(uint64(l))
  4519  	return n
  4520  }
  4521  
  4522  func (m *QueryNFTSupplyRequest) Size() (n int) {
  4523  	if m == nil {
  4524  		return 0
  4525  	}
  4526  	var l int
  4527  	_ = l
  4528  	l = len(m.ContractId)
  4529  	if l > 0 {
  4530  		n += 1 + l + sovQuery(uint64(l))
  4531  	}
  4532  	l = len(m.TokenType)
  4533  	if l > 0 {
  4534  		n += 1 + l + sovQuery(uint64(l))
  4535  	}
  4536  	return n
  4537  }
  4538  
  4539  func (m *QueryNFTSupplyResponse) Size() (n int) {
  4540  	if m == nil {
  4541  		return 0
  4542  	}
  4543  	var l int
  4544  	_ = l
  4545  	l = m.Supply.Size()
  4546  	n += 1 + l + sovQuery(uint64(l))
  4547  	return n
  4548  }
  4549  
  4550  func (m *QueryNFTMintedRequest) Size() (n int) {
  4551  	if m == nil {
  4552  		return 0
  4553  	}
  4554  	var l int
  4555  	_ = l
  4556  	l = len(m.ContractId)
  4557  	if l > 0 {
  4558  		n += 1 + l + sovQuery(uint64(l))
  4559  	}
  4560  	l = len(m.TokenType)
  4561  	if l > 0 {
  4562  		n += 1 + l + sovQuery(uint64(l))
  4563  	}
  4564  	return n
  4565  }
  4566  
  4567  func (m *QueryNFTMintedResponse) Size() (n int) {
  4568  	if m == nil {
  4569  		return 0
  4570  	}
  4571  	var l int
  4572  	_ = l
  4573  	l = m.Minted.Size()
  4574  	n += 1 + l + sovQuery(uint64(l))
  4575  	return n
  4576  }
  4577  
  4578  func (m *QueryNFTBurntRequest) Size() (n int) {
  4579  	if m == nil {
  4580  		return 0
  4581  	}
  4582  	var l int
  4583  	_ = l
  4584  	l = len(m.ContractId)
  4585  	if l > 0 {
  4586  		n += 1 + l + sovQuery(uint64(l))
  4587  	}
  4588  	l = len(m.TokenType)
  4589  	if l > 0 {
  4590  		n += 1 + l + sovQuery(uint64(l))
  4591  	}
  4592  	return n
  4593  }
  4594  
  4595  func (m *QueryNFTBurntResponse) Size() (n int) {
  4596  	if m == nil {
  4597  		return 0
  4598  	}
  4599  	var l int
  4600  	_ = l
  4601  	l = m.Burnt.Size()
  4602  	n += 1 + l + sovQuery(uint64(l))
  4603  	return n
  4604  }
  4605  
  4606  func (m *QueryContractRequest) Size() (n int) {
  4607  	if m == nil {
  4608  		return 0
  4609  	}
  4610  	var l int
  4611  	_ = l
  4612  	l = len(m.ContractId)
  4613  	if l > 0 {
  4614  		n += 1 + l + sovQuery(uint64(l))
  4615  	}
  4616  	return n
  4617  }
  4618  
  4619  func (m *QueryContractResponse) Size() (n int) {
  4620  	if m == nil {
  4621  		return 0
  4622  	}
  4623  	var l int
  4624  	_ = l
  4625  	l = m.Contract.Size()
  4626  	n += 1 + l + sovQuery(uint64(l))
  4627  	return n
  4628  }
  4629  
  4630  func (m *QueryTokenClassTypeNameRequest) Size() (n int) {
  4631  	if m == nil {
  4632  		return 0
  4633  	}
  4634  	var l int
  4635  	_ = l
  4636  	l = len(m.ContractId)
  4637  	if l > 0 {
  4638  		n += 1 + l + sovQuery(uint64(l))
  4639  	}
  4640  	l = len(m.ClassId)
  4641  	if l > 0 {
  4642  		n += 1 + l + sovQuery(uint64(l))
  4643  	}
  4644  	return n
  4645  }
  4646  
  4647  func (m *QueryTokenClassTypeNameResponse) Size() (n int) {
  4648  	if m == nil {
  4649  		return 0
  4650  	}
  4651  	var l int
  4652  	_ = l
  4653  	l = len(m.Name)
  4654  	if l > 0 {
  4655  		n += 1 + l + sovQuery(uint64(l))
  4656  	}
  4657  	return n
  4658  }
  4659  
  4660  func (m *QueryTokenTypeRequest) Size() (n int) {
  4661  	if m == nil {
  4662  		return 0
  4663  	}
  4664  	var l int
  4665  	_ = l
  4666  	l = len(m.ContractId)
  4667  	if l > 0 {
  4668  		n += 1 + l + sovQuery(uint64(l))
  4669  	}
  4670  	l = len(m.TokenType)
  4671  	if l > 0 {
  4672  		n += 1 + l + sovQuery(uint64(l))
  4673  	}
  4674  	return n
  4675  }
  4676  
  4677  func (m *QueryTokenTypeResponse) Size() (n int) {
  4678  	if m == nil {
  4679  		return 0
  4680  	}
  4681  	var l int
  4682  	_ = l
  4683  	l = m.TokenType.Size()
  4684  	n += 1 + l + sovQuery(uint64(l))
  4685  	return n
  4686  }
  4687  
  4688  func (m *QueryTokenRequest) Size() (n int) {
  4689  	if m == nil {
  4690  		return 0
  4691  	}
  4692  	var l int
  4693  	_ = l
  4694  	l = len(m.ContractId)
  4695  	if l > 0 {
  4696  		n += 1 + l + sovQuery(uint64(l))
  4697  	}
  4698  	l = len(m.TokenId)
  4699  	if l > 0 {
  4700  		n += 1 + l + sovQuery(uint64(l))
  4701  	}
  4702  	return n
  4703  }
  4704  
  4705  func (m *QueryTokenResponse) Size() (n int) {
  4706  	if m == nil {
  4707  		return 0
  4708  	}
  4709  	var l int
  4710  	_ = l
  4711  	l = m.Token.Size()
  4712  	n += 1 + l + sovQuery(uint64(l))
  4713  	return n
  4714  }
  4715  
  4716  func (m *QueryRootRequest) Size() (n int) {
  4717  	if m == nil {
  4718  		return 0
  4719  	}
  4720  	var l int
  4721  	_ = l
  4722  	l = len(m.ContractId)
  4723  	if l > 0 {
  4724  		n += 1 + l + sovQuery(uint64(l))
  4725  	}
  4726  	l = len(m.TokenId)
  4727  	if l > 0 {
  4728  		n += 1 + l + sovQuery(uint64(l))
  4729  	}
  4730  	return n
  4731  }
  4732  
  4733  func (m *QueryRootResponse) Size() (n int) {
  4734  	if m == nil {
  4735  		return 0
  4736  	}
  4737  	var l int
  4738  	_ = l
  4739  	l = m.Root.Size()
  4740  	n += 1 + l + sovQuery(uint64(l))
  4741  	return n
  4742  }
  4743  
  4744  func (m *QueryHasParentRequest) Size() (n int) {
  4745  	if m == nil {
  4746  		return 0
  4747  	}
  4748  	var l int
  4749  	_ = l
  4750  	l = len(m.ContractId)
  4751  	if l > 0 {
  4752  		n += 1 + l + sovQuery(uint64(l))
  4753  	}
  4754  	l = len(m.TokenId)
  4755  	if l > 0 {
  4756  		n += 1 + l + sovQuery(uint64(l))
  4757  	}
  4758  	return n
  4759  }
  4760  
  4761  func (m *QueryHasParentResponse) Size() (n int) {
  4762  	if m == nil {
  4763  		return 0
  4764  	}
  4765  	var l int
  4766  	_ = l
  4767  	if m.HasParent {
  4768  		n += 2
  4769  	}
  4770  	return n
  4771  }
  4772  
  4773  func (m *QueryParentRequest) Size() (n int) {
  4774  	if m == nil {
  4775  		return 0
  4776  	}
  4777  	var l int
  4778  	_ = l
  4779  	l = len(m.ContractId)
  4780  	if l > 0 {
  4781  		n += 1 + l + sovQuery(uint64(l))
  4782  	}
  4783  	l = len(m.TokenId)
  4784  	if l > 0 {
  4785  		n += 1 + l + sovQuery(uint64(l))
  4786  	}
  4787  	return n
  4788  }
  4789  
  4790  func (m *QueryParentResponse) Size() (n int) {
  4791  	if m == nil {
  4792  		return 0
  4793  	}
  4794  	var l int
  4795  	_ = l
  4796  	l = m.Parent.Size()
  4797  	n += 1 + l + sovQuery(uint64(l))
  4798  	return n
  4799  }
  4800  
  4801  func (m *QueryChildrenRequest) Size() (n int) {
  4802  	if m == nil {
  4803  		return 0
  4804  	}
  4805  	var l int
  4806  	_ = l
  4807  	l = len(m.ContractId)
  4808  	if l > 0 {
  4809  		n += 1 + l + sovQuery(uint64(l))
  4810  	}
  4811  	l = len(m.TokenId)
  4812  	if l > 0 {
  4813  		n += 1 + l + sovQuery(uint64(l))
  4814  	}
  4815  	if m.Pagination != nil {
  4816  		l = m.Pagination.Size()
  4817  		n += 1 + l + sovQuery(uint64(l))
  4818  	}
  4819  	return n
  4820  }
  4821  
  4822  func (m *QueryChildrenResponse) Size() (n int) {
  4823  	if m == nil {
  4824  		return 0
  4825  	}
  4826  	var l int
  4827  	_ = l
  4828  	if len(m.Children) > 0 {
  4829  		for _, e := range m.Children {
  4830  			l = e.Size()
  4831  			n += 1 + l + sovQuery(uint64(l))
  4832  		}
  4833  	}
  4834  	if m.Pagination != nil {
  4835  		l = m.Pagination.Size()
  4836  		n += 1 + l + sovQuery(uint64(l))
  4837  	}
  4838  	return n
  4839  }
  4840  
  4841  func (m *QueryGranteeGrantsRequest) Size() (n int) {
  4842  	if m == nil {
  4843  		return 0
  4844  	}
  4845  	var l int
  4846  	_ = l
  4847  	l = len(m.ContractId)
  4848  	if l > 0 {
  4849  		n += 1 + l + sovQuery(uint64(l))
  4850  	}
  4851  	l = len(m.Grantee)
  4852  	if l > 0 {
  4853  		n += 1 + l + sovQuery(uint64(l))
  4854  	}
  4855  	if m.Pagination != nil {
  4856  		l = m.Pagination.Size()
  4857  		n += 1 + l + sovQuery(uint64(l))
  4858  	}
  4859  	return n
  4860  }
  4861  
  4862  func (m *QueryGranteeGrantsResponse) Size() (n int) {
  4863  	if m == nil {
  4864  		return 0
  4865  	}
  4866  	var l int
  4867  	_ = l
  4868  	if len(m.Grants) > 0 {
  4869  		for _, e := range m.Grants {
  4870  			l = e.Size()
  4871  			n += 1 + l + sovQuery(uint64(l))
  4872  		}
  4873  	}
  4874  	if m.Pagination != nil {
  4875  		l = m.Pagination.Size()
  4876  		n += 1 + l + sovQuery(uint64(l))
  4877  	}
  4878  	return n
  4879  }
  4880  
  4881  func (m *QueryIsOperatorForRequest) Size() (n int) {
  4882  	if m == nil {
  4883  		return 0
  4884  	}
  4885  	var l int
  4886  	_ = l
  4887  	l = len(m.ContractId)
  4888  	if l > 0 {
  4889  		n += 1 + l + sovQuery(uint64(l))
  4890  	}
  4891  	l = len(m.Operator)
  4892  	if l > 0 {
  4893  		n += 1 + l + sovQuery(uint64(l))
  4894  	}
  4895  	l = len(m.Holder)
  4896  	if l > 0 {
  4897  		n += 1 + l + sovQuery(uint64(l))
  4898  	}
  4899  	return n
  4900  }
  4901  
  4902  func (m *QueryIsOperatorForResponse) Size() (n int) {
  4903  	if m == nil {
  4904  		return 0
  4905  	}
  4906  	var l int
  4907  	_ = l
  4908  	if m.Authorized {
  4909  		n += 2
  4910  	}
  4911  	return n
  4912  }
  4913  
  4914  func (m *QueryHoldersByOperatorRequest) Size() (n int) {
  4915  	if m == nil {
  4916  		return 0
  4917  	}
  4918  	var l int
  4919  	_ = l
  4920  	l = len(m.ContractId)
  4921  	if l > 0 {
  4922  		n += 1 + l + sovQuery(uint64(l))
  4923  	}
  4924  	l = len(m.Operator)
  4925  	if l > 0 {
  4926  		n += 1 + l + sovQuery(uint64(l))
  4927  	}
  4928  	if m.Pagination != nil {
  4929  		l = m.Pagination.Size()
  4930  		n += 1 + l + sovQuery(uint64(l))
  4931  	}
  4932  	return n
  4933  }
  4934  
  4935  func (m *QueryHoldersByOperatorResponse) Size() (n int) {
  4936  	if m == nil {
  4937  		return 0
  4938  	}
  4939  	var l int
  4940  	_ = l
  4941  	if len(m.Holders) > 0 {
  4942  		for _, s := range m.Holders {
  4943  			l = len(s)
  4944  			n += 1 + l + sovQuery(uint64(l))
  4945  		}
  4946  	}
  4947  	if m.Pagination != nil {
  4948  		l = m.Pagination.Size()
  4949  		n += 1 + l + sovQuery(uint64(l))
  4950  	}
  4951  	return n
  4952  }
  4953  
  4954  func sovQuery(x uint64) (n int) {
  4955  	return (math_bits.Len64(x|1) + 6) / 7
  4956  }
  4957  func sozQuery(x uint64) (n int) {
  4958  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  4959  }
  4960  func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error {
  4961  	l := len(dAtA)
  4962  	iNdEx := 0
  4963  	for iNdEx < l {
  4964  		preIndex := iNdEx
  4965  		var wire uint64
  4966  		for shift := uint(0); ; shift += 7 {
  4967  			if shift >= 64 {
  4968  				return ErrIntOverflowQuery
  4969  			}
  4970  			if iNdEx >= l {
  4971  				return io.ErrUnexpectedEOF
  4972  			}
  4973  			b := dAtA[iNdEx]
  4974  			iNdEx++
  4975  			wire |= uint64(b&0x7F) << shift
  4976  			if b < 0x80 {
  4977  				break
  4978  			}
  4979  		}
  4980  		fieldNum := int32(wire >> 3)
  4981  		wireType := int(wire & 0x7)
  4982  		if wireType == 4 {
  4983  			return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group")
  4984  		}
  4985  		if fieldNum <= 0 {
  4986  			return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4987  		}
  4988  		switch fieldNum {
  4989  		case 1:
  4990  			if wireType != 2 {
  4991  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  4992  			}
  4993  			var stringLen uint64
  4994  			for shift := uint(0); ; shift += 7 {
  4995  				if shift >= 64 {
  4996  					return ErrIntOverflowQuery
  4997  				}
  4998  				if iNdEx >= l {
  4999  					return io.ErrUnexpectedEOF
  5000  				}
  5001  				b := dAtA[iNdEx]
  5002  				iNdEx++
  5003  				stringLen |= uint64(b&0x7F) << shift
  5004  				if b < 0x80 {
  5005  					break
  5006  				}
  5007  			}
  5008  			intStringLen := int(stringLen)
  5009  			if intStringLen < 0 {
  5010  				return ErrInvalidLengthQuery
  5011  			}
  5012  			postIndex := iNdEx + intStringLen
  5013  			if postIndex < 0 {
  5014  				return ErrInvalidLengthQuery
  5015  			}
  5016  			if postIndex > l {
  5017  				return io.ErrUnexpectedEOF
  5018  			}
  5019  			m.ContractId = string(dAtA[iNdEx:postIndex])
  5020  			iNdEx = postIndex
  5021  		case 2:
  5022  			if wireType != 2 {
  5023  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  5024  			}
  5025  			var stringLen uint64
  5026  			for shift := uint(0); ; shift += 7 {
  5027  				if shift >= 64 {
  5028  					return ErrIntOverflowQuery
  5029  				}
  5030  				if iNdEx >= l {
  5031  					return io.ErrUnexpectedEOF
  5032  				}
  5033  				b := dAtA[iNdEx]
  5034  				iNdEx++
  5035  				stringLen |= uint64(b&0x7F) << shift
  5036  				if b < 0x80 {
  5037  					break
  5038  				}
  5039  			}
  5040  			intStringLen := int(stringLen)
  5041  			if intStringLen < 0 {
  5042  				return ErrInvalidLengthQuery
  5043  			}
  5044  			postIndex := iNdEx + intStringLen
  5045  			if postIndex < 0 {
  5046  				return ErrInvalidLengthQuery
  5047  			}
  5048  			if postIndex > l {
  5049  				return io.ErrUnexpectedEOF
  5050  			}
  5051  			m.Address = string(dAtA[iNdEx:postIndex])
  5052  			iNdEx = postIndex
  5053  		case 3:
  5054  			if wireType != 2 {
  5055  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  5056  			}
  5057  			var stringLen uint64
  5058  			for shift := uint(0); ; shift += 7 {
  5059  				if shift >= 64 {
  5060  					return ErrIntOverflowQuery
  5061  				}
  5062  				if iNdEx >= l {
  5063  					return io.ErrUnexpectedEOF
  5064  				}
  5065  				b := dAtA[iNdEx]
  5066  				iNdEx++
  5067  				stringLen |= uint64(b&0x7F) << shift
  5068  				if b < 0x80 {
  5069  					break
  5070  				}
  5071  			}
  5072  			intStringLen := int(stringLen)
  5073  			if intStringLen < 0 {
  5074  				return ErrInvalidLengthQuery
  5075  			}
  5076  			postIndex := iNdEx + intStringLen
  5077  			if postIndex < 0 {
  5078  				return ErrInvalidLengthQuery
  5079  			}
  5080  			if postIndex > l {
  5081  				return io.ErrUnexpectedEOF
  5082  			}
  5083  			m.TokenId = string(dAtA[iNdEx:postIndex])
  5084  			iNdEx = postIndex
  5085  		default:
  5086  			iNdEx = preIndex
  5087  			skippy, err := skipQuery(dAtA[iNdEx:])
  5088  			if err != nil {
  5089  				return err
  5090  			}
  5091  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5092  				return ErrInvalidLengthQuery
  5093  			}
  5094  			if (iNdEx + skippy) > l {
  5095  				return io.ErrUnexpectedEOF
  5096  			}
  5097  			iNdEx += skippy
  5098  		}
  5099  	}
  5100  
  5101  	if iNdEx > l {
  5102  		return io.ErrUnexpectedEOF
  5103  	}
  5104  	return nil
  5105  }
  5106  func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error {
  5107  	l := len(dAtA)
  5108  	iNdEx := 0
  5109  	for iNdEx < l {
  5110  		preIndex := iNdEx
  5111  		var wire uint64
  5112  		for shift := uint(0); ; shift += 7 {
  5113  			if shift >= 64 {
  5114  				return ErrIntOverflowQuery
  5115  			}
  5116  			if iNdEx >= l {
  5117  				return io.ErrUnexpectedEOF
  5118  			}
  5119  			b := dAtA[iNdEx]
  5120  			iNdEx++
  5121  			wire |= uint64(b&0x7F) << shift
  5122  			if b < 0x80 {
  5123  				break
  5124  			}
  5125  		}
  5126  		fieldNum := int32(wire >> 3)
  5127  		wireType := int(wire & 0x7)
  5128  		if wireType == 4 {
  5129  			return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group")
  5130  		}
  5131  		if fieldNum <= 0 {
  5132  			return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5133  		}
  5134  		switch fieldNum {
  5135  		case 1:
  5136  			if wireType != 2 {
  5137  				return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType)
  5138  			}
  5139  			var msglen int
  5140  			for shift := uint(0); ; shift += 7 {
  5141  				if shift >= 64 {
  5142  					return ErrIntOverflowQuery
  5143  				}
  5144  				if iNdEx >= l {
  5145  					return io.ErrUnexpectedEOF
  5146  				}
  5147  				b := dAtA[iNdEx]
  5148  				iNdEx++
  5149  				msglen |= int(b&0x7F) << shift
  5150  				if b < 0x80 {
  5151  					break
  5152  				}
  5153  			}
  5154  			if msglen < 0 {
  5155  				return ErrInvalidLengthQuery
  5156  			}
  5157  			postIndex := iNdEx + msglen
  5158  			if postIndex < 0 {
  5159  				return ErrInvalidLengthQuery
  5160  			}
  5161  			if postIndex > l {
  5162  				return io.ErrUnexpectedEOF
  5163  			}
  5164  			if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5165  				return err
  5166  			}
  5167  			iNdEx = postIndex
  5168  		default:
  5169  			iNdEx = preIndex
  5170  			skippy, err := skipQuery(dAtA[iNdEx:])
  5171  			if err != nil {
  5172  				return err
  5173  			}
  5174  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5175  				return ErrInvalidLengthQuery
  5176  			}
  5177  			if (iNdEx + skippy) > l {
  5178  				return io.ErrUnexpectedEOF
  5179  			}
  5180  			iNdEx += skippy
  5181  		}
  5182  	}
  5183  
  5184  	if iNdEx > l {
  5185  		return io.ErrUnexpectedEOF
  5186  	}
  5187  	return nil
  5188  }
  5189  func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error {
  5190  	l := len(dAtA)
  5191  	iNdEx := 0
  5192  	for iNdEx < l {
  5193  		preIndex := iNdEx
  5194  		var wire uint64
  5195  		for shift := uint(0); ; shift += 7 {
  5196  			if shift >= 64 {
  5197  				return ErrIntOverflowQuery
  5198  			}
  5199  			if iNdEx >= l {
  5200  				return io.ErrUnexpectedEOF
  5201  			}
  5202  			b := dAtA[iNdEx]
  5203  			iNdEx++
  5204  			wire |= uint64(b&0x7F) << shift
  5205  			if b < 0x80 {
  5206  				break
  5207  			}
  5208  		}
  5209  		fieldNum := int32(wire >> 3)
  5210  		wireType := int(wire & 0x7)
  5211  		if wireType == 4 {
  5212  			return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group")
  5213  		}
  5214  		if fieldNum <= 0 {
  5215  			return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5216  		}
  5217  		switch fieldNum {
  5218  		case 1:
  5219  			if wireType != 2 {
  5220  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  5221  			}
  5222  			var stringLen uint64
  5223  			for shift := uint(0); ; shift += 7 {
  5224  				if shift >= 64 {
  5225  					return ErrIntOverflowQuery
  5226  				}
  5227  				if iNdEx >= l {
  5228  					return io.ErrUnexpectedEOF
  5229  				}
  5230  				b := dAtA[iNdEx]
  5231  				iNdEx++
  5232  				stringLen |= uint64(b&0x7F) << shift
  5233  				if b < 0x80 {
  5234  					break
  5235  				}
  5236  			}
  5237  			intStringLen := int(stringLen)
  5238  			if intStringLen < 0 {
  5239  				return ErrInvalidLengthQuery
  5240  			}
  5241  			postIndex := iNdEx + intStringLen
  5242  			if postIndex < 0 {
  5243  				return ErrInvalidLengthQuery
  5244  			}
  5245  			if postIndex > l {
  5246  				return io.ErrUnexpectedEOF
  5247  			}
  5248  			m.ContractId = string(dAtA[iNdEx:postIndex])
  5249  			iNdEx = postIndex
  5250  		case 2:
  5251  			if wireType != 2 {
  5252  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  5253  			}
  5254  			var stringLen uint64
  5255  			for shift := uint(0); ; shift += 7 {
  5256  				if shift >= 64 {
  5257  					return ErrIntOverflowQuery
  5258  				}
  5259  				if iNdEx >= l {
  5260  					return io.ErrUnexpectedEOF
  5261  				}
  5262  				b := dAtA[iNdEx]
  5263  				iNdEx++
  5264  				stringLen |= uint64(b&0x7F) << shift
  5265  				if b < 0x80 {
  5266  					break
  5267  				}
  5268  			}
  5269  			intStringLen := int(stringLen)
  5270  			if intStringLen < 0 {
  5271  				return ErrInvalidLengthQuery
  5272  			}
  5273  			postIndex := iNdEx + intStringLen
  5274  			if postIndex < 0 {
  5275  				return ErrInvalidLengthQuery
  5276  			}
  5277  			if postIndex > l {
  5278  				return io.ErrUnexpectedEOF
  5279  			}
  5280  			m.Address = string(dAtA[iNdEx:postIndex])
  5281  			iNdEx = postIndex
  5282  		case 3:
  5283  			if wireType != 2 {
  5284  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5285  			}
  5286  			var msglen int
  5287  			for shift := uint(0); ; shift += 7 {
  5288  				if shift >= 64 {
  5289  					return ErrIntOverflowQuery
  5290  				}
  5291  				if iNdEx >= l {
  5292  					return io.ErrUnexpectedEOF
  5293  				}
  5294  				b := dAtA[iNdEx]
  5295  				iNdEx++
  5296  				msglen |= int(b&0x7F) << shift
  5297  				if b < 0x80 {
  5298  					break
  5299  				}
  5300  			}
  5301  			if msglen < 0 {
  5302  				return ErrInvalidLengthQuery
  5303  			}
  5304  			postIndex := iNdEx + msglen
  5305  			if postIndex < 0 {
  5306  				return ErrInvalidLengthQuery
  5307  			}
  5308  			if postIndex > l {
  5309  				return io.ErrUnexpectedEOF
  5310  			}
  5311  			if m.Pagination == nil {
  5312  				m.Pagination = &query.PageRequest{}
  5313  			}
  5314  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5315  				return err
  5316  			}
  5317  			iNdEx = postIndex
  5318  		default:
  5319  			iNdEx = preIndex
  5320  			skippy, err := skipQuery(dAtA[iNdEx:])
  5321  			if err != nil {
  5322  				return err
  5323  			}
  5324  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5325  				return ErrInvalidLengthQuery
  5326  			}
  5327  			if (iNdEx + skippy) > l {
  5328  				return io.ErrUnexpectedEOF
  5329  			}
  5330  			iNdEx += skippy
  5331  		}
  5332  	}
  5333  
  5334  	if iNdEx > l {
  5335  		return io.ErrUnexpectedEOF
  5336  	}
  5337  	return nil
  5338  }
  5339  func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error {
  5340  	l := len(dAtA)
  5341  	iNdEx := 0
  5342  	for iNdEx < l {
  5343  		preIndex := iNdEx
  5344  		var wire uint64
  5345  		for shift := uint(0); ; shift += 7 {
  5346  			if shift >= 64 {
  5347  				return ErrIntOverflowQuery
  5348  			}
  5349  			if iNdEx >= l {
  5350  				return io.ErrUnexpectedEOF
  5351  			}
  5352  			b := dAtA[iNdEx]
  5353  			iNdEx++
  5354  			wire |= uint64(b&0x7F) << shift
  5355  			if b < 0x80 {
  5356  				break
  5357  			}
  5358  		}
  5359  		fieldNum := int32(wire >> 3)
  5360  		wireType := int(wire & 0x7)
  5361  		if wireType == 4 {
  5362  			return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group")
  5363  		}
  5364  		if fieldNum <= 0 {
  5365  			return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5366  		}
  5367  		switch fieldNum {
  5368  		case 1:
  5369  			if wireType != 2 {
  5370  				return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType)
  5371  			}
  5372  			var msglen int
  5373  			for shift := uint(0); ; shift += 7 {
  5374  				if shift >= 64 {
  5375  					return ErrIntOverflowQuery
  5376  				}
  5377  				if iNdEx >= l {
  5378  					return io.ErrUnexpectedEOF
  5379  				}
  5380  				b := dAtA[iNdEx]
  5381  				iNdEx++
  5382  				msglen |= int(b&0x7F) << shift
  5383  				if b < 0x80 {
  5384  					break
  5385  				}
  5386  			}
  5387  			if msglen < 0 {
  5388  				return ErrInvalidLengthQuery
  5389  			}
  5390  			postIndex := iNdEx + msglen
  5391  			if postIndex < 0 {
  5392  				return ErrInvalidLengthQuery
  5393  			}
  5394  			if postIndex > l {
  5395  				return io.ErrUnexpectedEOF
  5396  			}
  5397  			m.Balances = append(m.Balances, Coin{})
  5398  			if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5399  				return err
  5400  			}
  5401  			iNdEx = postIndex
  5402  		case 2:
  5403  			if wireType != 2 {
  5404  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5405  			}
  5406  			var msglen int
  5407  			for shift := uint(0); ; shift += 7 {
  5408  				if shift >= 64 {
  5409  					return ErrIntOverflowQuery
  5410  				}
  5411  				if iNdEx >= l {
  5412  					return io.ErrUnexpectedEOF
  5413  				}
  5414  				b := dAtA[iNdEx]
  5415  				iNdEx++
  5416  				msglen |= int(b&0x7F) << shift
  5417  				if b < 0x80 {
  5418  					break
  5419  				}
  5420  			}
  5421  			if msglen < 0 {
  5422  				return ErrInvalidLengthQuery
  5423  			}
  5424  			postIndex := iNdEx + msglen
  5425  			if postIndex < 0 {
  5426  				return ErrInvalidLengthQuery
  5427  			}
  5428  			if postIndex > l {
  5429  				return io.ErrUnexpectedEOF
  5430  			}
  5431  			if m.Pagination == nil {
  5432  				m.Pagination = &query.PageResponse{}
  5433  			}
  5434  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5435  				return err
  5436  			}
  5437  			iNdEx = postIndex
  5438  		default:
  5439  			iNdEx = preIndex
  5440  			skippy, err := skipQuery(dAtA[iNdEx:])
  5441  			if err != nil {
  5442  				return err
  5443  			}
  5444  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5445  				return ErrInvalidLengthQuery
  5446  			}
  5447  			if (iNdEx + skippy) > l {
  5448  				return io.ErrUnexpectedEOF
  5449  			}
  5450  			iNdEx += skippy
  5451  		}
  5452  	}
  5453  
  5454  	if iNdEx > l {
  5455  		return io.ErrUnexpectedEOF
  5456  	}
  5457  	return nil
  5458  }
  5459  func (m *QueryFTSupplyRequest) Unmarshal(dAtA []byte) error {
  5460  	l := len(dAtA)
  5461  	iNdEx := 0
  5462  	for iNdEx < l {
  5463  		preIndex := iNdEx
  5464  		var wire uint64
  5465  		for shift := uint(0); ; shift += 7 {
  5466  			if shift >= 64 {
  5467  				return ErrIntOverflowQuery
  5468  			}
  5469  			if iNdEx >= l {
  5470  				return io.ErrUnexpectedEOF
  5471  			}
  5472  			b := dAtA[iNdEx]
  5473  			iNdEx++
  5474  			wire |= uint64(b&0x7F) << shift
  5475  			if b < 0x80 {
  5476  				break
  5477  			}
  5478  		}
  5479  		fieldNum := int32(wire >> 3)
  5480  		wireType := int(wire & 0x7)
  5481  		if wireType == 4 {
  5482  			return fmt.Errorf("proto: QueryFTSupplyRequest: wiretype end group for non-group")
  5483  		}
  5484  		if fieldNum <= 0 {
  5485  			return fmt.Errorf("proto: QueryFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5486  		}
  5487  		switch fieldNum {
  5488  		case 1:
  5489  			if wireType != 2 {
  5490  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  5491  			}
  5492  			var stringLen uint64
  5493  			for shift := uint(0); ; shift += 7 {
  5494  				if shift >= 64 {
  5495  					return ErrIntOverflowQuery
  5496  				}
  5497  				if iNdEx >= l {
  5498  					return io.ErrUnexpectedEOF
  5499  				}
  5500  				b := dAtA[iNdEx]
  5501  				iNdEx++
  5502  				stringLen |= uint64(b&0x7F) << shift
  5503  				if b < 0x80 {
  5504  					break
  5505  				}
  5506  			}
  5507  			intStringLen := int(stringLen)
  5508  			if intStringLen < 0 {
  5509  				return ErrInvalidLengthQuery
  5510  			}
  5511  			postIndex := iNdEx + intStringLen
  5512  			if postIndex < 0 {
  5513  				return ErrInvalidLengthQuery
  5514  			}
  5515  			if postIndex > l {
  5516  				return io.ErrUnexpectedEOF
  5517  			}
  5518  			m.ContractId = string(dAtA[iNdEx:postIndex])
  5519  			iNdEx = postIndex
  5520  		case 2:
  5521  			if wireType != 2 {
  5522  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  5523  			}
  5524  			var stringLen uint64
  5525  			for shift := uint(0); ; shift += 7 {
  5526  				if shift >= 64 {
  5527  					return ErrIntOverflowQuery
  5528  				}
  5529  				if iNdEx >= l {
  5530  					return io.ErrUnexpectedEOF
  5531  				}
  5532  				b := dAtA[iNdEx]
  5533  				iNdEx++
  5534  				stringLen |= uint64(b&0x7F) << shift
  5535  				if b < 0x80 {
  5536  					break
  5537  				}
  5538  			}
  5539  			intStringLen := int(stringLen)
  5540  			if intStringLen < 0 {
  5541  				return ErrInvalidLengthQuery
  5542  			}
  5543  			postIndex := iNdEx + intStringLen
  5544  			if postIndex < 0 {
  5545  				return ErrInvalidLengthQuery
  5546  			}
  5547  			if postIndex > l {
  5548  				return io.ErrUnexpectedEOF
  5549  			}
  5550  			m.TokenId = string(dAtA[iNdEx:postIndex])
  5551  			iNdEx = postIndex
  5552  		default:
  5553  			iNdEx = preIndex
  5554  			skippy, err := skipQuery(dAtA[iNdEx:])
  5555  			if err != nil {
  5556  				return err
  5557  			}
  5558  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5559  				return ErrInvalidLengthQuery
  5560  			}
  5561  			if (iNdEx + skippy) > l {
  5562  				return io.ErrUnexpectedEOF
  5563  			}
  5564  			iNdEx += skippy
  5565  		}
  5566  	}
  5567  
  5568  	if iNdEx > l {
  5569  		return io.ErrUnexpectedEOF
  5570  	}
  5571  	return nil
  5572  }
  5573  func (m *QueryFTSupplyResponse) Unmarshal(dAtA []byte) error {
  5574  	l := len(dAtA)
  5575  	iNdEx := 0
  5576  	for iNdEx < l {
  5577  		preIndex := iNdEx
  5578  		var wire uint64
  5579  		for shift := uint(0); ; shift += 7 {
  5580  			if shift >= 64 {
  5581  				return ErrIntOverflowQuery
  5582  			}
  5583  			if iNdEx >= l {
  5584  				return io.ErrUnexpectedEOF
  5585  			}
  5586  			b := dAtA[iNdEx]
  5587  			iNdEx++
  5588  			wire |= uint64(b&0x7F) << shift
  5589  			if b < 0x80 {
  5590  				break
  5591  			}
  5592  		}
  5593  		fieldNum := int32(wire >> 3)
  5594  		wireType := int(wire & 0x7)
  5595  		if wireType == 4 {
  5596  			return fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group")
  5597  		}
  5598  		if fieldNum <= 0 {
  5599  			return fmt.Errorf("proto: QueryFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5600  		}
  5601  		switch fieldNum {
  5602  		case 1:
  5603  			if wireType != 2 {
  5604  				return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType)
  5605  			}
  5606  			var stringLen uint64
  5607  			for shift := uint(0); ; shift += 7 {
  5608  				if shift >= 64 {
  5609  					return ErrIntOverflowQuery
  5610  				}
  5611  				if iNdEx >= l {
  5612  					return io.ErrUnexpectedEOF
  5613  				}
  5614  				b := dAtA[iNdEx]
  5615  				iNdEx++
  5616  				stringLen |= uint64(b&0x7F) << shift
  5617  				if b < 0x80 {
  5618  					break
  5619  				}
  5620  			}
  5621  			intStringLen := int(stringLen)
  5622  			if intStringLen < 0 {
  5623  				return ErrInvalidLengthQuery
  5624  			}
  5625  			postIndex := iNdEx + intStringLen
  5626  			if postIndex < 0 {
  5627  				return ErrInvalidLengthQuery
  5628  			}
  5629  			if postIndex > l {
  5630  				return io.ErrUnexpectedEOF
  5631  			}
  5632  			if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5633  				return err
  5634  			}
  5635  			iNdEx = postIndex
  5636  		default:
  5637  			iNdEx = preIndex
  5638  			skippy, err := skipQuery(dAtA[iNdEx:])
  5639  			if err != nil {
  5640  				return err
  5641  			}
  5642  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5643  				return ErrInvalidLengthQuery
  5644  			}
  5645  			if (iNdEx + skippy) > l {
  5646  				return io.ErrUnexpectedEOF
  5647  			}
  5648  			iNdEx += skippy
  5649  		}
  5650  	}
  5651  
  5652  	if iNdEx > l {
  5653  		return io.ErrUnexpectedEOF
  5654  	}
  5655  	return nil
  5656  }
  5657  func (m *QueryFTMintedRequest) Unmarshal(dAtA []byte) error {
  5658  	l := len(dAtA)
  5659  	iNdEx := 0
  5660  	for iNdEx < l {
  5661  		preIndex := iNdEx
  5662  		var wire uint64
  5663  		for shift := uint(0); ; shift += 7 {
  5664  			if shift >= 64 {
  5665  				return ErrIntOverflowQuery
  5666  			}
  5667  			if iNdEx >= l {
  5668  				return io.ErrUnexpectedEOF
  5669  			}
  5670  			b := dAtA[iNdEx]
  5671  			iNdEx++
  5672  			wire |= uint64(b&0x7F) << shift
  5673  			if b < 0x80 {
  5674  				break
  5675  			}
  5676  		}
  5677  		fieldNum := int32(wire >> 3)
  5678  		wireType := int(wire & 0x7)
  5679  		if wireType == 4 {
  5680  			return fmt.Errorf("proto: QueryFTMintedRequest: wiretype end group for non-group")
  5681  		}
  5682  		if fieldNum <= 0 {
  5683  			return fmt.Errorf("proto: QueryFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5684  		}
  5685  		switch fieldNum {
  5686  		case 1:
  5687  			if wireType != 2 {
  5688  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  5689  			}
  5690  			var stringLen uint64
  5691  			for shift := uint(0); ; shift += 7 {
  5692  				if shift >= 64 {
  5693  					return ErrIntOverflowQuery
  5694  				}
  5695  				if iNdEx >= l {
  5696  					return io.ErrUnexpectedEOF
  5697  				}
  5698  				b := dAtA[iNdEx]
  5699  				iNdEx++
  5700  				stringLen |= uint64(b&0x7F) << shift
  5701  				if b < 0x80 {
  5702  					break
  5703  				}
  5704  			}
  5705  			intStringLen := int(stringLen)
  5706  			if intStringLen < 0 {
  5707  				return ErrInvalidLengthQuery
  5708  			}
  5709  			postIndex := iNdEx + intStringLen
  5710  			if postIndex < 0 {
  5711  				return ErrInvalidLengthQuery
  5712  			}
  5713  			if postIndex > l {
  5714  				return io.ErrUnexpectedEOF
  5715  			}
  5716  			m.ContractId = string(dAtA[iNdEx:postIndex])
  5717  			iNdEx = postIndex
  5718  		case 2:
  5719  			if wireType != 2 {
  5720  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  5721  			}
  5722  			var stringLen uint64
  5723  			for shift := uint(0); ; shift += 7 {
  5724  				if shift >= 64 {
  5725  					return ErrIntOverflowQuery
  5726  				}
  5727  				if iNdEx >= l {
  5728  					return io.ErrUnexpectedEOF
  5729  				}
  5730  				b := dAtA[iNdEx]
  5731  				iNdEx++
  5732  				stringLen |= uint64(b&0x7F) << shift
  5733  				if b < 0x80 {
  5734  					break
  5735  				}
  5736  			}
  5737  			intStringLen := int(stringLen)
  5738  			if intStringLen < 0 {
  5739  				return ErrInvalidLengthQuery
  5740  			}
  5741  			postIndex := iNdEx + intStringLen
  5742  			if postIndex < 0 {
  5743  				return ErrInvalidLengthQuery
  5744  			}
  5745  			if postIndex > l {
  5746  				return io.ErrUnexpectedEOF
  5747  			}
  5748  			m.TokenId = string(dAtA[iNdEx:postIndex])
  5749  			iNdEx = postIndex
  5750  		default:
  5751  			iNdEx = preIndex
  5752  			skippy, err := skipQuery(dAtA[iNdEx:])
  5753  			if err != nil {
  5754  				return err
  5755  			}
  5756  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5757  				return ErrInvalidLengthQuery
  5758  			}
  5759  			if (iNdEx + skippy) > l {
  5760  				return io.ErrUnexpectedEOF
  5761  			}
  5762  			iNdEx += skippy
  5763  		}
  5764  	}
  5765  
  5766  	if iNdEx > l {
  5767  		return io.ErrUnexpectedEOF
  5768  	}
  5769  	return nil
  5770  }
  5771  func (m *QueryFTMintedResponse) Unmarshal(dAtA []byte) error {
  5772  	l := len(dAtA)
  5773  	iNdEx := 0
  5774  	for iNdEx < l {
  5775  		preIndex := iNdEx
  5776  		var wire uint64
  5777  		for shift := uint(0); ; shift += 7 {
  5778  			if shift >= 64 {
  5779  				return ErrIntOverflowQuery
  5780  			}
  5781  			if iNdEx >= l {
  5782  				return io.ErrUnexpectedEOF
  5783  			}
  5784  			b := dAtA[iNdEx]
  5785  			iNdEx++
  5786  			wire |= uint64(b&0x7F) << shift
  5787  			if b < 0x80 {
  5788  				break
  5789  			}
  5790  		}
  5791  		fieldNum := int32(wire >> 3)
  5792  		wireType := int(wire & 0x7)
  5793  		if wireType == 4 {
  5794  			return fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group")
  5795  		}
  5796  		if fieldNum <= 0 {
  5797  			return fmt.Errorf("proto: QueryFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5798  		}
  5799  		switch fieldNum {
  5800  		case 1:
  5801  			if wireType != 2 {
  5802  				return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType)
  5803  			}
  5804  			var stringLen uint64
  5805  			for shift := uint(0); ; shift += 7 {
  5806  				if shift >= 64 {
  5807  					return ErrIntOverflowQuery
  5808  				}
  5809  				if iNdEx >= l {
  5810  					return io.ErrUnexpectedEOF
  5811  				}
  5812  				b := dAtA[iNdEx]
  5813  				iNdEx++
  5814  				stringLen |= uint64(b&0x7F) << shift
  5815  				if b < 0x80 {
  5816  					break
  5817  				}
  5818  			}
  5819  			intStringLen := int(stringLen)
  5820  			if intStringLen < 0 {
  5821  				return ErrInvalidLengthQuery
  5822  			}
  5823  			postIndex := iNdEx + intStringLen
  5824  			if postIndex < 0 {
  5825  				return ErrInvalidLengthQuery
  5826  			}
  5827  			if postIndex > l {
  5828  				return io.ErrUnexpectedEOF
  5829  			}
  5830  			if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5831  				return err
  5832  			}
  5833  			iNdEx = postIndex
  5834  		default:
  5835  			iNdEx = preIndex
  5836  			skippy, err := skipQuery(dAtA[iNdEx:])
  5837  			if err != nil {
  5838  				return err
  5839  			}
  5840  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5841  				return ErrInvalidLengthQuery
  5842  			}
  5843  			if (iNdEx + skippy) > l {
  5844  				return io.ErrUnexpectedEOF
  5845  			}
  5846  			iNdEx += skippy
  5847  		}
  5848  	}
  5849  
  5850  	if iNdEx > l {
  5851  		return io.ErrUnexpectedEOF
  5852  	}
  5853  	return nil
  5854  }
  5855  func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error {
  5856  	l := len(dAtA)
  5857  	iNdEx := 0
  5858  	for iNdEx < l {
  5859  		preIndex := iNdEx
  5860  		var wire uint64
  5861  		for shift := uint(0); ; shift += 7 {
  5862  			if shift >= 64 {
  5863  				return ErrIntOverflowQuery
  5864  			}
  5865  			if iNdEx >= l {
  5866  				return io.ErrUnexpectedEOF
  5867  			}
  5868  			b := dAtA[iNdEx]
  5869  			iNdEx++
  5870  			wire |= uint64(b&0x7F) << shift
  5871  			if b < 0x80 {
  5872  				break
  5873  			}
  5874  		}
  5875  		fieldNum := int32(wire >> 3)
  5876  		wireType := int(wire & 0x7)
  5877  		if wireType == 4 {
  5878  			return fmt.Errorf("proto: QueryFTBurntRequest: wiretype end group for non-group")
  5879  		}
  5880  		if fieldNum <= 0 {
  5881  			return fmt.Errorf("proto: QueryFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5882  		}
  5883  		switch fieldNum {
  5884  		case 1:
  5885  			if wireType != 2 {
  5886  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  5887  			}
  5888  			var stringLen uint64
  5889  			for shift := uint(0); ; shift += 7 {
  5890  				if shift >= 64 {
  5891  					return ErrIntOverflowQuery
  5892  				}
  5893  				if iNdEx >= l {
  5894  					return io.ErrUnexpectedEOF
  5895  				}
  5896  				b := dAtA[iNdEx]
  5897  				iNdEx++
  5898  				stringLen |= uint64(b&0x7F) << shift
  5899  				if b < 0x80 {
  5900  					break
  5901  				}
  5902  			}
  5903  			intStringLen := int(stringLen)
  5904  			if intStringLen < 0 {
  5905  				return ErrInvalidLengthQuery
  5906  			}
  5907  			postIndex := iNdEx + intStringLen
  5908  			if postIndex < 0 {
  5909  				return ErrInvalidLengthQuery
  5910  			}
  5911  			if postIndex > l {
  5912  				return io.ErrUnexpectedEOF
  5913  			}
  5914  			m.ContractId = string(dAtA[iNdEx:postIndex])
  5915  			iNdEx = postIndex
  5916  		case 2:
  5917  			if wireType != 2 {
  5918  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  5919  			}
  5920  			var stringLen uint64
  5921  			for shift := uint(0); ; shift += 7 {
  5922  				if shift >= 64 {
  5923  					return ErrIntOverflowQuery
  5924  				}
  5925  				if iNdEx >= l {
  5926  					return io.ErrUnexpectedEOF
  5927  				}
  5928  				b := dAtA[iNdEx]
  5929  				iNdEx++
  5930  				stringLen |= uint64(b&0x7F) << shift
  5931  				if b < 0x80 {
  5932  					break
  5933  				}
  5934  			}
  5935  			intStringLen := int(stringLen)
  5936  			if intStringLen < 0 {
  5937  				return ErrInvalidLengthQuery
  5938  			}
  5939  			postIndex := iNdEx + intStringLen
  5940  			if postIndex < 0 {
  5941  				return ErrInvalidLengthQuery
  5942  			}
  5943  			if postIndex > l {
  5944  				return io.ErrUnexpectedEOF
  5945  			}
  5946  			m.TokenId = string(dAtA[iNdEx:postIndex])
  5947  			iNdEx = postIndex
  5948  		default:
  5949  			iNdEx = preIndex
  5950  			skippy, err := skipQuery(dAtA[iNdEx:])
  5951  			if err != nil {
  5952  				return err
  5953  			}
  5954  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5955  				return ErrInvalidLengthQuery
  5956  			}
  5957  			if (iNdEx + skippy) > l {
  5958  				return io.ErrUnexpectedEOF
  5959  			}
  5960  			iNdEx += skippy
  5961  		}
  5962  	}
  5963  
  5964  	if iNdEx > l {
  5965  		return io.ErrUnexpectedEOF
  5966  	}
  5967  	return nil
  5968  }
  5969  func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error {
  5970  	l := len(dAtA)
  5971  	iNdEx := 0
  5972  	for iNdEx < l {
  5973  		preIndex := iNdEx
  5974  		var wire uint64
  5975  		for shift := uint(0); ; shift += 7 {
  5976  			if shift >= 64 {
  5977  				return ErrIntOverflowQuery
  5978  			}
  5979  			if iNdEx >= l {
  5980  				return io.ErrUnexpectedEOF
  5981  			}
  5982  			b := dAtA[iNdEx]
  5983  			iNdEx++
  5984  			wire |= uint64(b&0x7F) << shift
  5985  			if b < 0x80 {
  5986  				break
  5987  			}
  5988  		}
  5989  		fieldNum := int32(wire >> 3)
  5990  		wireType := int(wire & 0x7)
  5991  		if wireType == 4 {
  5992  			return fmt.Errorf("proto: QueryFTBurntResponse: wiretype end group for non-group")
  5993  		}
  5994  		if fieldNum <= 0 {
  5995  			return fmt.Errorf("proto: QueryFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5996  		}
  5997  		switch fieldNum {
  5998  		case 1:
  5999  			if wireType != 2 {
  6000  				return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType)
  6001  			}
  6002  			var stringLen uint64
  6003  			for shift := uint(0); ; shift += 7 {
  6004  				if shift >= 64 {
  6005  					return ErrIntOverflowQuery
  6006  				}
  6007  				if iNdEx >= l {
  6008  					return io.ErrUnexpectedEOF
  6009  				}
  6010  				b := dAtA[iNdEx]
  6011  				iNdEx++
  6012  				stringLen |= uint64(b&0x7F) << shift
  6013  				if b < 0x80 {
  6014  					break
  6015  				}
  6016  			}
  6017  			intStringLen := int(stringLen)
  6018  			if intStringLen < 0 {
  6019  				return ErrInvalidLengthQuery
  6020  			}
  6021  			postIndex := iNdEx + intStringLen
  6022  			if postIndex < 0 {
  6023  				return ErrInvalidLengthQuery
  6024  			}
  6025  			if postIndex > l {
  6026  				return io.ErrUnexpectedEOF
  6027  			}
  6028  			if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6029  				return err
  6030  			}
  6031  			iNdEx = postIndex
  6032  		default:
  6033  			iNdEx = preIndex
  6034  			skippy, err := skipQuery(dAtA[iNdEx:])
  6035  			if err != nil {
  6036  				return err
  6037  			}
  6038  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6039  				return ErrInvalidLengthQuery
  6040  			}
  6041  			if (iNdEx + skippy) > l {
  6042  				return io.ErrUnexpectedEOF
  6043  			}
  6044  			iNdEx += skippy
  6045  		}
  6046  	}
  6047  
  6048  	if iNdEx > l {
  6049  		return io.ErrUnexpectedEOF
  6050  	}
  6051  	return nil
  6052  }
  6053  func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error {
  6054  	l := len(dAtA)
  6055  	iNdEx := 0
  6056  	for iNdEx < l {
  6057  		preIndex := iNdEx
  6058  		var wire uint64
  6059  		for shift := uint(0); ; shift += 7 {
  6060  			if shift >= 64 {
  6061  				return ErrIntOverflowQuery
  6062  			}
  6063  			if iNdEx >= l {
  6064  				return io.ErrUnexpectedEOF
  6065  			}
  6066  			b := dAtA[iNdEx]
  6067  			iNdEx++
  6068  			wire |= uint64(b&0x7F) << shift
  6069  			if b < 0x80 {
  6070  				break
  6071  			}
  6072  		}
  6073  		fieldNum := int32(wire >> 3)
  6074  		wireType := int(wire & 0x7)
  6075  		if wireType == 4 {
  6076  			return fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group")
  6077  		}
  6078  		if fieldNum <= 0 {
  6079  			return fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6080  		}
  6081  		switch fieldNum {
  6082  		case 1:
  6083  			if wireType != 2 {
  6084  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  6085  			}
  6086  			var stringLen uint64
  6087  			for shift := uint(0); ; shift += 7 {
  6088  				if shift >= 64 {
  6089  					return ErrIntOverflowQuery
  6090  				}
  6091  				if iNdEx >= l {
  6092  					return io.ErrUnexpectedEOF
  6093  				}
  6094  				b := dAtA[iNdEx]
  6095  				iNdEx++
  6096  				stringLen |= uint64(b&0x7F) << shift
  6097  				if b < 0x80 {
  6098  					break
  6099  				}
  6100  			}
  6101  			intStringLen := int(stringLen)
  6102  			if intStringLen < 0 {
  6103  				return ErrInvalidLengthQuery
  6104  			}
  6105  			postIndex := iNdEx + intStringLen
  6106  			if postIndex < 0 {
  6107  				return ErrInvalidLengthQuery
  6108  			}
  6109  			if postIndex > l {
  6110  				return io.ErrUnexpectedEOF
  6111  			}
  6112  			m.ContractId = string(dAtA[iNdEx:postIndex])
  6113  			iNdEx = postIndex
  6114  		case 2:
  6115  			if wireType != 2 {
  6116  				return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType)
  6117  			}
  6118  			var stringLen uint64
  6119  			for shift := uint(0); ; shift += 7 {
  6120  				if shift >= 64 {
  6121  					return ErrIntOverflowQuery
  6122  				}
  6123  				if iNdEx >= l {
  6124  					return io.ErrUnexpectedEOF
  6125  				}
  6126  				b := dAtA[iNdEx]
  6127  				iNdEx++
  6128  				stringLen |= uint64(b&0x7F) << shift
  6129  				if b < 0x80 {
  6130  					break
  6131  				}
  6132  			}
  6133  			intStringLen := int(stringLen)
  6134  			if intStringLen < 0 {
  6135  				return ErrInvalidLengthQuery
  6136  			}
  6137  			postIndex := iNdEx + intStringLen
  6138  			if postIndex < 0 {
  6139  				return ErrInvalidLengthQuery
  6140  			}
  6141  			if postIndex > l {
  6142  				return io.ErrUnexpectedEOF
  6143  			}
  6144  			m.TokenType = string(dAtA[iNdEx:postIndex])
  6145  			iNdEx = postIndex
  6146  		default:
  6147  			iNdEx = preIndex
  6148  			skippy, err := skipQuery(dAtA[iNdEx:])
  6149  			if err != nil {
  6150  				return err
  6151  			}
  6152  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6153  				return ErrInvalidLengthQuery
  6154  			}
  6155  			if (iNdEx + skippy) > l {
  6156  				return io.ErrUnexpectedEOF
  6157  			}
  6158  			iNdEx += skippy
  6159  		}
  6160  	}
  6161  
  6162  	if iNdEx > l {
  6163  		return io.ErrUnexpectedEOF
  6164  	}
  6165  	return nil
  6166  }
  6167  func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error {
  6168  	l := len(dAtA)
  6169  	iNdEx := 0
  6170  	for iNdEx < l {
  6171  		preIndex := iNdEx
  6172  		var wire uint64
  6173  		for shift := uint(0); ; shift += 7 {
  6174  			if shift >= 64 {
  6175  				return ErrIntOverflowQuery
  6176  			}
  6177  			if iNdEx >= l {
  6178  				return io.ErrUnexpectedEOF
  6179  			}
  6180  			b := dAtA[iNdEx]
  6181  			iNdEx++
  6182  			wire |= uint64(b&0x7F) << shift
  6183  			if b < 0x80 {
  6184  				break
  6185  			}
  6186  		}
  6187  		fieldNum := int32(wire >> 3)
  6188  		wireType := int(wire & 0x7)
  6189  		if wireType == 4 {
  6190  			return fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group")
  6191  		}
  6192  		if fieldNum <= 0 {
  6193  			return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6194  		}
  6195  		switch fieldNum {
  6196  		case 1:
  6197  			if wireType != 2 {
  6198  				return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType)
  6199  			}
  6200  			var stringLen uint64
  6201  			for shift := uint(0); ; shift += 7 {
  6202  				if shift >= 64 {
  6203  					return ErrIntOverflowQuery
  6204  				}
  6205  				if iNdEx >= l {
  6206  					return io.ErrUnexpectedEOF
  6207  				}
  6208  				b := dAtA[iNdEx]
  6209  				iNdEx++
  6210  				stringLen |= uint64(b&0x7F) << shift
  6211  				if b < 0x80 {
  6212  					break
  6213  				}
  6214  			}
  6215  			intStringLen := int(stringLen)
  6216  			if intStringLen < 0 {
  6217  				return ErrInvalidLengthQuery
  6218  			}
  6219  			postIndex := iNdEx + intStringLen
  6220  			if postIndex < 0 {
  6221  				return ErrInvalidLengthQuery
  6222  			}
  6223  			if postIndex > l {
  6224  				return io.ErrUnexpectedEOF
  6225  			}
  6226  			if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6227  				return err
  6228  			}
  6229  			iNdEx = postIndex
  6230  		default:
  6231  			iNdEx = preIndex
  6232  			skippy, err := skipQuery(dAtA[iNdEx:])
  6233  			if err != nil {
  6234  				return err
  6235  			}
  6236  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6237  				return ErrInvalidLengthQuery
  6238  			}
  6239  			if (iNdEx + skippy) > l {
  6240  				return io.ErrUnexpectedEOF
  6241  			}
  6242  			iNdEx += skippy
  6243  		}
  6244  	}
  6245  
  6246  	if iNdEx > l {
  6247  		return io.ErrUnexpectedEOF
  6248  	}
  6249  	return nil
  6250  }
  6251  func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error {
  6252  	l := len(dAtA)
  6253  	iNdEx := 0
  6254  	for iNdEx < l {
  6255  		preIndex := iNdEx
  6256  		var wire uint64
  6257  		for shift := uint(0); ; shift += 7 {
  6258  			if shift >= 64 {
  6259  				return ErrIntOverflowQuery
  6260  			}
  6261  			if iNdEx >= l {
  6262  				return io.ErrUnexpectedEOF
  6263  			}
  6264  			b := dAtA[iNdEx]
  6265  			iNdEx++
  6266  			wire |= uint64(b&0x7F) << shift
  6267  			if b < 0x80 {
  6268  				break
  6269  			}
  6270  		}
  6271  		fieldNum := int32(wire >> 3)
  6272  		wireType := int(wire & 0x7)
  6273  		if wireType == 4 {
  6274  			return fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group")
  6275  		}
  6276  		if fieldNum <= 0 {
  6277  			return fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6278  		}
  6279  		switch fieldNum {
  6280  		case 1:
  6281  			if wireType != 2 {
  6282  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  6283  			}
  6284  			var stringLen uint64
  6285  			for shift := uint(0); ; shift += 7 {
  6286  				if shift >= 64 {
  6287  					return ErrIntOverflowQuery
  6288  				}
  6289  				if iNdEx >= l {
  6290  					return io.ErrUnexpectedEOF
  6291  				}
  6292  				b := dAtA[iNdEx]
  6293  				iNdEx++
  6294  				stringLen |= uint64(b&0x7F) << shift
  6295  				if b < 0x80 {
  6296  					break
  6297  				}
  6298  			}
  6299  			intStringLen := int(stringLen)
  6300  			if intStringLen < 0 {
  6301  				return ErrInvalidLengthQuery
  6302  			}
  6303  			postIndex := iNdEx + intStringLen
  6304  			if postIndex < 0 {
  6305  				return ErrInvalidLengthQuery
  6306  			}
  6307  			if postIndex > l {
  6308  				return io.ErrUnexpectedEOF
  6309  			}
  6310  			m.ContractId = string(dAtA[iNdEx:postIndex])
  6311  			iNdEx = postIndex
  6312  		case 2:
  6313  			if wireType != 2 {
  6314  				return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType)
  6315  			}
  6316  			var stringLen uint64
  6317  			for shift := uint(0); ; shift += 7 {
  6318  				if shift >= 64 {
  6319  					return ErrIntOverflowQuery
  6320  				}
  6321  				if iNdEx >= l {
  6322  					return io.ErrUnexpectedEOF
  6323  				}
  6324  				b := dAtA[iNdEx]
  6325  				iNdEx++
  6326  				stringLen |= uint64(b&0x7F) << shift
  6327  				if b < 0x80 {
  6328  					break
  6329  				}
  6330  			}
  6331  			intStringLen := int(stringLen)
  6332  			if intStringLen < 0 {
  6333  				return ErrInvalidLengthQuery
  6334  			}
  6335  			postIndex := iNdEx + intStringLen
  6336  			if postIndex < 0 {
  6337  				return ErrInvalidLengthQuery
  6338  			}
  6339  			if postIndex > l {
  6340  				return io.ErrUnexpectedEOF
  6341  			}
  6342  			m.TokenType = string(dAtA[iNdEx:postIndex])
  6343  			iNdEx = postIndex
  6344  		default:
  6345  			iNdEx = preIndex
  6346  			skippy, err := skipQuery(dAtA[iNdEx:])
  6347  			if err != nil {
  6348  				return err
  6349  			}
  6350  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6351  				return ErrInvalidLengthQuery
  6352  			}
  6353  			if (iNdEx + skippy) > l {
  6354  				return io.ErrUnexpectedEOF
  6355  			}
  6356  			iNdEx += skippy
  6357  		}
  6358  	}
  6359  
  6360  	if iNdEx > l {
  6361  		return io.ErrUnexpectedEOF
  6362  	}
  6363  	return nil
  6364  }
  6365  func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error {
  6366  	l := len(dAtA)
  6367  	iNdEx := 0
  6368  	for iNdEx < l {
  6369  		preIndex := iNdEx
  6370  		var wire uint64
  6371  		for shift := uint(0); ; shift += 7 {
  6372  			if shift >= 64 {
  6373  				return ErrIntOverflowQuery
  6374  			}
  6375  			if iNdEx >= l {
  6376  				return io.ErrUnexpectedEOF
  6377  			}
  6378  			b := dAtA[iNdEx]
  6379  			iNdEx++
  6380  			wire |= uint64(b&0x7F) << shift
  6381  			if b < 0x80 {
  6382  				break
  6383  			}
  6384  		}
  6385  		fieldNum := int32(wire >> 3)
  6386  		wireType := int(wire & 0x7)
  6387  		if wireType == 4 {
  6388  			return fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group")
  6389  		}
  6390  		if fieldNum <= 0 {
  6391  			return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6392  		}
  6393  		switch fieldNum {
  6394  		case 1:
  6395  			if wireType != 2 {
  6396  				return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType)
  6397  			}
  6398  			var stringLen uint64
  6399  			for shift := uint(0); ; shift += 7 {
  6400  				if shift >= 64 {
  6401  					return ErrIntOverflowQuery
  6402  				}
  6403  				if iNdEx >= l {
  6404  					return io.ErrUnexpectedEOF
  6405  				}
  6406  				b := dAtA[iNdEx]
  6407  				iNdEx++
  6408  				stringLen |= uint64(b&0x7F) << shift
  6409  				if b < 0x80 {
  6410  					break
  6411  				}
  6412  			}
  6413  			intStringLen := int(stringLen)
  6414  			if intStringLen < 0 {
  6415  				return ErrInvalidLengthQuery
  6416  			}
  6417  			postIndex := iNdEx + intStringLen
  6418  			if postIndex < 0 {
  6419  				return ErrInvalidLengthQuery
  6420  			}
  6421  			if postIndex > l {
  6422  				return io.ErrUnexpectedEOF
  6423  			}
  6424  			if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6425  				return err
  6426  			}
  6427  			iNdEx = postIndex
  6428  		default:
  6429  			iNdEx = preIndex
  6430  			skippy, err := skipQuery(dAtA[iNdEx:])
  6431  			if err != nil {
  6432  				return err
  6433  			}
  6434  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6435  				return ErrInvalidLengthQuery
  6436  			}
  6437  			if (iNdEx + skippy) > l {
  6438  				return io.ErrUnexpectedEOF
  6439  			}
  6440  			iNdEx += skippy
  6441  		}
  6442  	}
  6443  
  6444  	if iNdEx > l {
  6445  		return io.ErrUnexpectedEOF
  6446  	}
  6447  	return nil
  6448  }
  6449  func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error {
  6450  	l := len(dAtA)
  6451  	iNdEx := 0
  6452  	for iNdEx < l {
  6453  		preIndex := iNdEx
  6454  		var wire uint64
  6455  		for shift := uint(0); ; shift += 7 {
  6456  			if shift >= 64 {
  6457  				return ErrIntOverflowQuery
  6458  			}
  6459  			if iNdEx >= l {
  6460  				return io.ErrUnexpectedEOF
  6461  			}
  6462  			b := dAtA[iNdEx]
  6463  			iNdEx++
  6464  			wire |= uint64(b&0x7F) << shift
  6465  			if b < 0x80 {
  6466  				break
  6467  			}
  6468  		}
  6469  		fieldNum := int32(wire >> 3)
  6470  		wireType := int(wire & 0x7)
  6471  		if wireType == 4 {
  6472  			return fmt.Errorf("proto: QueryNFTBurntRequest: wiretype end group for non-group")
  6473  		}
  6474  		if fieldNum <= 0 {
  6475  			return fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6476  		}
  6477  		switch fieldNum {
  6478  		case 1:
  6479  			if wireType != 2 {
  6480  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  6481  			}
  6482  			var stringLen uint64
  6483  			for shift := uint(0); ; shift += 7 {
  6484  				if shift >= 64 {
  6485  					return ErrIntOverflowQuery
  6486  				}
  6487  				if iNdEx >= l {
  6488  					return io.ErrUnexpectedEOF
  6489  				}
  6490  				b := dAtA[iNdEx]
  6491  				iNdEx++
  6492  				stringLen |= uint64(b&0x7F) << shift
  6493  				if b < 0x80 {
  6494  					break
  6495  				}
  6496  			}
  6497  			intStringLen := int(stringLen)
  6498  			if intStringLen < 0 {
  6499  				return ErrInvalidLengthQuery
  6500  			}
  6501  			postIndex := iNdEx + intStringLen
  6502  			if postIndex < 0 {
  6503  				return ErrInvalidLengthQuery
  6504  			}
  6505  			if postIndex > l {
  6506  				return io.ErrUnexpectedEOF
  6507  			}
  6508  			m.ContractId = string(dAtA[iNdEx:postIndex])
  6509  			iNdEx = postIndex
  6510  		case 2:
  6511  			if wireType != 2 {
  6512  				return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType)
  6513  			}
  6514  			var stringLen uint64
  6515  			for shift := uint(0); ; shift += 7 {
  6516  				if shift >= 64 {
  6517  					return ErrIntOverflowQuery
  6518  				}
  6519  				if iNdEx >= l {
  6520  					return io.ErrUnexpectedEOF
  6521  				}
  6522  				b := dAtA[iNdEx]
  6523  				iNdEx++
  6524  				stringLen |= uint64(b&0x7F) << shift
  6525  				if b < 0x80 {
  6526  					break
  6527  				}
  6528  			}
  6529  			intStringLen := int(stringLen)
  6530  			if intStringLen < 0 {
  6531  				return ErrInvalidLengthQuery
  6532  			}
  6533  			postIndex := iNdEx + intStringLen
  6534  			if postIndex < 0 {
  6535  				return ErrInvalidLengthQuery
  6536  			}
  6537  			if postIndex > l {
  6538  				return io.ErrUnexpectedEOF
  6539  			}
  6540  			m.TokenType = string(dAtA[iNdEx:postIndex])
  6541  			iNdEx = postIndex
  6542  		default:
  6543  			iNdEx = preIndex
  6544  			skippy, err := skipQuery(dAtA[iNdEx:])
  6545  			if err != nil {
  6546  				return err
  6547  			}
  6548  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6549  				return ErrInvalidLengthQuery
  6550  			}
  6551  			if (iNdEx + skippy) > l {
  6552  				return io.ErrUnexpectedEOF
  6553  			}
  6554  			iNdEx += skippy
  6555  		}
  6556  	}
  6557  
  6558  	if iNdEx > l {
  6559  		return io.ErrUnexpectedEOF
  6560  	}
  6561  	return nil
  6562  }
  6563  func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error {
  6564  	l := len(dAtA)
  6565  	iNdEx := 0
  6566  	for iNdEx < l {
  6567  		preIndex := iNdEx
  6568  		var wire uint64
  6569  		for shift := uint(0); ; shift += 7 {
  6570  			if shift >= 64 {
  6571  				return ErrIntOverflowQuery
  6572  			}
  6573  			if iNdEx >= l {
  6574  				return io.ErrUnexpectedEOF
  6575  			}
  6576  			b := dAtA[iNdEx]
  6577  			iNdEx++
  6578  			wire |= uint64(b&0x7F) << shift
  6579  			if b < 0x80 {
  6580  				break
  6581  			}
  6582  		}
  6583  		fieldNum := int32(wire >> 3)
  6584  		wireType := int(wire & 0x7)
  6585  		if wireType == 4 {
  6586  			return fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group")
  6587  		}
  6588  		if fieldNum <= 0 {
  6589  			return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6590  		}
  6591  		switch fieldNum {
  6592  		case 1:
  6593  			if wireType != 2 {
  6594  				return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType)
  6595  			}
  6596  			var stringLen uint64
  6597  			for shift := uint(0); ; shift += 7 {
  6598  				if shift >= 64 {
  6599  					return ErrIntOverflowQuery
  6600  				}
  6601  				if iNdEx >= l {
  6602  					return io.ErrUnexpectedEOF
  6603  				}
  6604  				b := dAtA[iNdEx]
  6605  				iNdEx++
  6606  				stringLen |= uint64(b&0x7F) << shift
  6607  				if b < 0x80 {
  6608  					break
  6609  				}
  6610  			}
  6611  			intStringLen := int(stringLen)
  6612  			if intStringLen < 0 {
  6613  				return ErrInvalidLengthQuery
  6614  			}
  6615  			postIndex := iNdEx + intStringLen
  6616  			if postIndex < 0 {
  6617  				return ErrInvalidLengthQuery
  6618  			}
  6619  			if postIndex > l {
  6620  				return io.ErrUnexpectedEOF
  6621  			}
  6622  			if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6623  				return err
  6624  			}
  6625  			iNdEx = postIndex
  6626  		default:
  6627  			iNdEx = preIndex
  6628  			skippy, err := skipQuery(dAtA[iNdEx:])
  6629  			if err != nil {
  6630  				return err
  6631  			}
  6632  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6633  				return ErrInvalidLengthQuery
  6634  			}
  6635  			if (iNdEx + skippy) > l {
  6636  				return io.ErrUnexpectedEOF
  6637  			}
  6638  			iNdEx += skippy
  6639  		}
  6640  	}
  6641  
  6642  	if iNdEx > l {
  6643  		return io.ErrUnexpectedEOF
  6644  	}
  6645  	return nil
  6646  }
  6647  func (m *QueryContractRequest) Unmarshal(dAtA []byte) error {
  6648  	l := len(dAtA)
  6649  	iNdEx := 0
  6650  	for iNdEx < l {
  6651  		preIndex := iNdEx
  6652  		var wire uint64
  6653  		for shift := uint(0); ; shift += 7 {
  6654  			if shift >= 64 {
  6655  				return ErrIntOverflowQuery
  6656  			}
  6657  			if iNdEx >= l {
  6658  				return io.ErrUnexpectedEOF
  6659  			}
  6660  			b := dAtA[iNdEx]
  6661  			iNdEx++
  6662  			wire |= uint64(b&0x7F) << shift
  6663  			if b < 0x80 {
  6664  				break
  6665  			}
  6666  		}
  6667  		fieldNum := int32(wire >> 3)
  6668  		wireType := int(wire & 0x7)
  6669  		if wireType == 4 {
  6670  			return fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group")
  6671  		}
  6672  		if fieldNum <= 0 {
  6673  			return fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6674  		}
  6675  		switch fieldNum {
  6676  		case 1:
  6677  			if wireType != 2 {
  6678  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  6679  			}
  6680  			var stringLen uint64
  6681  			for shift := uint(0); ; shift += 7 {
  6682  				if shift >= 64 {
  6683  					return ErrIntOverflowQuery
  6684  				}
  6685  				if iNdEx >= l {
  6686  					return io.ErrUnexpectedEOF
  6687  				}
  6688  				b := dAtA[iNdEx]
  6689  				iNdEx++
  6690  				stringLen |= uint64(b&0x7F) << shift
  6691  				if b < 0x80 {
  6692  					break
  6693  				}
  6694  			}
  6695  			intStringLen := int(stringLen)
  6696  			if intStringLen < 0 {
  6697  				return ErrInvalidLengthQuery
  6698  			}
  6699  			postIndex := iNdEx + intStringLen
  6700  			if postIndex < 0 {
  6701  				return ErrInvalidLengthQuery
  6702  			}
  6703  			if postIndex > l {
  6704  				return io.ErrUnexpectedEOF
  6705  			}
  6706  			m.ContractId = string(dAtA[iNdEx:postIndex])
  6707  			iNdEx = postIndex
  6708  		default:
  6709  			iNdEx = preIndex
  6710  			skippy, err := skipQuery(dAtA[iNdEx:])
  6711  			if err != nil {
  6712  				return err
  6713  			}
  6714  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6715  				return ErrInvalidLengthQuery
  6716  			}
  6717  			if (iNdEx + skippy) > l {
  6718  				return io.ErrUnexpectedEOF
  6719  			}
  6720  			iNdEx += skippy
  6721  		}
  6722  	}
  6723  
  6724  	if iNdEx > l {
  6725  		return io.ErrUnexpectedEOF
  6726  	}
  6727  	return nil
  6728  }
  6729  func (m *QueryContractResponse) Unmarshal(dAtA []byte) error {
  6730  	l := len(dAtA)
  6731  	iNdEx := 0
  6732  	for iNdEx < l {
  6733  		preIndex := iNdEx
  6734  		var wire uint64
  6735  		for shift := uint(0); ; shift += 7 {
  6736  			if shift >= 64 {
  6737  				return ErrIntOverflowQuery
  6738  			}
  6739  			if iNdEx >= l {
  6740  				return io.ErrUnexpectedEOF
  6741  			}
  6742  			b := dAtA[iNdEx]
  6743  			iNdEx++
  6744  			wire |= uint64(b&0x7F) << shift
  6745  			if b < 0x80 {
  6746  				break
  6747  			}
  6748  		}
  6749  		fieldNum := int32(wire >> 3)
  6750  		wireType := int(wire & 0x7)
  6751  		if wireType == 4 {
  6752  			return fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group")
  6753  		}
  6754  		if fieldNum <= 0 {
  6755  			return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6756  		}
  6757  		switch fieldNum {
  6758  		case 1:
  6759  			if wireType != 2 {
  6760  				return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType)
  6761  			}
  6762  			var msglen int
  6763  			for shift := uint(0); ; shift += 7 {
  6764  				if shift >= 64 {
  6765  					return ErrIntOverflowQuery
  6766  				}
  6767  				if iNdEx >= l {
  6768  					return io.ErrUnexpectedEOF
  6769  				}
  6770  				b := dAtA[iNdEx]
  6771  				iNdEx++
  6772  				msglen |= int(b&0x7F) << shift
  6773  				if b < 0x80 {
  6774  					break
  6775  				}
  6776  			}
  6777  			if msglen < 0 {
  6778  				return ErrInvalidLengthQuery
  6779  			}
  6780  			postIndex := iNdEx + msglen
  6781  			if postIndex < 0 {
  6782  				return ErrInvalidLengthQuery
  6783  			}
  6784  			if postIndex > l {
  6785  				return io.ErrUnexpectedEOF
  6786  			}
  6787  			if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6788  				return err
  6789  			}
  6790  			iNdEx = postIndex
  6791  		default:
  6792  			iNdEx = preIndex
  6793  			skippy, err := skipQuery(dAtA[iNdEx:])
  6794  			if err != nil {
  6795  				return err
  6796  			}
  6797  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6798  				return ErrInvalidLengthQuery
  6799  			}
  6800  			if (iNdEx + skippy) > l {
  6801  				return io.ErrUnexpectedEOF
  6802  			}
  6803  			iNdEx += skippy
  6804  		}
  6805  	}
  6806  
  6807  	if iNdEx > l {
  6808  		return io.ErrUnexpectedEOF
  6809  	}
  6810  	return nil
  6811  }
  6812  func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error {
  6813  	l := len(dAtA)
  6814  	iNdEx := 0
  6815  	for iNdEx < l {
  6816  		preIndex := iNdEx
  6817  		var wire uint64
  6818  		for shift := uint(0); ; shift += 7 {
  6819  			if shift >= 64 {
  6820  				return ErrIntOverflowQuery
  6821  			}
  6822  			if iNdEx >= l {
  6823  				return io.ErrUnexpectedEOF
  6824  			}
  6825  			b := dAtA[iNdEx]
  6826  			iNdEx++
  6827  			wire |= uint64(b&0x7F) << shift
  6828  			if b < 0x80 {
  6829  				break
  6830  			}
  6831  		}
  6832  		fieldNum := int32(wire >> 3)
  6833  		wireType := int(wire & 0x7)
  6834  		if wireType == 4 {
  6835  			return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group")
  6836  		}
  6837  		if fieldNum <= 0 {
  6838  			return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6839  		}
  6840  		switch fieldNum {
  6841  		case 1:
  6842  			if wireType != 2 {
  6843  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  6844  			}
  6845  			var stringLen uint64
  6846  			for shift := uint(0); ; shift += 7 {
  6847  				if shift >= 64 {
  6848  					return ErrIntOverflowQuery
  6849  				}
  6850  				if iNdEx >= l {
  6851  					return io.ErrUnexpectedEOF
  6852  				}
  6853  				b := dAtA[iNdEx]
  6854  				iNdEx++
  6855  				stringLen |= uint64(b&0x7F) << shift
  6856  				if b < 0x80 {
  6857  					break
  6858  				}
  6859  			}
  6860  			intStringLen := int(stringLen)
  6861  			if intStringLen < 0 {
  6862  				return ErrInvalidLengthQuery
  6863  			}
  6864  			postIndex := iNdEx + intStringLen
  6865  			if postIndex < 0 {
  6866  				return ErrInvalidLengthQuery
  6867  			}
  6868  			if postIndex > l {
  6869  				return io.ErrUnexpectedEOF
  6870  			}
  6871  			m.ContractId = string(dAtA[iNdEx:postIndex])
  6872  			iNdEx = postIndex
  6873  		case 2:
  6874  			if wireType != 2 {
  6875  				return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType)
  6876  			}
  6877  			var stringLen uint64
  6878  			for shift := uint(0); ; shift += 7 {
  6879  				if shift >= 64 {
  6880  					return ErrIntOverflowQuery
  6881  				}
  6882  				if iNdEx >= l {
  6883  					return io.ErrUnexpectedEOF
  6884  				}
  6885  				b := dAtA[iNdEx]
  6886  				iNdEx++
  6887  				stringLen |= uint64(b&0x7F) << shift
  6888  				if b < 0x80 {
  6889  					break
  6890  				}
  6891  			}
  6892  			intStringLen := int(stringLen)
  6893  			if intStringLen < 0 {
  6894  				return ErrInvalidLengthQuery
  6895  			}
  6896  			postIndex := iNdEx + intStringLen
  6897  			if postIndex < 0 {
  6898  				return ErrInvalidLengthQuery
  6899  			}
  6900  			if postIndex > l {
  6901  				return io.ErrUnexpectedEOF
  6902  			}
  6903  			m.ClassId = string(dAtA[iNdEx:postIndex])
  6904  			iNdEx = postIndex
  6905  		default:
  6906  			iNdEx = preIndex
  6907  			skippy, err := skipQuery(dAtA[iNdEx:])
  6908  			if err != nil {
  6909  				return err
  6910  			}
  6911  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6912  				return ErrInvalidLengthQuery
  6913  			}
  6914  			if (iNdEx + skippy) > l {
  6915  				return io.ErrUnexpectedEOF
  6916  			}
  6917  			iNdEx += skippy
  6918  		}
  6919  	}
  6920  
  6921  	if iNdEx > l {
  6922  		return io.ErrUnexpectedEOF
  6923  	}
  6924  	return nil
  6925  }
  6926  func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error {
  6927  	l := len(dAtA)
  6928  	iNdEx := 0
  6929  	for iNdEx < l {
  6930  		preIndex := iNdEx
  6931  		var wire uint64
  6932  		for shift := uint(0); ; shift += 7 {
  6933  			if shift >= 64 {
  6934  				return ErrIntOverflowQuery
  6935  			}
  6936  			if iNdEx >= l {
  6937  				return io.ErrUnexpectedEOF
  6938  			}
  6939  			b := dAtA[iNdEx]
  6940  			iNdEx++
  6941  			wire |= uint64(b&0x7F) << shift
  6942  			if b < 0x80 {
  6943  				break
  6944  			}
  6945  		}
  6946  		fieldNum := int32(wire >> 3)
  6947  		wireType := int(wire & 0x7)
  6948  		if wireType == 4 {
  6949  			return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group")
  6950  		}
  6951  		if fieldNum <= 0 {
  6952  			return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6953  		}
  6954  		switch fieldNum {
  6955  		case 1:
  6956  			if wireType != 2 {
  6957  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  6958  			}
  6959  			var stringLen uint64
  6960  			for shift := uint(0); ; shift += 7 {
  6961  				if shift >= 64 {
  6962  					return ErrIntOverflowQuery
  6963  				}
  6964  				if iNdEx >= l {
  6965  					return io.ErrUnexpectedEOF
  6966  				}
  6967  				b := dAtA[iNdEx]
  6968  				iNdEx++
  6969  				stringLen |= uint64(b&0x7F) << shift
  6970  				if b < 0x80 {
  6971  					break
  6972  				}
  6973  			}
  6974  			intStringLen := int(stringLen)
  6975  			if intStringLen < 0 {
  6976  				return ErrInvalidLengthQuery
  6977  			}
  6978  			postIndex := iNdEx + intStringLen
  6979  			if postIndex < 0 {
  6980  				return ErrInvalidLengthQuery
  6981  			}
  6982  			if postIndex > l {
  6983  				return io.ErrUnexpectedEOF
  6984  			}
  6985  			m.Name = string(dAtA[iNdEx:postIndex])
  6986  			iNdEx = postIndex
  6987  		default:
  6988  			iNdEx = preIndex
  6989  			skippy, err := skipQuery(dAtA[iNdEx:])
  6990  			if err != nil {
  6991  				return err
  6992  			}
  6993  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6994  				return ErrInvalidLengthQuery
  6995  			}
  6996  			if (iNdEx + skippy) > l {
  6997  				return io.ErrUnexpectedEOF
  6998  			}
  6999  			iNdEx += skippy
  7000  		}
  7001  	}
  7002  
  7003  	if iNdEx > l {
  7004  		return io.ErrUnexpectedEOF
  7005  	}
  7006  	return nil
  7007  }
  7008  func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error {
  7009  	l := len(dAtA)
  7010  	iNdEx := 0
  7011  	for iNdEx < l {
  7012  		preIndex := iNdEx
  7013  		var wire uint64
  7014  		for shift := uint(0); ; shift += 7 {
  7015  			if shift >= 64 {
  7016  				return ErrIntOverflowQuery
  7017  			}
  7018  			if iNdEx >= l {
  7019  				return io.ErrUnexpectedEOF
  7020  			}
  7021  			b := dAtA[iNdEx]
  7022  			iNdEx++
  7023  			wire |= uint64(b&0x7F) << shift
  7024  			if b < 0x80 {
  7025  				break
  7026  			}
  7027  		}
  7028  		fieldNum := int32(wire >> 3)
  7029  		wireType := int(wire & 0x7)
  7030  		if wireType == 4 {
  7031  			return fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group")
  7032  		}
  7033  		if fieldNum <= 0 {
  7034  			return fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7035  		}
  7036  		switch fieldNum {
  7037  		case 1:
  7038  			if wireType != 2 {
  7039  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  7040  			}
  7041  			var stringLen uint64
  7042  			for shift := uint(0); ; shift += 7 {
  7043  				if shift >= 64 {
  7044  					return ErrIntOverflowQuery
  7045  				}
  7046  				if iNdEx >= l {
  7047  					return io.ErrUnexpectedEOF
  7048  				}
  7049  				b := dAtA[iNdEx]
  7050  				iNdEx++
  7051  				stringLen |= uint64(b&0x7F) << shift
  7052  				if b < 0x80 {
  7053  					break
  7054  				}
  7055  			}
  7056  			intStringLen := int(stringLen)
  7057  			if intStringLen < 0 {
  7058  				return ErrInvalidLengthQuery
  7059  			}
  7060  			postIndex := iNdEx + intStringLen
  7061  			if postIndex < 0 {
  7062  				return ErrInvalidLengthQuery
  7063  			}
  7064  			if postIndex > l {
  7065  				return io.ErrUnexpectedEOF
  7066  			}
  7067  			m.ContractId = string(dAtA[iNdEx:postIndex])
  7068  			iNdEx = postIndex
  7069  		case 2:
  7070  			if wireType != 2 {
  7071  				return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType)
  7072  			}
  7073  			var stringLen uint64
  7074  			for shift := uint(0); ; shift += 7 {
  7075  				if shift >= 64 {
  7076  					return ErrIntOverflowQuery
  7077  				}
  7078  				if iNdEx >= l {
  7079  					return io.ErrUnexpectedEOF
  7080  				}
  7081  				b := dAtA[iNdEx]
  7082  				iNdEx++
  7083  				stringLen |= uint64(b&0x7F) << shift
  7084  				if b < 0x80 {
  7085  					break
  7086  				}
  7087  			}
  7088  			intStringLen := int(stringLen)
  7089  			if intStringLen < 0 {
  7090  				return ErrInvalidLengthQuery
  7091  			}
  7092  			postIndex := iNdEx + intStringLen
  7093  			if postIndex < 0 {
  7094  				return ErrInvalidLengthQuery
  7095  			}
  7096  			if postIndex > l {
  7097  				return io.ErrUnexpectedEOF
  7098  			}
  7099  			m.TokenType = string(dAtA[iNdEx:postIndex])
  7100  			iNdEx = postIndex
  7101  		default:
  7102  			iNdEx = preIndex
  7103  			skippy, err := skipQuery(dAtA[iNdEx:])
  7104  			if err != nil {
  7105  				return err
  7106  			}
  7107  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7108  				return ErrInvalidLengthQuery
  7109  			}
  7110  			if (iNdEx + skippy) > l {
  7111  				return io.ErrUnexpectedEOF
  7112  			}
  7113  			iNdEx += skippy
  7114  		}
  7115  	}
  7116  
  7117  	if iNdEx > l {
  7118  		return io.ErrUnexpectedEOF
  7119  	}
  7120  	return nil
  7121  }
  7122  func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error {
  7123  	l := len(dAtA)
  7124  	iNdEx := 0
  7125  	for iNdEx < l {
  7126  		preIndex := iNdEx
  7127  		var wire uint64
  7128  		for shift := uint(0); ; shift += 7 {
  7129  			if shift >= 64 {
  7130  				return ErrIntOverflowQuery
  7131  			}
  7132  			if iNdEx >= l {
  7133  				return io.ErrUnexpectedEOF
  7134  			}
  7135  			b := dAtA[iNdEx]
  7136  			iNdEx++
  7137  			wire |= uint64(b&0x7F) << shift
  7138  			if b < 0x80 {
  7139  				break
  7140  			}
  7141  		}
  7142  		fieldNum := int32(wire >> 3)
  7143  		wireType := int(wire & 0x7)
  7144  		if wireType == 4 {
  7145  			return fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group")
  7146  		}
  7147  		if fieldNum <= 0 {
  7148  			return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7149  		}
  7150  		switch fieldNum {
  7151  		case 1:
  7152  			if wireType != 2 {
  7153  				return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType)
  7154  			}
  7155  			var msglen int
  7156  			for shift := uint(0); ; shift += 7 {
  7157  				if shift >= 64 {
  7158  					return ErrIntOverflowQuery
  7159  				}
  7160  				if iNdEx >= l {
  7161  					return io.ErrUnexpectedEOF
  7162  				}
  7163  				b := dAtA[iNdEx]
  7164  				iNdEx++
  7165  				msglen |= int(b&0x7F) << shift
  7166  				if b < 0x80 {
  7167  					break
  7168  				}
  7169  			}
  7170  			if msglen < 0 {
  7171  				return ErrInvalidLengthQuery
  7172  			}
  7173  			postIndex := iNdEx + msglen
  7174  			if postIndex < 0 {
  7175  				return ErrInvalidLengthQuery
  7176  			}
  7177  			if postIndex > l {
  7178  				return io.ErrUnexpectedEOF
  7179  			}
  7180  			if err := m.TokenType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7181  				return err
  7182  			}
  7183  			iNdEx = postIndex
  7184  		default:
  7185  			iNdEx = preIndex
  7186  			skippy, err := skipQuery(dAtA[iNdEx:])
  7187  			if err != nil {
  7188  				return err
  7189  			}
  7190  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7191  				return ErrInvalidLengthQuery
  7192  			}
  7193  			if (iNdEx + skippy) > l {
  7194  				return io.ErrUnexpectedEOF
  7195  			}
  7196  			iNdEx += skippy
  7197  		}
  7198  	}
  7199  
  7200  	if iNdEx > l {
  7201  		return io.ErrUnexpectedEOF
  7202  	}
  7203  	return nil
  7204  }
  7205  func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error {
  7206  	l := len(dAtA)
  7207  	iNdEx := 0
  7208  	for iNdEx < l {
  7209  		preIndex := iNdEx
  7210  		var wire uint64
  7211  		for shift := uint(0); ; shift += 7 {
  7212  			if shift >= 64 {
  7213  				return ErrIntOverflowQuery
  7214  			}
  7215  			if iNdEx >= l {
  7216  				return io.ErrUnexpectedEOF
  7217  			}
  7218  			b := dAtA[iNdEx]
  7219  			iNdEx++
  7220  			wire |= uint64(b&0x7F) << shift
  7221  			if b < 0x80 {
  7222  				break
  7223  			}
  7224  		}
  7225  		fieldNum := int32(wire >> 3)
  7226  		wireType := int(wire & 0x7)
  7227  		if wireType == 4 {
  7228  			return fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group")
  7229  		}
  7230  		if fieldNum <= 0 {
  7231  			return fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7232  		}
  7233  		switch fieldNum {
  7234  		case 1:
  7235  			if wireType != 2 {
  7236  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  7237  			}
  7238  			var stringLen uint64
  7239  			for shift := uint(0); ; shift += 7 {
  7240  				if shift >= 64 {
  7241  					return ErrIntOverflowQuery
  7242  				}
  7243  				if iNdEx >= l {
  7244  					return io.ErrUnexpectedEOF
  7245  				}
  7246  				b := dAtA[iNdEx]
  7247  				iNdEx++
  7248  				stringLen |= uint64(b&0x7F) << shift
  7249  				if b < 0x80 {
  7250  					break
  7251  				}
  7252  			}
  7253  			intStringLen := int(stringLen)
  7254  			if intStringLen < 0 {
  7255  				return ErrInvalidLengthQuery
  7256  			}
  7257  			postIndex := iNdEx + intStringLen
  7258  			if postIndex < 0 {
  7259  				return ErrInvalidLengthQuery
  7260  			}
  7261  			if postIndex > l {
  7262  				return io.ErrUnexpectedEOF
  7263  			}
  7264  			m.ContractId = string(dAtA[iNdEx:postIndex])
  7265  			iNdEx = postIndex
  7266  		case 2:
  7267  			if wireType != 2 {
  7268  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  7269  			}
  7270  			var stringLen uint64
  7271  			for shift := uint(0); ; shift += 7 {
  7272  				if shift >= 64 {
  7273  					return ErrIntOverflowQuery
  7274  				}
  7275  				if iNdEx >= l {
  7276  					return io.ErrUnexpectedEOF
  7277  				}
  7278  				b := dAtA[iNdEx]
  7279  				iNdEx++
  7280  				stringLen |= uint64(b&0x7F) << shift
  7281  				if b < 0x80 {
  7282  					break
  7283  				}
  7284  			}
  7285  			intStringLen := int(stringLen)
  7286  			if intStringLen < 0 {
  7287  				return ErrInvalidLengthQuery
  7288  			}
  7289  			postIndex := iNdEx + intStringLen
  7290  			if postIndex < 0 {
  7291  				return ErrInvalidLengthQuery
  7292  			}
  7293  			if postIndex > l {
  7294  				return io.ErrUnexpectedEOF
  7295  			}
  7296  			m.TokenId = string(dAtA[iNdEx:postIndex])
  7297  			iNdEx = postIndex
  7298  		default:
  7299  			iNdEx = preIndex
  7300  			skippy, err := skipQuery(dAtA[iNdEx:])
  7301  			if err != nil {
  7302  				return err
  7303  			}
  7304  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7305  				return ErrInvalidLengthQuery
  7306  			}
  7307  			if (iNdEx + skippy) > l {
  7308  				return io.ErrUnexpectedEOF
  7309  			}
  7310  			iNdEx += skippy
  7311  		}
  7312  	}
  7313  
  7314  	if iNdEx > l {
  7315  		return io.ErrUnexpectedEOF
  7316  	}
  7317  	return nil
  7318  }
  7319  func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error {
  7320  	l := len(dAtA)
  7321  	iNdEx := 0
  7322  	for iNdEx < l {
  7323  		preIndex := iNdEx
  7324  		var wire uint64
  7325  		for shift := uint(0); ; shift += 7 {
  7326  			if shift >= 64 {
  7327  				return ErrIntOverflowQuery
  7328  			}
  7329  			if iNdEx >= l {
  7330  				return io.ErrUnexpectedEOF
  7331  			}
  7332  			b := dAtA[iNdEx]
  7333  			iNdEx++
  7334  			wire |= uint64(b&0x7F) << shift
  7335  			if b < 0x80 {
  7336  				break
  7337  			}
  7338  		}
  7339  		fieldNum := int32(wire >> 3)
  7340  		wireType := int(wire & 0x7)
  7341  		if wireType == 4 {
  7342  			return fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group")
  7343  		}
  7344  		if fieldNum <= 0 {
  7345  			return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7346  		}
  7347  		switch fieldNum {
  7348  		case 1:
  7349  			if wireType != 2 {
  7350  				return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  7351  			}
  7352  			var msglen int
  7353  			for shift := uint(0); ; shift += 7 {
  7354  				if shift >= 64 {
  7355  					return ErrIntOverflowQuery
  7356  				}
  7357  				if iNdEx >= l {
  7358  					return io.ErrUnexpectedEOF
  7359  				}
  7360  				b := dAtA[iNdEx]
  7361  				iNdEx++
  7362  				msglen |= int(b&0x7F) << shift
  7363  				if b < 0x80 {
  7364  					break
  7365  				}
  7366  			}
  7367  			if msglen < 0 {
  7368  				return ErrInvalidLengthQuery
  7369  			}
  7370  			postIndex := iNdEx + msglen
  7371  			if postIndex < 0 {
  7372  				return ErrInvalidLengthQuery
  7373  			}
  7374  			if postIndex > l {
  7375  				return io.ErrUnexpectedEOF
  7376  			}
  7377  			if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7378  				return err
  7379  			}
  7380  			iNdEx = postIndex
  7381  		default:
  7382  			iNdEx = preIndex
  7383  			skippy, err := skipQuery(dAtA[iNdEx:])
  7384  			if err != nil {
  7385  				return err
  7386  			}
  7387  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7388  				return ErrInvalidLengthQuery
  7389  			}
  7390  			if (iNdEx + skippy) > l {
  7391  				return io.ErrUnexpectedEOF
  7392  			}
  7393  			iNdEx += skippy
  7394  		}
  7395  	}
  7396  
  7397  	if iNdEx > l {
  7398  		return io.ErrUnexpectedEOF
  7399  	}
  7400  	return nil
  7401  }
  7402  func (m *QueryRootRequest) Unmarshal(dAtA []byte) error {
  7403  	l := len(dAtA)
  7404  	iNdEx := 0
  7405  	for iNdEx < l {
  7406  		preIndex := iNdEx
  7407  		var wire uint64
  7408  		for shift := uint(0); ; shift += 7 {
  7409  			if shift >= 64 {
  7410  				return ErrIntOverflowQuery
  7411  			}
  7412  			if iNdEx >= l {
  7413  				return io.ErrUnexpectedEOF
  7414  			}
  7415  			b := dAtA[iNdEx]
  7416  			iNdEx++
  7417  			wire |= uint64(b&0x7F) << shift
  7418  			if b < 0x80 {
  7419  				break
  7420  			}
  7421  		}
  7422  		fieldNum := int32(wire >> 3)
  7423  		wireType := int(wire & 0x7)
  7424  		if wireType == 4 {
  7425  			return fmt.Errorf("proto: QueryRootRequest: wiretype end group for non-group")
  7426  		}
  7427  		if fieldNum <= 0 {
  7428  			return fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7429  		}
  7430  		switch fieldNum {
  7431  		case 1:
  7432  			if wireType != 2 {
  7433  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  7434  			}
  7435  			var stringLen uint64
  7436  			for shift := uint(0); ; shift += 7 {
  7437  				if shift >= 64 {
  7438  					return ErrIntOverflowQuery
  7439  				}
  7440  				if iNdEx >= l {
  7441  					return io.ErrUnexpectedEOF
  7442  				}
  7443  				b := dAtA[iNdEx]
  7444  				iNdEx++
  7445  				stringLen |= uint64(b&0x7F) << shift
  7446  				if b < 0x80 {
  7447  					break
  7448  				}
  7449  			}
  7450  			intStringLen := int(stringLen)
  7451  			if intStringLen < 0 {
  7452  				return ErrInvalidLengthQuery
  7453  			}
  7454  			postIndex := iNdEx + intStringLen
  7455  			if postIndex < 0 {
  7456  				return ErrInvalidLengthQuery
  7457  			}
  7458  			if postIndex > l {
  7459  				return io.ErrUnexpectedEOF
  7460  			}
  7461  			m.ContractId = string(dAtA[iNdEx:postIndex])
  7462  			iNdEx = postIndex
  7463  		case 2:
  7464  			if wireType != 2 {
  7465  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  7466  			}
  7467  			var stringLen uint64
  7468  			for shift := uint(0); ; shift += 7 {
  7469  				if shift >= 64 {
  7470  					return ErrIntOverflowQuery
  7471  				}
  7472  				if iNdEx >= l {
  7473  					return io.ErrUnexpectedEOF
  7474  				}
  7475  				b := dAtA[iNdEx]
  7476  				iNdEx++
  7477  				stringLen |= uint64(b&0x7F) << shift
  7478  				if b < 0x80 {
  7479  					break
  7480  				}
  7481  			}
  7482  			intStringLen := int(stringLen)
  7483  			if intStringLen < 0 {
  7484  				return ErrInvalidLengthQuery
  7485  			}
  7486  			postIndex := iNdEx + intStringLen
  7487  			if postIndex < 0 {
  7488  				return ErrInvalidLengthQuery
  7489  			}
  7490  			if postIndex > l {
  7491  				return io.ErrUnexpectedEOF
  7492  			}
  7493  			m.TokenId = string(dAtA[iNdEx:postIndex])
  7494  			iNdEx = postIndex
  7495  		default:
  7496  			iNdEx = preIndex
  7497  			skippy, err := skipQuery(dAtA[iNdEx:])
  7498  			if err != nil {
  7499  				return err
  7500  			}
  7501  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7502  				return ErrInvalidLengthQuery
  7503  			}
  7504  			if (iNdEx + skippy) > l {
  7505  				return io.ErrUnexpectedEOF
  7506  			}
  7507  			iNdEx += skippy
  7508  		}
  7509  	}
  7510  
  7511  	if iNdEx > l {
  7512  		return io.ErrUnexpectedEOF
  7513  	}
  7514  	return nil
  7515  }
  7516  func (m *QueryRootResponse) Unmarshal(dAtA []byte) error {
  7517  	l := len(dAtA)
  7518  	iNdEx := 0
  7519  	for iNdEx < l {
  7520  		preIndex := iNdEx
  7521  		var wire uint64
  7522  		for shift := uint(0); ; shift += 7 {
  7523  			if shift >= 64 {
  7524  				return ErrIntOverflowQuery
  7525  			}
  7526  			if iNdEx >= l {
  7527  				return io.ErrUnexpectedEOF
  7528  			}
  7529  			b := dAtA[iNdEx]
  7530  			iNdEx++
  7531  			wire |= uint64(b&0x7F) << shift
  7532  			if b < 0x80 {
  7533  				break
  7534  			}
  7535  		}
  7536  		fieldNum := int32(wire >> 3)
  7537  		wireType := int(wire & 0x7)
  7538  		if wireType == 4 {
  7539  			return fmt.Errorf("proto: QueryRootResponse: wiretype end group for non-group")
  7540  		}
  7541  		if fieldNum <= 0 {
  7542  			return fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7543  		}
  7544  		switch fieldNum {
  7545  		case 1:
  7546  			if wireType != 2 {
  7547  				return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
  7548  			}
  7549  			var msglen int
  7550  			for shift := uint(0); ; shift += 7 {
  7551  				if shift >= 64 {
  7552  					return ErrIntOverflowQuery
  7553  				}
  7554  				if iNdEx >= l {
  7555  					return io.ErrUnexpectedEOF
  7556  				}
  7557  				b := dAtA[iNdEx]
  7558  				iNdEx++
  7559  				msglen |= int(b&0x7F) << shift
  7560  				if b < 0x80 {
  7561  					break
  7562  				}
  7563  			}
  7564  			if msglen < 0 {
  7565  				return ErrInvalidLengthQuery
  7566  			}
  7567  			postIndex := iNdEx + msglen
  7568  			if postIndex < 0 {
  7569  				return ErrInvalidLengthQuery
  7570  			}
  7571  			if postIndex > l {
  7572  				return io.ErrUnexpectedEOF
  7573  			}
  7574  			if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7575  				return err
  7576  			}
  7577  			iNdEx = postIndex
  7578  		default:
  7579  			iNdEx = preIndex
  7580  			skippy, err := skipQuery(dAtA[iNdEx:])
  7581  			if err != nil {
  7582  				return err
  7583  			}
  7584  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7585  				return ErrInvalidLengthQuery
  7586  			}
  7587  			if (iNdEx + skippy) > l {
  7588  				return io.ErrUnexpectedEOF
  7589  			}
  7590  			iNdEx += skippy
  7591  		}
  7592  	}
  7593  
  7594  	if iNdEx > l {
  7595  		return io.ErrUnexpectedEOF
  7596  	}
  7597  	return nil
  7598  }
  7599  func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error {
  7600  	l := len(dAtA)
  7601  	iNdEx := 0
  7602  	for iNdEx < l {
  7603  		preIndex := iNdEx
  7604  		var wire uint64
  7605  		for shift := uint(0); ; shift += 7 {
  7606  			if shift >= 64 {
  7607  				return ErrIntOverflowQuery
  7608  			}
  7609  			if iNdEx >= l {
  7610  				return io.ErrUnexpectedEOF
  7611  			}
  7612  			b := dAtA[iNdEx]
  7613  			iNdEx++
  7614  			wire |= uint64(b&0x7F) << shift
  7615  			if b < 0x80 {
  7616  				break
  7617  			}
  7618  		}
  7619  		fieldNum := int32(wire >> 3)
  7620  		wireType := int(wire & 0x7)
  7621  		if wireType == 4 {
  7622  			return fmt.Errorf("proto: QueryHasParentRequest: wiretype end group for non-group")
  7623  		}
  7624  		if fieldNum <= 0 {
  7625  			return fmt.Errorf("proto: QueryHasParentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7626  		}
  7627  		switch fieldNum {
  7628  		case 1:
  7629  			if wireType != 2 {
  7630  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  7631  			}
  7632  			var stringLen uint64
  7633  			for shift := uint(0); ; shift += 7 {
  7634  				if shift >= 64 {
  7635  					return ErrIntOverflowQuery
  7636  				}
  7637  				if iNdEx >= l {
  7638  					return io.ErrUnexpectedEOF
  7639  				}
  7640  				b := dAtA[iNdEx]
  7641  				iNdEx++
  7642  				stringLen |= uint64(b&0x7F) << shift
  7643  				if b < 0x80 {
  7644  					break
  7645  				}
  7646  			}
  7647  			intStringLen := int(stringLen)
  7648  			if intStringLen < 0 {
  7649  				return ErrInvalidLengthQuery
  7650  			}
  7651  			postIndex := iNdEx + intStringLen
  7652  			if postIndex < 0 {
  7653  				return ErrInvalidLengthQuery
  7654  			}
  7655  			if postIndex > l {
  7656  				return io.ErrUnexpectedEOF
  7657  			}
  7658  			m.ContractId = string(dAtA[iNdEx:postIndex])
  7659  			iNdEx = postIndex
  7660  		case 2:
  7661  			if wireType != 2 {
  7662  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  7663  			}
  7664  			var stringLen uint64
  7665  			for shift := uint(0); ; shift += 7 {
  7666  				if shift >= 64 {
  7667  					return ErrIntOverflowQuery
  7668  				}
  7669  				if iNdEx >= l {
  7670  					return io.ErrUnexpectedEOF
  7671  				}
  7672  				b := dAtA[iNdEx]
  7673  				iNdEx++
  7674  				stringLen |= uint64(b&0x7F) << shift
  7675  				if b < 0x80 {
  7676  					break
  7677  				}
  7678  			}
  7679  			intStringLen := int(stringLen)
  7680  			if intStringLen < 0 {
  7681  				return ErrInvalidLengthQuery
  7682  			}
  7683  			postIndex := iNdEx + intStringLen
  7684  			if postIndex < 0 {
  7685  				return ErrInvalidLengthQuery
  7686  			}
  7687  			if postIndex > l {
  7688  				return io.ErrUnexpectedEOF
  7689  			}
  7690  			m.TokenId = string(dAtA[iNdEx:postIndex])
  7691  			iNdEx = postIndex
  7692  		default:
  7693  			iNdEx = preIndex
  7694  			skippy, err := skipQuery(dAtA[iNdEx:])
  7695  			if err != nil {
  7696  				return err
  7697  			}
  7698  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7699  				return ErrInvalidLengthQuery
  7700  			}
  7701  			if (iNdEx + skippy) > l {
  7702  				return io.ErrUnexpectedEOF
  7703  			}
  7704  			iNdEx += skippy
  7705  		}
  7706  	}
  7707  
  7708  	if iNdEx > l {
  7709  		return io.ErrUnexpectedEOF
  7710  	}
  7711  	return nil
  7712  }
  7713  func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error {
  7714  	l := len(dAtA)
  7715  	iNdEx := 0
  7716  	for iNdEx < l {
  7717  		preIndex := iNdEx
  7718  		var wire uint64
  7719  		for shift := uint(0); ; shift += 7 {
  7720  			if shift >= 64 {
  7721  				return ErrIntOverflowQuery
  7722  			}
  7723  			if iNdEx >= l {
  7724  				return io.ErrUnexpectedEOF
  7725  			}
  7726  			b := dAtA[iNdEx]
  7727  			iNdEx++
  7728  			wire |= uint64(b&0x7F) << shift
  7729  			if b < 0x80 {
  7730  				break
  7731  			}
  7732  		}
  7733  		fieldNum := int32(wire >> 3)
  7734  		wireType := int(wire & 0x7)
  7735  		if wireType == 4 {
  7736  			return fmt.Errorf("proto: QueryHasParentResponse: wiretype end group for non-group")
  7737  		}
  7738  		if fieldNum <= 0 {
  7739  			return fmt.Errorf("proto: QueryHasParentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7740  		}
  7741  		switch fieldNum {
  7742  		case 1:
  7743  			if wireType != 0 {
  7744  				return fmt.Errorf("proto: wrong wireType = %d for field HasParent", wireType)
  7745  			}
  7746  			var v int
  7747  			for shift := uint(0); ; shift += 7 {
  7748  				if shift >= 64 {
  7749  					return ErrIntOverflowQuery
  7750  				}
  7751  				if iNdEx >= l {
  7752  					return io.ErrUnexpectedEOF
  7753  				}
  7754  				b := dAtA[iNdEx]
  7755  				iNdEx++
  7756  				v |= int(b&0x7F) << shift
  7757  				if b < 0x80 {
  7758  					break
  7759  				}
  7760  			}
  7761  			m.HasParent = bool(v != 0)
  7762  		default:
  7763  			iNdEx = preIndex
  7764  			skippy, err := skipQuery(dAtA[iNdEx:])
  7765  			if err != nil {
  7766  				return err
  7767  			}
  7768  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7769  				return ErrInvalidLengthQuery
  7770  			}
  7771  			if (iNdEx + skippy) > l {
  7772  				return io.ErrUnexpectedEOF
  7773  			}
  7774  			iNdEx += skippy
  7775  		}
  7776  	}
  7777  
  7778  	if iNdEx > l {
  7779  		return io.ErrUnexpectedEOF
  7780  	}
  7781  	return nil
  7782  }
  7783  func (m *QueryParentRequest) Unmarshal(dAtA []byte) error {
  7784  	l := len(dAtA)
  7785  	iNdEx := 0
  7786  	for iNdEx < l {
  7787  		preIndex := iNdEx
  7788  		var wire uint64
  7789  		for shift := uint(0); ; shift += 7 {
  7790  			if shift >= 64 {
  7791  				return ErrIntOverflowQuery
  7792  			}
  7793  			if iNdEx >= l {
  7794  				return io.ErrUnexpectedEOF
  7795  			}
  7796  			b := dAtA[iNdEx]
  7797  			iNdEx++
  7798  			wire |= uint64(b&0x7F) << shift
  7799  			if b < 0x80 {
  7800  				break
  7801  			}
  7802  		}
  7803  		fieldNum := int32(wire >> 3)
  7804  		wireType := int(wire & 0x7)
  7805  		if wireType == 4 {
  7806  			return fmt.Errorf("proto: QueryParentRequest: wiretype end group for non-group")
  7807  		}
  7808  		if fieldNum <= 0 {
  7809  			return fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7810  		}
  7811  		switch fieldNum {
  7812  		case 1:
  7813  			if wireType != 2 {
  7814  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  7815  			}
  7816  			var stringLen uint64
  7817  			for shift := uint(0); ; shift += 7 {
  7818  				if shift >= 64 {
  7819  					return ErrIntOverflowQuery
  7820  				}
  7821  				if iNdEx >= l {
  7822  					return io.ErrUnexpectedEOF
  7823  				}
  7824  				b := dAtA[iNdEx]
  7825  				iNdEx++
  7826  				stringLen |= uint64(b&0x7F) << shift
  7827  				if b < 0x80 {
  7828  					break
  7829  				}
  7830  			}
  7831  			intStringLen := int(stringLen)
  7832  			if intStringLen < 0 {
  7833  				return ErrInvalidLengthQuery
  7834  			}
  7835  			postIndex := iNdEx + intStringLen
  7836  			if postIndex < 0 {
  7837  				return ErrInvalidLengthQuery
  7838  			}
  7839  			if postIndex > l {
  7840  				return io.ErrUnexpectedEOF
  7841  			}
  7842  			m.ContractId = string(dAtA[iNdEx:postIndex])
  7843  			iNdEx = postIndex
  7844  		case 2:
  7845  			if wireType != 2 {
  7846  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  7847  			}
  7848  			var stringLen uint64
  7849  			for shift := uint(0); ; shift += 7 {
  7850  				if shift >= 64 {
  7851  					return ErrIntOverflowQuery
  7852  				}
  7853  				if iNdEx >= l {
  7854  					return io.ErrUnexpectedEOF
  7855  				}
  7856  				b := dAtA[iNdEx]
  7857  				iNdEx++
  7858  				stringLen |= uint64(b&0x7F) << shift
  7859  				if b < 0x80 {
  7860  					break
  7861  				}
  7862  			}
  7863  			intStringLen := int(stringLen)
  7864  			if intStringLen < 0 {
  7865  				return ErrInvalidLengthQuery
  7866  			}
  7867  			postIndex := iNdEx + intStringLen
  7868  			if postIndex < 0 {
  7869  				return ErrInvalidLengthQuery
  7870  			}
  7871  			if postIndex > l {
  7872  				return io.ErrUnexpectedEOF
  7873  			}
  7874  			m.TokenId = string(dAtA[iNdEx:postIndex])
  7875  			iNdEx = postIndex
  7876  		default:
  7877  			iNdEx = preIndex
  7878  			skippy, err := skipQuery(dAtA[iNdEx:])
  7879  			if err != nil {
  7880  				return err
  7881  			}
  7882  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7883  				return ErrInvalidLengthQuery
  7884  			}
  7885  			if (iNdEx + skippy) > l {
  7886  				return io.ErrUnexpectedEOF
  7887  			}
  7888  			iNdEx += skippy
  7889  		}
  7890  	}
  7891  
  7892  	if iNdEx > l {
  7893  		return io.ErrUnexpectedEOF
  7894  	}
  7895  	return nil
  7896  }
  7897  func (m *QueryParentResponse) Unmarshal(dAtA []byte) error {
  7898  	l := len(dAtA)
  7899  	iNdEx := 0
  7900  	for iNdEx < l {
  7901  		preIndex := iNdEx
  7902  		var wire uint64
  7903  		for shift := uint(0); ; shift += 7 {
  7904  			if shift >= 64 {
  7905  				return ErrIntOverflowQuery
  7906  			}
  7907  			if iNdEx >= l {
  7908  				return io.ErrUnexpectedEOF
  7909  			}
  7910  			b := dAtA[iNdEx]
  7911  			iNdEx++
  7912  			wire |= uint64(b&0x7F) << shift
  7913  			if b < 0x80 {
  7914  				break
  7915  			}
  7916  		}
  7917  		fieldNum := int32(wire >> 3)
  7918  		wireType := int(wire & 0x7)
  7919  		if wireType == 4 {
  7920  			return fmt.Errorf("proto: QueryParentResponse: wiretype end group for non-group")
  7921  		}
  7922  		if fieldNum <= 0 {
  7923  			return fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7924  		}
  7925  		switch fieldNum {
  7926  		case 1:
  7927  			if wireType != 2 {
  7928  				return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
  7929  			}
  7930  			var msglen int
  7931  			for shift := uint(0); ; shift += 7 {
  7932  				if shift >= 64 {
  7933  					return ErrIntOverflowQuery
  7934  				}
  7935  				if iNdEx >= l {
  7936  					return io.ErrUnexpectedEOF
  7937  				}
  7938  				b := dAtA[iNdEx]
  7939  				iNdEx++
  7940  				msglen |= int(b&0x7F) << shift
  7941  				if b < 0x80 {
  7942  					break
  7943  				}
  7944  			}
  7945  			if msglen < 0 {
  7946  				return ErrInvalidLengthQuery
  7947  			}
  7948  			postIndex := iNdEx + msglen
  7949  			if postIndex < 0 {
  7950  				return ErrInvalidLengthQuery
  7951  			}
  7952  			if postIndex > l {
  7953  				return io.ErrUnexpectedEOF
  7954  			}
  7955  			if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7956  				return err
  7957  			}
  7958  			iNdEx = postIndex
  7959  		default:
  7960  			iNdEx = preIndex
  7961  			skippy, err := skipQuery(dAtA[iNdEx:])
  7962  			if err != nil {
  7963  				return err
  7964  			}
  7965  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7966  				return ErrInvalidLengthQuery
  7967  			}
  7968  			if (iNdEx + skippy) > l {
  7969  				return io.ErrUnexpectedEOF
  7970  			}
  7971  			iNdEx += skippy
  7972  		}
  7973  	}
  7974  
  7975  	if iNdEx > l {
  7976  		return io.ErrUnexpectedEOF
  7977  	}
  7978  	return nil
  7979  }
  7980  func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error {
  7981  	l := len(dAtA)
  7982  	iNdEx := 0
  7983  	for iNdEx < l {
  7984  		preIndex := iNdEx
  7985  		var wire uint64
  7986  		for shift := uint(0); ; shift += 7 {
  7987  			if shift >= 64 {
  7988  				return ErrIntOverflowQuery
  7989  			}
  7990  			if iNdEx >= l {
  7991  				return io.ErrUnexpectedEOF
  7992  			}
  7993  			b := dAtA[iNdEx]
  7994  			iNdEx++
  7995  			wire |= uint64(b&0x7F) << shift
  7996  			if b < 0x80 {
  7997  				break
  7998  			}
  7999  		}
  8000  		fieldNum := int32(wire >> 3)
  8001  		wireType := int(wire & 0x7)
  8002  		if wireType == 4 {
  8003  			return fmt.Errorf("proto: QueryChildrenRequest: wiretype end group for non-group")
  8004  		}
  8005  		if fieldNum <= 0 {
  8006  			return fmt.Errorf("proto: QueryChildrenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8007  		}
  8008  		switch fieldNum {
  8009  		case 1:
  8010  			if wireType != 2 {
  8011  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  8012  			}
  8013  			var stringLen uint64
  8014  			for shift := uint(0); ; shift += 7 {
  8015  				if shift >= 64 {
  8016  					return ErrIntOverflowQuery
  8017  				}
  8018  				if iNdEx >= l {
  8019  					return io.ErrUnexpectedEOF
  8020  				}
  8021  				b := dAtA[iNdEx]
  8022  				iNdEx++
  8023  				stringLen |= uint64(b&0x7F) << shift
  8024  				if b < 0x80 {
  8025  					break
  8026  				}
  8027  			}
  8028  			intStringLen := int(stringLen)
  8029  			if intStringLen < 0 {
  8030  				return ErrInvalidLengthQuery
  8031  			}
  8032  			postIndex := iNdEx + intStringLen
  8033  			if postIndex < 0 {
  8034  				return ErrInvalidLengthQuery
  8035  			}
  8036  			if postIndex > l {
  8037  				return io.ErrUnexpectedEOF
  8038  			}
  8039  			m.ContractId = string(dAtA[iNdEx:postIndex])
  8040  			iNdEx = postIndex
  8041  		case 2:
  8042  			if wireType != 2 {
  8043  				return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType)
  8044  			}
  8045  			var stringLen uint64
  8046  			for shift := uint(0); ; shift += 7 {
  8047  				if shift >= 64 {
  8048  					return ErrIntOverflowQuery
  8049  				}
  8050  				if iNdEx >= l {
  8051  					return io.ErrUnexpectedEOF
  8052  				}
  8053  				b := dAtA[iNdEx]
  8054  				iNdEx++
  8055  				stringLen |= uint64(b&0x7F) << shift
  8056  				if b < 0x80 {
  8057  					break
  8058  				}
  8059  			}
  8060  			intStringLen := int(stringLen)
  8061  			if intStringLen < 0 {
  8062  				return ErrInvalidLengthQuery
  8063  			}
  8064  			postIndex := iNdEx + intStringLen
  8065  			if postIndex < 0 {
  8066  				return ErrInvalidLengthQuery
  8067  			}
  8068  			if postIndex > l {
  8069  				return io.ErrUnexpectedEOF
  8070  			}
  8071  			m.TokenId = string(dAtA[iNdEx:postIndex])
  8072  			iNdEx = postIndex
  8073  		case 3:
  8074  			if wireType != 2 {
  8075  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8076  			}
  8077  			var msglen int
  8078  			for shift := uint(0); ; shift += 7 {
  8079  				if shift >= 64 {
  8080  					return ErrIntOverflowQuery
  8081  				}
  8082  				if iNdEx >= l {
  8083  					return io.ErrUnexpectedEOF
  8084  				}
  8085  				b := dAtA[iNdEx]
  8086  				iNdEx++
  8087  				msglen |= int(b&0x7F) << shift
  8088  				if b < 0x80 {
  8089  					break
  8090  				}
  8091  			}
  8092  			if msglen < 0 {
  8093  				return ErrInvalidLengthQuery
  8094  			}
  8095  			postIndex := iNdEx + msglen
  8096  			if postIndex < 0 {
  8097  				return ErrInvalidLengthQuery
  8098  			}
  8099  			if postIndex > l {
  8100  				return io.ErrUnexpectedEOF
  8101  			}
  8102  			if m.Pagination == nil {
  8103  				m.Pagination = &query.PageRequest{}
  8104  			}
  8105  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8106  				return err
  8107  			}
  8108  			iNdEx = postIndex
  8109  		default:
  8110  			iNdEx = preIndex
  8111  			skippy, err := skipQuery(dAtA[iNdEx:])
  8112  			if err != nil {
  8113  				return err
  8114  			}
  8115  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8116  				return ErrInvalidLengthQuery
  8117  			}
  8118  			if (iNdEx + skippy) > l {
  8119  				return io.ErrUnexpectedEOF
  8120  			}
  8121  			iNdEx += skippy
  8122  		}
  8123  	}
  8124  
  8125  	if iNdEx > l {
  8126  		return io.ErrUnexpectedEOF
  8127  	}
  8128  	return nil
  8129  }
  8130  func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error {
  8131  	l := len(dAtA)
  8132  	iNdEx := 0
  8133  	for iNdEx < l {
  8134  		preIndex := iNdEx
  8135  		var wire uint64
  8136  		for shift := uint(0); ; shift += 7 {
  8137  			if shift >= 64 {
  8138  				return ErrIntOverflowQuery
  8139  			}
  8140  			if iNdEx >= l {
  8141  				return io.ErrUnexpectedEOF
  8142  			}
  8143  			b := dAtA[iNdEx]
  8144  			iNdEx++
  8145  			wire |= uint64(b&0x7F) << shift
  8146  			if b < 0x80 {
  8147  				break
  8148  			}
  8149  		}
  8150  		fieldNum := int32(wire >> 3)
  8151  		wireType := int(wire & 0x7)
  8152  		if wireType == 4 {
  8153  			return fmt.Errorf("proto: QueryChildrenResponse: wiretype end group for non-group")
  8154  		}
  8155  		if fieldNum <= 0 {
  8156  			return fmt.Errorf("proto: QueryChildrenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8157  		}
  8158  		switch fieldNum {
  8159  		case 1:
  8160  			if wireType != 2 {
  8161  				return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType)
  8162  			}
  8163  			var msglen int
  8164  			for shift := uint(0); ; shift += 7 {
  8165  				if shift >= 64 {
  8166  					return ErrIntOverflowQuery
  8167  				}
  8168  				if iNdEx >= l {
  8169  					return io.ErrUnexpectedEOF
  8170  				}
  8171  				b := dAtA[iNdEx]
  8172  				iNdEx++
  8173  				msglen |= int(b&0x7F) << shift
  8174  				if b < 0x80 {
  8175  					break
  8176  				}
  8177  			}
  8178  			if msglen < 0 {
  8179  				return ErrInvalidLengthQuery
  8180  			}
  8181  			postIndex := iNdEx + msglen
  8182  			if postIndex < 0 {
  8183  				return ErrInvalidLengthQuery
  8184  			}
  8185  			if postIndex > l {
  8186  				return io.ErrUnexpectedEOF
  8187  			}
  8188  			m.Children = append(m.Children, NFT{})
  8189  			if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8190  				return err
  8191  			}
  8192  			iNdEx = postIndex
  8193  		case 2:
  8194  			if wireType != 2 {
  8195  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8196  			}
  8197  			var msglen int
  8198  			for shift := uint(0); ; shift += 7 {
  8199  				if shift >= 64 {
  8200  					return ErrIntOverflowQuery
  8201  				}
  8202  				if iNdEx >= l {
  8203  					return io.ErrUnexpectedEOF
  8204  				}
  8205  				b := dAtA[iNdEx]
  8206  				iNdEx++
  8207  				msglen |= int(b&0x7F) << shift
  8208  				if b < 0x80 {
  8209  					break
  8210  				}
  8211  			}
  8212  			if msglen < 0 {
  8213  				return ErrInvalidLengthQuery
  8214  			}
  8215  			postIndex := iNdEx + msglen
  8216  			if postIndex < 0 {
  8217  				return ErrInvalidLengthQuery
  8218  			}
  8219  			if postIndex > l {
  8220  				return io.ErrUnexpectedEOF
  8221  			}
  8222  			if m.Pagination == nil {
  8223  				m.Pagination = &query.PageResponse{}
  8224  			}
  8225  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8226  				return err
  8227  			}
  8228  			iNdEx = postIndex
  8229  		default:
  8230  			iNdEx = preIndex
  8231  			skippy, err := skipQuery(dAtA[iNdEx:])
  8232  			if err != nil {
  8233  				return err
  8234  			}
  8235  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8236  				return ErrInvalidLengthQuery
  8237  			}
  8238  			if (iNdEx + skippy) > l {
  8239  				return io.ErrUnexpectedEOF
  8240  			}
  8241  			iNdEx += skippy
  8242  		}
  8243  	}
  8244  
  8245  	if iNdEx > l {
  8246  		return io.ErrUnexpectedEOF
  8247  	}
  8248  	return nil
  8249  }
  8250  func (m *QueryGranteeGrantsRequest) Unmarshal(dAtA []byte) error {
  8251  	l := len(dAtA)
  8252  	iNdEx := 0
  8253  	for iNdEx < l {
  8254  		preIndex := iNdEx
  8255  		var wire uint64
  8256  		for shift := uint(0); ; shift += 7 {
  8257  			if shift >= 64 {
  8258  				return ErrIntOverflowQuery
  8259  			}
  8260  			if iNdEx >= l {
  8261  				return io.ErrUnexpectedEOF
  8262  			}
  8263  			b := dAtA[iNdEx]
  8264  			iNdEx++
  8265  			wire |= uint64(b&0x7F) << shift
  8266  			if b < 0x80 {
  8267  				break
  8268  			}
  8269  		}
  8270  		fieldNum := int32(wire >> 3)
  8271  		wireType := int(wire & 0x7)
  8272  		if wireType == 4 {
  8273  			return fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group")
  8274  		}
  8275  		if fieldNum <= 0 {
  8276  			return fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8277  		}
  8278  		switch fieldNum {
  8279  		case 1:
  8280  			if wireType != 2 {
  8281  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  8282  			}
  8283  			var stringLen uint64
  8284  			for shift := uint(0); ; shift += 7 {
  8285  				if shift >= 64 {
  8286  					return ErrIntOverflowQuery
  8287  				}
  8288  				if iNdEx >= l {
  8289  					return io.ErrUnexpectedEOF
  8290  				}
  8291  				b := dAtA[iNdEx]
  8292  				iNdEx++
  8293  				stringLen |= uint64(b&0x7F) << shift
  8294  				if b < 0x80 {
  8295  					break
  8296  				}
  8297  			}
  8298  			intStringLen := int(stringLen)
  8299  			if intStringLen < 0 {
  8300  				return ErrInvalidLengthQuery
  8301  			}
  8302  			postIndex := iNdEx + intStringLen
  8303  			if postIndex < 0 {
  8304  				return ErrInvalidLengthQuery
  8305  			}
  8306  			if postIndex > l {
  8307  				return io.ErrUnexpectedEOF
  8308  			}
  8309  			m.ContractId = string(dAtA[iNdEx:postIndex])
  8310  			iNdEx = postIndex
  8311  		case 2:
  8312  			if wireType != 2 {
  8313  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  8314  			}
  8315  			var stringLen uint64
  8316  			for shift := uint(0); ; shift += 7 {
  8317  				if shift >= 64 {
  8318  					return ErrIntOverflowQuery
  8319  				}
  8320  				if iNdEx >= l {
  8321  					return io.ErrUnexpectedEOF
  8322  				}
  8323  				b := dAtA[iNdEx]
  8324  				iNdEx++
  8325  				stringLen |= uint64(b&0x7F) << shift
  8326  				if b < 0x80 {
  8327  					break
  8328  				}
  8329  			}
  8330  			intStringLen := int(stringLen)
  8331  			if intStringLen < 0 {
  8332  				return ErrInvalidLengthQuery
  8333  			}
  8334  			postIndex := iNdEx + intStringLen
  8335  			if postIndex < 0 {
  8336  				return ErrInvalidLengthQuery
  8337  			}
  8338  			if postIndex > l {
  8339  				return io.ErrUnexpectedEOF
  8340  			}
  8341  			m.Grantee = string(dAtA[iNdEx:postIndex])
  8342  			iNdEx = postIndex
  8343  		case 3:
  8344  			if wireType != 2 {
  8345  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8346  			}
  8347  			var msglen int
  8348  			for shift := uint(0); ; shift += 7 {
  8349  				if shift >= 64 {
  8350  					return ErrIntOverflowQuery
  8351  				}
  8352  				if iNdEx >= l {
  8353  					return io.ErrUnexpectedEOF
  8354  				}
  8355  				b := dAtA[iNdEx]
  8356  				iNdEx++
  8357  				msglen |= int(b&0x7F) << shift
  8358  				if b < 0x80 {
  8359  					break
  8360  				}
  8361  			}
  8362  			if msglen < 0 {
  8363  				return ErrInvalidLengthQuery
  8364  			}
  8365  			postIndex := iNdEx + msglen
  8366  			if postIndex < 0 {
  8367  				return ErrInvalidLengthQuery
  8368  			}
  8369  			if postIndex > l {
  8370  				return io.ErrUnexpectedEOF
  8371  			}
  8372  			if m.Pagination == nil {
  8373  				m.Pagination = &query.PageRequest{}
  8374  			}
  8375  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8376  				return err
  8377  			}
  8378  			iNdEx = postIndex
  8379  		default:
  8380  			iNdEx = preIndex
  8381  			skippy, err := skipQuery(dAtA[iNdEx:])
  8382  			if err != nil {
  8383  				return err
  8384  			}
  8385  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8386  				return ErrInvalidLengthQuery
  8387  			}
  8388  			if (iNdEx + skippy) > l {
  8389  				return io.ErrUnexpectedEOF
  8390  			}
  8391  			iNdEx += skippy
  8392  		}
  8393  	}
  8394  
  8395  	if iNdEx > l {
  8396  		return io.ErrUnexpectedEOF
  8397  	}
  8398  	return nil
  8399  }
  8400  func (m *QueryGranteeGrantsResponse) Unmarshal(dAtA []byte) error {
  8401  	l := len(dAtA)
  8402  	iNdEx := 0
  8403  	for iNdEx < l {
  8404  		preIndex := iNdEx
  8405  		var wire uint64
  8406  		for shift := uint(0); ; shift += 7 {
  8407  			if shift >= 64 {
  8408  				return ErrIntOverflowQuery
  8409  			}
  8410  			if iNdEx >= l {
  8411  				return io.ErrUnexpectedEOF
  8412  			}
  8413  			b := dAtA[iNdEx]
  8414  			iNdEx++
  8415  			wire |= uint64(b&0x7F) << shift
  8416  			if b < 0x80 {
  8417  				break
  8418  			}
  8419  		}
  8420  		fieldNum := int32(wire >> 3)
  8421  		wireType := int(wire & 0x7)
  8422  		if wireType == 4 {
  8423  			return fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group")
  8424  		}
  8425  		if fieldNum <= 0 {
  8426  			return fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8427  		}
  8428  		switch fieldNum {
  8429  		case 1:
  8430  			if wireType != 2 {
  8431  				return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType)
  8432  			}
  8433  			var msglen int
  8434  			for shift := uint(0); ; shift += 7 {
  8435  				if shift >= 64 {
  8436  					return ErrIntOverflowQuery
  8437  				}
  8438  				if iNdEx >= l {
  8439  					return io.ErrUnexpectedEOF
  8440  				}
  8441  				b := dAtA[iNdEx]
  8442  				iNdEx++
  8443  				msglen |= int(b&0x7F) << shift
  8444  				if b < 0x80 {
  8445  					break
  8446  				}
  8447  			}
  8448  			if msglen < 0 {
  8449  				return ErrInvalidLengthQuery
  8450  			}
  8451  			postIndex := iNdEx + msglen
  8452  			if postIndex < 0 {
  8453  				return ErrInvalidLengthQuery
  8454  			}
  8455  			if postIndex > l {
  8456  				return io.ErrUnexpectedEOF
  8457  			}
  8458  			m.Grants = append(m.Grants, Grant{})
  8459  			if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8460  				return err
  8461  			}
  8462  			iNdEx = postIndex
  8463  		case 2:
  8464  			if wireType != 2 {
  8465  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8466  			}
  8467  			var msglen int
  8468  			for shift := uint(0); ; shift += 7 {
  8469  				if shift >= 64 {
  8470  					return ErrIntOverflowQuery
  8471  				}
  8472  				if iNdEx >= l {
  8473  					return io.ErrUnexpectedEOF
  8474  				}
  8475  				b := dAtA[iNdEx]
  8476  				iNdEx++
  8477  				msglen |= int(b&0x7F) << shift
  8478  				if b < 0x80 {
  8479  					break
  8480  				}
  8481  			}
  8482  			if msglen < 0 {
  8483  				return ErrInvalidLengthQuery
  8484  			}
  8485  			postIndex := iNdEx + msglen
  8486  			if postIndex < 0 {
  8487  				return ErrInvalidLengthQuery
  8488  			}
  8489  			if postIndex > l {
  8490  				return io.ErrUnexpectedEOF
  8491  			}
  8492  			if m.Pagination == nil {
  8493  				m.Pagination = &query.PageResponse{}
  8494  			}
  8495  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8496  				return err
  8497  			}
  8498  			iNdEx = postIndex
  8499  		default:
  8500  			iNdEx = preIndex
  8501  			skippy, err := skipQuery(dAtA[iNdEx:])
  8502  			if err != nil {
  8503  				return err
  8504  			}
  8505  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8506  				return ErrInvalidLengthQuery
  8507  			}
  8508  			if (iNdEx + skippy) > l {
  8509  				return io.ErrUnexpectedEOF
  8510  			}
  8511  			iNdEx += skippy
  8512  		}
  8513  	}
  8514  
  8515  	if iNdEx > l {
  8516  		return io.ErrUnexpectedEOF
  8517  	}
  8518  	return nil
  8519  }
  8520  func (m *QueryIsOperatorForRequest) Unmarshal(dAtA []byte) error {
  8521  	l := len(dAtA)
  8522  	iNdEx := 0
  8523  	for iNdEx < l {
  8524  		preIndex := iNdEx
  8525  		var wire uint64
  8526  		for shift := uint(0); ; shift += 7 {
  8527  			if shift >= 64 {
  8528  				return ErrIntOverflowQuery
  8529  			}
  8530  			if iNdEx >= l {
  8531  				return io.ErrUnexpectedEOF
  8532  			}
  8533  			b := dAtA[iNdEx]
  8534  			iNdEx++
  8535  			wire |= uint64(b&0x7F) << shift
  8536  			if b < 0x80 {
  8537  				break
  8538  			}
  8539  		}
  8540  		fieldNum := int32(wire >> 3)
  8541  		wireType := int(wire & 0x7)
  8542  		if wireType == 4 {
  8543  			return fmt.Errorf("proto: QueryIsOperatorForRequest: wiretype end group for non-group")
  8544  		}
  8545  		if fieldNum <= 0 {
  8546  			return fmt.Errorf("proto: QueryIsOperatorForRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8547  		}
  8548  		switch fieldNum {
  8549  		case 1:
  8550  			if wireType != 2 {
  8551  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  8552  			}
  8553  			var stringLen uint64
  8554  			for shift := uint(0); ; shift += 7 {
  8555  				if shift >= 64 {
  8556  					return ErrIntOverflowQuery
  8557  				}
  8558  				if iNdEx >= l {
  8559  					return io.ErrUnexpectedEOF
  8560  				}
  8561  				b := dAtA[iNdEx]
  8562  				iNdEx++
  8563  				stringLen |= uint64(b&0x7F) << shift
  8564  				if b < 0x80 {
  8565  					break
  8566  				}
  8567  			}
  8568  			intStringLen := int(stringLen)
  8569  			if intStringLen < 0 {
  8570  				return ErrInvalidLengthQuery
  8571  			}
  8572  			postIndex := iNdEx + intStringLen
  8573  			if postIndex < 0 {
  8574  				return ErrInvalidLengthQuery
  8575  			}
  8576  			if postIndex > l {
  8577  				return io.ErrUnexpectedEOF
  8578  			}
  8579  			m.ContractId = string(dAtA[iNdEx:postIndex])
  8580  			iNdEx = postIndex
  8581  		case 2:
  8582  			if wireType != 2 {
  8583  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  8584  			}
  8585  			var stringLen uint64
  8586  			for shift := uint(0); ; shift += 7 {
  8587  				if shift >= 64 {
  8588  					return ErrIntOverflowQuery
  8589  				}
  8590  				if iNdEx >= l {
  8591  					return io.ErrUnexpectedEOF
  8592  				}
  8593  				b := dAtA[iNdEx]
  8594  				iNdEx++
  8595  				stringLen |= uint64(b&0x7F) << shift
  8596  				if b < 0x80 {
  8597  					break
  8598  				}
  8599  			}
  8600  			intStringLen := int(stringLen)
  8601  			if intStringLen < 0 {
  8602  				return ErrInvalidLengthQuery
  8603  			}
  8604  			postIndex := iNdEx + intStringLen
  8605  			if postIndex < 0 {
  8606  				return ErrInvalidLengthQuery
  8607  			}
  8608  			if postIndex > l {
  8609  				return io.ErrUnexpectedEOF
  8610  			}
  8611  			m.Operator = string(dAtA[iNdEx:postIndex])
  8612  			iNdEx = postIndex
  8613  		case 3:
  8614  			if wireType != 2 {
  8615  				return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType)
  8616  			}
  8617  			var stringLen uint64
  8618  			for shift := uint(0); ; shift += 7 {
  8619  				if shift >= 64 {
  8620  					return ErrIntOverflowQuery
  8621  				}
  8622  				if iNdEx >= l {
  8623  					return io.ErrUnexpectedEOF
  8624  				}
  8625  				b := dAtA[iNdEx]
  8626  				iNdEx++
  8627  				stringLen |= uint64(b&0x7F) << shift
  8628  				if b < 0x80 {
  8629  					break
  8630  				}
  8631  			}
  8632  			intStringLen := int(stringLen)
  8633  			if intStringLen < 0 {
  8634  				return ErrInvalidLengthQuery
  8635  			}
  8636  			postIndex := iNdEx + intStringLen
  8637  			if postIndex < 0 {
  8638  				return ErrInvalidLengthQuery
  8639  			}
  8640  			if postIndex > l {
  8641  				return io.ErrUnexpectedEOF
  8642  			}
  8643  			m.Holder = string(dAtA[iNdEx:postIndex])
  8644  			iNdEx = postIndex
  8645  		default:
  8646  			iNdEx = preIndex
  8647  			skippy, err := skipQuery(dAtA[iNdEx:])
  8648  			if err != nil {
  8649  				return err
  8650  			}
  8651  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8652  				return ErrInvalidLengthQuery
  8653  			}
  8654  			if (iNdEx + skippy) > l {
  8655  				return io.ErrUnexpectedEOF
  8656  			}
  8657  			iNdEx += skippy
  8658  		}
  8659  	}
  8660  
  8661  	if iNdEx > l {
  8662  		return io.ErrUnexpectedEOF
  8663  	}
  8664  	return nil
  8665  }
  8666  func (m *QueryIsOperatorForResponse) Unmarshal(dAtA []byte) error {
  8667  	l := len(dAtA)
  8668  	iNdEx := 0
  8669  	for iNdEx < l {
  8670  		preIndex := iNdEx
  8671  		var wire uint64
  8672  		for shift := uint(0); ; shift += 7 {
  8673  			if shift >= 64 {
  8674  				return ErrIntOverflowQuery
  8675  			}
  8676  			if iNdEx >= l {
  8677  				return io.ErrUnexpectedEOF
  8678  			}
  8679  			b := dAtA[iNdEx]
  8680  			iNdEx++
  8681  			wire |= uint64(b&0x7F) << shift
  8682  			if b < 0x80 {
  8683  				break
  8684  			}
  8685  		}
  8686  		fieldNum := int32(wire >> 3)
  8687  		wireType := int(wire & 0x7)
  8688  		if wireType == 4 {
  8689  			return fmt.Errorf("proto: QueryIsOperatorForResponse: wiretype end group for non-group")
  8690  		}
  8691  		if fieldNum <= 0 {
  8692  			return fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8693  		}
  8694  		switch fieldNum {
  8695  		case 1:
  8696  			if wireType != 0 {
  8697  				return fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType)
  8698  			}
  8699  			var v int
  8700  			for shift := uint(0); ; shift += 7 {
  8701  				if shift >= 64 {
  8702  					return ErrIntOverflowQuery
  8703  				}
  8704  				if iNdEx >= l {
  8705  					return io.ErrUnexpectedEOF
  8706  				}
  8707  				b := dAtA[iNdEx]
  8708  				iNdEx++
  8709  				v |= int(b&0x7F) << shift
  8710  				if b < 0x80 {
  8711  					break
  8712  				}
  8713  			}
  8714  			m.Authorized = bool(v != 0)
  8715  		default:
  8716  			iNdEx = preIndex
  8717  			skippy, err := skipQuery(dAtA[iNdEx:])
  8718  			if err != nil {
  8719  				return err
  8720  			}
  8721  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8722  				return ErrInvalidLengthQuery
  8723  			}
  8724  			if (iNdEx + skippy) > l {
  8725  				return io.ErrUnexpectedEOF
  8726  			}
  8727  			iNdEx += skippy
  8728  		}
  8729  	}
  8730  
  8731  	if iNdEx > l {
  8732  		return io.ErrUnexpectedEOF
  8733  	}
  8734  	return nil
  8735  }
  8736  func (m *QueryHoldersByOperatorRequest) Unmarshal(dAtA []byte) error {
  8737  	l := len(dAtA)
  8738  	iNdEx := 0
  8739  	for iNdEx < l {
  8740  		preIndex := iNdEx
  8741  		var wire uint64
  8742  		for shift := uint(0); ; shift += 7 {
  8743  			if shift >= 64 {
  8744  				return ErrIntOverflowQuery
  8745  			}
  8746  			if iNdEx >= l {
  8747  				return io.ErrUnexpectedEOF
  8748  			}
  8749  			b := dAtA[iNdEx]
  8750  			iNdEx++
  8751  			wire |= uint64(b&0x7F) << shift
  8752  			if b < 0x80 {
  8753  				break
  8754  			}
  8755  		}
  8756  		fieldNum := int32(wire >> 3)
  8757  		wireType := int(wire & 0x7)
  8758  		if wireType == 4 {
  8759  			return fmt.Errorf("proto: QueryHoldersByOperatorRequest: wiretype end group for non-group")
  8760  		}
  8761  		if fieldNum <= 0 {
  8762  			return fmt.Errorf("proto: QueryHoldersByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8763  		}
  8764  		switch fieldNum {
  8765  		case 1:
  8766  			if wireType != 2 {
  8767  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  8768  			}
  8769  			var stringLen uint64
  8770  			for shift := uint(0); ; shift += 7 {
  8771  				if shift >= 64 {
  8772  					return ErrIntOverflowQuery
  8773  				}
  8774  				if iNdEx >= l {
  8775  					return io.ErrUnexpectedEOF
  8776  				}
  8777  				b := dAtA[iNdEx]
  8778  				iNdEx++
  8779  				stringLen |= uint64(b&0x7F) << shift
  8780  				if b < 0x80 {
  8781  					break
  8782  				}
  8783  			}
  8784  			intStringLen := int(stringLen)
  8785  			if intStringLen < 0 {
  8786  				return ErrInvalidLengthQuery
  8787  			}
  8788  			postIndex := iNdEx + intStringLen
  8789  			if postIndex < 0 {
  8790  				return ErrInvalidLengthQuery
  8791  			}
  8792  			if postIndex > l {
  8793  				return io.ErrUnexpectedEOF
  8794  			}
  8795  			m.ContractId = string(dAtA[iNdEx:postIndex])
  8796  			iNdEx = postIndex
  8797  		case 2:
  8798  			if wireType != 2 {
  8799  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  8800  			}
  8801  			var stringLen uint64
  8802  			for shift := uint(0); ; shift += 7 {
  8803  				if shift >= 64 {
  8804  					return ErrIntOverflowQuery
  8805  				}
  8806  				if iNdEx >= l {
  8807  					return io.ErrUnexpectedEOF
  8808  				}
  8809  				b := dAtA[iNdEx]
  8810  				iNdEx++
  8811  				stringLen |= uint64(b&0x7F) << shift
  8812  				if b < 0x80 {
  8813  					break
  8814  				}
  8815  			}
  8816  			intStringLen := int(stringLen)
  8817  			if intStringLen < 0 {
  8818  				return ErrInvalidLengthQuery
  8819  			}
  8820  			postIndex := iNdEx + intStringLen
  8821  			if postIndex < 0 {
  8822  				return ErrInvalidLengthQuery
  8823  			}
  8824  			if postIndex > l {
  8825  				return io.ErrUnexpectedEOF
  8826  			}
  8827  			m.Operator = string(dAtA[iNdEx:postIndex])
  8828  			iNdEx = postIndex
  8829  		case 3:
  8830  			if wireType != 2 {
  8831  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8832  			}
  8833  			var msglen int
  8834  			for shift := uint(0); ; shift += 7 {
  8835  				if shift >= 64 {
  8836  					return ErrIntOverflowQuery
  8837  				}
  8838  				if iNdEx >= l {
  8839  					return io.ErrUnexpectedEOF
  8840  				}
  8841  				b := dAtA[iNdEx]
  8842  				iNdEx++
  8843  				msglen |= int(b&0x7F) << shift
  8844  				if b < 0x80 {
  8845  					break
  8846  				}
  8847  			}
  8848  			if msglen < 0 {
  8849  				return ErrInvalidLengthQuery
  8850  			}
  8851  			postIndex := iNdEx + msglen
  8852  			if postIndex < 0 {
  8853  				return ErrInvalidLengthQuery
  8854  			}
  8855  			if postIndex > l {
  8856  				return io.ErrUnexpectedEOF
  8857  			}
  8858  			if m.Pagination == nil {
  8859  				m.Pagination = &query.PageRequest{}
  8860  			}
  8861  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8862  				return err
  8863  			}
  8864  			iNdEx = postIndex
  8865  		default:
  8866  			iNdEx = preIndex
  8867  			skippy, err := skipQuery(dAtA[iNdEx:])
  8868  			if err != nil {
  8869  				return err
  8870  			}
  8871  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8872  				return ErrInvalidLengthQuery
  8873  			}
  8874  			if (iNdEx + skippy) > l {
  8875  				return io.ErrUnexpectedEOF
  8876  			}
  8877  			iNdEx += skippy
  8878  		}
  8879  	}
  8880  
  8881  	if iNdEx > l {
  8882  		return io.ErrUnexpectedEOF
  8883  	}
  8884  	return nil
  8885  }
  8886  func (m *QueryHoldersByOperatorResponse) Unmarshal(dAtA []byte) error {
  8887  	l := len(dAtA)
  8888  	iNdEx := 0
  8889  	for iNdEx < l {
  8890  		preIndex := iNdEx
  8891  		var wire uint64
  8892  		for shift := uint(0); ; shift += 7 {
  8893  			if shift >= 64 {
  8894  				return ErrIntOverflowQuery
  8895  			}
  8896  			if iNdEx >= l {
  8897  				return io.ErrUnexpectedEOF
  8898  			}
  8899  			b := dAtA[iNdEx]
  8900  			iNdEx++
  8901  			wire |= uint64(b&0x7F) << shift
  8902  			if b < 0x80 {
  8903  				break
  8904  			}
  8905  		}
  8906  		fieldNum := int32(wire >> 3)
  8907  		wireType := int(wire & 0x7)
  8908  		if wireType == 4 {
  8909  			return fmt.Errorf("proto: QueryHoldersByOperatorResponse: wiretype end group for non-group")
  8910  		}
  8911  		if fieldNum <= 0 {
  8912  			return fmt.Errorf("proto: QueryHoldersByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8913  		}
  8914  		switch fieldNum {
  8915  		case 1:
  8916  			if wireType != 2 {
  8917  				return fmt.Errorf("proto: wrong wireType = %d for field Holders", wireType)
  8918  			}
  8919  			var stringLen uint64
  8920  			for shift := uint(0); ; shift += 7 {
  8921  				if shift >= 64 {
  8922  					return ErrIntOverflowQuery
  8923  				}
  8924  				if iNdEx >= l {
  8925  					return io.ErrUnexpectedEOF
  8926  				}
  8927  				b := dAtA[iNdEx]
  8928  				iNdEx++
  8929  				stringLen |= uint64(b&0x7F) << shift
  8930  				if b < 0x80 {
  8931  					break
  8932  				}
  8933  			}
  8934  			intStringLen := int(stringLen)
  8935  			if intStringLen < 0 {
  8936  				return ErrInvalidLengthQuery
  8937  			}
  8938  			postIndex := iNdEx + intStringLen
  8939  			if postIndex < 0 {
  8940  				return ErrInvalidLengthQuery
  8941  			}
  8942  			if postIndex > l {
  8943  				return io.ErrUnexpectedEOF
  8944  			}
  8945  			m.Holders = append(m.Holders, string(dAtA[iNdEx:postIndex]))
  8946  			iNdEx = postIndex
  8947  		case 2:
  8948  			if wireType != 2 {
  8949  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  8950  			}
  8951  			var msglen int
  8952  			for shift := uint(0); ; shift += 7 {
  8953  				if shift >= 64 {
  8954  					return ErrIntOverflowQuery
  8955  				}
  8956  				if iNdEx >= l {
  8957  					return io.ErrUnexpectedEOF
  8958  				}
  8959  				b := dAtA[iNdEx]
  8960  				iNdEx++
  8961  				msglen |= int(b&0x7F) << shift
  8962  				if b < 0x80 {
  8963  					break
  8964  				}
  8965  			}
  8966  			if msglen < 0 {
  8967  				return ErrInvalidLengthQuery
  8968  			}
  8969  			postIndex := iNdEx + msglen
  8970  			if postIndex < 0 {
  8971  				return ErrInvalidLengthQuery
  8972  			}
  8973  			if postIndex > l {
  8974  				return io.ErrUnexpectedEOF
  8975  			}
  8976  			if m.Pagination == nil {
  8977  				m.Pagination = &query.PageResponse{}
  8978  			}
  8979  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8980  				return err
  8981  			}
  8982  			iNdEx = postIndex
  8983  		default:
  8984  			iNdEx = preIndex
  8985  			skippy, err := skipQuery(dAtA[iNdEx:])
  8986  			if err != nil {
  8987  				return err
  8988  			}
  8989  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8990  				return ErrInvalidLengthQuery
  8991  			}
  8992  			if (iNdEx + skippy) > l {
  8993  				return io.ErrUnexpectedEOF
  8994  			}
  8995  			iNdEx += skippy
  8996  		}
  8997  	}
  8998  
  8999  	if iNdEx > l {
  9000  		return io.ErrUnexpectedEOF
  9001  	}
  9002  	return nil
  9003  }
  9004  func skipQuery(dAtA []byte) (n int, err error) {
  9005  	l := len(dAtA)
  9006  	iNdEx := 0
  9007  	depth := 0
  9008  	for iNdEx < l {
  9009  		var wire uint64
  9010  		for shift := uint(0); ; shift += 7 {
  9011  			if shift >= 64 {
  9012  				return 0, ErrIntOverflowQuery
  9013  			}
  9014  			if iNdEx >= l {
  9015  				return 0, io.ErrUnexpectedEOF
  9016  			}
  9017  			b := dAtA[iNdEx]
  9018  			iNdEx++
  9019  			wire |= (uint64(b) & 0x7F) << shift
  9020  			if b < 0x80 {
  9021  				break
  9022  			}
  9023  		}
  9024  		wireType := int(wire & 0x7)
  9025  		switch wireType {
  9026  		case 0:
  9027  			for shift := uint(0); ; shift += 7 {
  9028  				if shift >= 64 {
  9029  					return 0, ErrIntOverflowQuery
  9030  				}
  9031  				if iNdEx >= l {
  9032  					return 0, io.ErrUnexpectedEOF
  9033  				}
  9034  				iNdEx++
  9035  				if dAtA[iNdEx-1] < 0x80 {
  9036  					break
  9037  				}
  9038  			}
  9039  		case 1:
  9040  			iNdEx += 8
  9041  		case 2:
  9042  			var length int
  9043  			for shift := uint(0); ; shift += 7 {
  9044  				if shift >= 64 {
  9045  					return 0, ErrIntOverflowQuery
  9046  				}
  9047  				if iNdEx >= l {
  9048  					return 0, io.ErrUnexpectedEOF
  9049  				}
  9050  				b := dAtA[iNdEx]
  9051  				iNdEx++
  9052  				length |= (int(b) & 0x7F) << shift
  9053  				if b < 0x80 {
  9054  					break
  9055  				}
  9056  			}
  9057  			if length < 0 {
  9058  				return 0, ErrInvalidLengthQuery
  9059  			}
  9060  			iNdEx += length
  9061  		case 3:
  9062  			depth++
  9063  		case 4:
  9064  			if depth == 0 {
  9065  				return 0, ErrUnexpectedEndOfGroupQuery
  9066  			}
  9067  			depth--
  9068  		case 5:
  9069  			iNdEx += 4
  9070  		default:
  9071  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  9072  		}
  9073  		if iNdEx < 0 {
  9074  			return 0, ErrInvalidLengthQuery
  9075  		}
  9076  		if depth == 0 {
  9077  			return iNdEx, nil
  9078  		}
  9079  	}
  9080  	return 0, io.ErrUnexpectedEOF
  9081  }
  9082  
  9083  var (
  9084  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  9085  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  9086  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  9087  )