github.com/cosmos/cosmos-sdk@v0.50.10/x/auth/types/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/auth/v1beta1/query.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	types "github.com/cosmos/cosmos-sdk/codec/types"
    11  	query "github.com/cosmos/cosmos-sdk/types/query"
    12  	_ "github.com/cosmos/gogoproto/gogoproto"
    13  	grpc1 "github.com/cosmos/gogoproto/grpc"
    14  	proto "github.com/cosmos/gogoproto/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // QueryAccountsRequest is the request type for the Query/Accounts RPC method.
    36  //
    37  // Since: cosmos-sdk 0.43
    38  type QueryAccountsRequest struct {
    39  	// pagination defines an optional pagination for the request.
    40  	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
    41  }
    42  
    43  func (m *QueryAccountsRequest) Reset()         { *m = QueryAccountsRequest{} }
    44  func (m *QueryAccountsRequest) String() string { return proto.CompactTextString(m) }
    45  func (*QueryAccountsRequest) ProtoMessage()    {}
    46  func (*QueryAccountsRequest) Descriptor() ([]byte, []int) {
    47  	return fileDescriptor_c451370b3929a27c, []int{0}
    48  }
    49  func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error {
    50  	return m.Unmarshal(b)
    51  }
    52  func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    53  	if deterministic {
    54  		return xxx_messageInfo_QueryAccountsRequest.Marshal(b, m, deterministic)
    55  	} else {
    56  		b = b[:cap(b)]
    57  		n, err := m.MarshalToSizedBuffer(b)
    58  		if err != nil {
    59  			return nil, err
    60  		}
    61  		return b[:n], nil
    62  	}
    63  }
    64  func (m *QueryAccountsRequest) XXX_Merge(src proto.Message) {
    65  	xxx_messageInfo_QueryAccountsRequest.Merge(m, src)
    66  }
    67  func (m *QueryAccountsRequest) XXX_Size() int {
    68  	return m.Size()
    69  }
    70  func (m *QueryAccountsRequest) XXX_DiscardUnknown() {
    71  	xxx_messageInfo_QueryAccountsRequest.DiscardUnknown(m)
    72  }
    73  
    74  var xxx_messageInfo_QueryAccountsRequest proto.InternalMessageInfo
    75  
    76  func (m *QueryAccountsRequest) GetPagination() *query.PageRequest {
    77  	if m != nil {
    78  		return m.Pagination
    79  	}
    80  	return nil
    81  }
    82  
    83  // QueryAccountsResponse is the response type for the Query/Accounts RPC method.
    84  //
    85  // Since: cosmos-sdk 0.43
    86  type QueryAccountsResponse struct {
    87  	// accounts are the existing accounts
    88  	Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
    89  	// pagination defines the pagination in the response.
    90  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
    91  }
    92  
    93  func (m *QueryAccountsResponse) Reset()         { *m = QueryAccountsResponse{} }
    94  func (m *QueryAccountsResponse) String() string { return proto.CompactTextString(m) }
    95  func (*QueryAccountsResponse) ProtoMessage()    {}
    96  func (*QueryAccountsResponse) Descriptor() ([]byte, []int) {
    97  	return fileDescriptor_c451370b3929a27c, []int{1}
    98  }
    99  func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error {
   100  	return m.Unmarshal(b)
   101  }
   102  func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   103  	if deterministic {
   104  		return xxx_messageInfo_QueryAccountsResponse.Marshal(b, m, deterministic)
   105  	} else {
   106  		b = b[:cap(b)]
   107  		n, err := m.MarshalToSizedBuffer(b)
   108  		if err != nil {
   109  			return nil, err
   110  		}
   111  		return b[:n], nil
   112  	}
   113  }
   114  func (m *QueryAccountsResponse) XXX_Merge(src proto.Message) {
   115  	xxx_messageInfo_QueryAccountsResponse.Merge(m, src)
   116  }
   117  func (m *QueryAccountsResponse) XXX_Size() int {
   118  	return m.Size()
   119  }
   120  func (m *QueryAccountsResponse) XXX_DiscardUnknown() {
   121  	xxx_messageInfo_QueryAccountsResponse.DiscardUnknown(m)
   122  }
   123  
   124  var xxx_messageInfo_QueryAccountsResponse proto.InternalMessageInfo
   125  
   126  func (m *QueryAccountsResponse) GetAccounts() []*types.Any {
   127  	if m != nil {
   128  		return m.Accounts
   129  	}
   130  	return nil
   131  }
   132  
   133  func (m *QueryAccountsResponse) GetPagination() *query.PageResponse {
   134  	if m != nil {
   135  		return m.Pagination
   136  	}
   137  	return nil
   138  }
   139  
   140  // QueryAccountRequest is the request type for the Query/Account RPC method.
   141  type QueryAccountRequest struct {
   142  	// address defines the address to query for.
   143  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   144  }
   145  
   146  func (m *QueryAccountRequest) Reset()         { *m = QueryAccountRequest{} }
   147  func (m *QueryAccountRequest) String() string { return proto.CompactTextString(m) }
   148  func (*QueryAccountRequest) ProtoMessage()    {}
   149  func (*QueryAccountRequest) Descriptor() ([]byte, []int) {
   150  	return fileDescriptor_c451370b3929a27c, []int{2}
   151  }
   152  func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error {
   153  	return m.Unmarshal(b)
   154  }
   155  func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   156  	if deterministic {
   157  		return xxx_messageInfo_QueryAccountRequest.Marshal(b, m, deterministic)
   158  	} else {
   159  		b = b[:cap(b)]
   160  		n, err := m.MarshalToSizedBuffer(b)
   161  		if err != nil {
   162  			return nil, err
   163  		}
   164  		return b[:n], nil
   165  	}
   166  }
   167  func (m *QueryAccountRequest) XXX_Merge(src proto.Message) {
   168  	xxx_messageInfo_QueryAccountRequest.Merge(m, src)
   169  }
   170  func (m *QueryAccountRequest) XXX_Size() int {
   171  	return m.Size()
   172  }
   173  func (m *QueryAccountRequest) XXX_DiscardUnknown() {
   174  	xxx_messageInfo_QueryAccountRequest.DiscardUnknown(m)
   175  }
   176  
   177  var xxx_messageInfo_QueryAccountRequest proto.InternalMessageInfo
   178  
   179  // QueryAccountResponse is the response type for the Query/Account RPC method.
   180  type QueryAccountResponse struct {
   181  	// account defines the account of the corresponding address.
   182  	Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
   183  }
   184  
   185  func (m *QueryAccountResponse) Reset()         { *m = QueryAccountResponse{} }
   186  func (m *QueryAccountResponse) String() string { return proto.CompactTextString(m) }
   187  func (*QueryAccountResponse) ProtoMessage()    {}
   188  func (*QueryAccountResponse) Descriptor() ([]byte, []int) {
   189  	return fileDescriptor_c451370b3929a27c, []int{3}
   190  }
   191  func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error {
   192  	return m.Unmarshal(b)
   193  }
   194  func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   195  	if deterministic {
   196  		return xxx_messageInfo_QueryAccountResponse.Marshal(b, m, deterministic)
   197  	} else {
   198  		b = b[:cap(b)]
   199  		n, err := m.MarshalToSizedBuffer(b)
   200  		if err != nil {
   201  			return nil, err
   202  		}
   203  		return b[:n], nil
   204  	}
   205  }
   206  func (m *QueryAccountResponse) XXX_Merge(src proto.Message) {
   207  	xxx_messageInfo_QueryAccountResponse.Merge(m, src)
   208  }
   209  func (m *QueryAccountResponse) XXX_Size() int {
   210  	return m.Size()
   211  }
   212  func (m *QueryAccountResponse) XXX_DiscardUnknown() {
   213  	xxx_messageInfo_QueryAccountResponse.DiscardUnknown(m)
   214  }
   215  
   216  var xxx_messageInfo_QueryAccountResponse proto.InternalMessageInfo
   217  
   218  func (m *QueryAccountResponse) GetAccount() *types.Any {
   219  	if m != nil {
   220  		return m.Account
   221  	}
   222  	return nil
   223  }
   224  
   225  // QueryParamsRequest is the request type for the Query/Params RPC method.
   226  type QueryParamsRequest struct {
   227  }
   228  
   229  func (m *QueryParamsRequest) Reset()         { *m = QueryParamsRequest{} }
   230  func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
   231  func (*QueryParamsRequest) ProtoMessage()    {}
   232  func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
   233  	return fileDescriptor_c451370b3929a27c, []int{4}
   234  }
   235  func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
   236  	return m.Unmarshal(b)
   237  }
   238  func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   239  	if deterministic {
   240  		return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
   241  	} else {
   242  		b = b[:cap(b)]
   243  		n, err := m.MarshalToSizedBuffer(b)
   244  		if err != nil {
   245  			return nil, err
   246  		}
   247  		return b[:n], nil
   248  	}
   249  }
   250  func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
   251  	xxx_messageInfo_QueryParamsRequest.Merge(m, src)
   252  }
   253  func (m *QueryParamsRequest) XXX_Size() int {
   254  	return m.Size()
   255  }
   256  func (m *QueryParamsRequest) XXX_DiscardUnknown() {
   257  	xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
   258  }
   259  
   260  var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
   261  
   262  // QueryParamsResponse is the response type for the Query/Params RPC method.
   263  type QueryParamsResponse struct {
   264  	// params defines the parameters of the module.
   265  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
   266  }
   267  
   268  func (m *QueryParamsResponse) Reset()         { *m = QueryParamsResponse{} }
   269  func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
   270  func (*QueryParamsResponse) ProtoMessage()    {}
   271  func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
   272  	return fileDescriptor_c451370b3929a27c, []int{5}
   273  }
   274  func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
   275  	return m.Unmarshal(b)
   276  }
   277  func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   278  	if deterministic {
   279  		return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
   280  	} else {
   281  		b = b[:cap(b)]
   282  		n, err := m.MarshalToSizedBuffer(b)
   283  		if err != nil {
   284  			return nil, err
   285  		}
   286  		return b[:n], nil
   287  	}
   288  }
   289  func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
   290  	xxx_messageInfo_QueryParamsResponse.Merge(m, src)
   291  }
   292  func (m *QueryParamsResponse) XXX_Size() int {
   293  	return m.Size()
   294  }
   295  func (m *QueryParamsResponse) XXX_DiscardUnknown() {
   296  	xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
   297  }
   298  
   299  var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
   300  
   301  func (m *QueryParamsResponse) GetParams() Params {
   302  	if m != nil {
   303  		return m.Params
   304  	}
   305  	return Params{}
   306  }
   307  
   308  // QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
   309  //
   310  // Since: cosmos-sdk 0.46
   311  type QueryModuleAccountsRequest struct {
   312  }
   313  
   314  func (m *QueryModuleAccountsRequest) Reset()         { *m = QueryModuleAccountsRequest{} }
   315  func (m *QueryModuleAccountsRequest) String() string { return proto.CompactTextString(m) }
   316  func (*QueryModuleAccountsRequest) ProtoMessage()    {}
   317  func (*QueryModuleAccountsRequest) Descriptor() ([]byte, []int) {
   318  	return fileDescriptor_c451370b3929a27c, []int{6}
   319  }
   320  func (m *QueryModuleAccountsRequest) XXX_Unmarshal(b []byte) error {
   321  	return m.Unmarshal(b)
   322  }
   323  func (m *QueryModuleAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   324  	if deterministic {
   325  		return xxx_messageInfo_QueryModuleAccountsRequest.Marshal(b, m, deterministic)
   326  	} else {
   327  		b = b[:cap(b)]
   328  		n, err := m.MarshalToSizedBuffer(b)
   329  		if err != nil {
   330  			return nil, err
   331  		}
   332  		return b[:n], nil
   333  	}
   334  }
   335  func (m *QueryModuleAccountsRequest) XXX_Merge(src proto.Message) {
   336  	xxx_messageInfo_QueryModuleAccountsRequest.Merge(m, src)
   337  }
   338  func (m *QueryModuleAccountsRequest) XXX_Size() int {
   339  	return m.Size()
   340  }
   341  func (m *QueryModuleAccountsRequest) XXX_DiscardUnknown() {
   342  	xxx_messageInfo_QueryModuleAccountsRequest.DiscardUnknown(m)
   343  }
   344  
   345  var xxx_messageInfo_QueryModuleAccountsRequest proto.InternalMessageInfo
   346  
   347  // QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
   348  //
   349  // Since: cosmos-sdk 0.46
   350  type QueryModuleAccountsResponse struct {
   351  	Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
   352  }
   353  
   354  func (m *QueryModuleAccountsResponse) Reset()         { *m = QueryModuleAccountsResponse{} }
   355  func (m *QueryModuleAccountsResponse) String() string { return proto.CompactTextString(m) }
   356  func (*QueryModuleAccountsResponse) ProtoMessage()    {}
   357  func (*QueryModuleAccountsResponse) Descriptor() ([]byte, []int) {
   358  	return fileDescriptor_c451370b3929a27c, []int{7}
   359  }
   360  func (m *QueryModuleAccountsResponse) XXX_Unmarshal(b []byte) error {
   361  	return m.Unmarshal(b)
   362  }
   363  func (m *QueryModuleAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   364  	if deterministic {
   365  		return xxx_messageInfo_QueryModuleAccountsResponse.Marshal(b, m, deterministic)
   366  	} else {
   367  		b = b[:cap(b)]
   368  		n, err := m.MarshalToSizedBuffer(b)
   369  		if err != nil {
   370  			return nil, err
   371  		}
   372  		return b[:n], nil
   373  	}
   374  }
   375  func (m *QueryModuleAccountsResponse) XXX_Merge(src proto.Message) {
   376  	xxx_messageInfo_QueryModuleAccountsResponse.Merge(m, src)
   377  }
   378  func (m *QueryModuleAccountsResponse) XXX_Size() int {
   379  	return m.Size()
   380  }
   381  func (m *QueryModuleAccountsResponse) XXX_DiscardUnknown() {
   382  	xxx_messageInfo_QueryModuleAccountsResponse.DiscardUnknown(m)
   383  }
   384  
   385  var xxx_messageInfo_QueryModuleAccountsResponse proto.InternalMessageInfo
   386  
   387  func (m *QueryModuleAccountsResponse) GetAccounts() []*types.Any {
   388  	if m != nil {
   389  		return m.Accounts
   390  	}
   391  	return nil
   392  }
   393  
   394  // QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
   395  type QueryModuleAccountByNameRequest struct {
   396  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   397  }
   398  
   399  func (m *QueryModuleAccountByNameRequest) Reset()         { *m = QueryModuleAccountByNameRequest{} }
   400  func (m *QueryModuleAccountByNameRequest) String() string { return proto.CompactTextString(m) }
   401  func (*QueryModuleAccountByNameRequest) ProtoMessage()    {}
   402  func (*QueryModuleAccountByNameRequest) Descriptor() ([]byte, []int) {
   403  	return fileDescriptor_c451370b3929a27c, []int{8}
   404  }
   405  func (m *QueryModuleAccountByNameRequest) XXX_Unmarshal(b []byte) error {
   406  	return m.Unmarshal(b)
   407  }
   408  func (m *QueryModuleAccountByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   409  	if deterministic {
   410  		return xxx_messageInfo_QueryModuleAccountByNameRequest.Marshal(b, m, deterministic)
   411  	} else {
   412  		b = b[:cap(b)]
   413  		n, err := m.MarshalToSizedBuffer(b)
   414  		if err != nil {
   415  			return nil, err
   416  		}
   417  		return b[:n], nil
   418  	}
   419  }
   420  func (m *QueryModuleAccountByNameRequest) XXX_Merge(src proto.Message) {
   421  	xxx_messageInfo_QueryModuleAccountByNameRequest.Merge(m, src)
   422  }
   423  func (m *QueryModuleAccountByNameRequest) XXX_Size() int {
   424  	return m.Size()
   425  }
   426  func (m *QueryModuleAccountByNameRequest) XXX_DiscardUnknown() {
   427  	xxx_messageInfo_QueryModuleAccountByNameRequest.DiscardUnknown(m)
   428  }
   429  
   430  var xxx_messageInfo_QueryModuleAccountByNameRequest proto.InternalMessageInfo
   431  
   432  func (m *QueryModuleAccountByNameRequest) GetName() string {
   433  	if m != nil {
   434  		return m.Name
   435  	}
   436  	return ""
   437  }
   438  
   439  // QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
   440  type QueryModuleAccountByNameResponse struct {
   441  	Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
   442  }
   443  
   444  func (m *QueryModuleAccountByNameResponse) Reset()         { *m = QueryModuleAccountByNameResponse{} }
   445  func (m *QueryModuleAccountByNameResponse) String() string { return proto.CompactTextString(m) }
   446  func (*QueryModuleAccountByNameResponse) ProtoMessage()    {}
   447  func (*QueryModuleAccountByNameResponse) Descriptor() ([]byte, []int) {
   448  	return fileDescriptor_c451370b3929a27c, []int{9}
   449  }
   450  func (m *QueryModuleAccountByNameResponse) XXX_Unmarshal(b []byte) error {
   451  	return m.Unmarshal(b)
   452  }
   453  func (m *QueryModuleAccountByNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   454  	if deterministic {
   455  		return xxx_messageInfo_QueryModuleAccountByNameResponse.Marshal(b, m, deterministic)
   456  	} else {
   457  		b = b[:cap(b)]
   458  		n, err := m.MarshalToSizedBuffer(b)
   459  		if err != nil {
   460  			return nil, err
   461  		}
   462  		return b[:n], nil
   463  	}
   464  }
   465  func (m *QueryModuleAccountByNameResponse) XXX_Merge(src proto.Message) {
   466  	xxx_messageInfo_QueryModuleAccountByNameResponse.Merge(m, src)
   467  }
   468  func (m *QueryModuleAccountByNameResponse) XXX_Size() int {
   469  	return m.Size()
   470  }
   471  func (m *QueryModuleAccountByNameResponse) XXX_DiscardUnknown() {
   472  	xxx_messageInfo_QueryModuleAccountByNameResponse.DiscardUnknown(m)
   473  }
   474  
   475  var xxx_messageInfo_QueryModuleAccountByNameResponse proto.InternalMessageInfo
   476  
   477  func (m *QueryModuleAccountByNameResponse) GetAccount() *types.Any {
   478  	if m != nil {
   479  		return m.Account
   480  	}
   481  	return nil
   482  }
   483  
   484  // Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
   485  //
   486  // Since: cosmos-sdk 0.46
   487  type Bech32PrefixRequest struct {
   488  }
   489  
   490  func (m *Bech32PrefixRequest) Reset()         { *m = Bech32PrefixRequest{} }
   491  func (m *Bech32PrefixRequest) String() string { return proto.CompactTextString(m) }
   492  func (*Bech32PrefixRequest) ProtoMessage()    {}
   493  func (*Bech32PrefixRequest) Descriptor() ([]byte, []int) {
   494  	return fileDescriptor_c451370b3929a27c, []int{10}
   495  }
   496  func (m *Bech32PrefixRequest) XXX_Unmarshal(b []byte) error {
   497  	return m.Unmarshal(b)
   498  }
   499  func (m *Bech32PrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   500  	if deterministic {
   501  		return xxx_messageInfo_Bech32PrefixRequest.Marshal(b, m, deterministic)
   502  	} else {
   503  		b = b[:cap(b)]
   504  		n, err := m.MarshalToSizedBuffer(b)
   505  		if err != nil {
   506  			return nil, err
   507  		}
   508  		return b[:n], nil
   509  	}
   510  }
   511  func (m *Bech32PrefixRequest) XXX_Merge(src proto.Message) {
   512  	xxx_messageInfo_Bech32PrefixRequest.Merge(m, src)
   513  }
   514  func (m *Bech32PrefixRequest) XXX_Size() int {
   515  	return m.Size()
   516  }
   517  func (m *Bech32PrefixRequest) XXX_DiscardUnknown() {
   518  	xxx_messageInfo_Bech32PrefixRequest.DiscardUnknown(m)
   519  }
   520  
   521  var xxx_messageInfo_Bech32PrefixRequest proto.InternalMessageInfo
   522  
   523  // Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
   524  //
   525  // Since: cosmos-sdk 0.46
   526  type Bech32PrefixResponse struct {
   527  	Bech32Prefix string `protobuf:"bytes,1,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"`
   528  }
   529  
   530  func (m *Bech32PrefixResponse) Reset()         { *m = Bech32PrefixResponse{} }
   531  func (m *Bech32PrefixResponse) String() string { return proto.CompactTextString(m) }
   532  func (*Bech32PrefixResponse) ProtoMessage()    {}
   533  func (*Bech32PrefixResponse) Descriptor() ([]byte, []int) {
   534  	return fileDescriptor_c451370b3929a27c, []int{11}
   535  }
   536  func (m *Bech32PrefixResponse) XXX_Unmarshal(b []byte) error {
   537  	return m.Unmarshal(b)
   538  }
   539  func (m *Bech32PrefixResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   540  	if deterministic {
   541  		return xxx_messageInfo_Bech32PrefixResponse.Marshal(b, m, deterministic)
   542  	} else {
   543  		b = b[:cap(b)]
   544  		n, err := m.MarshalToSizedBuffer(b)
   545  		if err != nil {
   546  			return nil, err
   547  		}
   548  		return b[:n], nil
   549  	}
   550  }
   551  func (m *Bech32PrefixResponse) XXX_Merge(src proto.Message) {
   552  	xxx_messageInfo_Bech32PrefixResponse.Merge(m, src)
   553  }
   554  func (m *Bech32PrefixResponse) XXX_Size() int {
   555  	return m.Size()
   556  }
   557  func (m *Bech32PrefixResponse) XXX_DiscardUnknown() {
   558  	xxx_messageInfo_Bech32PrefixResponse.DiscardUnknown(m)
   559  }
   560  
   561  var xxx_messageInfo_Bech32PrefixResponse proto.InternalMessageInfo
   562  
   563  func (m *Bech32PrefixResponse) GetBech32Prefix() string {
   564  	if m != nil {
   565  		return m.Bech32Prefix
   566  	}
   567  	return ""
   568  }
   569  
   570  // AddressBytesToStringRequest is the request type for AddressString rpc method.
   571  //
   572  // Since: cosmos-sdk 0.46
   573  type AddressBytesToStringRequest struct {
   574  	AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
   575  }
   576  
   577  func (m *AddressBytesToStringRequest) Reset()         { *m = AddressBytesToStringRequest{} }
   578  func (m *AddressBytesToStringRequest) String() string { return proto.CompactTextString(m) }
   579  func (*AddressBytesToStringRequest) ProtoMessage()    {}
   580  func (*AddressBytesToStringRequest) Descriptor() ([]byte, []int) {
   581  	return fileDescriptor_c451370b3929a27c, []int{12}
   582  }
   583  func (m *AddressBytesToStringRequest) XXX_Unmarshal(b []byte) error {
   584  	return m.Unmarshal(b)
   585  }
   586  func (m *AddressBytesToStringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   587  	if deterministic {
   588  		return xxx_messageInfo_AddressBytesToStringRequest.Marshal(b, m, deterministic)
   589  	} else {
   590  		b = b[:cap(b)]
   591  		n, err := m.MarshalToSizedBuffer(b)
   592  		if err != nil {
   593  			return nil, err
   594  		}
   595  		return b[:n], nil
   596  	}
   597  }
   598  func (m *AddressBytesToStringRequest) XXX_Merge(src proto.Message) {
   599  	xxx_messageInfo_AddressBytesToStringRequest.Merge(m, src)
   600  }
   601  func (m *AddressBytesToStringRequest) XXX_Size() int {
   602  	return m.Size()
   603  }
   604  func (m *AddressBytesToStringRequest) XXX_DiscardUnknown() {
   605  	xxx_messageInfo_AddressBytesToStringRequest.DiscardUnknown(m)
   606  }
   607  
   608  var xxx_messageInfo_AddressBytesToStringRequest proto.InternalMessageInfo
   609  
   610  func (m *AddressBytesToStringRequest) GetAddressBytes() []byte {
   611  	if m != nil {
   612  		return m.AddressBytes
   613  	}
   614  	return nil
   615  }
   616  
   617  // AddressBytesToStringResponse is the response type for AddressString rpc method.
   618  //
   619  // Since: cosmos-sdk 0.46
   620  type AddressBytesToStringResponse struct {
   621  	AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
   622  }
   623  
   624  func (m *AddressBytesToStringResponse) Reset()         { *m = AddressBytesToStringResponse{} }
   625  func (m *AddressBytesToStringResponse) String() string { return proto.CompactTextString(m) }
   626  func (*AddressBytesToStringResponse) ProtoMessage()    {}
   627  func (*AddressBytesToStringResponse) Descriptor() ([]byte, []int) {
   628  	return fileDescriptor_c451370b3929a27c, []int{13}
   629  }
   630  func (m *AddressBytesToStringResponse) XXX_Unmarshal(b []byte) error {
   631  	return m.Unmarshal(b)
   632  }
   633  func (m *AddressBytesToStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   634  	if deterministic {
   635  		return xxx_messageInfo_AddressBytesToStringResponse.Marshal(b, m, deterministic)
   636  	} else {
   637  		b = b[:cap(b)]
   638  		n, err := m.MarshalToSizedBuffer(b)
   639  		if err != nil {
   640  			return nil, err
   641  		}
   642  		return b[:n], nil
   643  	}
   644  }
   645  func (m *AddressBytesToStringResponse) XXX_Merge(src proto.Message) {
   646  	xxx_messageInfo_AddressBytesToStringResponse.Merge(m, src)
   647  }
   648  func (m *AddressBytesToStringResponse) XXX_Size() int {
   649  	return m.Size()
   650  }
   651  func (m *AddressBytesToStringResponse) XXX_DiscardUnknown() {
   652  	xxx_messageInfo_AddressBytesToStringResponse.DiscardUnknown(m)
   653  }
   654  
   655  var xxx_messageInfo_AddressBytesToStringResponse proto.InternalMessageInfo
   656  
   657  func (m *AddressBytesToStringResponse) GetAddressString() string {
   658  	if m != nil {
   659  		return m.AddressString
   660  	}
   661  	return ""
   662  }
   663  
   664  // AddressStringToBytesRequest is the request type for AccountBytes rpc method.
   665  //
   666  // Since: cosmos-sdk 0.46
   667  type AddressStringToBytesRequest struct {
   668  	AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
   669  }
   670  
   671  func (m *AddressStringToBytesRequest) Reset()         { *m = AddressStringToBytesRequest{} }
   672  func (m *AddressStringToBytesRequest) String() string { return proto.CompactTextString(m) }
   673  func (*AddressStringToBytesRequest) ProtoMessage()    {}
   674  func (*AddressStringToBytesRequest) Descriptor() ([]byte, []int) {
   675  	return fileDescriptor_c451370b3929a27c, []int{14}
   676  }
   677  func (m *AddressStringToBytesRequest) XXX_Unmarshal(b []byte) error {
   678  	return m.Unmarshal(b)
   679  }
   680  func (m *AddressStringToBytesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   681  	if deterministic {
   682  		return xxx_messageInfo_AddressStringToBytesRequest.Marshal(b, m, deterministic)
   683  	} else {
   684  		b = b[:cap(b)]
   685  		n, err := m.MarshalToSizedBuffer(b)
   686  		if err != nil {
   687  			return nil, err
   688  		}
   689  		return b[:n], nil
   690  	}
   691  }
   692  func (m *AddressStringToBytesRequest) XXX_Merge(src proto.Message) {
   693  	xxx_messageInfo_AddressStringToBytesRequest.Merge(m, src)
   694  }
   695  func (m *AddressStringToBytesRequest) XXX_Size() int {
   696  	return m.Size()
   697  }
   698  func (m *AddressStringToBytesRequest) XXX_DiscardUnknown() {
   699  	xxx_messageInfo_AddressStringToBytesRequest.DiscardUnknown(m)
   700  }
   701  
   702  var xxx_messageInfo_AddressStringToBytesRequest proto.InternalMessageInfo
   703  
   704  func (m *AddressStringToBytesRequest) GetAddressString() string {
   705  	if m != nil {
   706  		return m.AddressString
   707  	}
   708  	return ""
   709  }
   710  
   711  // AddressStringToBytesResponse is the response type for AddressBytes rpc method.
   712  //
   713  // Since: cosmos-sdk 0.46
   714  type AddressStringToBytesResponse struct {
   715  	AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
   716  }
   717  
   718  func (m *AddressStringToBytesResponse) Reset()         { *m = AddressStringToBytesResponse{} }
   719  func (m *AddressStringToBytesResponse) String() string { return proto.CompactTextString(m) }
   720  func (*AddressStringToBytesResponse) ProtoMessage()    {}
   721  func (*AddressStringToBytesResponse) Descriptor() ([]byte, []int) {
   722  	return fileDescriptor_c451370b3929a27c, []int{15}
   723  }
   724  func (m *AddressStringToBytesResponse) XXX_Unmarshal(b []byte) error {
   725  	return m.Unmarshal(b)
   726  }
   727  func (m *AddressStringToBytesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   728  	if deterministic {
   729  		return xxx_messageInfo_AddressStringToBytesResponse.Marshal(b, m, deterministic)
   730  	} else {
   731  		b = b[:cap(b)]
   732  		n, err := m.MarshalToSizedBuffer(b)
   733  		if err != nil {
   734  			return nil, err
   735  		}
   736  		return b[:n], nil
   737  	}
   738  }
   739  func (m *AddressStringToBytesResponse) XXX_Merge(src proto.Message) {
   740  	xxx_messageInfo_AddressStringToBytesResponse.Merge(m, src)
   741  }
   742  func (m *AddressStringToBytesResponse) XXX_Size() int {
   743  	return m.Size()
   744  }
   745  func (m *AddressStringToBytesResponse) XXX_DiscardUnknown() {
   746  	xxx_messageInfo_AddressStringToBytesResponse.DiscardUnknown(m)
   747  }
   748  
   749  var xxx_messageInfo_AddressStringToBytesResponse proto.InternalMessageInfo
   750  
   751  func (m *AddressStringToBytesResponse) GetAddressBytes() []byte {
   752  	if m != nil {
   753  		return m.AddressBytes
   754  	}
   755  	return nil
   756  }
   757  
   758  // QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
   759  //
   760  // Since: cosmos-sdk 0.46.2
   761  type QueryAccountAddressByIDRequest struct {
   762  	// Deprecated, use account_id instead
   763  	//
   764  	// id is the account number of the address to be queried. This field
   765  	// should have been an uint64 (like all account numbers), and will be
   766  	// updated to uint64 in a future version of the auth query.
   767  	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use.
   768  	// account_id is the account number of the address to be queried.
   769  	//
   770  	// Since: cosmos-sdk 0.47
   771  	AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
   772  }
   773  
   774  func (m *QueryAccountAddressByIDRequest) Reset()         { *m = QueryAccountAddressByIDRequest{} }
   775  func (m *QueryAccountAddressByIDRequest) String() string { return proto.CompactTextString(m) }
   776  func (*QueryAccountAddressByIDRequest) ProtoMessage()    {}
   777  func (*QueryAccountAddressByIDRequest) Descriptor() ([]byte, []int) {
   778  	return fileDescriptor_c451370b3929a27c, []int{16}
   779  }
   780  func (m *QueryAccountAddressByIDRequest) XXX_Unmarshal(b []byte) error {
   781  	return m.Unmarshal(b)
   782  }
   783  func (m *QueryAccountAddressByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   784  	if deterministic {
   785  		return xxx_messageInfo_QueryAccountAddressByIDRequest.Marshal(b, m, deterministic)
   786  	} else {
   787  		b = b[:cap(b)]
   788  		n, err := m.MarshalToSizedBuffer(b)
   789  		if err != nil {
   790  			return nil, err
   791  		}
   792  		return b[:n], nil
   793  	}
   794  }
   795  func (m *QueryAccountAddressByIDRequest) XXX_Merge(src proto.Message) {
   796  	xxx_messageInfo_QueryAccountAddressByIDRequest.Merge(m, src)
   797  }
   798  func (m *QueryAccountAddressByIDRequest) XXX_Size() int {
   799  	return m.Size()
   800  }
   801  func (m *QueryAccountAddressByIDRequest) XXX_DiscardUnknown() {
   802  	xxx_messageInfo_QueryAccountAddressByIDRequest.DiscardUnknown(m)
   803  }
   804  
   805  var xxx_messageInfo_QueryAccountAddressByIDRequest proto.InternalMessageInfo
   806  
   807  // Deprecated: Do not use.
   808  func (m *QueryAccountAddressByIDRequest) GetId() int64 {
   809  	if m != nil {
   810  		return m.Id
   811  	}
   812  	return 0
   813  }
   814  
   815  func (m *QueryAccountAddressByIDRequest) GetAccountId() uint64 {
   816  	if m != nil {
   817  		return m.AccountId
   818  	}
   819  	return 0
   820  }
   821  
   822  // QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
   823  //
   824  // Since: cosmos-sdk 0.46.2
   825  type QueryAccountAddressByIDResponse struct {
   826  	AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
   827  }
   828  
   829  func (m *QueryAccountAddressByIDResponse) Reset()         { *m = QueryAccountAddressByIDResponse{} }
   830  func (m *QueryAccountAddressByIDResponse) String() string { return proto.CompactTextString(m) }
   831  func (*QueryAccountAddressByIDResponse) ProtoMessage()    {}
   832  func (*QueryAccountAddressByIDResponse) Descriptor() ([]byte, []int) {
   833  	return fileDescriptor_c451370b3929a27c, []int{17}
   834  }
   835  func (m *QueryAccountAddressByIDResponse) XXX_Unmarshal(b []byte) error {
   836  	return m.Unmarshal(b)
   837  }
   838  func (m *QueryAccountAddressByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   839  	if deterministic {
   840  		return xxx_messageInfo_QueryAccountAddressByIDResponse.Marshal(b, m, deterministic)
   841  	} else {
   842  		b = b[:cap(b)]
   843  		n, err := m.MarshalToSizedBuffer(b)
   844  		if err != nil {
   845  			return nil, err
   846  		}
   847  		return b[:n], nil
   848  	}
   849  }
   850  func (m *QueryAccountAddressByIDResponse) XXX_Merge(src proto.Message) {
   851  	xxx_messageInfo_QueryAccountAddressByIDResponse.Merge(m, src)
   852  }
   853  func (m *QueryAccountAddressByIDResponse) XXX_Size() int {
   854  	return m.Size()
   855  }
   856  func (m *QueryAccountAddressByIDResponse) XXX_DiscardUnknown() {
   857  	xxx_messageInfo_QueryAccountAddressByIDResponse.DiscardUnknown(m)
   858  }
   859  
   860  var xxx_messageInfo_QueryAccountAddressByIDResponse proto.InternalMessageInfo
   861  
   862  func (m *QueryAccountAddressByIDResponse) GetAccountAddress() string {
   863  	if m != nil {
   864  		return m.AccountAddress
   865  	}
   866  	return ""
   867  }
   868  
   869  // QueryAccountInfoRequest is the Query/AccountInfo request type.
   870  //
   871  // Since: cosmos-sdk 0.47
   872  type QueryAccountInfoRequest struct {
   873  	// address is the account address string.
   874  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   875  }
   876  
   877  func (m *QueryAccountInfoRequest) Reset()         { *m = QueryAccountInfoRequest{} }
   878  func (m *QueryAccountInfoRequest) String() string { return proto.CompactTextString(m) }
   879  func (*QueryAccountInfoRequest) ProtoMessage()    {}
   880  func (*QueryAccountInfoRequest) Descriptor() ([]byte, []int) {
   881  	return fileDescriptor_c451370b3929a27c, []int{18}
   882  }
   883  func (m *QueryAccountInfoRequest) XXX_Unmarshal(b []byte) error {
   884  	return m.Unmarshal(b)
   885  }
   886  func (m *QueryAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   887  	if deterministic {
   888  		return xxx_messageInfo_QueryAccountInfoRequest.Marshal(b, m, deterministic)
   889  	} else {
   890  		b = b[:cap(b)]
   891  		n, err := m.MarshalToSizedBuffer(b)
   892  		if err != nil {
   893  			return nil, err
   894  		}
   895  		return b[:n], nil
   896  	}
   897  }
   898  func (m *QueryAccountInfoRequest) XXX_Merge(src proto.Message) {
   899  	xxx_messageInfo_QueryAccountInfoRequest.Merge(m, src)
   900  }
   901  func (m *QueryAccountInfoRequest) XXX_Size() int {
   902  	return m.Size()
   903  }
   904  func (m *QueryAccountInfoRequest) XXX_DiscardUnknown() {
   905  	xxx_messageInfo_QueryAccountInfoRequest.DiscardUnknown(m)
   906  }
   907  
   908  var xxx_messageInfo_QueryAccountInfoRequest proto.InternalMessageInfo
   909  
   910  func (m *QueryAccountInfoRequest) GetAddress() string {
   911  	if m != nil {
   912  		return m.Address
   913  	}
   914  	return ""
   915  }
   916  
   917  // QueryAccountInfoResponse is the Query/AccountInfo response type.
   918  //
   919  // Since: cosmos-sdk 0.47
   920  type QueryAccountInfoResponse struct {
   921  	// info is the account info which is represented by BaseAccount.
   922  	Info *BaseAccount `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
   923  }
   924  
   925  func (m *QueryAccountInfoResponse) Reset()         { *m = QueryAccountInfoResponse{} }
   926  func (m *QueryAccountInfoResponse) String() string { return proto.CompactTextString(m) }
   927  func (*QueryAccountInfoResponse) ProtoMessage()    {}
   928  func (*QueryAccountInfoResponse) Descriptor() ([]byte, []int) {
   929  	return fileDescriptor_c451370b3929a27c, []int{19}
   930  }
   931  func (m *QueryAccountInfoResponse) XXX_Unmarshal(b []byte) error {
   932  	return m.Unmarshal(b)
   933  }
   934  func (m *QueryAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   935  	if deterministic {
   936  		return xxx_messageInfo_QueryAccountInfoResponse.Marshal(b, m, deterministic)
   937  	} else {
   938  		b = b[:cap(b)]
   939  		n, err := m.MarshalToSizedBuffer(b)
   940  		if err != nil {
   941  			return nil, err
   942  		}
   943  		return b[:n], nil
   944  	}
   945  }
   946  func (m *QueryAccountInfoResponse) XXX_Merge(src proto.Message) {
   947  	xxx_messageInfo_QueryAccountInfoResponse.Merge(m, src)
   948  }
   949  func (m *QueryAccountInfoResponse) XXX_Size() int {
   950  	return m.Size()
   951  }
   952  func (m *QueryAccountInfoResponse) XXX_DiscardUnknown() {
   953  	xxx_messageInfo_QueryAccountInfoResponse.DiscardUnknown(m)
   954  }
   955  
   956  var xxx_messageInfo_QueryAccountInfoResponse proto.InternalMessageInfo
   957  
   958  func (m *QueryAccountInfoResponse) GetInfo() *BaseAccount {
   959  	if m != nil {
   960  		return m.Info
   961  	}
   962  	return nil
   963  }
   964  
   965  func init() {
   966  	proto.RegisterType((*QueryAccountsRequest)(nil), "cosmos.auth.v1beta1.QueryAccountsRequest")
   967  	proto.RegisterType((*QueryAccountsResponse)(nil), "cosmos.auth.v1beta1.QueryAccountsResponse")
   968  	proto.RegisterType((*QueryAccountRequest)(nil), "cosmos.auth.v1beta1.QueryAccountRequest")
   969  	proto.RegisterType((*QueryAccountResponse)(nil), "cosmos.auth.v1beta1.QueryAccountResponse")
   970  	proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.auth.v1beta1.QueryParamsRequest")
   971  	proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.auth.v1beta1.QueryParamsResponse")
   972  	proto.RegisterType((*QueryModuleAccountsRequest)(nil), "cosmos.auth.v1beta1.QueryModuleAccountsRequest")
   973  	proto.RegisterType((*QueryModuleAccountsResponse)(nil), "cosmos.auth.v1beta1.QueryModuleAccountsResponse")
   974  	proto.RegisterType((*QueryModuleAccountByNameRequest)(nil), "cosmos.auth.v1beta1.QueryModuleAccountByNameRequest")
   975  	proto.RegisterType((*QueryModuleAccountByNameResponse)(nil), "cosmos.auth.v1beta1.QueryModuleAccountByNameResponse")
   976  	proto.RegisterType((*Bech32PrefixRequest)(nil), "cosmos.auth.v1beta1.Bech32PrefixRequest")
   977  	proto.RegisterType((*Bech32PrefixResponse)(nil), "cosmos.auth.v1beta1.Bech32PrefixResponse")
   978  	proto.RegisterType((*AddressBytesToStringRequest)(nil), "cosmos.auth.v1beta1.AddressBytesToStringRequest")
   979  	proto.RegisterType((*AddressBytesToStringResponse)(nil), "cosmos.auth.v1beta1.AddressBytesToStringResponse")
   980  	proto.RegisterType((*AddressStringToBytesRequest)(nil), "cosmos.auth.v1beta1.AddressStringToBytesRequest")
   981  	proto.RegisterType((*AddressStringToBytesResponse)(nil), "cosmos.auth.v1beta1.AddressStringToBytesResponse")
   982  	proto.RegisterType((*QueryAccountAddressByIDRequest)(nil), "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest")
   983  	proto.RegisterType((*QueryAccountAddressByIDResponse)(nil), "cosmos.auth.v1beta1.QueryAccountAddressByIDResponse")
   984  	proto.RegisterType((*QueryAccountInfoRequest)(nil), "cosmos.auth.v1beta1.QueryAccountInfoRequest")
   985  	proto.RegisterType((*QueryAccountInfoResponse)(nil), "cosmos.auth.v1beta1.QueryAccountInfoResponse")
   986  }
   987  
   988  func init() { proto.RegisterFile("cosmos/auth/v1beta1/query.proto", fileDescriptor_c451370b3929a27c) }
   989  
   990  var fileDescriptor_c451370b3929a27c = []byte{
   991  	// 1065 bytes of a gzipped FileDescriptorProto
   992  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0xe3, 0x44,
   993  	0x14, 0xc7, 0xe3, 0x6e, 0x69, 0xbb, 0xaf, 0xd9, 0x22, 0x4d, 0xb3, 0x22, 0x38, 0x6d, 0x12, 0xb9,
   994  	0xd0, 0xa6, 0x65, 0x63, 0xd3, 0x34, 0x2b, 0xf1, 0xe3, 0x54, 0xef, 0x02, 0xea, 0x61, 0x51, 0x70,
   995  	0x57, 0x08, 0x71, 0x20, 0x72, 0x62, 0x27, 0xb5, 0xd8, 0x78, 0xb2, 0xb1, 0x03, 0x1b, 0xaa, 0x5c,
   996  	0x90, 0x90, 0x7a, 0x41, 0x42, 0x82, 0x3f, 0x60, 0x0f, 0x88, 0xf3, 0x22, 0x95, 0x1b, 0x7f, 0xc0,
   997  	0x6a, 0x4f, 0x2b, 0xb8, 0x70, 0x42, 0xa8, 0x45, 0x82, 0x1b, 0xff, 0x02, 0xca, 0xcc, 0xb3, 0x63,
   998  	0xb7, 0x93, 0xc4, 0x85, 0x53, 0x9d, 0x99, 0xf7, 0xbe, 0xef, 0x33, 0x6f, 0x9e, 0xfd, 0x2d, 0x14,
   999  	0x9a, 0xd4, 0xeb, 0x50, 0x4f, 0x33, 0xfb, 0xfe, 0x91, 0xf6, 0xd9, 0x6e, 0xc3, 0xf6, 0xcd, 0x5d,
  1000  	0xed, 0x61, 0xdf, 0xee, 0x0d, 0xd4, 0x6e, 0x8f, 0xfa, 0x94, 0xac, 0xf2, 0x00, 0x75, 0x14, 0xa0,
  1001  	0x62, 0x80, 0xbc, 0x83, 0x59, 0x0d, 0xd3, 0xb3, 0x79, 0x74, 0x98, 0xdb, 0x35, 0xdb, 0x8e, 0x6b,
  1002  	0xfa, 0x0e, 0x75, 0xb9, 0x80, 0x9c, 0x69, 0xd3, 0x36, 0x65, 0x8f, 0xda, 0xe8, 0x09, 0x57, 0x5f,
  1003  	0x6e, 0x53, 0xda, 0x7e, 0x60, 0x6b, 0xec, 0x57, 0xa3, 0xdf, 0xd2, 0x4c, 0x17, 0x2b, 0xca, 0x6b,
  1004  	0xb8, 0x65, 0x76, 0x1d, 0xcd, 0x74, 0x5d, 0xea, 0x33, 0x35, 0x0f, 0x77, 0xf3, 0x22, 0x60, 0x06,
  1005  	0x87, 0xc2, 0x7c, 0xbf, 0xce, 0x2b, 0x22, 0x3c, 0xdf, 0xca, 0x61, 0x6a, 0x00, 0x1c, 0x3d, 0xa7,
  1006  	0xf2, 0x09, 0x64, 0x3e, 0x18, 0xfd, 0xdc, 0x6f, 0x36, 0x69, 0xdf, 0xf5, 0x3d, 0xc3, 0x7e, 0xd8,
  1007  	0xb7, 0x3d, 0x9f, 0xbc, 0x0b, 0x30, 0x3e, 0x52, 0x56, 0x2a, 0x4a, 0xa5, 0xe5, 0xca, 0xa6, 0x8a,
  1008  	0xba, 0xa3, 0xf3, 0xab, 0x5c, 0x05, 0x51, 0xd4, 0x9a, 0xd9, 0xb6, 0x31, 0xd7, 0x88, 0x64, 0x2a,
  1009  	0xa7, 0x12, 0xdc, 0xbc, 0x50, 0xc0, 0xeb, 0x52, 0xd7, 0xb3, 0x89, 0x01, 0x4b, 0x26, 0xae, 0x65,
  1010  	0xa5, 0xe2, 0xb5, 0xd2, 0x72, 0x25, 0xa3, 0xf2, 0x16, 0xa8, 0x41, 0x77, 0xd4, 0x7d, 0x77, 0xa0,
  1011  	0x17, 0x9f, 0x9d, 0x96, 0xd7, 0x04, 0xb7, 0xa1, 0xa2, 0xe2, 0x81, 0x11, 0xea, 0x90, 0xf7, 0x62,
  1012  	0xd4, 0x73, 0x8c, 0x7a, 0x6b, 0x26, 0x35, 0x07, 0x8a, 0x61, 0x1f, 0xc2, 0x6a, 0x94, 0x3a, 0xe8,
  1013  	0x4a, 0x05, 0x16, 0x4d, 0xcb, 0xea, 0xd9, 0x9e, 0xc7, 0x5a, 0x72, 0x5d, 0xcf, 0xfe, 0x72, 0x5a,
  1014  	0xce, 0xa0, 0xfe, 0x3e, 0xdf, 0x39, 0xf4, 0x7b, 0x8e, 0xdb, 0x36, 0x82, 0xc0, 0xb7, 0x96, 0x4e,
  1015  	0x1e, 0x17, 0x52, 0x7f, 0x3f, 0x2e, 0xa4, 0x94, 0xa3, 0x78, 0xaf, 0xc3, 0x4e, 0xd4, 0x60, 0x11,
  1016  	0x4f, 0x80, 0x8d, 0xfe, 0xaf, 0x8d, 0x08, 0x64, 0x94, 0x0c, 0x10, 0x56, 0xa9, 0x66, 0xf6, 0xcc,
  1017  	0x4e, 0x70, 0xa7, 0x4a, 0x0d, 0x0f, 0x15, 0xac, 0x62, 0xf9, 0x37, 0x61, 0xa1, 0xcb, 0x56, 0xb0,
  1018  	0x7a, 0x4e, 0x15, 0x15, 0xe1, 0x49, 0xfa, 0xfc, 0xd3, 0xdf, 0x0b, 0x29, 0x03, 0x13, 0x94, 0x35,
  1019  	0x90, 0x99, 0xe2, 0x3d, 0x6a, 0xf5, 0x1f, 0xd8, 0x17, 0x66, 0x48, 0xf9, 0x1c, 0x72, 0xc2, 0x5d,
  1020  	0xac, 0xfb, 0x51, 0xc2, 0x01, 0xd8, 0x7c, 0x76, 0x5a, 0x56, 0x44, 0x48, 0x31, 0xdd, 0xc8, 0x18,
  1021  	0x28, 0xb7, 0xa1, 0x70, 0xb9, 0xb0, 0x3e, 0x78, 0xdf, 0xec, 0x04, 0x33, 0x4a, 0x08, 0xcc, 0xbb,
  1022  	0x66, 0xc7, 0xe6, 0xd7, 0x68, 0xb0, 0x67, 0xe5, 0x0b, 0x28, 0x4e, 0x4e, 0x43, 0xe8, 0x0f, 0x93,
  1023  	0xdd, 0x55, 0x52, 0xe6, 0xf0, 0xc6, 0x6e, 0xc2, 0xaa, 0x6e, 0x37, 0x8f, 0xf6, 0x2a, 0xb5, 0x9e,
  1024  	0xdd, 0x72, 0x1e, 0x05, 0x2d, 0x7c, 0x1b, 0x32, 0xf1, 0x65, 0xc4, 0xd8, 0x80, 0x1b, 0x0d, 0xb6,
  1025  	0x5e, 0xef, 0xb2, 0x0d, 0x3c, 0x47, 0xba, 0x11, 0x09, 0x56, 0x74, 0xc8, 0xe1, 0x4c, 0xea, 0x03,
  1026  	0xdf, 0xf6, 0xee, 0x53, 0x1c, 0x4d, 0x6c, 0xc1, 0x06, 0xdc, 0xc0, 0x19, 0xad, 0x37, 0x46, 0xfb,
  1027  	0x4c, 0x23, 0x6d, 0xa4, 0xcd, 0x48, 0x8e, 0xf2, 0x0e, 0xac, 0x89, 0x35, 0x10, 0xe4, 0x55, 0x58,
  1028  	0x09, 0x44, 0x3c, 0xb6, 0x83, 0x24, 0x81, 0x34, 0x0f, 0x57, 0xee, 0x86, 0x28, 0x7c, 0xe1, 0x3e,
  1029  	0x65, 0x72, 0x01, 0x4a, 0x42, 0x95, 0x3b, 0x21, 0xcc, 0x05, 0x95, 0x71, 0x57, 0x66, 0x9f, 0xe8,
  1030  	0x10, 0xf2, 0xd1, 0xb7, 0x30, 0x3c, 0xdd, 0xc1, 0xdd, 0xf1, 0x6c, 0xcc, 0x39, 0x16, 0xcb, 0xbd,
  1031  	0xa6, 0xcf, 0x65, 0x25, 0x63, 0xce, 0xb1, 0xc8, 0x3a, 0x00, 0x5e, 0x55, 0xdd, 0xb1, 0xd8, 0x97,
  1032  	0x65, 0xde, 0xb8, 0x8e, 0x2b, 0x07, 0x96, 0x62, 0xe1, 0xc4, 0x89, 0x44, 0x11, 0x6e, 0x1f, 0x5e,
  1033  	0x0c, 0x14, 0x92, 0x7e, 0x43, 0x56, 0xcc, 0x98, 0x9c, 0x72, 0x0f, 0x5e, 0x8a, 0x56, 0x39, 0x70,
  1034  	0x5b, 0xf4, 0x7f, 0x7c, 0x99, 0x94, 0x1a, 0x64, 0x2f, 0xcb, 0x21, 0x6d, 0x15, 0xe6, 0x1d, 0xb7,
  1035  	0x45, 0x71, 0xc8, 0x8b, 0xc2, 0x4f, 0x82, 0x6e, 0x7a, 0xc1, 0x24, 0x1b, 0x2c, 0xba, 0xf2, 0x4f,
  1036  	0x1a, 0x5e, 0x60, 0x92, 0xe4, 0x6b, 0x09, 0x96, 0x82, 0x37, 0x9e, 0x6c, 0x0b, 0xd3, 0x45, 0xbe,
  1037  	0x23, 0xef, 0x24, 0x09, 0xe5, 0x8c, 0xca, 0xce, 0xc9, 0x5f, 0x4f, 0x76, 0xa4, 0x2f, 0x7f, 0xfd,
  1038  	0xf3, 0xdb, 0xb9, 0x02, 0x59, 0xd7, 0x84, 0x0e, 0x19, 0x20, 0x7c, 0x27, 0xc1, 0x22, 0x0a, 0x90,
  1039  	0xd2, 0xcc, 0x1a, 0x01, 0xcd, 0x76, 0x82, 0x48, 0x84, 0xa9, 0x8e, 0x61, 0xb6, 0xc9, 0xd6, 0x54,
  1040  	0x18, 0xed, 0x18, 0x6f, 0x60, 0x48, 0x7e, 0x92, 0x80, 0x5c, 0x9e, 0x19, 0xb2, 0x37, 0xb3, 0xee,
  1041  	0xe5, 0xb1, 0x95, 0xab, 0x57, 0x4b, 0xba, 0x02, 0x77, 0xf8, 0x4e, 0xd5, 0x1d, 0x4b, 0x3b, 0x76,
  1042  	0xac, 0x21, 0xf9, 0x4a, 0x82, 0x05, 0xee, 0x08, 0x64, 0x6b, 0x72, 0xd9, 0x98, 0xfd, 0xc8, 0xa5,
  1043  	0xd9, 0x81, 0xc8, 0x54, 0x1a, 0x33, 0xad, 0x93, 0x9c, 0x90, 0x89, 0x1b, 0x10, 0xf9, 0x41, 0x82,
  1044  	0x95, 0xb8, 0xbd, 0x10, 0x6d, 0x72, 0x19, 0xa1, 0x4d, 0xc9, 0xaf, 0x27, 0x4f, 0x40, 0xbe, 0xdd,
  1045  	0x31, 0xdf, 0x26, 0x79, 0x45, 0xc8, 0xd7, 0x61, 0x99, 0xf5, 0x70, 0xfe, 0x7e, 0x96, 0x60, 0x55,
  1046  	0xe0, 0x2b, 0xa4, 0x9a, 0xb0, 0x78, 0xcc, 0xbd, 0xe4, 0xdb, 0x57, 0xcc, 0x42, 0xee, 0x37, 0xc6,
  1047  	0xdc, 0x65, 0xf2, 0x5a, 0x12, 0x6e, 0xed, 0x78, 0xe4, 0x8c, 0x43, 0x72, 0x22, 0x41, 0x3a, 0x6a,
  1048  	0x44, 0x13, 0xde, 0x21, 0x81, 0x85, 0x4d, 0x78, 0x87, 0x44, 0xae, 0xa6, 0x6c, 0x4c, 0xbd, 0x72,
  1049  	0xee, 0x6d, 0xe4, 0x89, 0x04, 0x19, 0x91, 0x25, 0x11, 0xf1, 0x3d, 0x4e, 0x71, 0x40, 0x79, 0xf7,
  1050  	0x0a, 0x19, 0x88, 0xb8, 0x37, 0xb5, 0x7b, 0x1c, 0x31, 0x7c, 0xbf, 0xb9, 0x0b, 0x0d, 0xc9, 0x8f,
  1051  	0x63, 0xe4, 0x98, 0x71, 0x4d, 0x47, 0x16, 0x39, 0xe5, 0x74, 0x64, 0xa1, 0x2b, 0x2a, 0x55, 0x86,
  1052  	0xac, 0x92, 0x5b, 0x89, 0x90, 0xb9, 0xff, 0x0e, 0xc9, 0xf7, 0x12, 0x2c, 0x47, 0x8c, 0x81, 0xdc,
  1053  	0x9a, 0xf9, 0x75, 0x89, 0xd8, 0x91, 0x5c, 0x4e, 0x18, 0x9d, 0x7c, 0x30, 0x43, 0xf7, 0x75, 0x5b,
  1054  	0x74, 0xfc, 0x01, 0xd5, 0xef, 0x3c, 0x3d, 0xcb, 0x4b, 0xcf, 0xcf, 0xf2, 0xd2, 0x1f, 0x67, 0x79,
  1055  	0xe9, 0x9b, 0xf3, 0x7c, 0xea, 0xf9, 0x79, 0x3e, 0xf5, 0xdb, 0x79, 0x3e, 0xf5, 0xf1, 0x76, 0xdb,
  1056  	0xf1, 0x8f, 0xfa, 0x0d, 0xb5, 0x49, 0x3b, 0x81, 0x20, 0xff, 0x53, 0xf6, 0xac, 0x4f, 0xb5, 0x47,
  1057  	0x5c, 0xdd, 0x1f, 0x74, 0x6d, 0xaf, 0xb1, 0xc0, 0xfe, 0x77, 0xdb, 0xfb, 0x37, 0x00, 0x00, 0xff,
  1058  	0xff, 0x1f, 0xa2, 0x5f, 0xef, 0x16, 0x0e, 0x00, 0x00,
  1059  }
  1060  
  1061  // Reference imports to suppress errors if they are not otherwise used.
  1062  var _ context.Context
  1063  var _ grpc.ClientConn
  1064  
  1065  // This is a compile-time assertion to ensure that this generated file
  1066  // is compatible with the grpc package it is being compiled against.
  1067  const _ = grpc.SupportPackageIsVersion4
  1068  
  1069  // QueryClient is the client API for Query service.
  1070  //
  1071  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1072  type QueryClient interface {
  1073  	// Accounts returns all the existing accounts.
  1074  	//
  1075  	// When called from another module, this query might consume a high amount of
  1076  	// gas if the pagination field is incorrectly set.
  1077  	//
  1078  	// Since: cosmos-sdk 0.43
  1079  	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
  1080  	// Account returns account details based on address.
  1081  	Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
  1082  	// AccountAddressByID returns account address based on account number.
  1083  	//
  1084  	// Since: cosmos-sdk 0.46.2
  1085  	AccountAddressByID(ctx context.Context, in *QueryAccountAddressByIDRequest, opts ...grpc.CallOption) (*QueryAccountAddressByIDResponse, error)
  1086  	// Params queries all parameters.
  1087  	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
  1088  	// ModuleAccounts returns all the existing module accounts.
  1089  	//
  1090  	// Since: cosmos-sdk 0.46
  1091  	ModuleAccounts(ctx context.Context, in *QueryModuleAccountsRequest, opts ...grpc.CallOption) (*QueryModuleAccountsResponse, error)
  1092  	// ModuleAccountByName returns the module account info by module name
  1093  	ModuleAccountByName(ctx context.Context, in *QueryModuleAccountByNameRequest, opts ...grpc.CallOption) (*QueryModuleAccountByNameResponse, error)
  1094  	// Bech32Prefix queries bech32Prefix
  1095  	//
  1096  	// Since: cosmos-sdk 0.46
  1097  	Bech32Prefix(ctx context.Context, in *Bech32PrefixRequest, opts ...grpc.CallOption) (*Bech32PrefixResponse, error)
  1098  	// AddressBytesToString converts Account Address bytes to string
  1099  	//
  1100  	// Since: cosmos-sdk 0.46
  1101  	AddressBytesToString(ctx context.Context, in *AddressBytesToStringRequest, opts ...grpc.CallOption) (*AddressBytesToStringResponse, error)
  1102  	// AddressStringToBytes converts Address string to bytes
  1103  	//
  1104  	// Since: cosmos-sdk 0.46
  1105  	AddressStringToBytes(ctx context.Context, in *AddressStringToBytesRequest, opts ...grpc.CallOption) (*AddressStringToBytesResponse, error)
  1106  	// AccountInfo queries account info which is common to all account types.
  1107  	//
  1108  	// Since: cosmos-sdk 0.47
  1109  	AccountInfo(ctx context.Context, in *QueryAccountInfoRequest, opts ...grpc.CallOption) (*QueryAccountInfoResponse, error)
  1110  }
  1111  
  1112  type queryClient struct {
  1113  	cc grpc1.ClientConn
  1114  }
  1115  
  1116  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
  1117  	return &queryClient{cc}
  1118  }
  1119  
  1120  func (c *queryClient) Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) {
  1121  	out := new(QueryAccountsResponse)
  1122  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Accounts", in, out, opts...)
  1123  	if err != nil {
  1124  		return nil, err
  1125  	}
  1126  	return out, nil
  1127  }
  1128  
  1129  func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) {
  1130  	out := new(QueryAccountResponse)
  1131  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Account", in, out, opts...)
  1132  	if err != nil {
  1133  		return nil, err
  1134  	}
  1135  	return out, nil
  1136  }
  1137  
  1138  func (c *queryClient) AccountAddressByID(ctx context.Context, in *QueryAccountAddressByIDRequest, opts ...grpc.CallOption) (*QueryAccountAddressByIDResponse, error) {
  1139  	out := new(QueryAccountAddressByIDResponse)
  1140  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/AccountAddressByID", in, out, opts...)
  1141  	if err != nil {
  1142  		return nil, err
  1143  	}
  1144  	return out, nil
  1145  }
  1146  
  1147  func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
  1148  	out := new(QueryParamsResponse)
  1149  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Params", in, out, opts...)
  1150  	if err != nil {
  1151  		return nil, err
  1152  	}
  1153  	return out, nil
  1154  }
  1155  
  1156  func (c *queryClient) ModuleAccounts(ctx context.Context, in *QueryModuleAccountsRequest, opts ...grpc.CallOption) (*QueryModuleAccountsResponse, error) {
  1157  	out := new(QueryModuleAccountsResponse)
  1158  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/ModuleAccounts", in, out, opts...)
  1159  	if err != nil {
  1160  		return nil, err
  1161  	}
  1162  	return out, nil
  1163  }
  1164  
  1165  func (c *queryClient) ModuleAccountByName(ctx context.Context, in *QueryModuleAccountByNameRequest, opts ...grpc.CallOption) (*QueryModuleAccountByNameResponse, error) {
  1166  	out := new(QueryModuleAccountByNameResponse)
  1167  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/ModuleAccountByName", in, out, opts...)
  1168  	if err != nil {
  1169  		return nil, err
  1170  	}
  1171  	return out, nil
  1172  }
  1173  
  1174  func (c *queryClient) Bech32Prefix(ctx context.Context, in *Bech32PrefixRequest, opts ...grpc.CallOption) (*Bech32PrefixResponse, error) {
  1175  	out := new(Bech32PrefixResponse)
  1176  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Bech32Prefix", in, out, opts...)
  1177  	if err != nil {
  1178  		return nil, err
  1179  	}
  1180  	return out, nil
  1181  }
  1182  
  1183  func (c *queryClient) AddressBytesToString(ctx context.Context, in *AddressBytesToStringRequest, opts ...grpc.CallOption) (*AddressBytesToStringResponse, error) {
  1184  	out := new(AddressBytesToStringResponse)
  1185  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/AddressBytesToString", in, out, opts...)
  1186  	if err != nil {
  1187  		return nil, err
  1188  	}
  1189  	return out, nil
  1190  }
  1191  
  1192  func (c *queryClient) AddressStringToBytes(ctx context.Context, in *AddressStringToBytesRequest, opts ...grpc.CallOption) (*AddressStringToBytesResponse, error) {
  1193  	out := new(AddressStringToBytesResponse)
  1194  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/AddressStringToBytes", in, out, opts...)
  1195  	if err != nil {
  1196  		return nil, err
  1197  	}
  1198  	return out, nil
  1199  }
  1200  
  1201  func (c *queryClient) AccountInfo(ctx context.Context, in *QueryAccountInfoRequest, opts ...grpc.CallOption) (*QueryAccountInfoResponse, error) {
  1202  	out := new(QueryAccountInfoResponse)
  1203  	err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/AccountInfo", in, out, opts...)
  1204  	if err != nil {
  1205  		return nil, err
  1206  	}
  1207  	return out, nil
  1208  }
  1209  
  1210  // QueryServer is the server API for Query service.
  1211  type QueryServer interface {
  1212  	// Accounts returns all the existing accounts.
  1213  	//
  1214  	// When called from another module, this query might consume a high amount of
  1215  	// gas if the pagination field is incorrectly set.
  1216  	//
  1217  	// Since: cosmos-sdk 0.43
  1218  	Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
  1219  	// Account returns account details based on address.
  1220  	Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
  1221  	// AccountAddressByID returns account address based on account number.
  1222  	//
  1223  	// Since: cosmos-sdk 0.46.2
  1224  	AccountAddressByID(context.Context, *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
  1225  	// Params queries all parameters.
  1226  	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
  1227  	// ModuleAccounts returns all the existing module accounts.
  1228  	//
  1229  	// Since: cosmos-sdk 0.46
  1230  	ModuleAccounts(context.Context, *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error)
  1231  	// ModuleAccountByName returns the module account info by module name
  1232  	ModuleAccountByName(context.Context, *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error)
  1233  	// Bech32Prefix queries bech32Prefix
  1234  	//
  1235  	// Since: cosmos-sdk 0.46
  1236  	Bech32Prefix(context.Context, *Bech32PrefixRequest) (*Bech32PrefixResponse, error)
  1237  	// AddressBytesToString converts Account Address bytes to string
  1238  	//
  1239  	// Since: cosmos-sdk 0.46
  1240  	AddressBytesToString(context.Context, *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error)
  1241  	// AddressStringToBytes converts Address string to bytes
  1242  	//
  1243  	// Since: cosmos-sdk 0.46
  1244  	AddressStringToBytes(context.Context, *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error)
  1245  	// AccountInfo queries account info which is common to all account types.
  1246  	//
  1247  	// Since: cosmos-sdk 0.47
  1248  	AccountInfo(context.Context, *QueryAccountInfoRequest) (*QueryAccountInfoResponse, error)
  1249  }
  1250  
  1251  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  1252  type UnimplementedQueryServer struct {
  1253  }
  1254  
  1255  func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error) {
  1256  	return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented")
  1257  }
  1258  func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) {
  1259  	return nil, status.Errorf(codes.Unimplemented, "method Account not implemented")
  1260  }
  1261  func (*UnimplementedQueryServer) AccountAddressByID(ctx context.Context, req *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error) {
  1262  	return nil, status.Errorf(codes.Unimplemented, "method AccountAddressByID not implemented")
  1263  }
  1264  func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
  1265  	return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
  1266  }
  1267  func (*UnimplementedQueryServer) ModuleAccounts(ctx context.Context, req *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error) {
  1268  	return nil, status.Errorf(codes.Unimplemented, "method ModuleAccounts not implemented")
  1269  }
  1270  func (*UnimplementedQueryServer) ModuleAccountByName(ctx context.Context, req *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error) {
  1271  	return nil, status.Errorf(codes.Unimplemented, "method ModuleAccountByName not implemented")
  1272  }
  1273  func (*UnimplementedQueryServer) Bech32Prefix(ctx context.Context, req *Bech32PrefixRequest) (*Bech32PrefixResponse, error) {
  1274  	return nil, status.Errorf(codes.Unimplemented, "method Bech32Prefix not implemented")
  1275  }
  1276  func (*UnimplementedQueryServer) AddressBytesToString(ctx context.Context, req *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error) {
  1277  	return nil, status.Errorf(codes.Unimplemented, "method AddressBytesToString not implemented")
  1278  }
  1279  func (*UnimplementedQueryServer) AddressStringToBytes(ctx context.Context, req *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error) {
  1280  	return nil, status.Errorf(codes.Unimplemented, "method AddressStringToBytes not implemented")
  1281  }
  1282  func (*UnimplementedQueryServer) AccountInfo(ctx context.Context, req *QueryAccountInfoRequest) (*QueryAccountInfoResponse, error) {
  1283  	return nil, status.Errorf(codes.Unimplemented, "method AccountInfo not implemented")
  1284  }
  1285  
  1286  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  1287  	s.RegisterService(&_Query_serviceDesc, srv)
  1288  }
  1289  
  1290  func _Query_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1291  	in := new(QueryAccountsRequest)
  1292  	if err := dec(in); err != nil {
  1293  		return nil, err
  1294  	}
  1295  	if interceptor == nil {
  1296  		return srv.(QueryServer).Accounts(ctx, in)
  1297  	}
  1298  	info := &grpc.UnaryServerInfo{
  1299  		Server:     srv,
  1300  		FullMethod: "/cosmos.auth.v1beta1.Query/Accounts",
  1301  	}
  1302  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1303  		return srv.(QueryServer).Accounts(ctx, req.(*QueryAccountsRequest))
  1304  	}
  1305  	return interceptor(ctx, in, info, handler)
  1306  }
  1307  
  1308  func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1309  	in := new(QueryAccountRequest)
  1310  	if err := dec(in); err != nil {
  1311  		return nil, err
  1312  	}
  1313  	if interceptor == nil {
  1314  		return srv.(QueryServer).Account(ctx, in)
  1315  	}
  1316  	info := &grpc.UnaryServerInfo{
  1317  		Server:     srv,
  1318  		FullMethod: "/cosmos.auth.v1beta1.Query/Account",
  1319  	}
  1320  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1321  		return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest))
  1322  	}
  1323  	return interceptor(ctx, in, info, handler)
  1324  }
  1325  
  1326  func _Query_AccountAddressByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1327  	in := new(QueryAccountAddressByIDRequest)
  1328  	if err := dec(in); err != nil {
  1329  		return nil, err
  1330  	}
  1331  	if interceptor == nil {
  1332  		return srv.(QueryServer).AccountAddressByID(ctx, in)
  1333  	}
  1334  	info := &grpc.UnaryServerInfo{
  1335  		Server:     srv,
  1336  		FullMethod: "/cosmos.auth.v1beta1.Query/AccountAddressByID",
  1337  	}
  1338  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1339  		return srv.(QueryServer).AccountAddressByID(ctx, req.(*QueryAccountAddressByIDRequest))
  1340  	}
  1341  	return interceptor(ctx, in, info, handler)
  1342  }
  1343  
  1344  func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1345  	in := new(QueryParamsRequest)
  1346  	if err := dec(in); err != nil {
  1347  		return nil, err
  1348  	}
  1349  	if interceptor == nil {
  1350  		return srv.(QueryServer).Params(ctx, in)
  1351  	}
  1352  	info := &grpc.UnaryServerInfo{
  1353  		Server:     srv,
  1354  		FullMethod: "/cosmos.auth.v1beta1.Query/Params",
  1355  	}
  1356  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1357  		return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
  1358  	}
  1359  	return interceptor(ctx, in, info, handler)
  1360  }
  1361  
  1362  func _Query_ModuleAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1363  	in := new(QueryModuleAccountsRequest)
  1364  	if err := dec(in); err != nil {
  1365  		return nil, err
  1366  	}
  1367  	if interceptor == nil {
  1368  		return srv.(QueryServer).ModuleAccounts(ctx, in)
  1369  	}
  1370  	info := &grpc.UnaryServerInfo{
  1371  		Server:     srv,
  1372  		FullMethod: "/cosmos.auth.v1beta1.Query/ModuleAccounts",
  1373  	}
  1374  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1375  		return srv.(QueryServer).ModuleAccounts(ctx, req.(*QueryModuleAccountsRequest))
  1376  	}
  1377  	return interceptor(ctx, in, info, handler)
  1378  }
  1379  
  1380  func _Query_ModuleAccountByName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1381  	in := new(QueryModuleAccountByNameRequest)
  1382  	if err := dec(in); err != nil {
  1383  		return nil, err
  1384  	}
  1385  	if interceptor == nil {
  1386  		return srv.(QueryServer).ModuleAccountByName(ctx, in)
  1387  	}
  1388  	info := &grpc.UnaryServerInfo{
  1389  		Server:     srv,
  1390  		FullMethod: "/cosmos.auth.v1beta1.Query/ModuleAccountByName",
  1391  	}
  1392  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1393  		return srv.(QueryServer).ModuleAccountByName(ctx, req.(*QueryModuleAccountByNameRequest))
  1394  	}
  1395  	return interceptor(ctx, in, info, handler)
  1396  }
  1397  
  1398  func _Query_Bech32Prefix_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1399  	in := new(Bech32PrefixRequest)
  1400  	if err := dec(in); err != nil {
  1401  		return nil, err
  1402  	}
  1403  	if interceptor == nil {
  1404  		return srv.(QueryServer).Bech32Prefix(ctx, in)
  1405  	}
  1406  	info := &grpc.UnaryServerInfo{
  1407  		Server:     srv,
  1408  		FullMethod: "/cosmos.auth.v1beta1.Query/Bech32Prefix",
  1409  	}
  1410  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1411  		return srv.(QueryServer).Bech32Prefix(ctx, req.(*Bech32PrefixRequest))
  1412  	}
  1413  	return interceptor(ctx, in, info, handler)
  1414  }
  1415  
  1416  func _Query_AddressBytesToString_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1417  	in := new(AddressBytesToStringRequest)
  1418  	if err := dec(in); err != nil {
  1419  		return nil, err
  1420  	}
  1421  	if interceptor == nil {
  1422  		return srv.(QueryServer).AddressBytesToString(ctx, in)
  1423  	}
  1424  	info := &grpc.UnaryServerInfo{
  1425  		Server:     srv,
  1426  		FullMethod: "/cosmos.auth.v1beta1.Query/AddressBytesToString",
  1427  	}
  1428  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1429  		return srv.(QueryServer).AddressBytesToString(ctx, req.(*AddressBytesToStringRequest))
  1430  	}
  1431  	return interceptor(ctx, in, info, handler)
  1432  }
  1433  
  1434  func _Query_AddressStringToBytes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1435  	in := new(AddressStringToBytesRequest)
  1436  	if err := dec(in); err != nil {
  1437  		return nil, err
  1438  	}
  1439  	if interceptor == nil {
  1440  		return srv.(QueryServer).AddressStringToBytes(ctx, in)
  1441  	}
  1442  	info := &grpc.UnaryServerInfo{
  1443  		Server:     srv,
  1444  		FullMethod: "/cosmos.auth.v1beta1.Query/AddressStringToBytes",
  1445  	}
  1446  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1447  		return srv.(QueryServer).AddressStringToBytes(ctx, req.(*AddressStringToBytesRequest))
  1448  	}
  1449  	return interceptor(ctx, in, info, handler)
  1450  }
  1451  
  1452  func _Query_AccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1453  	in := new(QueryAccountInfoRequest)
  1454  	if err := dec(in); err != nil {
  1455  		return nil, err
  1456  	}
  1457  	if interceptor == nil {
  1458  		return srv.(QueryServer).AccountInfo(ctx, in)
  1459  	}
  1460  	info := &grpc.UnaryServerInfo{
  1461  		Server:     srv,
  1462  		FullMethod: "/cosmos.auth.v1beta1.Query/AccountInfo",
  1463  	}
  1464  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1465  		return srv.(QueryServer).AccountInfo(ctx, req.(*QueryAccountInfoRequest))
  1466  	}
  1467  	return interceptor(ctx, in, info, handler)
  1468  }
  1469  
  1470  var _Query_serviceDesc = grpc.ServiceDesc{
  1471  	ServiceName: "cosmos.auth.v1beta1.Query",
  1472  	HandlerType: (*QueryServer)(nil),
  1473  	Methods: []grpc.MethodDesc{
  1474  		{
  1475  			MethodName: "Accounts",
  1476  			Handler:    _Query_Accounts_Handler,
  1477  		},
  1478  		{
  1479  			MethodName: "Account",
  1480  			Handler:    _Query_Account_Handler,
  1481  		},
  1482  		{
  1483  			MethodName: "AccountAddressByID",
  1484  			Handler:    _Query_AccountAddressByID_Handler,
  1485  		},
  1486  		{
  1487  			MethodName: "Params",
  1488  			Handler:    _Query_Params_Handler,
  1489  		},
  1490  		{
  1491  			MethodName: "ModuleAccounts",
  1492  			Handler:    _Query_ModuleAccounts_Handler,
  1493  		},
  1494  		{
  1495  			MethodName: "ModuleAccountByName",
  1496  			Handler:    _Query_ModuleAccountByName_Handler,
  1497  		},
  1498  		{
  1499  			MethodName: "Bech32Prefix",
  1500  			Handler:    _Query_Bech32Prefix_Handler,
  1501  		},
  1502  		{
  1503  			MethodName: "AddressBytesToString",
  1504  			Handler:    _Query_AddressBytesToString_Handler,
  1505  		},
  1506  		{
  1507  			MethodName: "AddressStringToBytes",
  1508  			Handler:    _Query_AddressStringToBytes_Handler,
  1509  		},
  1510  		{
  1511  			MethodName: "AccountInfo",
  1512  			Handler:    _Query_AccountInfo_Handler,
  1513  		},
  1514  	},
  1515  	Streams:  []grpc.StreamDesc{},
  1516  	Metadata: "cosmos/auth/v1beta1/query.proto",
  1517  }
  1518  
  1519  func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error) {
  1520  	size := m.Size()
  1521  	dAtA = make([]byte, size)
  1522  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1523  	if err != nil {
  1524  		return nil, err
  1525  	}
  1526  	return dAtA[:n], nil
  1527  }
  1528  
  1529  func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error) {
  1530  	size := m.Size()
  1531  	return m.MarshalToSizedBuffer(dAtA[:size])
  1532  }
  1533  
  1534  func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1535  	i := len(dAtA)
  1536  	_ = i
  1537  	var l int
  1538  	_ = l
  1539  	if m.Pagination != nil {
  1540  		{
  1541  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1542  			if err != nil {
  1543  				return 0, err
  1544  			}
  1545  			i -= size
  1546  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1547  		}
  1548  		i--
  1549  		dAtA[i] = 0xa
  1550  	}
  1551  	return len(dAtA) - i, nil
  1552  }
  1553  
  1554  func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error) {
  1555  	size := m.Size()
  1556  	dAtA = make([]byte, size)
  1557  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1558  	if err != nil {
  1559  		return nil, err
  1560  	}
  1561  	return dAtA[:n], nil
  1562  }
  1563  
  1564  func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error) {
  1565  	size := m.Size()
  1566  	return m.MarshalToSizedBuffer(dAtA[:size])
  1567  }
  1568  
  1569  func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1570  	i := len(dAtA)
  1571  	_ = i
  1572  	var l int
  1573  	_ = l
  1574  	if m.Pagination != nil {
  1575  		{
  1576  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1577  			if err != nil {
  1578  				return 0, err
  1579  			}
  1580  			i -= size
  1581  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1582  		}
  1583  		i--
  1584  		dAtA[i] = 0x12
  1585  	}
  1586  	if len(m.Accounts) > 0 {
  1587  		for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- {
  1588  			{
  1589  				size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1590  				if err != nil {
  1591  					return 0, err
  1592  				}
  1593  				i -= size
  1594  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1595  			}
  1596  			i--
  1597  			dAtA[i] = 0xa
  1598  		}
  1599  	}
  1600  	return len(dAtA) - i, nil
  1601  }
  1602  
  1603  func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error) {
  1604  	size := m.Size()
  1605  	dAtA = make([]byte, size)
  1606  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1607  	if err != nil {
  1608  		return nil, err
  1609  	}
  1610  	return dAtA[:n], nil
  1611  }
  1612  
  1613  func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error) {
  1614  	size := m.Size()
  1615  	return m.MarshalToSizedBuffer(dAtA[:size])
  1616  }
  1617  
  1618  func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1619  	i := len(dAtA)
  1620  	_ = i
  1621  	var l int
  1622  	_ = l
  1623  	if len(m.Address) > 0 {
  1624  		i -= len(m.Address)
  1625  		copy(dAtA[i:], m.Address)
  1626  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  1627  		i--
  1628  		dAtA[i] = 0xa
  1629  	}
  1630  	return len(dAtA) - i, nil
  1631  }
  1632  
  1633  func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error) {
  1634  	size := m.Size()
  1635  	dAtA = make([]byte, size)
  1636  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1637  	if err != nil {
  1638  		return nil, err
  1639  	}
  1640  	return dAtA[:n], nil
  1641  }
  1642  
  1643  func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error) {
  1644  	size := m.Size()
  1645  	return m.MarshalToSizedBuffer(dAtA[:size])
  1646  }
  1647  
  1648  func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1649  	i := len(dAtA)
  1650  	_ = i
  1651  	var l int
  1652  	_ = l
  1653  	if m.Account != nil {
  1654  		{
  1655  			size, err := m.Account.MarshalToSizedBuffer(dAtA[:i])
  1656  			if err != nil {
  1657  				return 0, err
  1658  			}
  1659  			i -= size
  1660  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1661  		}
  1662  		i--
  1663  		dAtA[i] = 0xa
  1664  	}
  1665  	return len(dAtA) - i, nil
  1666  }
  1667  
  1668  func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
  1669  	size := m.Size()
  1670  	dAtA = make([]byte, size)
  1671  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1672  	if err != nil {
  1673  		return nil, err
  1674  	}
  1675  	return dAtA[:n], nil
  1676  }
  1677  
  1678  func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
  1679  	size := m.Size()
  1680  	return m.MarshalToSizedBuffer(dAtA[:size])
  1681  }
  1682  
  1683  func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1684  	i := len(dAtA)
  1685  	_ = i
  1686  	var l int
  1687  	_ = l
  1688  	return len(dAtA) - i, nil
  1689  }
  1690  
  1691  func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
  1692  	size := m.Size()
  1693  	dAtA = make([]byte, size)
  1694  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1695  	if err != nil {
  1696  		return nil, err
  1697  	}
  1698  	return dAtA[:n], nil
  1699  }
  1700  
  1701  func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1702  	size := m.Size()
  1703  	return m.MarshalToSizedBuffer(dAtA[:size])
  1704  }
  1705  
  1706  func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1707  	i := len(dAtA)
  1708  	_ = i
  1709  	var l int
  1710  	_ = l
  1711  	{
  1712  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1713  		if err != nil {
  1714  			return 0, err
  1715  		}
  1716  		i -= size
  1717  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1718  	}
  1719  	i--
  1720  	dAtA[i] = 0xa
  1721  	return len(dAtA) - i, nil
  1722  }
  1723  
  1724  func (m *QueryModuleAccountsRequest) Marshal() (dAtA []byte, err error) {
  1725  	size := m.Size()
  1726  	dAtA = make([]byte, size)
  1727  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1728  	if err != nil {
  1729  		return nil, err
  1730  	}
  1731  	return dAtA[:n], nil
  1732  }
  1733  
  1734  func (m *QueryModuleAccountsRequest) MarshalTo(dAtA []byte) (int, error) {
  1735  	size := m.Size()
  1736  	return m.MarshalToSizedBuffer(dAtA[:size])
  1737  }
  1738  
  1739  func (m *QueryModuleAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1740  	i := len(dAtA)
  1741  	_ = i
  1742  	var l int
  1743  	_ = l
  1744  	return len(dAtA) - i, nil
  1745  }
  1746  
  1747  func (m *QueryModuleAccountsResponse) Marshal() (dAtA []byte, err error) {
  1748  	size := m.Size()
  1749  	dAtA = make([]byte, size)
  1750  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1751  	if err != nil {
  1752  		return nil, err
  1753  	}
  1754  	return dAtA[:n], nil
  1755  }
  1756  
  1757  func (m *QueryModuleAccountsResponse) MarshalTo(dAtA []byte) (int, error) {
  1758  	size := m.Size()
  1759  	return m.MarshalToSizedBuffer(dAtA[:size])
  1760  }
  1761  
  1762  func (m *QueryModuleAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1763  	i := len(dAtA)
  1764  	_ = i
  1765  	var l int
  1766  	_ = l
  1767  	if len(m.Accounts) > 0 {
  1768  		for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- {
  1769  			{
  1770  				size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1771  				if err != nil {
  1772  					return 0, err
  1773  				}
  1774  				i -= size
  1775  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1776  			}
  1777  			i--
  1778  			dAtA[i] = 0xa
  1779  		}
  1780  	}
  1781  	return len(dAtA) - i, nil
  1782  }
  1783  
  1784  func (m *QueryModuleAccountByNameRequest) Marshal() (dAtA []byte, err error) {
  1785  	size := m.Size()
  1786  	dAtA = make([]byte, size)
  1787  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1788  	if err != nil {
  1789  		return nil, err
  1790  	}
  1791  	return dAtA[:n], nil
  1792  }
  1793  
  1794  func (m *QueryModuleAccountByNameRequest) MarshalTo(dAtA []byte) (int, error) {
  1795  	size := m.Size()
  1796  	return m.MarshalToSizedBuffer(dAtA[:size])
  1797  }
  1798  
  1799  func (m *QueryModuleAccountByNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1800  	i := len(dAtA)
  1801  	_ = i
  1802  	var l int
  1803  	_ = l
  1804  	if len(m.Name) > 0 {
  1805  		i -= len(m.Name)
  1806  		copy(dAtA[i:], m.Name)
  1807  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Name)))
  1808  		i--
  1809  		dAtA[i] = 0xa
  1810  	}
  1811  	return len(dAtA) - i, nil
  1812  }
  1813  
  1814  func (m *QueryModuleAccountByNameResponse) Marshal() (dAtA []byte, err error) {
  1815  	size := m.Size()
  1816  	dAtA = make([]byte, size)
  1817  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1818  	if err != nil {
  1819  		return nil, err
  1820  	}
  1821  	return dAtA[:n], nil
  1822  }
  1823  
  1824  func (m *QueryModuleAccountByNameResponse) MarshalTo(dAtA []byte) (int, error) {
  1825  	size := m.Size()
  1826  	return m.MarshalToSizedBuffer(dAtA[:size])
  1827  }
  1828  
  1829  func (m *QueryModuleAccountByNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1830  	i := len(dAtA)
  1831  	_ = i
  1832  	var l int
  1833  	_ = l
  1834  	if m.Account != nil {
  1835  		{
  1836  			size, err := m.Account.MarshalToSizedBuffer(dAtA[:i])
  1837  			if err != nil {
  1838  				return 0, err
  1839  			}
  1840  			i -= size
  1841  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1842  		}
  1843  		i--
  1844  		dAtA[i] = 0xa
  1845  	}
  1846  	return len(dAtA) - i, nil
  1847  }
  1848  
  1849  func (m *Bech32PrefixRequest) Marshal() (dAtA []byte, err error) {
  1850  	size := m.Size()
  1851  	dAtA = make([]byte, size)
  1852  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1853  	if err != nil {
  1854  		return nil, err
  1855  	}
  1856  	return dAtA[:n], nil
  1857  }
  1858  
  1859  func (m *Bech32PrefixRequest) MarshalTo(dAtA []byte) (int, error) {
  1860  	size := m.Size()
  1861  	return m.MarshalToSizedBuffer(dAtA[:size])
  1862  }
  1863  
  1864  func (m *Bech32PrefixRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1865  	i := len(dAtA)
  1866  	_ = i
  1867  	var l int
  1868  	_ = l
  1869  	return len(dAtA) - i, nil
  1870  }
  1871  
  1872  func (m *Bech32PrefixResponse) Marshal() (dAtA []byte, err error) {
  1873  	size := m.Size()
  1874  	dAtA = make([]byte, size)
  1875  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1876  	if err != nil {
  1877  		return nil, err
  1878  	}
  1879  	return dAtA[:n], nil
  1880  }
  1881  
  1882  func (m *Bech32PrefixResponse) MarshalTo(dAtA []byte) (int, error) {
  1883  	size := m.Size()
  1884  	return m.MarshalToSizedBuffer(dAtA[:size])
  1885  }
  1886  
  1887  func (m *Bech32PrefixResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1888  	i := len(dAtA)
  1889  	_ = i
  1890  	var l int
  1891  	_ = l
  1892  	if len(m.Bech32Prefix) > 0 {
  1893  		i -= len(m.Bech32Prefix)
  1894  		copy(dAtA[i:], m.Bech32Prefix)
  1895  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Bech32Prefix)))
  1896  		i--
  1897  		dAtA[i] = 0xa
  1898  	}
  1899  	return len(dAtA) - i, nil
  1900  }
  1901  
  1902  func (m *AddressBytesToStringRequest) Marshal() (dAtA []byte, err error) {
  1903  	size := m.Size()
  1904  	dAtA = make([]byte, size)
  1905  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1906  	if err != nil {
  1907  		return nil, err
  1908  	}
  1909  	return dAtA[:n], nil
  1910  }
  1911  
  1912  func (m *AddressBytesToStringRequest) MarshalTo(dAtA []byte) (int, error) {
  1913  	size := m.Size()
  1914  	return m.MarshalToSizedBuffer(dAtA[:size])
  1915  }
  1916  
  1917  func (m *AddressBytesToStringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1918  	i := len(dAtA)
  1919  	_ = i
  1920  	var l int
  1921  	_ = l
  1922  	if len(m.AddressBytes) > 0 {
  1923  		i -= len(m.AddressBytes)
  1924  		copy(dAtA[i:], m.AddressBytes)
  1925  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AddressBytes)))
  1926  		i--
  1927  		dAtA[i] = 0xa
  1928  	}
  1929  	return len(dAtA) - i, nil
  1930  }
  1931  
  1932  func (m *AddressBytesToStringResponse) Marshal() (dAtA []byte, err error) {
  1933  	size := m.Size()
  1934  	dAtA = make([]byte, size)
  1935  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1936  	if err != nil {
  1937  		return nil, err
  1938  	}
  1939  	return dAtA[:n], nil
  1940  }
  1941  
  1942  func (m *AddressBytesToStringResponse) MarshalTo(dAtA []byte) (int, error) {
  1943  	size := m.Size()
  1944  	return m.MarshalToSizedBuffer(dAtA[:size])
  1945  }
  1946  
  1947  func (m *AddressBytesToStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1948  	i := len(dAtA)
  1949  	_ = i
  1950  	var l int
  1951  	_ = l
  1952  	if len(m.AddressString) > 0 {
  1953  		i -= len(m.AddressString)
  1954  		copy(dAtA[i:], m.AddressString)
  1955  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AddressString)))
  1956  		i--
  1957  		dAtA[i] = 0xa
  1958  	}
  1959  	return len(dAtA) - i, nil
  1960  }
  1961  
  1962  func (m *AddressStringToBytesRequest) Marshal() (dAtA []byte, err error) {
  1963  	size := m.Size()
  1964  	dAtA = make([]byte, size)
  1965  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1966  	if err != nil {
  1967  		return nil, err
  1968  	}
  1969  	return dAtA[:n], nil
  1970  }
  1971  
  1972  func (m *AddressStringToBytesRequest) MarshalTo(dAtA []byte) (int, error) {
  1973  	size := m.Size()
  1974  	return m.MarshalToSizedBuffer(dAtA[:size])
  1975  }
  1976  
  1977  func (m *AddressStringToBytesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1978  	i := len(dAtA)
  1979  	_ = i
  1980  	var l int
  1981  	_ = l
  1982  	if len(m.AddressString) > 0 {
  1983  		i -= len(m.AddressString)
  1984  		copy(dAtA[i:], m.AddressString)
  1985  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AddressString)))
  1986  		i--
  1987  		dAtA[i] = 0xa
  1988  	}
  1989  	return len(dAtA) - i, nil
  1990  }
  1991  
  1992  func (m *AddressStringToBytesResponse) Marshal() (dAtA []byte, err error) {
  1993  	size := m.Size()
  1994  	dAtA = make([]byte, size)
  1995  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1996  	if err != nil {
  1997  		return nil, err
  1998  	}
  1999  	return dAtA[:n], nil
  2000  }
  2001  
  2002  func (m *AddressStringToBytesResponse) MarshalTo(dAtA []byte) (int, error) {
  2003  	size := m.Size()
  2004  	return m.MarshalToSizedBuffer(dAtA[:size])
  2005  }
  2006  
  2007  func (m *AddressStringToBytesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2008  	i := len(dAtA)
  2009  	_ = i
  2010  	var l int
  2011  	_ = l
  2012  	if len(m.AddressBytes) > 0 {
  2013  		i -= len(m.AddressBytes)
  2014  		copy(dAtA[i:], m.AddressBytes)
  2015  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AddressBytes)))
  2016  		i--
  2017  		dAtA[i] = 0xa
  2018  	}
  2019  	return len(dAtA) - i, nil
  2020  }
  2021  
  2022  func (m *QueryAccountAddressByIDRequest) Marshal() (dAtA []byte, err error) {
  2023  	size := m.Size()
  2024  	dAtA = make([]byte, size)
  2025  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2026  	if err != nil {
  2027  		return nil, err
  2028  	}
  2029  	return dAtA[:n], nil
  2030  }
  2031  
  2032  func (m *QueryAccountAddressByIDRequest) MarshalTo(dAtA []byte) (int, error) {
  2033  	size := m.Size()
  2034  	return m.MarshalToSizedBuffer(dAtA[:size])
  2035  }
  2036  
  2037  func (m *QueryAccountAddressByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2038  	i := len(dAtA)
  2039  	_ = i
  2040  	var l int
  2041  	_ = l
  2042  	if m.AccountId != 0 {
  2043  		i = encodeVarintQuery(dAtA, i, uint64(m.AccountId))
  2044  		i--
  2045  		dAtA[i] = 0x10
  2046  	}
  2047  	if m.Id != 0 {
  2048  		i = encodeVarintQuery(dAtA, i, uint64(m.Id))
  2049  		i--
  2050  		dAtA[i] = 0x8
  2051  	}
  2052  	return len(dAtA) - i, nil
  2053  }
  2054  
  2055  func (m *QueryAccountAddressByIDResponse) Marshal() (dAtA []byte, err error) {
  2056  	size := m.Size()
  2057  	dAtA = make([]byte, size)
  2058  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2059  	if err != nil {
  2060  		return nil, err
  2061  	}
  2062  	return dAtA[:n], nil
  2063  }
  2064  
  2065  func (m *QueryAccountAddressByIDResponse) MarshalTo(dAtA []byte) (int, error) {
  2066  	size := m.Size()
  2067  	return m.MarshalToSizedBuffer(dAtA[:size])
  2068  }
  2069  
  2070  func (m *QueryAccountAddressByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2071  	i := len(dAtA)
  2072  	_ = i
  2073  	var l int
  2074  	_ = l
  2075  	if len(m.AccountAddress) > 0 {
  2076  		i -= len(m.AccountAddress)
  2077  		copy(dAtA[i:], m.AccountAddress)
  2078  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountAddress)))
  2079  		i--
  2080  		dAtA[i] = 0xa
  2081  	}
  2082  	return len(dAtA) - i, nil
  2083  }
  2084  
  2085  func (m *QueryAccountInfoRequest) Marshal() (dAtA []byte, err error) {
  2086  	size := m.Size()
  2087  	dAtA = make([]byte, size)
  2088  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2089  	if err != nil {
  2090  		return nil, err
  2091  	}
  2092  	return dAtA[:n], nil
  2093  }
  2094  
  2095  func (m *QueryAccountInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  2096  	size := m.Size()
  2097  	return m.MarshalToSizedBuffer(dAtA[:size])
  2098  }
  2099  
  2100  func (m *QueryAccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2101  	i := len(dAtA)
  2102  	_ = i
  2103  	var l int
  2104  	_ = l
  2105  	if len(m.Address) > 0 {
  2106  		i -= len(m.Address)
  2107  		copy(dAtA[i:], m.Address)
  2108  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  2109  		i--
  2110  		dAtA[i] = 0xa
  2111  	}
  2112  	return len(dAtA) - i, nil
  2113  }
  2114  
  2115  func (m *QueryAccountInfoResponse) Marshal() (dAtA []byte, err error) {
  2116  	size := m.Size()
  2117  	dAtA = make([]byte, size)
  2118  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2119  	if err != nil {
  2120  		return nil, err
  2121  	}
  2122  	return dAtA[:n], nil
  2123  }
  2124  
  2125  func (m *QueryAccountInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  2126  	size := m.Size()
  2127  	return m.MarshalToSizedBuffer(dAtA[:size])
  2128  }
  2129  
  2130  func (m *QueryAccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2131  	i := len(dAtA)
  2132  	_ = i
  2133  	var l int
  2134  	_ = l
  2135  	if m.Info != nil {
  2136  		{
  2137  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  2138  			if err != nil {
  2139  				return 0, err
  2140  			}
  2141  			i -= size
  2142  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2143  		}
  2144  		i--
  2145  		dAtA[i] = 0xa
  2146  	}
  2147  	return len(dAtA) - i, nil
  2148  }
  2149  
  2150  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  2151  	offset -= sovQuery(v)
  2152  	base := offset
  2153  	for v >= 1<<7 {
  2154  		dAtA[offset] = uint8(v&0x7f | 0x80)
  2155  		v >>= 7
  2156  		offset++
  2157  	}
  2158  	dAtA[offset] = uint8(v)
  2159  	return base
  2160  }
  2161  func (m *QueryAccountsRequest) Size() (n int) {
  2162  	if m == nil {
  2163  		return 0
  2164  	}
  2165  	var l int
  2166  	_ = l
  2167  	if m.Pagination != nil {
  2168  		l = m.Pagination.Size()
  2169  		n += 1 + l + sovQuery(uint64(l))
  2170  	}
  2171  	return n
  2172  }
  2173  
  2174  func (m *QueryAccountsResponse) Size() (n int) {
  2175  	if m == nil {
  2176  		return 0
  2177  	}
  2178  	var l int
  2179  	_ = l
  2180  	if len(m.Accounts) > 0 {
  2181  		for _, e := range m.Accounts {
  2182  			l = e.Size()
  2183  			n += 1 + l + sovQuery(uint64(l))
  2184  		}
  2185  	}
  2186  	if m.Pagination != nil {
  2187  		l = m.Pagination.Size()
  2188  		n += 1 + l + sovQuery(uint64(l))
  2189  	}
  2190  	return n
  2191  }
  2192  
  2193  func (m *QueryAccountRequest) Size() (n int) {
  2194  	if m == nil {
  2195  		return 0
  2196  	}
  2197  	var l int
  2198  	_ = l
  2199  	l = len(m.Address)
  2200  	if l > 0 {
  2201  		n += 1 + l + sovQuery(uint64(l))
  2202  	}
  2203  	return n
  2204  }
  2205  
  2206  func (m *QueryAccountResponse) Size() (n int) {
  2207  	if m == nil {
  2208  		return 0
  2209  	}
  2210  	var l int
  2211  	_ = l
  2212  	if m.Account != nil {
  2213  		l = m.Account.Size()
  2214  		n += 1 + l + sovQuery(uint64(l))
  2215  	}
  2216  	return n
  2217  }
  2218  
  2219  func (m *QueryParamsRequest) Size() (n int) {
  2220  	if m == nil {
  2221  		return 0
  2222  	}
  2223  	var l int
  2224  	_ = l
  2225  	return n
  2226  }
  2227  
  2228  func (m *QueryParamsResponse) Size() (n int) {
  2229  	if m == nil {
  2230  		return 0
  2231  	}
  2232  	var l int
  2233  	_ = l
  2234  	l = m.Params.Size()
  2235  	n += 1 + l + sovQuery(uint64(l))
  2236  	return n
  2237  }
  2238  
  2239  func (m *QueryModuleAccountsRequest) Size() (n int) {
  2240  	if m == nil {
  2241  		return 0
  2242  	}
  2243  	var l int
  2244  	_ = l
  2245  	return n
  2246  }
  2247  
  2248  func (m *QueryModuleAccountsResponse) Size() (n int) {
  2249  	if m == nil {
  2250  		return 0
  2251  	}
  2252  	var l int
  2253  	_ = l
  2254  	if len(m.Accounts) > 0 {
  2255  		for _, e := range m.Accounts {
  2256  			l = e.Size()
  2257  			n += 1 + l + sovQuery(uint64(l))
  2258  		}
  2259  	}
  2260  	return n
  2261  }
  2262  
  2263  func (m *QueryModuleAccountByNameRequest) Size() (n int) {
  2264  	if m == nil {
  2265  		return 0
  2266  	}
  2267  	var l int
  2268  	_ = l
  2269  	l = len(m.Name)
  2270  	if l > 0 {
  2271  		n += 1 + l + sovQuery(uint64(l))
  2272  	}
  2273  	return n
  2274  }
  2275  
  2276  func (m *QueryModuleAccountByNameResponse) Size() (n int) {
  2277  	if m == nil {
  2278  		return 0
  2279  	}
  2280  	var l int
  2281  	_ = l
  2282  	if m.Account != nil {
  2283  		l = m.Account.Size()
  2284  		n += 1 + l + sovQuery(uint64(l))
  2285  	}
  2286  	return n
  2287  }
  2288  
  2289  func (m *Bech32PrefixRequest) Size() (n int) {
  2290  	if m == nil {
  2291  		return 0
  2292  	}
  2293  	var l int
  2294  	_ = l
  2295  	return n
  2296  }
  2297  
  2298  func (m *Bech32PrefixResponse) Size() (n int) {
  2299  	if m == nil {
  2300  		return 0
  2301  	}
  2302  	var l int
  2303  	_ = l
  2304  	l = len(m.Bech32Prefix)
  2305  	if l > 0 {
  2306  		n += 1 + l + sovQuery(uint64(l))
  2307  	}
  2308  	return n
  2309  }
  2310  
  2311  func (m *AddressBytesToStringRequest) Size() (n int) {
  2312  	if m == nil {
  2313  		return 0
  2314  	}
  2315  	var l int
  2316  	_ = l
  2317  	l = len(m.AddressBytes)
  2318  	if l > 0 {
  2319  		n += 1 + l + sovQuery(uint64(l))
  2320  	}
  2321  	return n
  2322  }
  2323  
  2324  func (m *AddressBytesToStringResponse) Size() (n int) {
  2325  	if m == nil {
  2326  		return 0
  2327  	}
  2328  	var l int
  2329  	_ = l
  2330  	l = len(m.AddressString)
  2331  	if l > 0 {
  2332  		n += 1 + l + sovQuery(uint64(l))
  2333  	}
  2334  	return n
  2335  }
  2336  
  2337  func (m *AddressStringToBytesRequest) Size() (n int) {
  2338  	if m == nil {
  2339  		return 0
  2340  	}
  2341  	var l int
  2342  	_ = l
  2343  	l = len(m.AddressString)
  2344  	if l > 0 {
  2345  		n += 1 + l + sovQuery(uint64(l))
  2346  	}
  2347  	return n
  2348  }
  2349  
  2350  func (m *AddressStringToBytesResponse) Size() (n int) {
  2351  	if m == nil {
  2352  		return 0
  2353  	}
  2354  	var l int
  2355  	_ = l
  2356  	l = len(m.AddressBytes)
  2357  	if l > 0 {
  2358  		n += 1 + l + sovQuery(uint64(l))
  2359  	}
  2360  	return n
  2361  }
  2362  
  2363  func (m *QueryAccountAddressByIDRequest) Size() (n int) {
  2364  	if m == nil {
  2365  		return 0
  2366  	}
  2367  	var l int
  2368  	_ = l
  2369  	if m.Id != 0 {
  2370  		n += 1 + sovQuery(uint64(m.Id))
  2371  	}
  2372  	if m.AccountId != 0 {
  2373  		n += 1 + sovQuery(uint64(m.AccountId))
  2374  	}
  2375  	return n
  2376  }
  2377  
  2378  func (m *QueryAccountAddressByIDResponse) Size() (n int) {
  2379  	if m == nil {
  2380  		return 0
  2381  	}
  2382  	var l int
  2383  	_ = l
  2384  	l = len(m.AccountAddress)
  2385  	if l > 0 {
  2386  		n += 1 + l + sovQuery(uint64(l))
  2387  	}
  2388  	return n
  2389  }
  2390  
  2391  func (m *QueryAccountInfoRequest) Size() (n int) {
  2392  	if m == nil {
  2393  		return 0
  2394  	}
  2395  	var l int
  2396  	_ = l
  2397  	l = len(m.Address)
  2398  	if l > 0 {
  2399  		n += 1 + l + sovQuery(uint64(l))
  2400  	}
  2401  	return n
  2402  }
  2403  
  2404  func (m *QueryAccountInfoResponse) Size() (n int) {
  2405  	if m == nil {
  2406  		return 0
  2407  	}
  2408  	var l int
  2409  	_ = l
  2410  	if m.Info != nil {
  2411  		l = m.Info.Size()
  2412  		n += 1 + l + sovQuery(uint64(l))
  2413  	}
  2414  	return n
  2415  }
  2416  
  2417  func sovQuery(x uint64) (n int) {
  2418  	return (math_bits.Len64(x|1) + 6) / 7
  2419  }
  2420  func sozQuery(x uint64) (n int) {
  2421  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2422  }
  2423  func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error {
  2424  	l := len(dAtA)
  2425  	iNdEx := 0
  2426  	for iNdEx < l {
  2427  		preIndex := iNdEx
  2428  		var wire uint64
  2429  		for shift := uint(0); ; shift += 7 {
  2430  			if shift >= 64 {
  2431  				return ErrIntOverflowQuery
  2432  			}
  2433  			if iNdEx >= l {
  2434  				return io.ErrUnexpectedEOF
  2435  			}
  2436  			b := dAtA[iNdEx]
  2437  			iNdEx++
  2438  			wire |= uint64(b&0x7F) << shift
  2439  			if b < 0x80 {
  2440  				break
  2441  			}
  2442  		}
  2443  		fieldNum := int32(wire >> 3)
  2444  		wireType := int(wire & 0x7)
  2445  		if wireType == 4 {
  2446  			return fmt.Errorf("proto: QueryAccountsRequest: wiretype end group for non-group")
  2447  		}
  2448  		if fieldNum <= 0 {
  2449  			return fmt.Errorf("proto: QueryAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2450  		}
  2451  		switch fieldNum {
  2452  		case 1:
  2453  			if wireType != 2 {
  2454  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2455  			}
  2456  			var msglen int
  2457  			for shift := uint(0); ; shift += 7 {
  2458  				if shift >= 64 {
  2459  					return ErrIntOverflowQuery
  2460  				}
  2461  				if iNdEx >= l {
  2462  					return io.ErrUnexpectedEOF
  2463  				}
  2464  				b := dAtA[iNdEx]
  2465  				iNdEx++
  2466  				msglen |= int(b&0x7F) << shift
  2467  				if b < 0x80 {
  2468  					break
  2469  				}
  2470  			}
  2471  			if msglen < 0 {
  2472  				return ErrInvalidLengthQuery
  2473  			}
  2474  			postIndex := iNdEx + msglen
  2475  			if postIndex < 0 {
  2476  				return ErrInvalidLengthQuery
  2477  			}
  2478  			if postIndex > l {
  2479  				return io.ErrUnexpectedEOF
  2480  			}
  2481  			if m.Pagination == nil {
  2482  				m.Pagination = &query.PageRequest{}
  2483  			}
  2484  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2485  				return err
  2486  			}
  2487  			iNdEx = postIndex
  2488  		default:
  2489  			iNdEx = preIndex
  2490  			skippy, err := skipQuery(dAtA[iNdEx:])
  2491  			if err != nil {
  2492  				return err
  2493  			}
  2494  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2495  				return ErrInvalidLengthQuery
  2496  			}
  2497  			if (iNdEx + skippy) > l {
  2498  				return io.ErrUnexpectedEOF
  2499  			}
  2500  			iNdEx += skippy
  2501  		}
  2502  	}
  2503  
  2504  	if iNdEx > l {
  2505  		return io.ErrUnexpectedEOF
  2506  	}
  2507  	return nil
  2508  }
  2509  func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error {
  2510  	l := len(dAtA)
  2511  	iNdEx := 0
  2512  	for iNdEx < l {
  2513  		preIndex := iNdEx
  2514  		var wire uint64
  2515  		for shift := uint(0); ; shift += 7 {
  2516  			if shift >= 64 {
  2517  				return ErrIntOverflowQuery
  2518  			}
  2519  			if iNdEx >= l {
  2520  				return io.ErrUnexpectedEOF
  2521  			}
  2522  			b := dAtA[iNdEx]
  2523  			iNdEx++
  2524  			wire |= uint64(b&0x7F) << shift
  2525  			if b < 0x80 {
  2526  				break
  2527  			}
  2528  		}
  2529  		fieldNum := int32(wire >> 3)
  2530  		wireType := int(wire & 0x7)
  2531  		if wireType == 4 {
  2532  			return fmt.Errorf("proto: QueryAccountsResponse: wiretype end group for non-group")
  2533  		}
  2534  		if fieldNum <= 0 {
  2535  			return fmt.Errorf("proto: QueryAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2536  		}
  2537  		switch fieldNum {
  2538  		case 1:
  2539  			if wireType != 2 {
  2540  				return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType)
  2541  			}
  2542  			var msglen int
  2543  			for shift := uint(0); ; shift += 7 {
  2544  				if shift >= 64 {
  2545  					return ErrIntOverflowQuery
  2546  				}
  2547  				if iNdEx >= l {
  2548  					return io.ErrUnexpectedEOF
  2549  				}
  2550  				b := dAtA[iNdEx]
  2551  				iNdEx++
  2552  				msglen |= int(b&0x7F) << shift
  2553  				if b < 0x80 {
  2554  					break
  2555  				}
  2556  			}
  2557  			if msglen < 0 {
  2558  				return ErrInvalidLengthQuery
  2559  			}
  2560  			postIndex := iNdEx + msglen
  2561  			if postIndex < 0 {
  2562  				return ErrInvalidLengthQuery
  2563  			}
  2564  			if postIndex > l {
  2565  				return io.ErrUnexpectedEOF
  2566  			}
  2567  			m.Accounts = append(m.Accounts, &types.Any{})
  2568  			if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2569  				return err
  2570  			}
  2571  			iNdEx = postIndex
  2572  		case 2:
  2573  			if wireType != 2 {
  2574  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2575  			}
  2576  			var msglen int
  2577  			for shift := uint(0); ; shift += 7 {
  2578  				if shift >= 64 {
  2579  					return ErrIntOverflowQuery
  2580  				}
  2581  				if iNdEx >= l {
  2582  					return io.ErrUnexpectedEOF
  2583  				}
  2584  				b := dAtA[iNdEx]
  2585  				iNdEx++
  2586  				msglen |= int(b&0x7F) << shift
  2587  				if b < 0x80 {
  2588  					break
  2589  				}
  2590  			}
  2591  			if msglen < 0 {
  2592  				return ErrInvalidLengthQuery
  2593  			}
  2594  			postIndex := iNdEx + msglen
  2595  			if postIndex < 0 {
  2596  				return ErrInvalidLengthQuery
  2597  			}
  2598  			if postIndex > l {
  2599  				return io.ErrUnexpectedEOF
  2600  			}
  2601  			if m.Pagination == nil {
  2602  				m.Pagination = &query.PageResponse{}
  2603  			}
  2604  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2605  				return err
  2606  			}
  2607  			iNdEx = postIndex
  2608  		default:
  2609  			iNdEx = preIndex
  2610  			skippy, err := skipQuery(dAtA[iNdEx:])
  2611  			if err != nil {
  2612  				return err
  2613  			}
  2614  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2615  				return ErrInvalidLengthQuery
  2616  			}
  2617  			if (iNdEx + skippy) > l {
  2618  				return io.ErrUnexpectedEOF
  2619  			}
  2620  			iNdEx += skippy
  2621  		}
  2622  	}
  2623  
  2624  	if iNdEx > l {
  2625  		return io.ErrUnexpectedEOF
  2626  	}
  2627  	return nil
  2628  }
  2629  func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error {
  2630  	l := len(dAtA)
  2631  	iNdEx := 0
  2632  	for iNdEx < l {
  2633  		preIndex := iNdEx
  2634  		var wire uint64
  2635  		for shift := uint(0); ; shift += 7 {
  2636  			if shift >= 64 {
  2637  				return ErrIntOverflowQuery
  2638  			}
  2639  			if iNdEx >= l {
  2640  				return io.ErrUnexpectedEOF
  2641  			}
  2642  			b := dAtA[iNdEx]
  2643  			iNdEx++
  2644  			wire |= uint64(b&0x7F) << shift
  2645  			if b < 0x80 {
  2646  				break
  2647  			}
  2648  		}
  2649  		fieldNum := int32(wire >> 3)
  2650  		wireType := int(wire & 0x7)
  2651  		if wireType == 4 {
  2652  			return fmt.Errorf("proto: QueryAccountRequest: wiretype end group for non-group")
  2653  		}
  2654  		if fieldNum <= 0 {
  2655  			return fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2656  		}
  2657  		switch fieldNum {
  2658  		case 1:
  2659  			if wireType != 2 {
  2660  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  2661  			}
  2662  			var stringLen uint64
  2663  			for shift := uint(0); ; shift += 7 {
  2664  				if shift >= 64 {
  2665  					return ErrIntOverflowQuery
  2666  				}
  2667  				if iNdEx >= l {
  2668  					return io.ErrUnexpectedEOF
  2669  				}
  2670  				b := dAtA[iNdEx]
  2671  				iNdEx++
  2672  				stringLen |= uint64(b&0x7F) << shift
  2673  				if b < 0x80 {
  2674  					break
  2675  				}
  2676  			}
  2677  			intStringLen := int(stringLen)
  2678  			if intStringLen < 0 {
  2679  				return ErrInvalidLengthQuery
  2680  			}
  2681  			postIndex := iNdEx + intStringLen
  2682  			if postIndex < 0 {
  2683  				return ErrInvalidLengthQuery
  2684  			}
  2685  			if postIndex > l {
  2686  				return io.ErrUnexpectedEOF
  2687  			}
  2688  			m.Address = string(dAtA[iNdEx:postIndex])
  2689  			iNdEx = postIndex
  2690  		default:
  2691  			iNdEx = preIndex
  2692  			skippy, err := skipQuery(dAtA[iNdEx:])
  2693  			if err != nil {
  2694  				return err
  2695  			}
  2696  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2697  				return ErrInvalidLengthQuery
  2698  			}
  2699  			if (iNdEx + skippy) > l {
  2700  				return io.ErrUnexpectedEOF
  2701  			}
  2702  			iNdEx += skippy
  2703  		}
  2704  	}
  2705  
  2706  	if iNdEx > l {
  2707  		return io.ErrUnexpectedEOF
  2708  	}
  2709  	return nil
  2710  }
  2711  func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error {
  2712  	l := len(dAtA)
  2713  	iNdEx := 0
  2714  	for iNdEx < l {
  2715  		preIndex := iNdEx
  2716  		var wire uint64
  2717  		for shift := uint(0); ; shift += 7 {
  2718  			if shift >= 64 {
  2719  				return ErrIntOverflowQuery
  2720  			}
  2721  			if iNdEx >= l {
  2722  				return io.ErrUnexpectedEOF
  2723  			}
  2724  			b := dAtA[iNdEx]
  2725  			iNdEx++
  2726  			wire |= uint64(b&0x7F) << shift
  2727  			if b < 0x80 {
  2728  				break
  2729  			}
  2730  		}
  2731  		fieldNum := int32(wire >> 3)
  2732  		wireType := int(wire & 0x7)
  2733  		if wireType == 4 {
  2734  			return fmt.Errorf("proto: QueryAccountResponse: wiretype end group for non-group")
  2735  		}
  2736  		if fieldNum <= 0 {
  2737  			return fmt.Errorf("proto: QueryAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2738  		}
  2739  		switch fieldNum {
  2740  		case 1:
  2741  			if wireType != 2 {
  2742  				return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
  2743  			}
  2744  			var msglen int
  2745  			for shift := uint(0); ; shift += 7 {
  2746  				if shift >= 64 {
  2747  					return ErrIntOverflowQuery
  2748  				}
  2749  				if iNdEx >= l {
  2750  					return io.ErrUnexpectedEOF
  2751  				}
  2752  				b := dAtA[iNdEx]
  2753  				iNdEx++
  2754  				msglen |= int(b&0x7F) << shift
  2755  				if b < 0x80 {
  2756  					break
  2757  				}
  2758  			}
  2759  			if msglen < 0 {
  2760  				return ErrInvalidLengthQuery
  2761  			}
  2762  			postIndex := iNdEx + msglen
  2763  			if postIndex < 0 {
  2764  				return ErrInvalidLengthQuery
  2765  			}
  2766  			if postIndex > l {
  2767  				return io.ErrUnexpectedEOF
  2768  			}
  2769  			if m.Account == nil {
  2770  				m.Account = &types.Any{}
  2771  			}
  2772  			if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2773  				return err
  2774  			}
  2775  			iNdEx = postIndex
  2776  		default:
  2777  			iNdEx = preIndex
  2778  			skippy, err := skipQuery(dAtA[iNdEx:])
  2779  			if err != nil {
  2780  				return err
  2781  			}
  2782  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2783  				return ErrInvalidLengthQuery
  2784  			}
  2785  			if (iNdEx + skippy) > l {
  2786  				return io.ErrUnexpectedEOF
  2787  			}
  2788  			iNdEx += skippy
  2789  		}
  2790  	}
  2791  
  2792  	if iNdEx > l {
  2793  		return io.ErrUnexpectedEOF
  2794  	}
  2795  	return nil
  2796  }
  2797  func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
  2798  	l := len(dAtA)
  2799  	iNdEx := 0
  2800  	for iNdEx < l {
  2801  		preIndex := iNdEx
  2802  		var wire uint64
  2803  		for shift := uint(0); ; shift += 7 {
  2804  			if shift >= 64 {
  2805  				return ErrIntOverflowQuery
  2806  			}
  2807  			if iNdEx >= l {
  2808  				return io.ErrUnexpectedEOF
  2809  			}
  2810  			b := dAtA[iNdEx]
  2811  			iNdEx++
  2812  			wire |= uint64(b&0x7F) << shift
  2813  			if b < 0x80 {
  2814  				break
  2815  			}
  2816  		}
  2817  		fieldNum := int32(wire >> 3)
  2818  		wireType := int(wire & 0x7)
  2819  		if wireType == 4 {
  2820  			return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
  2821  		}
  2822  		if fieldNum <= 0 {
  2823  			return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2824  		}
  2825  		switch fieldNum {
  2826  		default:
  2827  			iNdEx = preIndex
  2828  			skippy, err := skipQuery(dAtA[iNdEx:])
  2829  			if err != nil {
  2830  				return err
  2831  			}
  2832  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2833  				return ErrInvalidLengthQuery
  2834  			}
  2835  			if (iNdEx + skippy) > l {
  2836  				return io.ErrUnexpectedEOF
  2837  			}
  2838  			iNdEx += skippy
  2839  		}
  2840  	}
  2841  
  2842  	if iNdEx > l {
  2843  		return io.ErrUnexpectedEOF
  2844  	}
  2845  	return nil
  2846  }
  2847  func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
  2848  	l := len(dAtA)
  2849  	iNdEx := 0
  2850  	for iNdEx < l {
  2851  		preIndex := iNdEx
  2852  		var wire uint64
  2853  		for shift := uint(0); ; shift += 7 {
  2854  			if shift >= 64 {
  2855  				return ErrIntOverflowQuery
  2856  			}
  2857  			if iNdEx >= l {
  2858  				return io.ErrUnexpectedEOF
  2859  			}
  2860  			b := dAtA[iNdEx]
  2861  			iNdEx++
  2862  			wire |= uint64(b&0x7F) << shift
  2863  			if b < 0x80 {
  2864  				break
  2865  			}
  2866  		}
  2867  		fieldNum := int32(wire >> 3)
  2868  		wireType := int(wire & 0x7)
  2869  		if wireType == 4 {
  2870  			return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
  2871  		}
  2872  		if fieldNum <= 0 {
  2873  			return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2874  		}
  2875  		switch fieldNum {
  2876  		case 1:
  2877  			if wireType != 2 {
  2878  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  2879  			}
  2880  			var msglen int
  2881  			for shift := uint(0); ; shift += 7 {
  2882  				if shift >= 64 {
  2883  					return ErrIntOverflowQuery
  2884  				}
  2885  				if iNdEx >= l {
  2886  					return io.ErrUnexpectedEOF
  2887  				}
  2888  				b := dAtA[iNdEx]
  2889  				iNdEx++
  2890  				msglen |= int(b&0x7F) << shift
  2891  				if b < 0x80 {
  2892  					break
  2893  				}
  2894  			}
  2895  			if msglen < 0 {
  2896  				return ErrInvalidLengthQuery
  2897  			}
  2898  			postIndex := iNdEx + msglen
  2899  			if postIndex < 0 {
  2900  				return ErrInvalidLengthQuery
  2901  			}
  2902  			if postIndex > l {
  2903  				return io.ErrUnexpectedEOF
  2904  			}
  2905  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2906  				return err
  2907  			}
  2908  			iNdEx = postIndex
  2909  		default:
  2910  			iNdEx = preIndex
  2911  			skippy, err := skipQuery(dAtA[iNdEx:])
  2912  			if err != nil {
  2913  				return err
  2914  			}
  2915  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2916  				return ErrInvalidLengthQuery
  2917  			}
  2918  			if (iNdEx + skippy) > l {
  2919  				return io.ErrUnexpectedEOF
  2920  			}
  2921  			iNdEx += skippy
  2922  		}
  2923  	}
  2924  
  2925  	if iNdEx > l {
  2926  		return io.ErrUnexpectedEOF
  2927  	}
  2928  	return nil
  2929  }
  2930  func (m *QueryModuleAccountsRequest) Unmarshal(dAtA []byte) error {
  2931  	l := len(dAtA)
  2932  	iNdEx := 0
  2933  	for iNdEx < l {
  2934  		preIndex := iNdEx
  2935  		var wire uint64
  2936  		for shift := uint(0); ; shift += 7 {
  2937  			if shift >= 64 {
  2938  				return ErrIntOverflowQuery
  2939  			}
  2940  			if iNdEx >= l {
  2941  				return io.ErrUnexpectedEOF
  2942  			}
  2943  			b := dAtA[iNdEx]
  2944  			iNdEx++
  2945  			wire |= uint64(b&0x7F) << shift
  2946  			if b < 0x80 {
  2947  				break
  2948  			}
  2949  		}
  2950  		fieldNum := int32(wire >> 3)
  2951  		wireType := int(wire & 0x7)
  2952  		if wireType == 4 {
  2953  			return fmt.Errorf("proto: QueryModuleAccountsRequest: wiretype end group for non-group")
  2954  		}
  2955  		if fieldNum <= 0 {
  2956  			return fmt.Errorf("proto: QueryModuleAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2957  		}
  2958  		switch fieldNum {
  2959  		default:
  2960  			iNdEx = preIndex
  2961  			skippy, err := skipQuery(dAtA[iNdEx:])
  2962  			if err != nil {
  2963  				return err
  2964  			}
  2965  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2966  				return ErrInvalidLengthQuery
  2967  			}
  2968  			if (iNdEx + skippy) > l {
  2969  				return io.ErrUnexpectedEOF
  2970  			}
  2971  			iNdEx += skippy
  2972  		}
  2973  	}
  2974  
  2975  	if iNdEx > l {
  2976  		return io.ErrUnexpectedEOF
  2977  	}
  2978  	return nil
  2979  }
  2980  func (m *QueryModuleAccountsResponse) Unmarshal(dAtA []byte) error {
  2981  	l := len(dAtA)
  2982  	iNdEx := 0
  2983  	for iNdEx < l {
  2984  		preIndex := iNdEx
  2985  		var wire uint64
  2986  		for shift := uint(0); ; shift += 7 {
  2987  			if shift >= 64 {
  2988  				return ErrIntOverflowQuery
  2989  			}
  2990  			if iNdEx >= l {
  2991  				return io.ErrUnexpectedEOF
  2992  			}
  2993  			b := dAtA[iNdEx]
  2994  			iNdEx++
  2995  			wire |= uint64(b&0x7F) << shift
  2996  			if b < 0x80 {
  2997  				break
  2998  			}
  2999  		}
  3000  		fieldNum := int32(wire >> 3)
  3001  		wireType := int(wire & 0x7)
  3002  		if wireType == 4 {
  3003  			return fmt.Errorf("proto: QueryModuleAccountsResponse: wiretype end group for non-group")
  3004  		}
  3005  		if fieldNum <= 0 {
  3006  			return fmt.Errorf("proto: QueryModuleAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3007  		}
  3008  		switch fieldNum {
  3009  		case 1:
  3010  			if wireType != 2 {
  3011  				return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType)
  3012  			}
  3013  			var msglen int
  3014  			for shift := uint(0); ; shift += 7 {
  3015  				if shift >= 64 {
  3016  					return ErrIntOverflowQuery
  3017  				}
  3018  				if iNdEx >= l {
  3019  					return io.ErrUnexpectedEOF
  3020  				}
  3021  				b := dAtA[iNdEx]
  3022  				iNdEx++
  3023  				msglen |= int(b&0x7F) << shift
  3024  				if b < 0x80 {
  3025  					break
  3026  				}
  3027  			}
  3028  			if msglen < 0 {
  3029  				return ErrInvalidLengthQuery
  3030  			}
  3031  			postIndex := iNdEx + msglen
  3032  			if postIndex < 0 {
  3033  				return ErrInvalidLengthQuery
  3034  			}
  3035  			if postIndex > l {
  3036  				return io.ErrUnexpectedEOF
  3037  			}
  3038  			m.Accounts = append(m.Accounts, &types.Any{})
  3039  			if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3040  				return err
  3041  			}
  3042  			iNdEx = postIndex
  3043  		default:
  3044  			iNdEx = preIndex
  3045  			skippy, err := skipQuery(dAtA[iNdEx:])
  3046  			if err != nil {
  3047  				return err
  3048  			}
  3049  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3050  				return ErrInvalidLengthQuery
  3051  			}
  3052  			if (iNdEx + skippy) > l {
  3053  				return io.ErrUnexpectedEOF
  3054  			}
  3055  			iNdEx += skippy
  3056  		}
  3057  	}
  3058  
  3059  	if iNdEx > l {
  3060  		return io.ErrUnexpectedEOF
  3061  	}
  3062  	return nil
  3063  }
  3064  func (m *QueryModuleAccountByNameRequest) Unmarshal(dAtA []byte) error {
  3065  	l := len(dAtA)
  3066  	iNdEx := 0
  3067  	for iNdEx < l {
  3068  		preIndex := iNdEx
  3069  		var wire uint64
  3070  		for shift := uint(0); ; shift += 7 {
  3071  			if shift >= 64 {
  3072  				return ErrIntOverflowQuery
  3073  			}
  3074  			if iNdEx >= l {
  3075  				return io.ErrUnexpectedEOF
  3076  			}
  3077  			b := dAtA[iNdEx]
  3078  			iNdEx++
  3079  			wire |= uint64(b&0x7F) << shift
  3080  			if b < 0x80 {
  3081  				break
  3082  			}
  3083  		}
  3084  		fieldNum := int32(wire >> 3)
  3085  		wireType := int(wire & 0x7)
  3086  		if wireType == 4 {
  3087  			return fmt.Errorf("proto: QueryModuleAccountByNameRequest: wiretype end group for non-group")
  3088  		}
  3089  		if fieldNum <= 0 {
  3090  			return fmt.Errorf("proto: QueryModuleAccountByNameRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3091  		}
  3092  		switch fieldNum {
  3093  		case 1:
  3094  			if wireType != 2 {
  3095  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3096  			}
  3097  			var stringLen uint64
  3098  			for shift := uint(0); ; shift += 7 {
  3099  				if shift >= 64 {
  3100  					return ErrIntOverflowQuery
  3101  				}
  3102  				if iNdEx >= l {
  3103  					return io.ErrUnexpectedEOF
  3104  				}
  3105  				b := dAtA[iNdEx]
  3106  				iNdEx++
  3107  				stringLen |= uint64(b&0x7F) << shift
  3108  				if b < 0x80 {
  3109  					break
  3110  				}
  3111  			}
  3112  			intStringLen := int(stringLen)
  3113  			if intStringLen < 0 {
  3114  				return ErrInvalidLengthQuery
  3115  			}
  3116  			postIndex := iNdEx + intStringLen
  3117  			if postIndex < 0 {
  3118  				return ErrInvalidLengthQuery
  3119  			}
  3120  			if postIndex > l {
  3121  				return io.ErrUnexpectedEOF
  3122  			}
  3123  			m.Name = string(dAtA[iNdEx:postIndex])
  3124  			iNdEx = postIndex
  3125  		default:
  3126  			iNdEx = preIndex
  3127  			skippy, err := skipQuery(dAtA[iNdEx:])
  3128  			if err != nil {
  3129  				return err
  3130  			}
  3131  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3132  				return ErrInvalidLengthQuery
  3133  			}
  3134  			if (iNdEx + skippy) > l {
  3135  				return io.ErrUnexpectedEOF
  3136  			}
  3137  			iNdEx += skippy
  3138  		}
  3139  	}
  3140  
  3141  	if iNdEx > l {
  3142  		return io.ErrUnexpectedEOF
  3143  	}
  3144  	return nil
  3145  }
  3146  func (m *QueryModuleAccountByNameResponse) Unmarshal(dAtA []byte) error {
  3147  	l := len(dAtA)
  3148  	iNdEx := 0
  3149  	for iNdEx < l {
  3150  		preIndex := iNdEx
  3151  		var wire uint64
  3152  		for shift := uint(0); ; shift += 7 {
  3153  			if shift >= 64 {
  3154  				return ErrIntOverflowQuery
  3155  			}
  3156  			if iNdEx >= l {
  3157  				return io.ErrUnexpectedEOF
  3158  			}
  3159  			b := dAtA[iNdEx]
  3160  			iNdEx++
  3161  			wire |= uint64(b&0x7F) << shift
  3162  			if b < 0x80 {
  3163  				break
  3164  			}
  3165  		}
  3166  		fieldNum := int32(wire >> 3)
  3167  		wireType := int(wire & 0x7)
  3168  		if wireType == 4 {
  3169  			return fmt.Errorf("proto: QueryModuleAccountByNameResponse: wiretype end group for non-group")
  3170  		}
  3171  		if fieldNum <= 0 {
  3172  			return fmt.Errorf("proto: QueryModuleAccountByNameResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3173  		}
  3174  		switch fieldNum {
  3175  		case 1:
  3176  			if wireType != 2 {
  3177  				return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
  3178  			}
  3179  			var msglen int
  3180  			for shift := uint(0); ; shift += 7 {
  3181  				if shift >= 64 {
  3182  					return ErrIntOverflowQuery
  3183  				}
  3184  				if iNdEx >= l {
  3185  					return io.ErrUnexpectedEOF
  3186  				}
  3187  				b := dAtA[iNdEx]
  3188  				iNdEx++
  3189  				msglen |= int(b&0x7F) << shift
  3190  				if b < 0x80 {
  3191  					break
  3192  				}
  3193  			}
  3194  			if msglen < 0 {
  3195  				return ErrInvalidLengthQuery
  3196  			}
  3197  			postIndex := iNdEx + msglen
  3198  			if postIndex < 0 {
  3199  				return ErrInvalidLengthQuery
  3200  			}
  3201  			if postIndex > l {
  3202  				return io.ErrUnexpectedEOF
  3203  			}
  3204  			if m.Account == nil {
  3205  				m.Account = &types.Any{}
  3206  			}
  3207  			if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3208  				return err
  3209  			}
  3210  			iNdEx = postIndex
  3211  		default:
  3212  			iNdEx = preIndex
  3213  			skippy, err := skipQuery(dAtA[iNdEx:])
  3214  			if err != nil {
  3215  				return err
  3216  			}
  3217  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3218  				return ErrInvalidLengthQuery
  3219  			}
  3220  			if (iNdEx + skippy) > l {
  3221  				return io.ErrUnexpectedEOF
  3222  			}
  3223  			iNdEx += skippy
  3224  		}
  3225  	}
  3226  
  3227  	if iNdEx > l {
  3228  		return io.ErrUnexpectedEOF
  3229  	}
  3230  	return nil
  3231  }
  3232  func (m *Bech32PrefixRequest) Unmarshal(dAtA []byte) error {
  3233  	l := len(dAtA)
  3234  	iNdEx := 0
  3235  	for iNdEx < l {
  3236  		preIndex := iNdEx
  3237  		var wire uint64
  3238  		for shift := uint(0); ; shift += 7 {
  3239  			if shift >= 64 {
  3240  				return ErrIntOverflowQuery
  3241  			}
  3242  			if iNdEx >= l {
  3243  				return io.ErrUnexpectedEOF
  3244  			}
  3245  			b := dAtA[iNdEx]
  3246  			iNdEx++
  3247  			wire |= uint64(b&0x7F) << shift
  3248  			if b < 0x80 {
  3249  				break
  3250  			}
  3251  		}
  3252  		fieldNum := int32(wire >> 3)
  3253  		wireType := int(wire & 0x7)
  3254  		if wireType == 4 {
  3255  			return fmt.Errorf("proto: Bech32PrefixRequest: wiretype end group for non-group")
  3256  		}
  3257  		if fieldNum <= 0 {
  3258  			return fmt.Errorf("proto: Bech32PrefixRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3259  		}
  3260  		switch fieldNum {
  3261  		default:
  3262  			iNdEx = preIndex
  3263  			skippy, err := skipQuery(dAtA[iNdEx:])
  3264  			if err != nil {
  3265  				return err
  3266  			}
  3267  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3268  				return ErrInvalidLengthQuery
  3269  			}
  3270  			if (iNdEx + skippy) > l {
  3271  				return io.ErrUnexpectedEOF
  3272  			}
  3273  			iNdEx += skippy
  3274  		}
  3275  	}
  3276  
  3277  	if iNdEx > l {
  3278  		return io.ErrUnexpectedEOF
  3279  	}
  3280  	return nil
  3281  }
  3282  func (m *Bech32PrefixResponse) Unmarshal(dAtA []byte) error {
  3283  	l := len(dAtA)
  3284  	iNdEx := 0
  3285  	for iNdEx < l {
  3286  		preIndex := iNdEx
  3287  		var wire uint64
  3288  		for shift := uint(0); ; shift += 7 {
  3289  			if shift >= 64 {
  3290  				return ErrIntOverflowQuery
  3291  			}
  3292  			if iNdEx >= l {
  3293  				return io.ErrUnexpectedEOF
  3294  			}
  3295  			b := dAtA[iNdEx]
  3296  			iNdEx++
  3297  			wire |= uint64(b&0x7F) << shift
  3298  			if b < 0x80 {
  3299  				break
  3300  			}
  3301  		}
  3302  		fieldNum := int32(wire >> 3)
  3303  		wireType := int(wire & 0x7)
  3304  		if wireType == 4 {
  3305  			return fmt.Errorf("proto: Bech32PrefixResponse: wiretype end group for non-group")
  3306  		}
  3307  		if fieldNum <= 0 {
  3308  			return fmt.Errorf("proto: Bech32PrefixResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3309  		}
  3310  		switch fieldNum {
  3311  		case 1:
  3312  			if wireType != 2 {
  3313  				return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType)
  3314  			}
  3315  			var stringLen uint64
  3316  			for shift := uint(0); ; shift += 7 {
  3317  				if shift >= 64 {
  3318  					return ErrIntOverflowQuery
  3319  				}
  3320  				if iNdEx >= l {
  3321  					return io.ErrUnexpectedEOF
  3322  				}
  3323  				b := dAtA[iNdEx]
  3324  				iNdEx++
  3325  				stringLen |= uint64(b&0x7F) << shift
  3326  				if b < 0x80 {
  3327  					break
  3328  				}
  3329  			}
  3330  			intStringLen := int(stringLen)
  3331  			if intStringLen < 0 {
  3332  				return ErrInvalidLengthQuery
  3333  			}
  3334  			postIndex := iNdEx + intStringLen
  3335  			if postIndex < 0 {
  3336  				return ErrInvalidLengthQuery
  3337  			}
  3338  			if postIndex > l {
  3339  				return io.ErrUnexpectedEOF
  3340  			}
  3341  			m.Bech32Prefix = string(dAtA[iNdEx:postIndex])
  3342  			iNdEx = postIndex
  3343  		default:
  3344  			iNdEx = preIndex
  3345  			skippy, err := skipQuery(dAtA[iNdEx:])
  3346  			if err != nil {
  3347  				return err
  3348  			}
  3349  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3350  				return ErrInvalidLengthQuery
  3351  			}
  3352  			if (iNdEx + skippy) > l {
  3353  				return io.ErrUnexpectedEOF
  3354  			}
  3355  			iNdEx += skippy
  3356  		}
  3357  	}
  3358  
  3359  	if iNdEx > l {
  3360  		return io.ErrUnexpectedEOF
  3361  	}
  3362  	return nil
  3363  }
  3364  func (m *AddressBytesToStringRequest) Unmarshal(dAtA []byte) error {
  3365  	l := len(dAtA)
  3366  	iNdEx := 0
  3367  	for iNdEx < l {
  3368  		preIndex := iNdEx
  3369  		var wire uint64
  3370  		for shift := uint(0); ; shift += 7 {
  3371  			if shift >= 64 {
  3372  				return ErrIntOverflowQuery
  3373  			}
  3374  			if iNdEx >= l {
  3375  				return io.ErrUnexpectedEOF
  3376  			}
  3377  			b := dAtA[iNdEx]
  3378  			iNdEx++
  3379  			wire |= uint64(b&0x7F) << shift
  3380  			if b < 0x80 {
  3381  				break
  3382  			}
  3383  		}
  3384  		fieldNum := int32(wire >> 3)
  3385  		wireType := int(wire & 0x7)
  3386  		if wireType == 4 {
  3387  			return fmt.Errorf("proto: AddressBytesToStringRequest: wiretype end group for non-group")
  3388  		}
  3389  		if fieldNum <= 0 {
  3390  			return fmt.Errorf("proto: AddressBytesToStringRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3391  		}
  3392  		switch fieldNum {
  3393  		case 1:
  3394  			if wireType != 2 {
  3395  				return fmt.Errorf("proto: wrong wireType = %d for field AddressBytes", wireType)
  3396  			}
  3397  			var byteLen int
  3398  			for shift := uint(0); ; shift += 7 {
  3399  				if shift >= 64 {
  3400  					return ErrIntOverflowQuery
  3401  				}
  3402  				if iNdEx >= l {
  3403  					return io.ErrUnexpectedEOF
  3404  				}
  3405  				b := dAtA[iNdEx]
  3406  				iNdEx++
  3407  				byteLen |= int(b&0x7F) << shift
  3408  				if b < 0x80 {
  3409  					break
  3410  				}
  3411  			}
  3412  			if byteLen < 0 {
  3413  				return ErrInvalidLengthQuery
  3414  			}
  3415  			postIndex := iNdEx + byteLen
  3416  			if postIndex < 0 {
  3417  				return ErrInvalidLengthQuery
  3418  			}
  3419  			if postIndex > l {
  3420  				return io.ErrUnexpectedEOF
  3421  			}
  3422  			m.AddressBytes = append(m.AddressBytes[:0], dAtA[iNdEx:postIndex]...)
  3423  			if m.AddressBytes == nil {
  3424  				m.AddressBytes = []byte{}
  3425  			}
  3426  			iNdEx = postIndex
  3427  		default:
  3428  			iNdEx = preIndex
  3429  			skippy, err := skipQuery(dAtA[iNdEx:])
  3430  			if err != nil {
  3431  				return err
  3432  			}
  3433  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3434  				return ErrInvalidLengthQuery
  3435  			}
  3436  			if (iNdEx + skippy) > l {
  3437  				return io.ErrUnexpectedEOF
  3438  			}
  3439  			iNdEx += skippy
  3440  		}
  3441  	}
  3442  
  3443  	if iNdEx > l {
  3444  		return io.ErrUnexpectedEOF
  3445  	}
  3446  	return nil
  3447  }
  3448  func (m *AddressBytesToStringResponse) Unmarshal(dAtA []byte) error {
  3449  	l := len(dAtA)
  3450  	iNdEx := 0
  3451  	for iNdEx < l {
  3452  		preIndex := iNdEx
  3453  		var wire uint64
  3454  		for shift := uint(0); ; shift += 7 {
  3455  			if shift >= 64 {
  3456  				return ErrIntOverflowQuery
  3457  			}
  3458  			if iNdEx >= l {
  3459  				return io.ErrUnexpectedEOF
  3460  			}
  3461  			b := dAtA[iNdEx]
  3462  			iNdEx++
  3463  			wire |= uint64(b&0x7F) << shift
  3464  			if b < 0x80 {
  3465  				break
  3466  			}
  3467  		}
  3468  		fieldNum := int32(wire >> 3)
  3469  		wireType := int(wire & 0x7)
  3470  		if wireType == 4 {
  3471  			return fmt.Errorf("proto: AddressBytesToStringResponse: wiretype end group for non-group")
  3472  		}
  3473  		if fieldNum <= 0 {
  3474  			return fmt.Errorf("proto: AddressBytesToStringResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3475  		}
  3476  		switch fieldNum {
  3477  		case 1:
  3478  			if wireType != 2 {
  3479  				return fmt.Errorf("proto: wrong wireType = %d for field AddressString", wireType)
  3480  			}
  3481  			var stringLen uint64
  3482  			for shift := uint(0); ; shift += 7 {
  3483  				if shift >= 64 {
  3484  					return ErrIntOverflowQuery
  3485  				}
  3486  				if iNdEx >= l {
  3487  					return io.ErrUnexpectedEOF
  3488  				}
  3489  				b := dAtA[iNdEx]
  3490  				iNdEx++
  3491  				stringLen |= uint64(b&0x7F) << shift
  3492  				if b < 0x80 {
  3493  					break
  3494  				}
  3495  			}
  3496  			intStringLen := int(stringLen)
  3497  			if intStringLen < 0 {
  3498  				return ErrInvalidLengthQuery
  3499  			}
  3500  			postIndex := iNdEx + intStringLen
  3501  			if postIndex < 0 {
  3502  				return ErrInvalidLengthQuery
  3503  			}
  3504  			if postIndex > l {
  3505  				return io.ErrUnexpectedEOF
  3506  			}
  3507  			m.AddressString = string(dAtA[iNdEx:postIndex])
  3508  			iNdEx = postIndex
  3509  		default:
  3510  			iNdEx = preIndex
  3511  			skippy, err := skipQuery(dAtA[iNdEx:])
  3512  			if err != nil {
  3513  				return err
  3514  			}
  3515  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3516  				return ErrInvalidLengthQuery
  3517  			}
  3518  			if (iNdEx + skippy) > l {
  3519  				return io.ErrUnexpectedEOF
  3520  			}
  3521  			iNdEx += skippy
  3522  		}
  3523  	}
  3524  
  3525  	if iNdEx > l {
  3526  		return io.ErrUnexpectedEOF
  3527  	}
  3528  	return nil
  3529  }
  3530  func (m *AddressStringToBytesRequest) Unmarshal(dAtA []byte) error {
  3531  	l := len(dAtA)
  3532  	iNdEx := 0
  3533  	for iNdEx < l {
  3534  		preIndex := iNdEx
  3535  		var wire uint64
  3536  		for shift := uint(0); ; shift += 7 {
  3537  			if shift >= 64 {
  3538  				return ErrIntOverflowQuery
  3539  			}
  3540  			if iNdEx >= l {
  3541  				return io.ErrUnexpectedEOF
  3542  			}
  3543  			b := dAtA[iNdEx]
  3544  			iNdEx++
  3545  			wire |= uint64(b&0x7F) << shift
  3546  			if b < 0x80 {
  3547  				break
  3548  			}
  3549  		}
  3550  		fieldNum := int32(wire >> 3)
  3551  		wireType := int(wire & 0x7)
  3552  		if wireType == 4 {
  3553  			return fmt.Errorf("proto: AddressStringToBytesRequest: wiretype end group for non-group")
  3554  		}
  3555  		if fieldNum <= 0 {
  3556  			return fmt.Errorf("proto: AddressStringToBytesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3557  		}
  3558  		switch fieldNum {
  3559  		case 1:
  3560  			if wireType != 2 {
  3561  				return fmt.Errorf("proto: wrong wireType = %d for field AddressString", wireType)
  3562  			}
  3563  			var stringLen uint64
  3564  			for shift := uint(0); ; shift += 7 {
  3565  				if shift >= 64 {
  3566  					return ErrIntOverflowQuery
  3567  				}
  3568  				if iNdEx >= l {
  3569  					return io.ErrUnexpectedEOF
  3570  				}
  3571  				b := dAtA[iNdEx]
  3572  				iNdEx++
  3573  				stringLen |= uint64(b&0x7F) << shift
  3574  				if b < 0x80 {
  3575  					break
  3576  				}
  3577  			}
  3578  			intStringLen := int(stringLen)
  3579  			if intStringLen < 0 {
  3580  				return ErrInvalidLengthQuery
  3581  			}
  3582  			postIndex := iNdEx + intStringLen
  3583  			if postIndex < 0 {
  3584  				return ErrInvalidLengthQuery
  3585  			}
  3586  			if postIndex > l {
  3587  				return io.ErrUnexpectedEOF
  3588  			}
  3589  			m.AddressString = string(dAtA[iNdEx:postIndex])
  3590  			iNdEx = postIndex
  3591  		default:
  3592  			iNdEx = preIndex
  3593  			skippy, err := skipQuery(dAtA[iNdEx:])
  3594  			if err != nil {
  3595  				return err
  3596  			}
  3597  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3598  				return ErrInvalidLengthQuery
  3599  			}
  3600  			if (iNdEx + skippy) > l {
  3601  				return io.ErrUnexpectedEOF
  3602  			}
  3603  			iNdEx += skippy
  3604  		}
  3605  	}
  3606  
  3607  	if iNdEx > l {
  3608  		return io.ErrUnexpectedEOF
  3609  	}
  3610  	return nil
  3611  }
  3612  func (m *AddressStringToBytesResponse) Unmarshal(dAtA []byte) error {
  3613  	l := len(dAtA)
  3614  	iNdEx := 0
  3615  	for iNdEx < l {
  3616  		preIndex := iNdEx
  3617  		var wire uint64
  3618  		for shift := uint(0); ; shift += 7 {
  3619  			if shift >= 64 {
  3620  				return ErrIntOverflowQuery
  3621  			}
  3622  			if iNdEx >= l {
  3623  				return io.ErrUnexpectedEOF
  3624  			}
  3625  			b := dAtA[iNdEx]
  3626  			iNdEx++
  3627  			wire |= uint64(b&0x7F) << shift
  3628  			if b < 0x80 {
  3629  				break
  3630  			}
  3631  		}
  3632  		fieldNum := int32(wire >> 3)
  3633  		wireType := int(wire & 0x7)
  3634  		if wireType == 4 {
  3635  			return fmt.Errorf("proto: AddressStringToBytesResponse: wiretype end group for non-group")
  3636  		}
  3637  		if fieldNum <= 0 {
  3638  			return fmt.Errorf("proto: AddressStringToBytesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3639  		}
  3640  		switch fieldNum {
  3641  		case 1:
  3642  			if wireType != 2 {
  3643  				return fmt.Errorf("proto: wrong wireType = %d for field AddressBytes", wireType)
  3644  			}
  3645  			var byteLen int
  3646  			for shift := uint(0); ; shift += 7 {
  3647  				if shift >= 64 {
  3648  					return ErrIntOverflowQuery
  3649  				}
  3650  				if iNdEx >= l {
  3651  					return io.ErrUnexpectedEOF
  3652  				}
  3653  				b := dAtA[iNdEx]
  3654  				iNdEx++
  3655  				byteLen |= int(b&0x7F) << shift
  3656  				if b < 0x80 {
  3657  					break
  3658  				}
  3659  			}
  3660  			if byteLen < 0 {
  3661  				return ErrInvalidLengthQuery
  3662  			}
  3663  			postIndex := iNdEx + byteLen
  3664  			if postIndex < 0 {
  3665  				return ErrInvalidLengthQuery
  3666  			}
  3667  			if postIndex > l {
  3668  				return io.ErrUnexpectedEOF
  3669  			}
  3670  			m.AddressBytes = append(m.AddressBytes[:0], dAtA[iNdEx:postIndex]...)
  3671  			if m.AddressBytes == nil {
  3672  				m.AddressBytes = []byte{}
  3673  			}
  3674  			iNdEx = postIndex
  3675  		default:
  3676  			iNdEx = preIndex
  3677  			skippy, err := skipQuery(dAtA[iNdEx:])
  3678  			if err != nil {
  3679  				return err
  3680  			}
  3681  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3682  				return ErrInvalidLengthQuery
  3683  			}
  3684  			if (iNdEx + skippy) > l {
  3685  				return io.ErrUnexpectedEOF
  3686  			}
  3687  			iNdEx += skippy
  3688  		}
  3689  	}
  3690  
  3691  	if iNdEx > l {
  3692  		return io.ErrUnexpectedEOF
  3693  	}
  3694  	return nil
  3695  }
  3696  func (m *QueryAccountAddressByIDRequest) Unmarshal(dAtA []byte) error {
  3697  	l := len(dAtA)
  3698  	iNdEx := 0
  3699  	for iNdEx < l {
  3700  		preIndex := iNdEx
  3701  		var wire uint64
  3702  		for shift := uint(0); ; shift += 7 {
  3703  			if shift >= 64 {
  3704  				return ErrIntOverflowQuery
  3705  			}
  3706  			if iNdEx >= l {
  3707  				return io.ErrUnexpectedEOF
  3708  			}
  3709  			b := dAtA[iNdEx]
  3710  			iNdEx++
  3711  			wire |= uint64(b&0x7F) << shift
  3712  			if b < 0x80 {
  3713  				break
  3714  			}
  3715  		}
  3716  		fieldNum := int32(wire >> 3)
  3717  		wireType := int(wire & 0x7)
  3718  		if wireType == 4 {
  3719  			return fmt.Errorf("proto: QueryAccountAddressByIDRequest: wiretype end group for non-group")
  3720  		}
  3721  		if fieldNum <= 0 {
  3722  			return fmt.Errorf("proto: QueryAccountAddressByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3723  		}
  3724  		switch fieldNum {
  3725  		case 1:
  3726  			if wireType != 0 {
  3727  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3728  			}
  3729  			m.Id = 0
  3730  			for shift := uint(0); ; shift += 7 {
  3731  				if shift >= 64 {
  3732  					return ErrIntOverflowQuery
  3733  				}
  3734  				if iNdEx >= l {
  3735  					return io.ErrUnexpectedEOF
  3736  				}
  3737  				b := dAtA[iNdEx]
  3738  				iNdEx++
  3739  				m.Id |= int64(b&0x7F) << shift
  3740  				if b < 0x80 {
  3741  					break
  3742  				}
  3743  			}
  3744  		case 2:
  3745  			if wireType != 0 {
  3746  				return fmt.Errorf("proto: wrong wireType = %d for field AccountId", wireType)
  3747  			}
  3748  			m.AccountId = 0
  3749  			for shift := uint(0); ; shift += 7 {
  3750  				if shift >= 64 {
  3751  					return ErrIntOverflowQuery
  3752  				}
  3753  				if iNdEx >= l {
  3754  					return io.ErrUnexpectedEOF
  3755  				}
  3756  				b := dAtA[iNdEx]
  3757  				iNdEx++
  3758  				m.AccountId |= uint64(b&0x7F) << shift
  3759  				if b < 0x80 {
  3760  					break
  3761  				}
  3762  			}
  3763  		default:
  3764  			iNdEx = preIndex
  3765  			skippy, err := skipQuery(dAtA[iNdEx:])
  3766  			if err != nil {
  3767  				return err
  3768  			}
  3769  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3770  				return ErrInvalidLengthQuery
  3771  			}
  3772  			if (iNdEx + skippy) > l {
  3773  				return io.ErrUnexpectedEOF
  3774  			}
  3775  			iNdEx += skippy
  3776  		}
  3777  	}
  3778  
  3779  	if iNdEx > l {
  3780  		return io.ErrUnexpectedEOF
  3781  	}
  3782  	return nil
  3783  }
  3784  func (m *QueryAccountAddressByIDResponse) Unmarshal(dAtA []byte) error {
  3785  	l := len(dAtA)
  3786  	iNdEx := 0
  3787  	for iNdEx < l {
  3788  		preIndex := iNdEx
  3789  		var wire uint64
  3790  		for shift := uint(0); ; shift += 7 {
  3791  			if shift >= 64 {
  3792  				return ErrIntOverflowQuery
  3793  			}
  3794  			if iNdEx >= l {
  3795  				return io.ErrUnexpectedEOF
  3796  			}
  3797  			b := dAtA[iNdEx]
  3798  			iNdEx++
  3799  			wire |= uint64(b&0x7F) << shift
  3800  			if b < 0x80 {
  3801  				break
  3802  			}
  3803  		}
  3804  		fieldNum := int32(wire >> 3)
  3805  		wireType := int(wire & 0x7)
  3806  		if wireType == 4 {
  3807  			return fmt.Errorf("proto: QueryAccountAddressByIDResponse: wiretype end group for non-group")
  3808  		}
  3809  		if fieldNum <= 0 {
  3810  			return fmt.Errorf("proto: QueryAccountAddressByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3811  		}
  3812  		switch fieldNum {
  3813  		case 1:
  3814  			if wireType != 2 {
  3815  				return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType)
  3816  			}
  3817  			var stringLen uint64
  3818  			for shift := uint(0); ; shift += 7 {
  3819  				if shift >= 64 {
  3820  					return ErrIntOverflowQuery
  3821  				}
  3822  				if iNdEx >= l {
  3823  					return io.ErrUnexpectedEOF
  3824  				}
  3825  				b := dAtA[iNdEx]
  3826  				iNdEx++
  3827  				stringLen |= uint64(b&0x7F) << shift
  3828  				if b < 0x80 {
  3829  					break
  3830  				}
  3831  			}
  3832  			intStringLen := int(stringLen)
  3833  			if intStringLen < 0 {
  3834  				return ErrInvalidLengthQuery
  3835  			}
  3836  			postIndex := iNdEx + intStringLen
  3837  			if postIndex < 0 {
  3838  				return ErrInvalidLengthQuery
  3839  			}
  3840  			if postIndex > l {
  3841  				return io.ErrUnexpectedEOF
  3842  			}
  3843  			m.AccountAddress = string(dAtA[iNdEx:postIndex])
  3844  			iNdEx = postIndex
  3845  		default:
  3846  			iNdEx = preIndex
  3847  			skippy, err := skipQuery(dAtA[iNdEx:])
  3848  			if err != nil {
  3849  				return err
  3850  			}
  3851  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3852  				return ErrInvalidLengthQuery
  3853  			}
  3854  			if (iNdEx + skippy) > l {
  3855  				return io.ErrUnexpectedEOF
  3856  			}
  3857  			iNdEx += skippy
  3858  		}
  3859  	}
  3860  
  3861  	if iNdEx > l {
  3862  		return io.ErrUnexpectedEOF
  3863  	}
  3864  	return nil
  3865  }
  3866  func (m *QueryAccountInfoRequest) Unmarshal(dAtA []byte) error {
  3867  	l := len(dAtA)
  3868  	iNdEx := 0
  3869  	for iNdEx < l {
  3870  		preIndex := iNdEx
  3871  		var wire uint64
  3872  		for shift := uint(0); ; shift += 7 {
  3873  			if shift >= 64 {
  3874  				return ErrIntOverflowQuery
  3875  			}
  3876  			if iNdEx >= l {
  3877  				return io.ErrUnexpectedEOF
  3878  			}
  3879  			b := dAtA[iNdEx]
  3880  			iNdEx++
  3881  			wire |= uint64(b&0x7F) << shift
  3882  			if b < 0x80 {
  3883  				break
  3884  			}
  3885  		}
  3886  		fieldNum := int32(wire >> 3)
  3887  		wireType := int(wire & 0x7)
  3888  		if wireType == 4 {
  3889  			return fmt.Errorf("proto: QueryAccountInfoRequest: wiretype end group for non-group")
  3890  		}
  3891  		if fieldNum <= 0 {
  3892  			return fmt.Errorf("proto: QueryAccountInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3893  		}
  3894  		switch fieldNum {
  3895  		case 1:
  3896  			if wireType != 2 {
  3897  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3898  			}
  3899  			var stringLen uint64
  3900  			for shift := uint(0); ; shift += 7 {
  3901  				if shift >= 64 {
  3902  					return ErrIntOverflowQuery
  3903  				}
  3904  				if iNdEx >= l {
  3905  					return io.ErrUnexpectedEOF
  3906  				}
  3907  				b := dAtA[iNdEx]
  3908  				iNdEx++
  3909  				stringLen |= uint64(b&0x7F) << shift
  3910  				if b < 0x80 {
  3911  					break
  3912  				}
  3913  			}
  3914  			intStringLen := int(stringLen)
  3915  			if intStringLen < 0 {
  3916  				return ErrInvalidLengthQuery
  3917  			}
  3918  			postIndex := iNdEx + intStringLen
  3919  			if postIndex < 0 {
  3920  				return ErrInvalidLengthQuery
  3921  			}
  3922  			if postIndex > l {
  3923  				return io.ErrUnexpectedEOF
  3924  			}
  3925  			m.Address = string(dAtA[iNdEx:postIndex])
  3926  			iNdEx = postIndex
  3927  		default:
  3928  			iNdEx = preIndex
  3929  			skippy, err := skipQuery(dAtA[iNdEx:])
  3930  			if err != nil {
  3931  				return err
  3932  			}
  3933  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3934  				return ErrInvalidLengthQuery
  3935  			}
  3936  			if (iNdEx + skippy) > l {
  3937  				return io.ErrUnexpectedEOF
  3938  			}
  3939  			iNdEx += skippy
  3940  		}
  3941  	}
  3942  
  3943  	if iNdEx > l {
  3944  		return io.ErrUnexpectedEOF
  3945  	}
  3946  	return nil
  3947  }
  3948  func (m *QueryAccountInfoResponse) Unmarshal(dAtA []byte) error {
  3949  	l := len(dAtA)
  3950  	iNdEx := 0
  3951  	for iNdEx < l {
  3952  		preIndex := iNdEx
  3953  		var wire uint64
  3954  		for shift := uint(0); ; shift += 7 {
  3955  			if shift >= 64 {
  3956  				return ErrIntOverflowQuery
  3957  			}
  3958  			if iNdEx >= l {
  3959  				return io.ErrUnexpectedEOF
  3960  			}
  3961  			b := dAtA[iNdEx]
  3962  			iNdEx++
  3963  			wire |= uint64(b&0x7F) << shift
  3964  			if b < 0x80 {
  3965  				break
  3966  			}
  3967  		}
  3968  		fieldNum := int32(wire >> 3)
  3969  		wireType := int(wire & 0x7)
  3970  		if wireType == 4 {
  3971  			return fmt.Errorf("proto: QueryAccountInfoResponse: wiretype end group for non-group")
  3972  		}
  3973  		if fieldNum <= 0 {
  3974  			return fmt.Errorf("proto: QueryAccountInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3975  		}
  3976  		switch fieldNum {
  3977  		case 1:
  3978  			if wireType != 2 {
  3979  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3980  			}
  3981  			var msglen int
  3982  			for shift := uint(0); ; shift += 7 {
  3983  				if shift >= 64 {
  3984  					return ErrIntOverflowQuery
  3985  				}
  3986  				if iNdEx >= l {
  3987  					return io.ErrUnexpectedEOF
  3988  				}
  3989  				b := dAtA[iNdEx]
  3990  				iNdEx++
  3991  				msglen |= int(b&0x7F) << shift
  3992  				if b < 0x80 {
  3993  					break
  3994  				}
  3995  			}
  3996  			if msglen < 0 {
  3997  				return ErrInvalidLengthQuery
  3998  			}
  3999  			postIndex := iNdEx + msglen
  4000  			if postIndex < 0 {
  4001  				return ErrInvalidLengthQuery
  4002  			}
  4003  			if postIndex > l {
  4004  				return io.ErrUnexpectedEOF
  4005  			}
  4006  			if m.Info == nil {
  4007  				m.Info = &BaseAccount{}
  4008  			}
  4009  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4010  				return err
  4011  			}
  4012  			iNdEx = postIndex
  4013  		default:
  4014  			iNdEx = preIndex
  4015  			skippy, err := skipQuery(dAtA[iNdEx:])
  4016  			if err != nil {
  4017  				return err
  4018  			}
  4019  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4020  				return ErrInvalidLengthQuery
  4021  			}
  4022  			if (iNdEx + skippy) > l {
  4023  				return io.ErrUnexpectedEOF
  4024  			}
  4025  			iNdEx += skippy
  4026  		}
  4027  	}
  4028  
  4029  	if iNdEx > l {
  4030  		return io.ErrUnexpectedEOF
  4031  	}
  4032  	return nil
  4033  }
  4034  func skipQuery(dAtA []byte) (n int, err error) {
  4035  	l := len(dAtA)
  4036  	iNdEx := 0
  4037  	depth := 0
  4038  	for iNdEx < l {
  4039  		var wire uint64
  4040  		for shift := uint(0); ; shift += 7 {
  4041  			if shift >= 64 {
  4042  				return 0, ErrIntOverflowQuery
  4043  			}
  4044  			if iNdEx >= l {
  4045  				return 0, io.ErrUnexpectedEOF
  4046  			}
  4047  			b := dAtA[iNdEx]
  4048  			iNdEx++
  4049  			wire |= (uint64(b) & 0x7F) << shift
  4050  			if b < 0x80 {
  4051  				break
  4052  			}
  4053  		}
  4054  		wireType := int(wire & 0x7)
  4055  		switch wireType {
  4056  		case 0:
  4057  			for shift := uint(0); ; shift += 7 {
  4058  				if shift >= 64 {
  4059  					return 0, ErrIntOverflowQuery
  4060  				}
  4061  				if iNdEx >= l {
  4062  					return 0, io.ErrUnexpectedEOF
  4063  				}
  4064  				iNdEx++
  4065  				if dAtA[iNdEx-1] < 0x80 {
  4066  					break
  4067  				}
  4068  			}
  4069  		case 1:
  4070  			iNdEx += 8
  4071  		case 2:
  4072  			var length int
  4073  			for shift := uint(0); ; shift += 7 {
  4074  				if shift >= 64 {
  4075  					return 0, ErrIntOverflowQuery
  4076  				}
  4077  				if iNdEx >= l {
  4078  					return 0, io.ErrUnexpectedEOF
  4079  				}
  4080  				b := dAtA[iNdEx]
  4081  				iNdEx++
  4082  				length |= (int(b) & 0x7F) << shift
  4083  				if b < 0x80 {
  4084  					break
  4085  				}
  4086  			}
  4087  			if length < 0 {
  4088  				return 0, ErrInvalidLengthQuery
  4089  			}
  4090  			iNdEx += length
  4091  		case 3:
  4092  			depth++
  4093  		case 4:
  4094  			if depth == 0 {
  4095  				return 0, ErrUnexpectedEndOfGroupQuery
  4096  			}
  4097  			depth--
  4098  		case 5:
  4099  			iNdEx += 4
  4100  		default:
  4101  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4102  		}
  4103  		if iNdEx < 0 {
  4104  			return 0, ErrInvalidLengthQuery
  4105  		}
  4106  		if depth == 0 {
  4107  			return iNdEx, nil
  4108  		}
  4109  	}
  4110  	return 0, io.ErrUnexpectedEOF
  4111  }
  4112  
  4113  var (
  4114  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  4115  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  4116  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  4117  )