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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/foundation/v1/query.proto
     3  
     4  package foundation
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types1 "github.com/Finschia/finschia-sdk/codec/types"
    10  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    11  	types "github.com/Finschia/finschia-sdk/types"
    12  	query "github.com/Finschia/finschia-sdk/types/query"
    13  	_ "github.com/gogo/protobuf/gogoproto"
    14  	grpc1 "github.com/gogo/protobuf/grpc"
    15  	proto "github.com/gogo/protobuf/proto"
    16  	_ "github.com/regen-network/cosmos-proto"
    17  	_ "google.golang.org/genproto/googleapis/api/annotations"
    18  	grpc "google.golang.org/grpc"
    19  	codes "google.golang.org/grpc/codes"
    20  	status "google.golang.org/grpc/status"
    21  	io "io"
    22  	math "math"
    23  	math_bits "math/bits"
    24  )
    25  
    26  // Reference imports to suppress errors if they are not otherwise used.
    27  var _ = proto.Marshal
    28  var _ = fmt.Errorf
    29  var _ = math.Inf
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the proto package it is being compiled against.
    33  // A compilation error at this line likely means your copy of the
    34  // proto package needs to be updated.
    35  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    36  
    37  // QueryParamsRequest is the request type for the Query/Params RPC method.
    38  type QueryParamsRequest struct {
    39  }
    40  
    41  func (m *QueryParamsRequest) Reset()         { *m = QueryParamsRequest{} }
    42  func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
    43  func (*QueryParamsRequest) ProtoMessage()    {}
    44  func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_15a18e20c0e403af, []int{0}
    46  }
    47  func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
    48  	return m.Unmarshal(b)
    49  }
    50  func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	if deterministic {
    52  		return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
    53  	} else {
    54  		b = b[:cap(b)]
    55  		n, err := m.MarshalToSizedBuffer(b)
    56  		if err != nil {
    57  			return nil, err
    58  		}
    59  		return b[:n], nil
    60  	}
    61  }
    62  func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
    63  	xxx_messageInfo_QueryParamsRequest.Merge(m, src)
    64  }
    65  func (m *QueryParamsRequest) XXX_Size() int {
    66  	return m.Size()
    67  }
    68  func (m *QueryParamsRequest) XXX_DiscardUnknown() {
    69  	xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
    70  }
    71  
    72  var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
    73  
    74  // QueryParamsResponse is the response type for the Query/Params RPC method.
    75  type QueryParamsResponse struct {
    76  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    77  }
    78  
    79  func (m *QueryParamsResponse) Reset()         { *m = QueryParamsResponse{} }
    80  func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
    81  func (*QueryParamsResponse) ProtoMessage()    {}
    82  func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
    83  	return fileDescriptor_15a18e20c0e403af, []int{1}
    84  }
    85  func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
    86  	return m.Unmarshal(b)
    87  }
    88  func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    89  	if deterministic {
    90  		return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
    91  	} else {
    92  		b = b[:cap(b)]
    93  		n, err := m.MarshalToSizedBuffer(b)
    94  		if err != nil {
    95  			return nil, err
    96  		}
    97  		return b[:n], nil
    98  	}
    99  }
   100  func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_QueryParamsResponse.Merge(m, src)
   102  }
   103  func (m *QueryParamsResponse) XXX_Size() int {
   104  	return m.Size()
   105  }
   106  func (m *QueryParamsResponse) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
   111  
   112  func (m *QueryParamsResponse) GetParams() Params {
   113  	if m != nil {
   114  		return m.Params
   115  	}
   116  	return Params{}
   117  }
   118  
   119  // QueryTreasuryRequest is the request type for the
   120  // Query/Treasury RPC method.
   121  type QueryTreasuryRequest struct {
   122  }
   123  
   124  func (m *QueryTreasuryRequest) Reset()         { *m = QueryTreasuryRequest{} }
   125  func (m *QueryTreasuryRequest) String() string { return proto.CompactTextString(m) }
   126  func (*QueryTreasuryRequest) ProtoMessage()    {}
   127  func (*QueryTreasuryRequest) Descriptor() ([]byte, []int) {
   128  	return fileDescriptor_15a18e20c0e403af, []int{2}
   129  }
   130  func (m *QueryTreasuryRequest) XXX_Unmarshal(b []byte) error {
   131  	return m.Unmarshal(b)
   132  }
   133  func (m *QueryTreasuryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   134  	if deterministic {
   135  		return xxx_messageInfo_QueryTreasuryRequest.Marshal(b, m, deterministic)
   136  	} else {
   137  		b = b[:cap(b)]
   138  		n, err := m.MarshalToSizedBuffer(b)
   139  		if err != nil {
   140  			return nil, err
   141  		}
   142  		return b[:n], nil
   143  	}
   144  }
   145  func (m *QueryTreasuryRequest) XXX_Merge(src proto.Message) {
   146  	xxx_messageInfo_QueryTreasuryRequest.Merge(m, src)
   147  }
   148  func (m *QueryTreasuryRequest) XXX_Size() int {
   149  	return m.Size()
   150  }
   151  func (m *QueryTreasuryRequest) XXX_DiscardUnknown() {
   152  	xxx_messageInfo_QueryTreasuryRequest.DiscardUnknown(m)
   153  }
   154  
   155  var xxx_messageInfo_QueryTreasuryRequest proto.InternalMessageInfo
   156  
   157  // QueryTreasuryResponse is the response type for the
   158  // Query/Treasury RPC method.
   159  type QueryTreasuryResponse struct {
   160  	Amount github_com_Finschia_finschia_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.DecCoins" json:"amount"`
   161  }
   162  
   163  func (m *QueryTreasuryResponse) Reset()         { *m = QueryTreasuryResponse{} }
   164  func (m *QueryTreasuryResponse) String() string { return proto.CompactTextString(m) }
   165  func (*QueryTreasuryResponse) ProtoMessage()    {}
   166  func (*QueryTreasuryResponse) Descriptor() ([]byte, []int) {
   167  	return fileDescriptor_15a18e20c0e403af, []int{3}
   168  }
   169  func (m *QueryTreasuryResponse) XXX_Unmarshal(b []byte) error {
   170  	return m.Unmarshal(b)
   171  }
   172  func (m *QueryTreasuryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   173  	if deterministic {
   174  		return xxx_messageInfo_QueryTreasuryResponse.Marshal(b, m, deterministic)
   175  	} else {
   176  		b = b[:cap(b)]
   177  		n, err := m.MarshalToSizedBuffer(b)
   178  		if err != nil {
   179  			return nil, err
   180  		}
   181  		return b[:n], nil
   182  	}
   183  }
   184  func (m *QueryTreasuryResponse) XXX_Merge(src proto.Message) {
   185  	xxx_messageInfo_QueryTreasuryResponse.Merge(m, src)
   186  }
   187  func (m *QueryTreasuryResponse) XXX_Size() int {
   188  	return m.Size()
   189  }
   190  func (m *QueryTreasuryResponse) XXX_DiscardUnknown() {
   191  	xxx_messageInfo_QueryTreasuryResponse.DiscardUnknown(m)
   192  }
   193  
   194  var xxx_messageInfo_QueryTreasuryResponse proto.InternalMessageInfo
   195  
   196  func (m *QueryTreasuryResponse) GetAmount() github_com_Finschia_finschia_sdk_types.DecCoins {
   197  	if m != nil {
   198  		return m.Amount
   199  	}
   200  	return nil
   201  }
   202  
   203  // QueryFoundationInfoRequest is the Query/FoundationInfo request type.
   204  type QueryFoundationInfoRequest struct {
   205  }
   206  
   207  func (m *QueryFoundationInfoRequest) Reset()         { *m = QueryFoundationInfoRequest{} }
   208  func (m *QueryFoundationInfoRequest) String() string { return proto.CompactTextString(m) }
   209  func (*QueryFoundationInfoRequest) ProtoMessage()    {}
   210  func (*QueryFoundationInfoRequest) Descriptor() ([]byte, []int) {
   211  	return fileDescriptor_15a18e20c0e403af, []int{4}
   212  }
   213  func (m *QueryFoundationInfoRequest) XXX_Unmarshal(b []byte) error {
   214  	return m.Unmarshal(b)
   215  }
   216  func (m *QueryFoundationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   217  	if deterministic {
   218  		return xxx_messageInfo_QueryFoundationInfoRequest.Marshal(b, m, deterministic)
   219  	} else {
   220  		b = b[:cap(b)]
   221  		n, err := m.MarshalToSizedBuffer(b)
   222  		if err != nil {
   223  			return nil, err
   224  		}
   225  		return b[:n], nil
   226  	}
   227  }
   228  func (m *QueryFoundationInfoRequest) XXX_Merge(src proto.Message) {
   229  	xxx_messageInfo_QueryFoundationInfoRequest.Merge(m, src)
   230  }
   231  func (m *QueryFoundationInfoRequest) XXX_Size() int {
   232  	return m.Size()
   233  }
   234  func (m *QueryFoundationInfoRequest) XXX_DiscardUnknown() {
   235  	xxx_messageInfo_QueryFoundationInfoRequest.DiscardUnknown(m)
   236  }
   237  
   238  var xxx_messageInfo_QueryFoundationInfoRequest proto.InternalMessageInfo
   239  
   240  // QueryFoundationInfoResponse is the Query/FoundationInfo response type.
   241  type QueryFoundationInfoResponse struct {
   242  	// info is the FoundationInfo for the foundation.
   243  	Info FoundationInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
   244  }
   245  
   246  func (m *QueryFoundationInfoResponse) Reset()         { *m = QueryFoundationInfoResponse{} }
   247  func (m *QueryFoundationInfoResponse) String() string { return proto.CompactTextString(m) }
   248  func (*QueryFoundationInfoResponse) ProtoMessage()    {}
   249  func (*QueryFoundationInfoResponse) Descriptor() ([]byte, []int) {
   250  	return fileDescriptor_15a18e20c0e403af, []int{5}
   251  }
   252  func (m *QueryFoundationInfoResponse) XXX_Unmarshal(b []byte) error {
   253  	return m.Unmarshal(b)
   254  }
   255  func (m *QueryFoundationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   256  	if deterministic {
   257  		return xxx_messageInfo_QueryFoundationInfoResponse.Marshal(b, m, deterministic)
   258  	} else {
   259  		b = b[:cap(b)]
   260  		n, err := m.MarshalToSizedBuffer(b)
   261  		if err != nil {
   262  			return nil, err
   263  		}
   264  		return b[:n], nil
   265  	}
   266  }
   267  func (m *QueryFoundationInfoResponse) XXX_Merge(src proto.Message) {
   268  	xxx_messageInfo_QueryFoundationInfoResponse.Merge(m, src)
   269  }
   270  func (m *QueryFoundationInfoResponse) XXX_Size() int {
   271  	return m.Size()
   272  }
   273  func (m *QueryFoundationInfoResponse) XXX_DiscardUnknown() {
   274  	xxx_messageInfo_QueryFoundationInfoResponse.DiscardUnknown(m)
   275  }
   276  
   277  var xxx_messageInfo_QueryFoundationInfoResponse proto.InternalMessageInfo
   278  
   279  func (m *QueryFoundationInfoResponse) GetInfo() FoundationInfo {
   280  	if m != nil {
   281  		return m.Info
   282  	}
   283  	return FoundationInfo{}
   284  }
   285  
   286  // QueryMemberRequest is the Query/Member request type.
   287  type QueryMemberRequest struct {
   288  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   289  }
   290  
   291  func (m *QueryMemberRequest) Reset()         { *m = QueryMemberRequest{} }
   292  func (m *QueryMemberRequest) String() string { return proto.CompactTextString(m) }
   293  func (*QueryMemberRequest) ProtoMessage()    {}
   294  func (*QueryMemberRequest) Descriptor() ([]byte, []int) {
   295  	return fileDescriptor_15a18e20c0e403af, []int{6}
   296  }
   297  func (m *QueryMemberRequest) XXX_Unmarshal(b []byte) error {
   298  	return m.Unmarshal(b)
   299  }
   300  func (m *QueryMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   301  	if deterministic {
   302  		return xxx_messageInfo_QueryMemberRequest.Marshal(b, m, deterministic)
   303  	} else {
   304  		b = b[:cap(b)]
   305  		n, err := m.MarshalToSizedBuffer(b)
   306  		if err != nil {
   307  			return nil, err
   308  		}
   309  		return b[:n], nil
   310  	}
   311  }
   312  func (m *QueryMemberRequest) XXX_Merge(src proto.Message) {
   313  	xxx_messageInfo_QueryMemberRequest.Merge(m, src)
   314  }
   315  func (m *QueryMemberRequest) XXX_Size() int {
   316  	return m.Size()
   317  }
   318  func (m *QueryMemberRequest) XXX_DiscardUnknown() {
   319  	xxx_messageInfo_QueryMemberRequest.DiscardUnknown(m)
   320  }
   321  
   322  var xxx_messageInfo_QueryMemberRequest proto.InternalMessageInfo
   323  
   324  func (m *QueryMemberRequest) GetAddress() string {
   325  	if m != nil {
   326  		return m.Address
   327  	}
   328  	return ""
   329  }
   330  
   331  // QueryMemberResponse is the Query/MemberResponse response type.
   332  type QueryMemberResponse struct {
   333  	// member is the members of the foundation.
   334  	Member *Member `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
   335  }
   336  
   337  func (m *QueryMemberResponse) Reset()         { *m = QueryMemberResponse{} }
   338  func (m *QueryMemberResponse) String() string { return proto.CompactTextString(m) }
   339  func (*QueryMemberResponse) ProtoMessage()    {}
   340  func (*QueryMemberResponse) Descriptor() ([]byte, []int) {
   341  	return fileDescriptor_15a18e20c0e403af, []int{7}
   342  }
   343  func (m *QueryMemberResponse) XXX_Unmarshal(b []byte) error {
   344  	return m.Unmarshal(b)
   345  }
   346  func (m *QueryMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   347  	if deterministic {
   348  		return xxx_messageInfo_QueryMemberResponse.Marshal(b, m, deterministic)
   349  	} else {
   350  		b = b[:cap(b)]
   351  		n, err := m.MarshalToSizedBuffer(b)
   352  		if err != nil {
   353  			return nil, err
   354  		}
   355  		return b[:n], nil
   356  	}
   357  }
   358  func (m *QueryMemberResponse) XXX_Merge(src proto.Message) {
   359  	xxx_messageInfo_QueryMemberResponse.Merge(m, src)
   360  }
   361  func (m *QueryMemberResponse) XXX_Size() int {
   362  	return m.Size()
   363  }
   364  func (m *QueryMemberResponse) XXX_DiscardUnknown() {
   365  	xxx_messageInfo_QueryMemberResponse.DiscardUnknown(m)
   366  }
   367  
   368  var xxx_messageInfo_QueryMemberResponse proto.InternalMessageInfo
   369  
   370  func (m *QueryMemberResponse) GetMember() *Member {
   371  	if m != nil {
   372  		return m.Member
   373  	}
   374  	return nil
   375  }
   376  
   377  // QueryMembersRequest is the Query/Members request type.
   378  type QueryMembersRequest struct {
   379  	// pagination defines an optional pagination for the request.
   380  	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
   381  }
   382  
   383  func (m *QueryMembersRequest) Reset()         { *m = QueryMembersRequest{} }
   384  func (m *QueryMembersRequest) String() string { return proto.CompactTextString(m) }
   385  func (*QueryMembersRequest) ProtoMessage()    {}
   386  func (*QueryMembersRequest) Descriptor() ([]byte, []int) {
   387  	return fileDescriptor_15a18e20c0e403af, []int{8}
   388  }
   389  func (m *QueryMembersRequest) XXX_Unmarshal(b []byte) error {
   390  	return m.Unmarshal(b)
   391  }
   392  func (m *QueryMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   393  	if deterministic {
   394  		return xxx_messageInfo_QueryMembersRequest.Marshal(b, m, deterministic)
   395  	} else {
   396  		b = b[:cap(b)]
   397  		n, err := m.MarshalToSizedBuffer(b)
   398  		if err != nil {
   399  			return nil, err
   400  		}
   401  		return b[:n], nil
   402  	}
   403  }
   404  func (m *QueryMembersRequest) XXX_Merge(src proto.Message) {
   405  	xxx_messageInfo_QueryMembersRequest.Merge(m, src)
   406  }
   407  func (m *QueryMembersRequest) XXX_Size() int {
   408  	return m.Size()
   409  }
   410  func (m *QueryMembersRequest) XXX_DiscardUnknown() {
   411  	xxx_messageInfo_QueryMembersRequest.DiscardUnknown(m)
   412  }
   413  
   414  var xxx_messageInfo_QueryMembersRequest proto.InternalMessageInfo
   415  
   416  func (m *QueryMembersRequest) GetPagination() *query.PageRequest {
   417  	if m != nil {
   418  		return m.Pagination
   419  	}
   420  	return nil
   421  }
   422  
   423  // QueryMembersResponse is the Query/MembersResponse response type.
   424  type QueryMembersResponse struct {
   425  	// members are the members of the foundation.
   426  	Members []Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members"`
   427  	// pagination defines the pagination in the response.
   428  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   429  }
   430  
   431  func (m *QueryMembersResponse) Reset()         { *m = QueryMembersResponse{} }
   432  func (m *QueryMembersResponse) String() string { return proto.CompactTextString(m) }
   433  func (*QueryMembersResponse) ProtoMessage()    {}
   434  func (*QueryMembersResponse) Descriptor() ([]byte, []int) {
   435  	return fileDescriptor_15a18e20c0e403af, []int{9}
   436  }
   437  func (m *QueryMembersResponse) XXX_Unmarshal(b []byte) error {
   438  	return m.Unmarshal(b)
   439  }
   440  func (m *QueryMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   441  	if deterministic {
   442  		return xxx_messageInfo_QueryMembersResponse.Marshal(b, m, deterministic)
   443  	} else {
   444  		b = b[:cap(b)]
   445  		n, err := m.MarshalToSizedBuffer(b)
   446  		if err != nil {
   447  			return nil, err
   448  		}
   449  		return b[:n], nil
   450  	}
   451  }
   452  func (m *QueryMembersResponse) XXX_Merge(src proto.Message) {
   453  	xxx_messageInfo_QueryMembersResponse.Merge(m, src)
   454  }
   455  func (m *QueryMembersResponse) XXX_Size() int {
   456  	return m.Size()
   457  }
   458  func (m *QueryMembersResponse) XXX_DiscardUnknown() {
   459  	xxx_messageInfo_QueryMembersResponse.DiscardUnknown(m)
   460  }
   461  
   462  var xxx_messageInfo_QueryMembersResponse proto.InternalMessageInfo
   463  
   464  func (m *QueryMembersResponse) GetMembers() []Member {
   465  	if m != nil {
   466  		return m.Members
   467  	}
   468  	return nil
   469  }
   470  
   471  func (m *QueryMembersResponse) GetPagination() *query.PageResponse {
   472  	if m != nil {
   473  		return m.Pagination
   474  	}
   475  	return nil
   476  }
   477  
   478  // QueryProposalRequest is the Query/Proposal request type.
   479  type QueryProposalRequest struct {
   480  	// proposal_id is the unique ID of a proposal.
   481  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   482  }
   483  
   484  func (m *QueryProposalRequest) Reset()         { *m = QueryProposalRequest{} }
   485  func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) }
   486  func (*QueryProposalRequest) ProtoMessage()    {}
   487  func (*QueryProposalRequest) Descriptor() ([]byte, []int) {
   488  	return fileDescriptor_15a18e20c0e403af, []int{10}
   489  }
   490  func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error {
   491  	return m.Unmarshal(b)
   492  }
   493  func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   494  	if deterministic {
   495  		return xxx_messageInfo_QueryProposalRequest.Marshal(b, m, deterministic)
   496  	} else {
   497  		b = b[:cap(b)]
   498  		n, err := m.MarshalToSizedBuffer(b)
   499  		if err != nil {
   500  			return nil, err
   501  		}
   502  		return b[:n], nil
   503  	}
   504  }
   505  func (m *QueryProposalRequest) XXX_Merge(src proto.Message) {
   506  	xxx_messageInfo_QueryProposalRequest.Merge(m, src)
   507  }
   508  func (m *QueryProposalRequest) XXX_Size() int {
   509  	return m.Size()
   510  }
   511  func (m *QueryProposalRequest) XXX_DiscardUnknown() {
   512  	xxx_messageInfo_QueryProposalRequest.DiscardUnknown(m)
   513  }
   514  
   515  var xxx_messageInfo_QueryProposalRequest proto.InternalMessageInfo
   516  
   517  func (m *QueryProposalRequest) GetProposalId() uint64 {
   518  	if m != nil {
   519  		return m.ProposalId
   520  	}
   521  	return 0
   522  }
   523  
   524  // QueryProposalResponse is the Query/Proposal response type.
   525  type QueryProposalResponse struct {
   526  	// proposal is the proposal info.
   527  	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
   528  }
   529  
   530  func (m *QueryProposalResponse) Reset()         { *m = QueryProposalResponse{} }
   531  func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) }
   532  func (*QueryProposalResponse) ProtoMessage()    {}
   533  func (*QueryProposalResponse) Descriptor() ([]byte, []int) {
   534  	return fileDescriptor_15a18e20c0e403af, []int{11}
   535  }
   536  func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error {
   537  	return m.Unmarshal(b)
   538  }
   539  func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   540  	if deterministic {
   541  		return xxx_messageInfo_QueryProposalResponse.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 *QueryProposalResponse) XXX_Merge(src proto.Message) {
   552  	xxx_messageInfo_QueryProposalResponse.Merge(m, src)
   553  }
   554  func (m *QueryProposalResponse) XXX_Size() int {
   555  	return m.Size()
   556  }
   557  func (m *QueryProposalResponse) XXX_DiscardUnknown() {
   558  	xxx_messageInfo_QueryProposalResponse.DiscardUnknown(m)
   559  }
   560  
   561  var xxx_messageInfo_QueryProposalResponse proto.InternalMessageInfo
   562  
   563  func (m *QueryProposalResponse) GetProposal() *Proposal {
   564  	if m != nil {
   565  		return m.Proposal
   566  	}
   567  	return nil
   568  }
   569  
   570  // QueryProposals is the Query/Proposals request type.
   571  type QueryProposalsRequest struct {
   572  	// pagination defines an optional pagination for the request.
   573  	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
   574  }
   575  
   576  func (m *QueryProposalsRequest) Reset()         { *m = QueryProposalsRequest{} }
   577  func (m *QueryProposalsRequest) String() string { return proto.CompactTextString(m) }
   578  func (*QueryProposalsRequest) ProtoMessage()    {}
   579  func (*QueryProposalsRequest) Descriptor() ([]byte, []int) {
   580  	return fileDescriptor_15a18e20c0e403af, []int{12}
   581  }
   582  func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error {
   583  	return m.Unmarshal(b)
   584  }
   585  func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   586  	if deterministic {
   587  		return xxx_messageInfo_QueryProposalsRequest.Marshal(b, m, deterministic)
   588  	} else {
   589  		b = b[:cap(b)]
   590  		n, err := m.MarshalToSizedBuffer(b)
   591  		if err != nil {
   592  			return nil, err
   593  		}
   594  		return b[:n], nil
   595  	}
   596  }
   597  func (m *QueryProposalsRequest) XXX_Merge(src proto.Message) {
   598  	xxx_messageInfo_QueryProposalsRequest.Merge(m, src)
   599  }
   600  func (m *QueryProposalsRequest) XXX_Size() int {
   601  	return m.Size()
   602  }
   603  func (m *QueryProposalsRequest) XXX_DiscardUnknown() {
   604  	xxx_messageInfo_QueryProposalsRequest.DiscardUnknown(m)
   605  }
   606  
   607  var xxx_messageInfo_QueryProposalsRequest proto.InternalMessageInfo
   608  
   609  func (m *QueryProposalsRequest) GetPagination() *query.PageRequest {
   610  	if m != nil {
   611  		return m.Pagination
   612  	}
   613  	return nil
   614  }
   615  
   616  // QueryProposalsResponse is the Query/Proposals response type.
   617  type QueryProposalsResponse struct {
   618  	// proposals are the proposals of the foundation.
   619  	Proposals []Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"`
   620  	// pagination defines the pagination in the response.
   621  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   622  }
   623  
   624  func (m *QueryProposalsResponse) Reset()         { *m = QueryProposalsResponse{} }
   625  func (m *QueryProposalsResponse) String() string { return proto.CompactTextString(m) }
   626  func (*QueryProposalsResponse) ProtoMessage()    {}
   627  func (*QueryProposalsResponse) Descriptor() ([]byte, []int) {
   628  	return fileDescriptor_15a18e20c0e403af, []int{13}
   629  }
   630  func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error {
   631  	return m.Unmarshal(b)
   632  }
   633  func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   634  	if deterministic {
   635  		return xxx_messageInfo_QueryProposalsResponse.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 *QueryProposalsResponse) XXX_Merge(src proto.Message) {
   646  	xxx_messageInfo_QueryProposalsResponse.Merge(m, src)
   647  }
   648  func (m *QueryProposalsResponse) XXX_Size() int {
   649  	return m.Size()
   650  }
   651  func (m *QueryProposalsResponse) XXX_DiscardUnknown() {
   652  	xxx_messageInfo_QueryProposalsResponse.DiscardUnknown(m)
   653  }
   654  
   655  var xxx_messageInfo_QueryProposalsResponse proto.InternalMessageInfo
   656  
   657  func (m *QueryProposalsResponse) GetProposals() []Proposal {
   658  	if m != nil {
   659  		return m.Proposals
   660  	}
   661  	return nil
   662  }
   663  
   664  func (m *QueryProposalsResponse) GetPagination() *query.PageResponse {
   665  	if m != nil {
   666  		return m.Pagination
   667  	}
   668  	return nil
   669  }
   670  
   671  // QueryVote is the Query/Vote request type.
   672  type QueryVoteRequest struct {
   673  	// proposal_id is the unique ID of a proposal.
   674  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   675  	// voter is a proposal voter account address.
   676  	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
   677  }
   678  
   679  func (m *QueryVoteRequest) Reset()         { *m = QueryVoteRequest{} }
   680  func (m *QueryVoteRequest) String() string { return proto.CompactTextString(m) }
   681  func (*QueryVoteRequest) ProtoMessage()    {}
   682  func (*QueryVoteRequest) Descriptor() ([]byte, []int) {
   683  	return fileDescriptor_15a18e20c0e403af, []int{14}
   684  }
   685  func (m *QueryVoteRequest) XXX_Unmarshal(b []byte) error {
   686  	return m.Unmarshal(b)
   687  }
   688  func (m *QueryVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   689  	if deterministic {
   690  		return xxx_messageInfo_QueryVoteRequest.Marshal(b, m, deterministic)
   691  	} else {
   692  		b = b[:cap(b)]
   693  		n, err := m.MarshalToSizedBuffer(b)
   694  		if err != nil {
   695  			return nil, err
   696  		}
   697  		return b[:n], nil
   698  	}
   699  }
   700  func (m *QueryVoteRequest) XXX_Merge(src proto.Message) {
   701  	xxx_messageInfo_QueryVoteRequest.Merge(m, src)
   702  }
   703  func (m *QueryVoteRequest) XXX_Size() int {
   704  	return m.Size()
   705  }
   706  func (m *QueryVoteRequest) XXX_DiscardUnknown() {
   707  	xxx_messageInfo_QueryVoteRequest.DiscardUnknown(m)
   708  }
   709  
   710  var xxx_messageInfo_QueryVoteRequest proto.InternalMessageInfo
   711  
   712  func (m *QueryVoteRequest) GetProposalId() uint64 {
   713  	if m != nil {
   714  		return m.ProposalId
   715  	}
   716  	return 0
   717  }
   718  
   719  func (m *QueryVoteRequest) GetVoter() string {
   720  	if m != nil {
   721  		return m.Voter
   722  	}
   723  	return ""
   724  }
   725  
   726  // QueryVoteResponse is the Query/Vote response type.
   727  type QueryVoteResponse struct {
   728  	// vote is the vote with given proposal_id and voter.
   729  	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
   730  }
   731  
   732  func (m *QueryVoteResponse) Reset()         { *m = QueryVoteResponse{} }
   733  func (m *QueryVoteResponse) String() string { return proto.CompactTextString(m) }
   734  func (*QueryVoteResponse) ProtoMessage()    {}
   735  func (*QueryVoteResponse) Descriptor() ([]byte, []int) {
   736  	return fileDescriptor_15a18e20c0e403af, []int{15}
   737  }
   738  func (m *QueryVoteResponse) XXX_Unmarshal(b []byte) error {
   739  	return m.Unmarshal(b)
   740  }
   741  func (m *QueryVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   742  	if deterministic {
   743  		return xxx_messageInfo_QueryVoteResponse.Marshal(b, m, deterministic)
   744  	} else {
   745  		b = b[:cap(b)]
   746  		n, err := m.MarshalToSizedBuffer(b)
   747  		if err != nil {
   748  			return nil, err
   749  		}
   750  		return b[:n], nil
   751  	}
   752  }
   753  func (m *QueryVoteResponse) XXX_Merge(src proto.Message) {
   754  	xxx_messageInfo_QueryVoteResponse.Merge(m, src)
   755  }
   756  func (m *QueryVoteResponse) XXX_Size() int {
   757  	return m.Size()
   758  }
   759  func (m *QueryVoteResponse) XXX_DiscardUnknown() {
   760  	xxx_messageInfo_QueryVoteResponse.DiscardUnknown(m)
   761  }
   762  
   763  var xxx_messageInfo_QueryVoteResponse proto.InternalMessageInfo
   764  
   765  func (m *QueryVoteResponse) GetVote() *Vote {
   766  	if m != nil {
   767  		return m.Vote
   768  	}
   769  	return nil
   770  }
   771  
   772  // QueryVotes is the Query/Votes request type.
   773  type QueryVotesRequest struct {
   774  	// proposal_id is the unique ID of a proposal.
   775  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   776  	// pagination defines an optional pagination for the request.
   777  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   778  }
   779  
   780  func (m *QueryVotesRequest) Reset()         { *m = QueryVotesRequest{} }
   781  func (m *QueryVotesRequest) String() string { return proto.CompactTextString(m) }
   782  func (*QueryVotesRequest) ProtoMessage()    {}
   783  func (*QueryVotesRequest) Descriptor() ([]byte, []int) {
   784  	return fileDescriptor_15a18e20c0e403af, []int{16}
   785  }
   786  func (m *QueryVotesRequest) XXX_Unmarshal(b []byte) error {
   787  	return m.Unmarshal(b)
   788  }
   789  func (m *QueryVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   790  	if deterministic {
   791  		return xxx_messageInfo_QueryVotesRequest.Marshal(b, m, deterministic)
   792  	} else {
   793  		b = b[:cap(b)]
   794  		n, err := m.MarshalToSizedBuffer(b)
   795  		if err != nil {
   796  			return nil, err
   797  		}
   798  		return b[:n], nil
   799  	}
   800  }
   801  func (m *QueryVotesRequest) XXX_Merge(src proto.Message) {
   802  	xxx_messageInfo_QueryVotesRequest.Merge(m, src)
   803  }
   804  func (m *QueryVotesRequest) XXX_Size() int {
   805  	return m.Size()
   806  }
   807  func (m *QueryVotesRequest) XXX_DiscardUnknown() {
   808  	xxx_messageInfo_QueryVotesRequest.DiscardUnknown(m)
   809  }
   810  
   811  var xxx_messageInfo_QueryVotesRequest proto.InternalMessageInfo
   812  
   813  func (m *QueryVotesRequest) GetProposalId() uint64 {
   814  	if m != nil {
   815  		return m.ProposalId
   816  	}
   817  	return 0
   818  }
   819  
   820  func (m *QueryVotesRequest) GetPagination() *query.PageRequest {
   821  	if m != nil {
   822  		return m.Pagination
   823  	}
   824  	return nil
   825  }
   826  
   827  // QueryVotesResponse is the Query/Votes response type.
   828  type QueryVotesResponse struct {
   829  	// votes are the list of votes for given proposal_id.
   830  	Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
   831  	// pagination defines the pagination in the response.
   832  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   833  }
   834  
   835  func (m *QueryVotesResponse) Reset()         { *m = QueryVotesResponse{} }
   836  func (m *QueryVotesResponse) String() string { return proto.CompactTextString(m) }
   837  func (*QueryVotesResponse) ProtoMessage()    {}
   838  func (*QueryVotesResponse) Descriptor() ([]byte, []int) {
   839  	return fileDescriptor_15a18e20c0e403af, []int{17}
   840  }
   841  func (m *QueryVotesResponse) XXX_Unmarshal(b []byte) error {
   842  	return m.Unmarshal(b)
   843  }
   844  func (m *QueryVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   845  	if deterministic {
   846  		return xxx_messageInfo_QueryVotesResponse.Marshal(b, m, deterministic)
   847  	} else {
   848  		b = b[:cap(b)]
   849  		n, err := m.MarshalToSizedBuffer(b)
   850  		if err != nil {
   851  			return nil, err
   852  		}
   853  		return b[:n], nil
   854  	}
   855  }
   856  func (m *QueryVotesResponse) XXX_Merge(src proto.Message) {
   857  	xxx_messageInfo_QueryVotesResponse.Merge(m, src)
   858  }
   859  func (m *QueryVotesResponse) XXX_Size() int {
   860  	return m.Size()
   861  }
   862  func (m *QueryVotesResponse) XXX_DiscardUnknown() {
   863  	xxx_messageInfo_QueryVotesResponse.DiscardUnknown(m)
   864  }
   865  
   866  var xxx_messageInfo_QueryVotesResponse proto.InternalMessageInfo
   867  
   868  func (m *QueryVotesResponse) GetVotes() []Vote {
   869  	if m != nil {
   870  		return m.Votes
   871  	}
   872  	return nil
   873  }
   874  
   875  func (m *QueryVotesResponse) GetPagination() *query.PageResponse {
   876  	if m != nil {
   877  		return m.Pagination
   878  	}
   879  	return nil
   880  }
   881  
   882  // QueryTallyResultRequest is the Query/TallyResult request type.
   883  type QueryTallyResultRequest struct {
   884  	// proposal_id is the unique id of a proposal.
   885  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   886  }
   887  
   888  func (m *QueryTallyResultRequest) Reset()         { *m = QueryTallyResultRequest{} }
   889  func (m *QueryTallyResultRequest) String() string { return proto.CompactTextString(m) }
   890  func (*QueryTallyResultRequest) ProtoMessage()    {}
   891  func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) {
   892  	return fileDescriptor_15a18e20c0e403af, []int{18}
   893  }
   894  func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error {
   895  	return m.Unmarshal(b)
   896  }
   897  func (m *QueryTallyResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   898  	if deterministic {
   899  		return xxx_messageInfo_QueryTallyResultRequest.Marshal(b, m, deterministic)
   900  	} else {
   901  		b = b[:cap(b)]
   902  		n, err := m.MarshalToSizedBuffer(b)
   903  		if err != nil {
   904  			return nil, err
   905  		}
   906  		return b[:n], nil
   907  	}
   908  }
   909  func (m *QueryTallyResultRequest) XXX_Merge(src proto.Message) {
   910  	xxx_messageInfo_QueryTallyResultRequest.Merge(m, src)
   911  }
   912  func (m *QueryTallyResultRequest) XXX_Size() int {
   913  	return m.Size()
   914  }
   915  func (m *QueryTallyResultRequest) XXX_DiscardUnknown() {
   916  	xxx_messageInfo_QueryTallyResultRequest.DiscardUnknown(m)
   917  }
   918  
   919  var xxx_messageInfo_QueryTallyResultRequest proto.InternalMessageInfo
   920  
   921  func (m *QueryTallyResultRequest) GetProposalId() uint64 {
   922  	if m != nil {
   923  		return m.ProposalId
   924  	}
   925  	return 0
   926  }
   927  
   928  // QueryTallyResultResponse is the Query/TallyResult response type.
   929  type QueryTallyResultResponse struct {
   930  	// tally defines the requested tally.
   931  	Tally TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally"`
   932  }
   933  
   934  func (m *QueryTallyResultResponse) Reset()         { *m = QueryTallyResultResponse{} }
   935  func (m *QueryTallyResultResponse) String() string { return proto.CompactTextString(m) }
   936  func (*QueryTallyResultResponse) ProtoMessage()    {}
   937  func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) {
   938  	return fileDescriptor_15a18e20c0e403af, []int{19}
   939  }
   940  func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error {
   941  	return m.Unmarshal(b)
   942  }
   943  func (m *QueryTallyResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   944  	if deterministic {
   945  		return xxx_messageInfo_QueryTallyResultResponse.Marshal(b, m, deterministic)
   946  	} else {
   947  		b = b[:cap(b)]
   948  		n, err := m.MarshalToSizedBuffer(b)
   949  		if err != nil {
   950  			return nil, err
   951  		}
   952  		return b[:n], nil
   953  	}
   954  }
   955  func (m *QueryTallyResultResponse) XXX_Merge(src proto.Message) {
   956  	xxx_messageInfo_QueryTallyResultResponse.Merge(m, src)
   957  }
   958  func (m *QueryTallyResultResponse) XXX_Size() int {
   959  	return m.Size()
   960  }
   961  func (m *QueryTallyResultResponse) XXX_DiscardUnknown() {
   962  	xxx_messageInfo_QueryTallyResultResponse.DiscardUnknown(m)
   963  }
   964  
   965  var xxx_messageInfo_QueryTallyResultResponse proto.InternalMessageInfo
   966  
   967  func (m *QueryTallyResultResponse) GetTally() TallyResult {
   968  	if m != nil {
   969  		return m.Tally
   970  	}
   971  	return TallyResult{}
   972  }
   973  
   974  // QueryCensorshipsRequest is the request type for the Query/Censorships RPC method.
   975  type QueryCensorshipsRequest struct {
   976  	// pagination defines an optional pagination for the request.
   977  	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
   978  }
   979  
   980  func (m *QueryCensorshipsRequest) Reset()         { *m = QueryCensorshipsRequest{} }
   981  func (m *QueryCensorshipsRequest) String() string { return proto.CompactTextString(m) }
   982  func (*QueryCensorshipsRequest) ProtoMessage()    {}
   983  func (*QueryCensorshipsRequest) Descriptor() ([]byte, []int) {
   984  	return fileDescriptor_15a18e20c0e403af, []int{20}
   985  }
   986  func (m *QueryCensorshipsRequest) XXX_Unmarshal(b []byte) error {
   987  	return m.Unmarshal(b)
   988  }
   989  func (m *QueryCensorshipsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   990  	if deterministic {
   991  		return xxx_messageInfo_QueryCensorshipsRequest.Marshal(b, m, deterministic)
   992  	} else {
   993  		b = b[:cap(b)]
   994  		n, err := m.MarshalToSizedBuffer(b)
   995  		if err != nil {
   996  			return nil, err
   997  		}
   998  		return b[:n], nil
   999  	}
  1000  }
  1001  func (m *QueryCensorshipsRequest) XXX_Merge(src proto.Message) {
  1002  	xxx_messageInfo_QueryCensorshipsRequest.Merge(m, src)
  1003  }
  1004  func (m *QueryCensorshipsRequest) XXX_Size() int {
  1005  	return m.Size()
  1006  }
  1007  func (m *QueryCensorshipsRequest) XXX_DiscardUnknown() {
  1008  	xxx_messageInfo_QueryCensorshipsRequest.DiscardUnknown(m)
  1009  }
  1010  
  1011  var xxx_messageInfo_QueryCensorshipsRequest proto.InternalMessageInfo
  1012  
  1013  func (m *QueryCensorshipsRequest) GetPagination() *query.PageRequest {
  1014  	if m != nil {
  1015  		return m.Pagination
  1016  	}
  1017  	return nil
  1018  }
  1019  
  1020  // QueryCensorshipsResponse is the response type for the Query/Censorships RPC method.
  1021  type QueryCensorshipsResponse struct {
  1022  	// authorizations is a list of grants granted for grantee.
  1023  	Censorships []Censorship `protobuf:"bytes,1,rep,name=censorships,proto3" json:"censorships"`
  1024  	// pagination defines the pagination in the response.
  1025  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1026  }
  1027  
  1028  func (m *QueryCensorshipsResponse) Reset()         { *m = QueryCensorshipsResponse{} }
  1029  func (m *QueryCensorshipsResponse) String() string { return proto.CompactTextString(m) }
  1030  func (*QueryCensorshipsResponse) ProtoMessage()    {}
  1031  func (*QueryCensorshipsResponse) Descriptor() ([]byte, []int) {
  1032  	return fileDescriptor_15a18e20c0e403af, []int{21}
  1033  }
  1034  func (m *QueryCensorshipsResponse) XXX_Unmarshal(b []byte) error {
  1035  	return m.Unmarshal(b)
  1036  }
  1037  func (m *QueryCensorshipsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1038  	if deterministic {
  1039  		return xxx_messageInfo_QueryCensorshipsResponse.Marshal(b, m, deterministic)
  1040  	} else {
  1041  		b = b[:cap(b)]
  1042  		n, err := m.MarshalToSizedBuffer(b)
  1043  		if err != nil {
  1044  			return nil, err
  1045  		}
  1046  		return b[:n], nil
  1047  	}
  1048  }
  1049  func (m *QueryCensorshipsResponse) XXX_Merge(src proto.Message) {
  1050  	xxx_messageInfo_QueryCensorshipsResponse.Merge(m, src)
  1051  }
  1052  func (m *QueryCensorshipsResponse) XXX_Size() int {
  1053  	return m.Size()
  1054  }
  1055  func (m *QueryCensorshipsResponse) XXX_DiscardUnknown() {
  1056  	xxx_messageInfo_QueryCensorshipsResponse.DiscardUnknown(m)
  1057  }
  1058  
  1059  var xxx_messageInfo_QueryCensorshipsResponse proto.InternalMessageInfo
  1060  
  1061  func (m *QueryCensorshipsResponse) GetCensorships() []Censorship {
  1062  	if m != nil {
  1063  		return m.Censorships
  1064  	}
  1065  	return nil
  1066  }
  1067  
  1068  func (m *QueryCensorshipsResponse) GetPagination() *query.PageResponse {
  1069  	if m != nil {
  1070  		return m.Pagination
  1071  	}
  1072  	return nil
  1073  }
  1074  
  1075  // QueryGrantsRequest is the request type for the Query/Grants RPC method.
  1076  type QueryGrantsRequest struct {
  1077  	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
  1078  	// Optional, msg_type_url, when set, will query only grants matching given msg type.
  1079  	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
  1080  	// pagination defines an optional pagination for the request.
  1081  	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1082  }
  1083  
  1084  func (m *QueryGrantsRequest) Reset()         { *m = QueryGrantsRequest{} }
  1085  func (m *QueryGrantsRequest) String() string { return proto.CompactTextString(m) }
  1086  func (*QueryGrantsRequest) ProtoMessage()    {}
  1087  func (*QueryGrantsRequest) Descriptor() ([]byte, []int) {
  1088  	return fileDescriptor_15a18e20c0e403af, []int{22}
  1089  }
  1090  func (m *QueryGrantsRequest) XXX_Unmarshal(b []byte) error {
  1091  	return m.Unmarshal(b)
  1092  }
  1093  func (m *QueryGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1094  	if deterministic {
  1095  		return xxx_messageInfo_QueryGrantsRequest.Marshal(b, m, deterministic)
  1096  	} else {
  1097  		b = b[:cap(b)]
  1098  		n, err := m.MarshalToSizedBuffer(b)
  1099  		if err != nil {
  1100  			return nil, err
  1101  		}
  1102  		return b[:n], nil
  1103  	}
  1104  }
  1105  func (m *QueryGrantsRequest) XXX_Merge(src proto.Message) {
  1106  	xxx_messageInfo_QueryGrantsRequest.Merge(m, src)
  1107  }
  1108  func (m *QueryGrantsRequest) XXX_Size() int {
  1109  	return m.Size()
  1110  }
  1111  func (m *QueryGrantsRequest) XXX_DiscardUnknown() {
  1112  	xxx_messageInfo_QueryGrantsRequest.DiscardUnknown(m)
  1113  }
  1114  
  1115  var xxx_messageInfo_QueryGrantsRequest proto.InternalMessageInfo
  1116  
  1117  func (m *QueryGrantsRequest) GetGrantee() string {
  1118  	if m != nil {
  1119  		return m.Grantee
  1120  	}
  1121  	return ""
  1122  }
  1123  
  1124  func (m *QueryGrantsRequest) GetMsgTypeUrl() string {
  1125  	if m != nil {
  1126  		return m.MsgTypeUrl
  1127  	}
  1128  	return ""
  1129  }
  1130  
  1131  func (m *QueryGrantsRequest) GetPagination() *query.PageRequest {
  1132  	if m != nil {
  1133  		return m.Pagination
  1134  	}
  1135  	return nil
  1136  }
  1137  
  1138  // QueryGrantsResponse is the response type for the Query/Grants RPC method.
  1139  type QueryGrantsResponse struct {
  1140  	// authorizations is a list of grants granted for grantee.
  1141  	Authorizations []*types1.Any `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
  1142  	// pagination defines the pagination in the response.
  1143  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1144  }
  1145  
  1146  func (m *QueryGrantsResponse) Reset()         { *m = QueryGrantsResponse{} }
  1147  func (m *QueryGrantsResponse) String() string { return proto.CompactTextString(m) }
  1148  func (*QueryGrantsResponse) ProtoMessage()    {}
  1149  func (*QueryGrantsResponse) Descriptor() ([]byte, []int) {
  1150  	return fileDescriptor_15a18e20c0e403af, []int{23}
  1151  }
  1152  func (m *QueryGrantsResponse) XXX_Unmarshal(b []byte) error {
  1153  	return m.Unmarshal(b)
  1154  }
  1155  func (m *QueryGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1156  	if deterministic {
  1157  		return xxx_messageInfo_QueryGrantsResponse.Marshal(b, m, deterministic)
  1158  	} else {
  1159  		b = b[:cap(b)]
  1160  		n, err := m.MarshalToSizedBuffer(b)
  1161  		if err != nil {
  1162  			return nil, err
  1163  		}
  1164  		return b[:n], nil
  1165  	}
  1166  }
  1167  func (m *QueryGrantsResponse) XXX_Merge(src proto.Message) {
  1168  	xxx_messageInfo_QueryGrantsResponse.Merge(m, src)
  1169  }
  1170  func (m *QueryGrantsResponse) XXX_Size() int {
  1171  	return m.Size()
  1172  }
  1173  func (m *QueryGrantsResponse) XXX_DiscardUnknown() {
  1174  	xxx_messageInfo_QueryGrantsResponse.DiscardUnknown(m)
  1175  }
  1176  
  1177  var xxx_messageInfo_QueryGrantsResponse proto.InternalMessageInfo
  1178  
  1179  func (m *QueryGrantsResponse) GetAuthorizations() []*types1.Any {
  1180  	if m != nil {
  1181  		return m.Authorizations
  1182  	}
  1183  	return nil
  1184  }
  1185  
  1186  func (m *QueryGrantsResponse) GetPagination() *query.PageResponse {
  1187  	if m != nil {
  1188  		return m.Pagination
  1189  	}
  1190  	return nil
  1191  }
  1192  
  1193  func init() {
  1194  	proto.RegisterType((*QueryParamsRequest)(nil), "lbm.foundation.v1.QueryParamsRequest")
  1195  	proto.RegisterType((*QueryParamsResponse)(nil), "lbm.foundation.v1.QueryParamsResponse")
  1196  	proto.RegisterType((*QueryTreasuryRequest)(nil), "lbm.foundation.v1.QueryTreasuryRequest")
  1197  	proto.RegisterType((*QueryTreasuryResponse)(nil), "lbm.foundation.v1.QueryTreasuryResponse")
  1198  	proto.RegisterType((*QueryFoundationInfoRequest)(nil), "lbm.foundation.v1.QueryFoundationInfoRequest")
  1199  	proto.RegisterType((*QueryFoundationInfoResponse)(nil), "lbm.foundation.v1.QueryFoundationInfoResponse")
  1200  	proto.RegisterType((*QueryMemberRequest)(nil), "lbm.foundation.v1.QueryMemberRequest")
  1201  	proto.RegisterType((*QueryMemberResponse)(nil), "lbm.foundation.v1.QueryMemberResponse")
  1202  	proto.RegisterType((*QueryMembersRequest)(nil), "lbm.foundation.v1.QueryMembersRequest")
  1203  	proto.RegisterType((*QueryMembersResponse)(nil), "lbm.foundation.v1.QueryMembersResponse")
  1204  	proto.RegisterType((*QueryProposalRequest)(nil), "lbm.foundation.v1.QueryProposalRequest")
  1205  	proto.RegisterType((*QueryProposalResponse)(nil), "lbm.foundation.v1.QueryProposalResponse")
  1206  	proto.RegisterType((*QueryProposalsRequest)(nil), "lbm.foundation.v1.QueryProposalsRequest")
  1207  	proto.RegisterType((*QueryProposalsResponse)(nil), "lbm.foundation.v1.QueryProposalsResponse")
  1208  	proto.RegisterType((*QueryVoteRequest)(nil), "lbm.foundation.v1.QueryVoteRequest")
  1209  	proto.RegisterType((*QueryVoteResponse)(nil), "lbm.foundation.v1.QueryVoteResponse")
  1210  	proto.RegisterType((*QueryVotesRequest)(nil), "lbm.foundation.v1.QueryVotesRequest")
  1211  	proto.RegisterType((*QueryVotesResponse)(nil), "lbm.foundation.v1.QueryVotesResponse")
  1212  	proto.RegisterType((*QueryTallyResultRequest)(nil), "lbm.foundation.v1.QueryTallyResultRequest")
  1213  	proto.RegisterType((*QueryTallyResultResponse)(nil), "lbm.foundation.v1.QueryTallyResultResponse")
  1214  	proto.RegisterType((*QueryCensorshipsRequest)(nil), "lbm.foundation.v1.QueryCensorshipsRequest")
  1215  	proto.RegisterType((*QueryCensorshipsResponse)(nil), "lbm.foundation.v1.QueryCensorshipsResponse")
  1216  	proto.RegisterType((*QueryGrantsRequest)(nil), "lbm.foundation.v1.QueryGrantsRequest")
  1217  	proto.RegisterType((*QueryGrantsResponse)(nil), "lbm.foundation.v1.QueryGrantsResponse")
  1218  }
  1219  
  1220  func init() { proto.RegisterFile("lbm/foundation/v1/query.proto", fileDescriptor_15a18e20c0e403af) }
  1221  
  1222  var fileDescriptor_15a18e20c0e403af = []byte{
  1223  	// 1241 bytes of a gzipped FileDescriptorProto
  1224  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0x1b, 0x45,
  1225  	0x14, 0xce, 0xb4, 0x89, 0x93, 0x8c, 0xa1, 0xa2, 0x43, 0x68, 0x13, 0x27, 0x71, 0xd2, 0x6d, 0x7e,
  1226  	0x91, 0x92, 0x1d, 0xec, 0x22, 0xa5, 0xa4, 0x87, 0xb6, 0x29, 0x24, 0xe4, 0x00, 0x0a, 0x56, 0xe9,
  1227  	0xa1, 0x12, 0xb2, 0xd6, 0xf6, 0xc6, 0x59, 0xe1, 0xdd, 0x71, 0x77, 0x76, 0x23, 0xdc, 0xe0, 0x4b,
  1228  	0x0f, 0x95, 0xb8, 0xa0, 0x42, 0x2e, 0x08, 0x2e, 0x88, 0x63, 0xcf, 0xfc, 0x11, 0x15, 0xa7, 0x4a,
  1229  	0xbd, 0x70, 0xe1, 0x87, 0x12, 0xfe, 0x10, 0xb4, 0x33, 0x6f, 0xec, 0x5d, 0x7b, 0xd7, 0x76, 0x8b,
  1230  	0x6f, 0xbb, 0x33, 0xef, 0xbd, 0xef, 0x7b, 0xef, 0xcd, 0xcc, 0xfb, 0xf0, 0x7c, 0xad, 0x64, 0xd3,
  1231  	0x03, 0xe6, 0x3b, 0x15, 0xc3, 0xb3, 0x98, 0x43, 0x8f, 0x72, 0xf4, 0xa1, 0x6f, 0xba, 0x0d, 0xbd,
  1232  	0xee, 0x32, 0x8f, 0x91, 0x8b, 0xb5, 0x92, 0xad, 0xb7, 0xb7, 0xf5, 0xa3, 0x5c, 0x66, 0xbd, 0xcc,
  1233  	0xb8, 0xcd, 0x38, 0x2d, 0x19, 0xdc, 0x94, 0xb6, 0xf4, 0x28, 0x57, 0x32, 0x3d, 0x23, 0x47, 0xeb,
  1234  	0x46, 0xd5, 0x72, 0xa4, 0xa1, 0x70, 0xcf, 0xcc, 0x55, 0x19, 0xab, 0xd6, 0x4c, 0x6a, 0xd4, 0x2d,
  1235  	0x6a, 0x38, 0x0e, 0xf3, 0xc4, 0x26, 0x87, 0x5d, 0xad, 0x1b, 0x3b, 0x04, 0x25, 0x6d, 0xb2, 0x61,
  1236  	0x34, 0x85, 0x53, 0x66, 0x96, 0xda, 0x9f, 0x01, 0x04, 0xf1, 0x57, 0xf2, 0x0f, 0xa8, 0xe1, 0x34,
  1237  	0xd4, 0x96, 0x74, 0x2d, 0x8a, 0x3f, 0x2a, 0x7f, 0x60, 0x6b, 0xaa, 0xca, 0xaa, 0x4c, 0xae, 0x07,
  1238  	0x5f, 0x72, 0x55, 0x9b, 0xc2, 0xe4, 0xf3, 0x20, 0x9f, 0x7d, 0xc3, 0x35, 0x6c, 0x5e, 0x30, 0x1f,
  1239  	0xfa, 0x26, 0xf7, 0xb4, 0xcf, 0xf0, 0xdb, 0x91, 0x55, 0x5e, 0x67, 0x0e, 0x37, 0xc9, 0x26, 0x4e,
  1240  	0xd5, 0xc5, 0xca, 0x34, 0x5a, 0x44, 0x6b, 0xe9, 0xfc, 0x8c, 0xde, 0x55, 0x2a, 0x5d, 0xba, 0x6c,
  1241  	0x8f, 0x3e, 0xff, 0x6b, 0x61, 0xa4, 0x00, 0xe6, 0xda, 0x25, 0x3c, 0x25, 0xe2, 0xdd, 0x73, 0x4d,
  1242  	0x83, 0xfb, 0x6e, 0x43, 0xe1, 0x3c, 0x41, 0xf8, 0x9d, 0x8e, 0x0d, 0x80, 0xb2, 0x71, 0xca, 0xb0,
  1243  	0x99, 0xef, 0x78, 0xd3, 0x68, 0xf1, 0xfc, 0x5a, 0x3a, 0x3f, 0xa7, 0x43, 0x32, 0x41, 0x51, 0x74,
  1244  	0x28, 0x8a, 0xfe, 0x91, 0x59, 0xbe, 0xcb, 0x2c, 0x67, 0x7b, 0x33, 0x40, 0x7b, 0xf6, 0xf7, 0x02,
  1245  	0xad, 0x5a, 0xde, 0xa1, 0x5f, 0xd2, 0xcb, 0xcc, 0xa6, 0x3b, 0x96, 0xc3, 0xcb, 0x87, 0x96, 0x41,
  1246  	0x0f, 0xe0, 0x63, 0x83, 0x57, 0xbe, 0xa2, 0x5e, 0xa3, 0x6e, 0x72, 0xe5, 0xc7, 0x0b, 0x00, 0xa2,
  1247  	0xcd, 0xe1, 0x8c, 0xe0, 0xb1, 0xd3, 0xca, 0x65, 0xcf, 0x39, 0x60, 0x8a, 0xe6, 0x03, 0x3c, 0x1b,
  1248  	0xbb, 0x0b, 0x5c, 0x6f, 0xe2, 0x51, 0xcb, 0x39, 0x60, 0x50, 0x94, 0x2b, 0x31, 0x45, 0x89, 0x3a,
  1249  	0x42, 0x71, 0x84, 0x93, 0xa6, 0x43, 0x03, 0x3e, 0x35, 0xed, 0x92, 0xe9, 0x02, 0x22, 0x99, 0xc6,
  1250  	0xe3, 0x46, 0xa5, 0xe2, 0x9a, 0x5c, 0x96, 0x7a, 0xb2, 0xa0, 0x7e, 0xb5, 0x4f, 0xa0, 0x35, 0xca,
  1251  	0x1e, 0x38, 0xe4, 0x70, 0xca, 0x16, 0x2b, 0x3d, 0x5a, 0x03, 0x2e, 0x60, 0xa8, 0x7d, 0x19, 0x89,
  1252  	0xa4, 0x7a, 0x4f, 0x76, 0x30, 0x6e, 0x9f, 0x69, 0x88, 0xb6, 0x12, 0xa9, 0xbe, 0xbc, 0x2c, 0xaa,
  1253  	0x07, 0xfb, 0x46, 0xd5, 0x04, 0xdf, 0x42, 0xc8, 0x53, 0xfb, 0x09, 0x41, 0xd3, 0x5b, 0xf1, 0x81,
  1254  	0xea, 0x87, 0x78, 0x5c, 0x32, 0xe0, 0xd0, 0xdb, 0x64, 0xae, 0x50, 0x29, 0x65, 0x4f, 0x76, 0x23,
  1255  	0xdc, 0xce, 0x09, 0x6e, 0xab, 0x7d, 0xb9, 0x49, 0xdc, 0x08, 0xb9, 0x4d, 0xe0, 0xb6, 0xef, 0xb2,
  1256  	0x3a, 0xe3, 0x46, 0x4d, 0x25, 0xbf, 0x80, 0xd3, 0x75, 0x58, 0x2a, 0x5a, 0x15, 0x91, 0xfd, 0x68,
  1257  	0x01, 0xab, 0xa5, 0xbd, 0x8a, 0xb6, 0x0f, 0x07, 0xb6, 0xed, 0xd8, 0xba, 0x1b, 0x13, 0xca, 0x0c,
  1258  	0x8a, 0x36, 0x1b, 0x77, 0x3b, 0x94, 0x5b, 0xcb, 0x58, 0x2b, 0x76, 0x44, 0x1c, 0x7a, 0x23, 0x7e,
  1259  	0x45, 0xf8, 0x52, 0x27, 0x02, 0x90, 0xbe, 0x85, 0x27, 0x15, 0x0f, 0xd5, 0x8c, 0x5e, 0xac, 0xa1,
  1260  	0x1d, 0x6d, 0x9f, 0xe1, 0x35, 0x64, 0x0f, 0xbf, 0x25, 0x38, 0xde, 0x67, 0x9e, 0x39, 0x68, 0x33,
  1261  	0xc8, 0x14, 0x1e, 0x3b, 0x62, 0x9e, 0xe9, 0x0a, 0xe0, 0xc9, 0x82, 0xfc, 0xd1, 0x6e, 0xe3, 0x8b,
  1262  	0xa1, 0x50, 0x90, 0xe9, 0x35, 0x3c, 0x1a, 0xec, 0x42, 0x19, 0x2f, 0xc7, 0x24, 0x29, 0xcc, 0x85,
  1263  	0x91, 0xf6, 0x4d, 0x28, 0x02, 0x1f, 0x98, 0xcd, 0x4e, 0x4c, 0x2d, 0x5e, 0xa7, 0x5f, 0x3f, 0x20,
  1264  	0x78, 0x12, 0x00, 0x1e, 0x32, 0xb8, 0x2e, 0x93, 0x55, 0x7d, 0x4a, 0x4a, 0x01, 0x7a, 0x24, 0x6d,
  1265  	0x87, 0xd7, 0x9f, 0x2d, 0x7c, 0x59, 0x3e, 0xd4, 0x46, 0xad, 0x16, 0xbc, 0xd2, 0x7e, 0xcd, 0x1b,
  1266  	0xf8, 0xce, 0xdc, 0xc7, 0xd3, 0xdd, 0xbe, 0x90, 0xd5, 0x16, 0x1e, 0xf3, 0x82, 0x65, 0x68, 0x4c,
  1267  	0x36, 0x26, 0xab, 0x90, 0x9b, 0x4a, 0x4e, 0xb8, 0x68, 0x06, 0x70, 0xba, 0x6b, 0x3a, 0x9c, 0xb9,
  1268  	0xfc, 0xd0, 0xaa, 0x0f, 0xfd, 0xee, 0x3c, 0x43, 0xc0, 0x3d, 0x82, 0x01, 0xdc, 0x3f, 0xc6, 0xe9,
  1269  	0x72, 0x7b, 0x19, 0xfa, 0x32, 0x1f, 0x93, 0x41, 0xdb, 0x19, 0x12, 0x08, 0xfb, 0x0d, 0xaf, 0x47,
  1270  	0x3f, 0xaa, 0x83, 0xb3, 0xeb, 0x1a, 0x8e, 0xc7, 0x43, 0xb3, 0xa4, 0x1a, 0x2c, 0x98, 0xa6, 0x9a,
  1271  	0x25, 0xf0, 0x4b, 0x16, 0xf1, 0x1b, 0x36, 0xaf, 0x16, 0x83, 0x99, 0x58, 0xf4, 0xdd, 0x1a, 0x5c,
  1272  	0x23, 0x6c, 0xf3, 0xea, 0xbd, 0x46, 0xdd, 0xfc, 0xc2, 0xad, 0x75, 0xd4, 0xf1, 0xfc, 0x6b, 0xd7,
  1273  	0xf1, 0x4f, 0x04, 0xc3, 0x46, 0x51, 0x83, 0x12, 0x36, 0xf1, 0x05, 0xc3, 0xf7, 0x0e, 0x99, 0x6b,
  1274  	0x3d, 0x92, 0x32, 0x09, 0xaa, 0x38, 0xa5, 0x4b, 0x8d, 0xa3, 0x2b, 0x8d, 0xa3, 0xdf, 0x71, 0x1a,
  1275  	0xdb, 0xb7, 0x7e, 0xff, 0x6d, 0xe3, 0x66, 0xdf, 0x11, 0xff, 0x75, 0x58, 0x51, 0xdd, 0x09, 0x47,
  1276  	0x2f, 0x74, 0x80, 0x0d, 0xad, 0xf4, 0xf9, 0x97, 0x6f, 0xe2, 0x31, 0x91, 0x1f, 0x79, 0x84, 0x53,
  1277  	0x52, 0x02, 0x91, 0xe5, 0x98, 0x93, 0xd0, 0xad, 0xb5, 0x32, 0x2b, 0xfd, 0xcc, 0x24, 0x9c, 0x76,
  1278  	0xe5, 0xf1, 0xcb, 0x7f, 0x4f, 0xce, 0xcd, 0x92, 0x19, 0xda, 0x2d, 0x21, 0xa5, 0xcc, 0x22, 0x8f,
  1279  	0x11, 0x9e, 0x50, 0x4a, 0x8a, 0xac, 0x26, 0xc5, 0xed, 0x10, 0x61, 0x99, 0xb5, 0xfe, 0x86, 0x40,
  1280  	0xe1, 0xaa, 0xa0, 0x30, 0x4f, 0x66, 0x63, 0x28, 0x78, 0x0a, 0xf7, 0x67, 0x84, 0x2f, 0x44, 0xf5,
  1281  	0x0e, 0xd9, 0x48, 0x42, 0x88, 0x95, 0x5b, 0x19, 0x7d, 0x50, 0x73, 0xa0, 0xb5, 0x2e, 0x68, 0x2d,
  1282  	0x11, 0x8d, 0xf6, 0x12, 0xd7, 0xc5, 0x40, 0x6e, 0x91, 0xa7, 0x08, 0xa7, 0xa4, 0xb6, 0x48, 0xee,
  1283  	0x4f, 0x44, 0x8a, 0x25, 0xf7, 0x27, 0xaa, 0xc0, 0xb4, 0x4d, 0xc1, 0x22, 0x47, 0x68, 0x6f, 0x16,
  1284  	0x20, 0x65, 0xe8, 0x31, 0x08, 0xba, 0x26, 0xf9, 0x16, 0xe1, 0x71, 0xd0, 0x48, 0xa4, 0x0f, 0x58,
  1285  	0xeb, 0xd0, 0xac, 0xf6, 0xb5, 0x03, 0x56, 0x1b, 0x82, 0xd5, 0x2a, 0x59, 0x1e, 0x88, 0x15, 0xf9,
  1286  	0x1e, 0xe1, 0x09, 0x35, 0xed, 0x93, 0x4f, 0x50, 0x87, 0x6a, 0x4a, 0x3e, 0x41, 0x9d, 0x2a, 0x49,
  1287  	0xcb, 0x0b, 0x3a, 0xef, 0x91, 0xf5, 0xb8, 0x43, 0xac, 0x54, 0x05, 0x3d, 0x0e, 0xcd, 0x93, 0x26,
  1288  	0x79, 0x82, 0xf0, 0x64, 0x4b, 0xba, 0x90, 0xbe, 0x58, 0xad, 0x1a, 0xbd, 0x3b, 0x80, 0x25, 0xd0,
  1289  	0x5a, 0x12, 0xb4, 0xb2, 0x64, 0xae, 0x17, 0x2d, 0x72, 0x82, 0xf0, 0x68, 0x30, 0x62, 0xc9, 0xd5,
  1290  	0xa4, 0xc8, 0x21, 0xf5, 0x92, 0x59, 0xea, 0x6d, 0x04, 0xc8, 0xb7, 0x05, 0xf2, 0x16, 0xb9, 0x31,
  1291  	0x78, 0x41, 0xa8, 0x18, 0xed, 0xf4, 0x58, 0xa8, 0x9d, 0x26, 0xf9, 0x0e, 0xe1, 0x31, 0xa1, 0x14,
  1292  	0x48, 0x4f, 0xc4, 0x56, 0x59, 0x96, 0xfb, 0x58, 0x01, 0xb1, 0x1b, 0x82, 0x58, 0x9e, 0xbc, 0xff,
  1293  	0xaa, 0xc4, 0xc8, 0x2f, 0x08, 0xa7, 0x43, 0x33, 0x9b, 0xac, 0x27, 0xbe, 0x2f, 0x5d, 0x5a, 0x22,
  1294  	0x73, 0x6d, 0x20, 0xdb, 0xff, 0x41, 0x51, 0x28, 0x87, 0xa0, 0x66, 0xe9, 0xd0, 0x44, 0x4f, 0xa6,
  1295  	0xd8, 0x2d, 0x2d, 0x92, 0x29, 0xc6, 0x48, 0x04, 0x6d, 0x45, 0x50, 0x5c, 0x24, 0xd9, 0x18, 0x8a,
  1296  	0x61, 0x0d, 0x70, 0x82, 0x70, 0x4a, 0x8e, 0xc6, 0xe4, 0x67, 0x29, 0x32, 0xd5, 0x93, 0x9f, 0xa5,
  1297  	0xe8, 0x84, 0xd5, 0xb6, 0x04, 0x83, 0x0f, 0x48, 0x3e, 0x86, 0x81, 0xd0, 0x01, 0x9c, 0x1e, 0x83,
  1298  	0x1e, 0x68, 0xd2, 0xe3, 0xb0, 0x1c, 0x68, 0x6e, 0xef, 0x3e, 0x3f, 0xcd, 0xa2, 0x17, 0xa7, 0x59,
  1299  	0xf4, 0xcf, 0x69, 0x16, 0x3d, 0x3d, 0xcb, 0x8e, 0xbc, 0x38, 0xcb, 0x8e, 0xfc, 0x71, 0x96, 0x1d,
  1300  	0x79, 0xb0, 0xf1, 0x4a, 0x53, 0xb8, 0x94, 0x12, 0x63, 0xfc, 0xfa, 0x7f, 0x01, 0x00, 0x00, 0xff,
  1301  	0xff, 0x2b, 0x30, 0x28, 0x91, 0x7a, 0x11, 0x00, 0x00,
  1302  }
  1303  
  1304  // Reference imports to suppress errors if they are not otherwise used.
  1305  var _ context.Context
  1306  var _ grpc.ClientConn
  1307  
  1308  // This is a compile-time assertion to ensure that this generated file
  1309  // is compatible with the grpc package it is being compiled against.
  1310  const _ = grpc.SupportPackageIsVersion4
  1311  
  1312  // QueryClient is the client API for Query service.
  1313  //
  1314  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1315  type QueryClient interface {
  1316  	// Params queries the module params.
  1317  	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
  1318  	// Treasury queries the foundation treasury.
  1319  	Treasury(ctx context.Context, in *QueryTreasuryRequest, opts ...grpc.CallOption) (*QueryTreasuryResponse, error)
  1320  	// FoundationInfo queries foundation info.
  1321  	FoundationInfo(ctx context.Context, in *QueryFoundationInfoRequest, opts ...grpc.CallOption) (*QueryFoundationInfoResponse, error)
  1322  	// Member queries a member of the foundation
  1323  	Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error)
  1324  	// Members queries members of the foundation
  1325  	Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error)
  1326  	// Proposal queries a proposal based on proposal id.
  1327  	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
  1328  	// Proposals queries all proposals.
  1329  	Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
  1330  	// Vote queries a vote by proposal id and voter.
  1331  	Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
  1332  	// Votes queries a vote by proposal.
  1333  	Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
  1334  	// TallyResult queries the tally of a proposal votes.
  1335  	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
  1336  	// Censorships queries the censorship informations.
  1337  	Censorships(ctx context.Context, in *QueryCensorshipsRequest, opts ...grpc.CallOption) (*QueryCensorshipsResponse, error)
  1338  	// Returns list of authorizations, granted to the grantee.
  1339  	Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, error)
  1340  }
  1341  
  1342  type queryClient struct {
  1343  	cc grpc1.ClientConn
  1344  }
  1345  
  1346  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
  1347  	return &queryClient{cc}
  1348  }
  1349  
  1350  func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
  1351  	out := new(QueryParamsResponse)
  1352  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Params", in, out, opts...)
  1353  	if err != nil {
  1354  		return nil, err
  1355  	}
  1356  	return out, nil
  1357  }
  1358  
  1359  func (c *queryClient) Treasury(ctx context.Context, in *QueryTreasuryRequest, opts ...grpc.CallOption) (*QueryTreasuryResponse, error) {
  1360  	out := new(QueryTreasuryResponse)
  1361  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Treasury", in, out, opts...)
  1362  	if err != nil {
  1363  		return nil, err
  1364  	}
  1365  	return out, nil
  1366  }
  1367  
  1368  func (c *queryClient) FoundationInfo(ctx context.Context, in *QueryFoundationInfoRequest, opts ...grpc.CallOption) (*QueryFoundationInfoResponse, error) {
  1369  	out := new(QueryFoundationInfoResponse)
  1370  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/FoundationInfo", in, out, opts...)
  1371  	if err != nil {
  1372  		return nil, err
  1373  	}
  1374  	return out, nil
  1375  }
  1376  
  1377  func (c *queryClient) Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error) {
  1378  	out := new(QueryMemberResponse)
  1379  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Member", in, out, opts...)
  1380  	if err != nil {
  1381  		return nil, err
  1382  	}
  1383  	return out, nil
  1384  }
  1385  
  1386  func (c *queryClient) Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error) {
  1387  	out := new(QueryMembersResponse)
  1388  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Members", in, out, opts...)
  1389  	if err != nil {
  1390  		return nil, err
  1391  	}
  1392  	return out, nil
  1393  }
  1394  
  1395  func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
  1396  	out := new(QueryProposalResponse)
  1397  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Proposal", in, out, opts...)
  1398  	if err != nil {
  1399  		return nil, err
  1400  	}
  1401  	return out, nil
  1402  }
  1403  
  1404  func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) {
  1405  	out := new(QueryProposalsResponse)
  1406  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Proposals", in, out, opts...)
  1407  	if err != nil {
  1408  		return nil, err
  1409  	}
  1410  	return out, nil
  1411  }
  1412  
  1413  func (c *queryClient) Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error) {
  1414  	out := new(QueryVoteResponse)
  1415  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Vote", in, out, opts...)
  1416  	if err != nil {
  1417  		return nil, err
  1418  	}
  1419  	return out, nil
  1420  }
  1421  
  1422  func (c *queryClient) Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error) {
  1423  	out := new(QueryVotesResponse)
  1424  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Votes", in, out, opts...)
  1425  	if err != nil {
  1426  		return nil, err
  1427  	}
  1428  	return out, nil
  1429  }
  1430  
  1431  func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
  1432  	out := new(QueryTallyResultResponse)
  1433  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/TallyResult", in, out, opts...)
  1434  	if err != nil {
  1435  		return nil, err
  1436  	}
  1437  	return out, nil
  1438  }
  1439  
  1440  func (c *queryClient) Censorships(ctx context.Context, in *QueryCensorshipsRequest, opts ...grpc.CallOption) (*QueryCensorshipsResponse, error) {
  1441  	out := new(QueryCensorshipsResponse)
  1442  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Censorships", in, out, opts...)
  1443  	if err != nil {
  1444  		return nil, err
  1445  	}
  1446  	return out, nil
  1447  }
  1448  
  1449  func (c *queryClient) Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, error) {
  1450  	out := new(QueryGrantsResponse)
  1451  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Query/Grants", in, out, opts...)
  1452  	if err != nil {
  1453  		return nil, err
  1454  	}
  1455  	return out, nil
  1456  }
  1457  
  1458  // QueryServer is the server API for Query service.
  1459  type QueryServer interface {
  1460  	// Params queries the module params.
  1461  	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
  1462  	// Treasury queries the foundation treasury.
  1463  	Treasury(context.Context, *QueryTreasuryRequest) (*QueryTreasuryResponse, error)
  1464  	// FoundationInfo queries foundation info.
  1465  	FoundationInfo(context.Context, *QueryFoundationInfoRequest) (*QueryFoundationInfoResponse, error)
  1466  	// Member queries a member of the foundation
  1467  	Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error)
  1468  	// Members queries members of the foundation
  1469  	Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error)
  1470  	// Proposal queries a proposal based on proposal id.
  1471  	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
  1472  	// Proposals queries all proposals.
  1473  	Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
  1474  	// Vote queries a vote by proposal id and voter.
  1475  	Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
  1476  	// Votes queries a vote by proposal.
  1477  	Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
  1478  	// TallyResult queries the tally of a proposal votes.
  1479  	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
  1480  	// Censorships queries the censorship informations.
  1481  	Censorships(context.Context, *QueryCensorshipsRequest) (*QueryCensorshipsResponse, error)
  1482  	// Returns list of authorizations, granted to the grantee.
  1483  	Grants(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error)
  1484  }
  1485  
  1486  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  1487  type UnimplementedQueryServer struct {
  1488  }
  1489  
  1490  func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
  1491  	return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
  1492  }
  1493  func (*UnimplementedQueryServer) Treasury(ctx context.Context, req *QueryTreasuryRequest) (*QueryTreasuryResponse, error) {
  1494  	return nil, status.Errorf(codes.Unimplemented, "method Treasury not implemented")
  1495  }
  1496  func (*UnimplementedQueryServer) FoundationInfo(ctx context.Context, req *QueryFoundationInfoRequest) (*QueryFoundationInfoResponse, error) {
  1497  	return nil, status.Errorf(codes.Unimplemented, "method FoundationInfo not implemented")
  1498  }
  1499  func (*UnimplementedQueryServer) Member(ctx context.Context, req *QueryMemberRequest) (*QueryMemberResponse, error) {
  1500  	return nil, status.Errorf(codes.Unimplemented, "method Member not implemented")
  1501  }
  1502  func (*UnimplementedQueryServer) Members(ctx context.Context, req *QueryMembersRequest) (*QueryMembersResponse, error) {
  1503  	return nil, status.Errorf(codes.Unimplemented, "method Members not implemented")
  1504  }
  1505  func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) {
  1506  	return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented")
  1507  }
  1508  func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) {
  1509  	return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented")
  1510  }
  1511  func (*UnimplementedQueryServer) Vote(ctx context.Context, req *QueryVoteRequest) (*QueryVoteResponse, error) {
  1512  	return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented")
  1513  }
  1514  func (*UnimplementedQueryServer) Votes(ctx context.Context, req *QueryVotesRequest) (*QueryVotesResponse, error) {
  1515  	return nil, status.Errorf(codes.Unimplemented, "method Votes not implemented")
  1516  }
  1517  func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTallyResultRequest) (*QueryTallyResultResponse, error) {
  1518  	return nil, status.Errorf(codes.Unimplemented, "method TallyResult not implemented")
  1519  }
  1520  func (*UnimplementedQueryServer) Censorships(ctx context.Context, req *QueryCensorshipsRequest) (*QueryCensorshipsResponse, error) {
  1521  	return nil, status.Errorf(codes.Unimplemented, "method Censorships not implemented")
  1522  }
  1523  func (*UnimplementedQueryServer) Grants(ctx context.Context, req *QueryGrantsRequest) (*QueryGrantsResponse, error) {
  1524  	return nil, status.Errorf(codes.Unimplemented, "method Grants not implemented")
  1525  }
  1526  
  1527  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  1528  	s.RegisterService(&_Query_serviceDesc, srv)
  1529  }
  1530  
  1531  func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1532  	in := new(QueryParamsRequest)
  1533  	if err := dec(in); err != nil {
  1534  		return nil, err
  1535  	}
  1536  	if interceptor == nil {
  1537  		return srv.(QueryServer).Params(ctx, in)
  1538  	}
  1539  	info := &grpc.UnaryServerInfo{
  1540  		Server:     srv,
  1541  		FullMethod: "/lbm.foundation.v1.Query/Params",
  1542  	}
  1543  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1544  		return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
  1545  	}
  1546  	return interceptor(ctx, in, info, handler)
  1547  }
  1548  
  1549  func _Query_Treasury_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1550  	in := new(QueryTreasuryRequest)
  1551  	if err := dec(in); err != nil {
  1552  		return nil, err
  1553  	}
  1554  	if interceptor == nil {
  1555  		return srv.(QueryServer).Treasury(ctx, in)
  1556  	}
  1557  	info := &grpc.UnaryServerInfo{
  1558  		Server:     srv,
  1559  		FullMethod: "/lbm.foundation.v1.Query/Treasury",
  1560  	}
  1561  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1562  		return srv.(QueryServer).Treasury(ctx, req.(*QueryTreasuryRequest))
  1563  	}
  1564  	return interceptor(ctx, in, info, handler)
  1565  }
  1566  
  1567  func _Query_FoundationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1568  	in := new(QueryFoundationInfoRequest)
  1569  	if err := dec(in); err != nil {
  1570  		return nil, err
  1571  	}
  1572  	if interceptor == nil {
  1573  		return srv.(QueryServer).FoundationInfo(ctx, in)
  1574  	}
  1575  	info := &grpc.UnaryServerInfo{
  1576  		Server:     srv,
  1577  		FullMethod: "/lbm.foundation.v1.Query/FoundationInfo",
  1578  	}
  1579  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1580  		return srv.(QueryServer).FoundationInfo(ctx, req.(*QueryFoundationInfoRequest))
  1581  	}
  1582  	return interceptor(ctx, in, info, handler)
  1583  }
  1584  
  1585  func _Query_Member_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1586  	in := new(QueryMemberRequest)
  1587  	if err := dec(in); err != nil {
  1588  		return nil, err
  1589  	}
  1590  	if interceptor == nil {
  1591  		return srv.(QueryServer).Member(ctx, in)
  1592  	}
  1593  	info := &grpc.UnaryServerInfo{
  1594  		Server:     srv,
  1595  		FullMethod: "/lbm.foundation.v1.Query/Member",
  1596  	}
  1597  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1598  		return srv.(QueryServer).Member(ctx, req.(*QueryMemberRequest))
  1599  	}
  1600  	return interceptor(ctx, in, info, handler)
  1601  }
  1602  
  1603  func _Query_Members_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1604  	in := new(QueryMembersRequest)
  1605  	if err := dec(in); err != nil {
  1606  		return nil, err
  1607  	}
  1608  	if interceptor == nil {
  1609  		return srv.(QueryServer).Members(ctx, in)
  1610  	}
  1611  	info := &grpc.UnaryServerInfo{
  1612  		Server:     srv,
  1613  		FullMethod: "/lbm.foundation.v1.Query/Members",
  1614  	}
  1615  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1616  		return srv.(QueryServer).Members(ctx, req.(*QueryMembersRequest))
  1617  	}
  1618  	return interceptor(ctx, in, info, handler)
  1619  }
  1620  
  1621  func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1622  	in := new(QueryProposalRequest)
  1623  	if err := dec(in); err != nil {
  1624  		return nil, err
  1625  	}
  1626  	if interceptor == nil {
  1627  		return srv.(QueryServer).Proposal(ctx, in)
  1628  	}
  1629  	info := &grpc.UnaryServerInfo{
  1630  		Server:     srv,
  1631  		FullMethod: "/lbm.foundation.v1.Query/Proposal",
  1632  	}
  1633  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1634  		return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
  1635  	}
  1636  	return interceptor(ctx, in, info, handler)
  1637  }
  1638  
  1639  func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1640  	in := new(QueryProposalsRequest)
  1641  	if err := dec(in); err != nil {
  1642  		return nil, err
  1643  	}
  1644  	if interceptor == nil {
  1645  		return srv.(QueryServer).Proposals(ctx, in)
  1646  	}
  1647  	info := &grpc.UnaryServerInfo{
  1648  		Server:     srv,
  1649  		FullMethod: "/lbm.foundation.v1.Query/Proposals",
  1650  	}
  1651  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1652  		return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest))
  1653  	}
  1654  	return interceptor(ctx, in, info, handler)
  1655  }
  1656  
  1657  func _Query_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1658  	in := new(QueryVoteRequest)
  1659  	if err := dec(in); err != nil {
  1660  		return nil, err
  1661  	}
  1662  	if interceptor == nil {
  1663  		return srv.(QueryServer).Vote(ctx, in)
  1664  	}
  1665  	info := &grpc.UnaryServerInfo{
  1666  		Server:     srv,
  1667  		FullMethod: "/lbm.foundation.v1.Query/Vote",
  1668  	}
  1669  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1670  		return srv.(QueryServer).Vote(ctx, req.(*QueryVoteRequest))
  1671  	}
  1672  	return interceptor(ctx, in, info, handler)
  1673  }
  1674  
  1675  func _Query_Votes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1676  	in := new(QueryVotesRequest)
  1677  	if err := dec(in); err != nil {
  1678  		return nil, err
  1679  	}
  1680  	if interceptor == nil {
  1681  		return srv.(QueryServer).Votes(ctx, in)
  1682  	}
  1683  	info := &grpc.UnaryServerInfo{
  1684  		Server:     srv,
  1685  		FullMethod: "/lbm.foundation.v1.Query/Votes",
  1686  	}
  1687  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1688  		return srv.(QueryServer).Votes(ctx, req.(*QueryVotesRequest))
  1689  	}
  1690  	return interceptor(ctx, in, info, handler)
  1691  }
  1692  
  1693  func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1694  	in := new(QueryTallyResultRequest)
  1695  	if err := dec(in); err != nil {
  1696  		return nil, err
  1697  	}
  1698  	if interceptor == nil {
  1699  		return srv.(QueryServer).TallyResult(ctx, in)
  1700  	}
  1701  	info := &grpc.UnaryServerInfo{
  1702  		Server:     srv,
  1703  		FullMethod: "/lbm.foundation.v1.Query/TallyResult",
  1704  	}
  1705  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1706  		return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
  1707  	}
  1708  	return interceptor(ctx, in, info, handler)
  1709  }
  1710  
  1711  func _Query_Censorships_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1712  	in := new(QueryCensorshipsRequest)
  1713  	if err := dec(in); err != nil {
  1714  		return nil, err
  1715  	}
  1716  	if interceptor == nil {
  1717  		return srv.(QueryServer).Censorships(ctx, in)
  1718  	}
  1719  	info := &grpc.UnaryServerInfo{
  1720  		Server:     srv,
  1721  		FullMethod: "/lbm.foundation.v1.Query/Censorships",
  1722  	}
  1723  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1724  		return srv.(QueryServer).Censorships(ctx, req.(*QueryCensorshipsRequest))
  1725  	}
  1726  	return interceptor(ctx, in, info, handler)
  1727  }
  1728  
  1729  func _Query_Grants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1730  	in := new(QueryGrantsRequest)
  1731  	if err := dec(in); err != nil {
  1732  		return nil, err
  1733  	}
  1734  	if interceptor == nil {
  1735  		return srv.(QueryServer).Grants(ctx, in)
  1736  	}
  1737  	info := &grpc.UnaryServerInfo{
  1738  		Server:     srv,
  1739  		FullMethod: "/lbm.foundation.v1.Query/Grants",
  1740  	}
  1741  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1742  		return srv.(QueryServer).Grants(ctx, req.(*QueryGrantsRequest))
  1743  	}
  1744  	return interceptor(ctx, in, info, handler)
  1745  }
  1746  
  1747  var _Query_serviceDesc = grpc.ServiceDesc{
  1748  	ServiceName: "lbm.foundation.v1.Query",
  1749  	HandlerType: (*QueryServer)(nil),
  1750  	Methods: []grpc.MethodDesc{
  1751  		{
  1752  			MethodName: "Params",
  1753  			Handler:    _Query_Params_Handler,
  1754  		},
  1755  		{
  1756  			MethodName: "Treasury",
  1757  			Handler:    _Query_Treasury_Handler,
  1758  		},
  1759  		{
  1760  			MethodName: "FoundationInfo",
  1761  			Handler:    _Query_FoundationInfo_Handler,
  1762  		},
  1763  		{
  1764  			MethodName: "Member",
  1765  			Handler:    _Query_Member_Handler,
  1766  		},
  1767  		{
  1768  			MethodName: "Members",
  1769  			Handler:    _Query_Members_Handler,
  1770  		},
  1771  		{
  1772  			MethodName: "Proposal",
  1773  			Handler:    _Query_Proposal_Handler,
  1774  		},
  1775  		{
  1776  			MethodName: "Proposals",
  1777  			Handler:    _Query_Proposals_Handler,
  1778  		},
  1779  		{
  1780  			MethodName: "Vote",
  1781  			Handler:    _Query_Vote_Handler,
  1782  		},
  1783  		{
  1784  			MethodName: "Votes",
  1785  			Handler:    _Query_Votes_Handler,
  1786  		},
  1787  		{
  1788  			MethodName: "TallyResult",
  1789  			Handler:    _Query_TallyResult_Handler,
  1790  		},
  1791  		{
  1792  			MethodName: "Censorships",
  1793  			Handler:    _Query_Censorships_Handler,
  1794  		},
  1795  		{
  1796  			MethodName: "Grants",
  1797  			Handler:    _Query_Grants_Handler,
  1798  		},
  1799  	},
  1800  	Streams:  []grpc.StreamDesc{},
  1801  	Metadata: "lbm/foundation/v1/query.proto",
  1802  }
  1803  
  1804  func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
  1805  	size := m.Size()
  1806  	dAtA = make([]byte, size)
  1807  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1808  	if err != nil {
  1809  		return nil, err
  1810  	}
  1811  	return dAtA[:n], nil
  1812  }
  1813  
  1814  func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
  1815  	size := m.Size()
  1816  	return m.MarshalToSizedBuffer(dAtA[:size])
  1817  }
  1818  
  1819  func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1820  	i := len(dAtA)
  1821  	_ = i
  1822  	var l int
  1823  	_ = l
  1824  	return len(dAtA) - i, nil
  1825  }
  1826  
  1827  func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
  1828  	size := m.Size()
  1829  	dAtA = make([]byte, size)
  1830  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1831  	if err != nil {
  1832  		return nil, err
  1833  	}
  1834  	return dAtA[:n], nil
  1835  }
  1836  
  1837  func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1838  	size := m.Size()
  1839  	return m.MarshalToSizedBuffer(dAtA[:size])
  1840  }
  1841  
  1842  func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1843  	i := len(dAtA)
  1844  	_ = i
  1845  	var l int
  1846  	_ = l
  1847  	{
  1848  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1849  		if err != nil {
  1850  			return 0, err
  1851  		}
  1852  		i -= size
  1853  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1854  	}
  1855  	i--
  1856  	dAtA[i] = 0xa
  1857  	return len(dAtA) - i, nil
  1858  }
  1859  
  1860  func (m *QueryTreasuryRequest) Marshal() (dAtA []byte, err error) {
  1861  	size := m.Size()
  1862  	dAtA = make([]byte, size)
  1863  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1864  	if err != nil {
  1865  		return nil, err
  1866  	}
  1867  	return dAtA[:n], nil
  1868  }
  1869  
  1870  func (m *QueryTreasuryRequest) MarshalTo(dAtA []byte) (int, error) {
  1871  	size := m.Size()
  1872  	return m.MarshalToSizedBuffer(dAtA[:size])
  1873  }
  1874  
  1875  func (m *QueryTreasuryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1876  	i := len(dAtA)
  1877  	_ = i
  1878  	var l int
  1879  	_ = l
  1880  	return len(dAtA) - i, nil
  1881  }
  1882  
  1883  func (m *QueryTreasuryResponse) Marshal() (dAtA []byte, err error) {
  1884  	size := m.Size()
  1885  	dAtA = make([]byte, size)
  1886  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1887  	if err != nil {
  1888  		return nil, err
  1889  	}
  1890  	return dAtA[:n], nil
  1891  }
  1892  
  1893  func (m *QueryTreasuryResponse) MarshalTo(dAtA []byte) (int, error) {
  1894  	size := m.Size()
  1895  	return m.MarshalToSizedBuffer(dAtA[:size])
  1896  }
  1897  
  1898  func (m *QueryTreasuryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1899  	i := len(dAtA)
  1900  	_ = i
  1901  	var l int
  1902  	_ = l
  1903  	if len(m.Amount) > 0 {
  1904  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1905  			{
  1906  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1907  				if err != nil {
  1908  					return 0, err
  1909  				}
  1910  				i -= size
  1911  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1912  			}
  1913  			i--
  1914  			dAtA[i] = 0xa
  1915  		}
  1916  	}
  1917  	return len(dAtA) - i, nil
  1918  }
  1919  
  1920  func (m *QueryFoundationInfoRequest) Marshal() (dAtA []byte, err error) {
  1921  	size := m.Size()
  1922  	dAtA = make([]byte, size)
  1923  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1924  	if err != nil {
  1925  		return nil, err
  1926  	}
  1927  	return dAtA[:n], nil
  1928  }
  1929  
  1930  func (m *QueryFoundationInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  1931  	size := m.Size()
  1932  	return m.MarshalToSizedBuffer(dAtA[:size])
  1933  }
  1934  
  1935  func (m *QueryFoundationInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1936  	i := len(dAtA)
  1937  	_ = i
  1938  	var l int
  1939  	_ = l
  1940  	return len(dAtA) - i, nil
  1941  }
  1942  
  1943  func (m *QueryFoundationInfoResponse) Marshal() (dAtA []byte, err error) {
  1944  	size := m.Size()
  1945  	dAtA = make([]byte, size)
  1946  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1947  	if err != nil {
  1948  		return nil, err
  1949  	}
  1950  	return dAtA[:n], nil
  1951  }
  1952  
  1953  func (m *QueryFoundationInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  1954  	size := m.Size()
  1955  	return m.MarshalToSizedBuffer(dAtA[:size])
  1956  }
  1957  
  1958  func (m *QueryFoundationInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1959  	i := len(dAtA)
  1960  	_ = i
  1961  	var l int
  1962  	_ = l
  1963  	{
  1964  		size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  1965  		if err != nil {
  1966  			return 0, err
  1967  		}
  1968  		i -= size
  1969  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1970  	}
  1971  	i--
  1972  	dAtA[i] = 0xa
  1973  	return len(dAtA) - i, nil
  1974  }
  1975  
  1976  func (m *QueryMemberRequest) Marshal() (dAtA []byte, err error) {
  1977  	size := m.Size()
  1978  	dAtA = make([]byte, size)
  1979  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1980  	if err != nil {
  1981  		return nil, err
  1982  	}
  1983  	return dAtA[:n], nil
  1984  }
  1985  
  1986  func (m *QueryMemberRequest) MarshalTo(dAtA []byte) (int, error) {
  1987  	size := m.Size()
  1988  	return m.MarshalToSizedBuffer(dAtA[:size])
  1989  }
  1990  
  1991  func (m *QueryMemberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1992  	i := len(dAtA)
  1993  	_ = i
  1994  	var l int
  1995  	_ = l
  1996  	if len(m.Address) > 0 {
  1997  		i -= len(m.Address)
  1998  		copy(dAtA[i:], m.Address)
  1999  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  2000  		i--
  2001  		dAtA[i] = 0xa
  2002  	}
  2003  	return len(dAtA) - i, nil
  2004  }
  2005  
  2006  func (m *QueryMemberResponse) Marshal() (dAtA []byte, err error) {
  2007  	size := m.Size()
  2008  	dAtA = make([]byte, size)
  2009  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2010  	if err != nil {
  2011  		return nil, err
  2012  	}
  2013  	return dAtA[:n], nil
  2014  }
  2015  
  2016  func (m *QueryMemberResponse) MarshalTo(dAtA []byte) (int, error) {
  2017  	size := m.Size()
  2018  	return m.MarshalToSizedBuffer(dAtA[:size])
  2019  }
  2020  
  2021  func (m *QueryMemberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2022  	i := len(dAtA)
  2023  	_ = i
  2024  	var l int
  2025  	_ = l
  2026  	if m.Member != nil {
  2027  		{
  2028  			size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  2029  			if err != nil {
  2030  				return 0, err
  2031  			}
  2032  			i -= size
  2033  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2034  		}
  2035  		i--
  2036  		dAtA[i] = 0xa
  2037  	}
  2038  	return len(dAtA) - i, nil
  2039  }
  2040  
  2041  func (m *QueryMembersRequest) Marshal() (dAtA []byte, err error) {
  2042  	size := m.Size()
  2043  	dAtA = make([]byte, size)
  2044  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2045  	if err != nil {
  2046  		return nil, err
  2047  	}
  2048  	return dAtA[:n], nil
  2049  }
  2050  
  2051  func (m *QueryMembersRequest) MarshalTo(dAtA []byte) (int, error) {
  2052  	size := m.Size()
  2053  	return m.MarshalToSizedBuffer(dAtA[:size])
  2054  }
  2055  
  2056  func (m *QueryMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2057  	i := len(dAtA)
  2058  	_ = i
  2059  	var l int
  2060  	_ = l
  2061  	if m.Pagination != nil {
  2062  		{
  2063  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2064  			if err != nil {
  2065  				return 0, err
  2066  			}
  2067  			i -= size
  2068  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2069  		}
  2070  		i--
  2071  		dAtA[i] = 0xa
  2072  	}
  2073  	return len(dAtA) - i, nil
  2074  }
  2075  
  2076  func (m *QueryMembersResponse) Marshal() (dAtA []byte, err error) {
  2077  	size := m.Size()
  2078  	dAtA = make([]byte, size)
  2079  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2080  	if err != nil {
  2081  		return nil, err
  2082  	}
  2083  	return dAtA[:n], nil
  2084  }
  2085  
  2086  func (m *QueryMembersResponse) MarshalTo(dAtA []byte) (int, error) {
  2087  	size := m.Size()
  2088  	return m.MarshalToSizedBuffer(dAtA[:size])
  2089  }
  2090  
  2091  func (m *QueryMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2092  	i := len(dAtA)
  2093  	_ = i
  2094  	var l int
  2095  	_ = l
  2096  	if m.Pagination != nil {
  2097  		{
  2098  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2099  			if err != nil {
  2100  				return 0, err
  2101  			}
  2102  			i -= size
  2103  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2104  		}
  2105  		i--
  2106  		dAtA[i] = 0x12
  2107  	}
  2108  	if len(m.Members) > 0 {
  2109  		for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  2110  			{
  2111  				size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2112  				if err != nil {
  2113  					return 0, err
  2114  				}
  2115  				i -= size
  2116  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2117  			}
  2118  			i--
  2119  			dAtA[i] = 0xa
  2120  		}
  2121  	}
  2122  	return len(dAtA) - i, nil
  2123  }
  2124  
  2125  func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) {
  2126  	size := m.Size()
  2127  	dAtA = make([]byte, size)
  2128  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2129  	if err != nil {
  2130  		return nil, err
  2131  	}
  2132  	return dAtA[:n], nil
  2133  }
  2134  
  2135  func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) {
  2136  	size := m.Size()
  2137  	return m.MarshalToSizedBuffer(dAtA[:size])
  2138  }
  2139  
  2140  func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2141  	i := len(dAtA)
  2142  	_ = i
  2143  	var l int
  2144  	_ = l
  2145  	if m.ProposalId != 0 {
  2146  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2147  		i--
  2148  		dAtA[i] = 0x8
  2149  	}
  2150  	return len(dAtA) - i, nil
  2151  }
  2152  
  2153  func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) {
  2154  	size := m.Size()
  2155  	dAtA = make([]byte, size)
  2156  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2157  	if err != nil {
  2158  		return nil, err
  2159  	}
  2160  	return dAtA[:n], nil
  2161  }
  2162  
  2163  func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  2164  	size := m.Size()
  2165  	return m.MarshalToSizedBuffer(dAtA[:size])
  2166  }
  2167  
  2168  func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2169  	i := len(dAtA)
  2170  	_ = i
  2171  	var l int
  2172  	_ = l
  2173  	if m.Proposal != nil {
  2174  		{
  2175  			size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  2176  			if err != nil {
  2177  				return 0, err
  2178  			}
  2179  			i -= size
  2180  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2181  		}
  2182  		i--
  2183  		dAtA[i] = 0xa
  2184  	}
  2185  	return len(dAtA) - i, nil
  2186  }
  2187  
  2188  func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) {
  2189  	size := m.Size()
  2190  	dAtA = make([]byte, size)
  2191  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2192  	if err != nil {
  2193  		return nil, err
  2194  	}
  2195  	return dAtA[:n], nil
  2196  }
  2197  
  2198  func (m *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) {
  2199  	size := m.Size()
  2200  	return m.MarshalToSizedBuffer(dAtA[:size])
  2201  }
  2202  
  2203  func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2204  	i := len(dAtA)
  2205  	_ = i
  2206  	var l int
  2207  	_ = l
  2208  	if m.Pagination != nil {
  2209  		{
  2210  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2211  			if err != nil {
  2212  				return 0, err
  2213  			}
  2214  			i -= size
  2215  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2216  		}
  2217  		i--
  2218  		dAtA[i] = 0xa
  2219  	}
  2220  	return len(dAtA) - i, nil
  2221  }
  2222  
  2223  func (m *QueryProposalsResponse) Marshal() (dAtA []byte, err error) {
  2224  	size := m.Size()
  2225  	dAtA = make([]byte, size)
  2226  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2227  	if err != nil {
  2228  		return nil, err
  2229  	}
  2230  	return dAtA[:n], nil
  2231  }
  2232  
  2233  func (m *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) {
  2234  	size := m.Size()
  2235  	return m.MarshalToSizedBuffer(dAtA[:size])
  2236  }
  2237  
  2238  func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2239  	i := len(dAtA)
  2240  	_ = i
  2241  	var l int
  2242  	_ = l
  2243  	if m.Pagination != nil {
  2244  		{
  2245  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2246  			if err != nil {
  2247  				return 0, err
  2248  			}
  2249  			i -= size
  2250  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2251  		}
  2252  		i--
  2253  		dAtA[i] = 0x12
  2254  	}
  2255  	if len(m.Proposals) > 0 {
  2256  		for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- {
  2257  			{
  2258  				size, err := m.Proposals[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2259  				if err != nil {
  2260  					return 0, err
  2261  				}
  2262  				i -= size
  2263  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2264  			}
  2265  			i--
  2266  			dAtA[i] = 0xa
  2267  		}
  2268  	}
  2269  	return len(dAtA) - i, nil
  2270  }
  2271  
  2272  func (m *QueryVoteRequest) Marshal() (dAtA []byte, err error) {
  2273  	size := m.Size()
  2274  	dAtA = make([]byte, size)
  2275  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2276  	if err != nil {
  2277  		return nil, err
  2278  	}
  2279  	return dAtA[:n], nil
  2280  }
  2281  
  2282  func (m *QueryVoteRequest) MarshalTo(dAtA []byte) (int, error) {
  2283  	size := m.Size()
  2284  	return m.MarshalToSizedBuffer(dAtA[:size])
  2285  }
  2286  
  2287  func (m *QueryVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2288  	i := len(dAtA)
  2289  	_ = i
  2290  	var l int
  2291  	_ = l
  2292  	if len(m.Voter) > 0 {
  2293  		i -= len(m.Voter)
  2294  		copy(dAtA[i:], m.Voter)
  2295  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Voter)))
  2296  		i--
  2297  		dAtA[i] = 0x12
  2298  	}
  2299  	if m.ProposalId != 0 {
  2300  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2301  		i--
  2302  		dAtA[i] = 0x8
  2303  	}
  2304  	return len(dAtA) - i, nil
  2305  }
  2306  
  2307  func (m *QueryVoteResponse) Marshal() (dAtA []byte, err error) {
  2308  	size := m.Size()
  2309  	dAtA = make([]byte, size)
  2310  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2311  	if err != nil {
  2312  		return nil, err
  2313  	}
  2314  	return dAtA[:n], nil
  2315  }
  2316  
  2317  func (m *QueryVoteResponse) MarshalTo(dAtA []byte) (int, error) {
  2318  	size := m.Size()
  2319  	return m.MarshalToSizedBuffer(dAtA[:size])
  2320  }
  2321  
  2322  func (m *QueryVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2323  	i := len(dAtA)
  2324  	_ = i
  2325  	var l int
  2326  	_ = l
  2327  	if m.Vote != nil {
  2328  		{
  2329  			size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  2330  			if err != nil {
  2331  				return 0, err
  2332  			}
  2333  			i -= size
  2334  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2335  		}
  2336  		i--
  2337  		dAtA[i] = 0xa
  2338  	}
  2339  	return len(dAtA) - i, nil
  2340  }
  2341  
  2342  func (m *QueryVotesRequest) Marshal() (dAtA []byte, err error) {
  2343  	size := m.Size()
  2344  	dAtA = make([]byte, size)
  2345  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2346  	if err != nil {
  2347  		return nil, err
  2348  	}
  2349  	return dAtA[:n], nil
  2350  }
  2351  
  2352  func (m *QueryVotesRequest) MarshalTo(dAtA []byte) (int, error) {
  2353  	size := m.Size()
  2354  	return m.MarshalToSizedBuffer(dAtA[:size])
  2355  }
  2356  
  2357  func (m *QueryVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2358  	i := len(dAtA)
  2359  	_ = i
  2360  	var l int
  2361  	_ = l
  2362  	if m.Pagination != nil {
  2363  		{
  2364  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2365  			if err != nil {
  2366  				return 0, err
  2367  			}
  2368  			i -= size
  2369  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2370  		}
  2371  		i--
  2372  		dAtA[i] = 0x12
  2373  	}
  2374  	if m.ProposalId != 0 {
  2375  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2376  		i--
  2377  		dAtA[i] = 0x8
  2378  	}
  2379  	return len(dAtA) - i, nil
  2380  }
  2381  
  2382  func (m *QueryVotesResponse) Marshal() (dAtA []byte, err error) {
  2383  	size := m.Size()
  2384  	dAtA = make([]byte, size)
  2385  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2386  	if err != nil {
  2387  		return nil, err
  2388  	}
  2389  	return dAtA[:n], nil
  2390  }
  2391  
  2392  func (m *QueryVotesResponse) MarshalTo(dAtA []byte) (int, error) {
  2393  	size := m.Size()
  2394  	return m.MarshalToSizedBuffer(dAtA[:size])
  2395  }
  2396  
  2397  func (m *QueryVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2398  	i := len(dAtA)
  2399  	_ = i
  2400  	var l int
  2401  	_ = l
  2402  	if m.Pagination != nil {
  2403  		{
  2404  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2405  			if err != nil {
  2406  				return 0, err
  2407  			}
  2408  			i -= size
  2409  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2410  		}
  2411  		i--
  2412  		dAtA[i] = 0x12
  2413  	}
  2414  	if len(m.Votes) > 0 {
  2415  		for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- {
  2416  			{
  2417  				size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2418  				if err != nil {
  2419  					return 0, err
  2420  				}
  2421  				i -= size
  2422  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2423  			}
  2424  			i--
  2425  			dAtA[i] = 0xa
  2426  		}
  2427  	}
  2428  	return len(dAtA) - i, nil
  2429  }
  2430  
  2431  func (m *QueryTallyResultRequest) Marshal() (dAtA []byte, err error) {
  2432  	size := m.Size()
  2433  	dAtA = make([]byte, size)
  2434  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2435  	if err != nil {
  2436  		return nil, err
  2437  	}
  2438  	return dAtA[:n], nil
  2439  }
  2440  
  2441  func (m *QueryTallyResultRequest) MarshalTo(dAtA []byte) (int, error) {
  2442  	size := m.Size()
  2443  	return m.MarshalToSizedBuffer(dAtA[:size])
  2444  }
  2445  
  2446  func (m *QueryTallyResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2447  	i := len(dAtA)
  2448  	_ = i
  2449  	var l int
  2450  	_ = l
  2451  	if m.ProposalId != 0 {
  2452  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2453  		i--
  2454  		dAtA[i] = 0x8
  2455  	}
  2456  	return len(dAtA) - i, nil
  2457  }
  2458  
  2459  func (m *QueryTallyResultResponse) Marshal() (dAtA []byte, err error) {
  2460  	size := m.Size()
  2461  	dAtA = make([]byte, size)
  2462  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2463  	if err != nil {
  2464  		return nil, err
  2465  	}
  2466  	return dAtA[:n], nil
  2467  }
  2468  
  2469  func (m *QueryTallyResultResponse) MarshalTo(dAtA []byte) (int, error) {
  2470  	size := m.Size()
  2471  	return m.MarshalToSizedBuffer(dAtA[:size])
  2472  }
  2473  
  2474  func (m *QueryTallyResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2475  	i := len(dAtA)
  2476  	_ = i
  2477  	var l int
  2478  	_ = l
  2479  	{
  2480  		size, err := m.Tally.MarshalToSizedBuffer(dAtA[:i])
  2481  		if err != nil {
  2482  			return 0, err
  2483  		}
  2484  		i -= size
  2485  		i = encodeVarintQuery(dAtA, i, uint64(size))
  2486  	}
  2487  	i--
  2488  	dAtA[i] = 0xa
  2489  	return len(dAtA) - i, nil
  2490  }
  2491  
  2492  func (m *QueryCensorshipsRequest) Marshal() (dAtA []byte, err error) {
  2493  	size := m.Size()
  2494  	dAtA = make([]byte, size)
  2495  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2496  	if err != nil {
  2497  		return nil, err
  2498  	}
  2499  	return dAtA[:n], nil
  2500  }
  2501  
  2502  func (m *QueryCensorshipsRequest) MarshalTo(dAtA []byte) (int, error) {
  2503  	size := m.Size()
  2504  	return m.MarshalToSizedBuffer(dAtA[:size])
  2505  }
  2506  
  2507  func (m *QueryCensorshipsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2508  	i := len(dAtA)
  2509  	_ = i
  2510  	var l int
  2511  	_ = l
  2512  	if m.Pagination != nil {
  2513  		{
  2514  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2515  			if err != nil {
  2516  				return 0, err
  2517  			}
  2518  			i -= size
  2519  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2520  		}
  2521  		i--
  2522  		dAtA[i] = 0xa
  2523  	}
  2524  	return len(dAtA) - i, nil
  2525  }
  2526  
  2527  func (m *QueryCensorshipsResponse) Marshal() (dAtA []byte, err error) {
  2528  	size := m.Size()
  2529  	dAtA = make([]byte, size)
  2530  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2531  	if err != nil {
  2532  		return nil, err
  2533  	}
  2534  	return dAtA[:n], nil
  2535  }
  2536  
  2537  func (m *QueryCensorshipsResponse) MarshalTo(dAtA []byte) (int, error) {
  2538  	size := m.Size()
  2539  	return m.MarshalToSizedBuffer(dAtA[:size])
  2540  }
  2541  
  2542  func (m *QueryCensorshipsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2543  	i := len(dAtA)
  2544  	_ = i
  2545  	var l int
  2546  	_ = l
  2547  	if m.Pagination != nil {
  2548  		{
  2549  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2550  			if err != nil {
  2551  				return 0, err
  2552  			}
  2553  			i -= size
  2554  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2555  		}
  2556  		i--
  2557  		dAtA[i] = 0x12
  2558  	}
  2559  	if len(m.Censorships) > 0 {
  2560  		for iNdEx := len(m.Censorships) - 1; iNdEx >= 0; iNdEx-- {
  2561  			{
  2562  				size, err := m.Censorships[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2563  				if err != nil {
  2564  					return 0, err
  2565  				}
  2566  				i -= size
  2567  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2568  			}
  2569  			i--
  2570  			dAtA[i] = 0xa
  2571  		}
  2572  	}
  2573  	return len(dAtA) - i, nil
  2574  }
  2575  
  2576  func (m *QueryGrantsRequest) Marshal() (dAtA []byte, err error) {
  2577  	size := m.Size()
  2578  	dAtA = make([]byte, size)
  2579  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2580  	if err != nil {
  2581  		return nil, err
  2582  	}
  2583  	return dAtA[:n], nil
  2584  }
  2585  
  2586  func (m *QueryGrantsRequest) MarshalTo(dAtA []byte) (int, error) {
  2587  	size := m.Size()
  2588  	return m.MarshalToSizedBuffer(dAtA[:size])
  2589  }
  2590  
  2591  func (m *QueryGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2592  	i := len(dAtA)
  2593  	_ = i
  2594  	var l int
  2595  	_ = l
  2596  	if m.Pagination != nil {
  2597  		{
  2598  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2599  			if err != nil {
  2600  				return 0, err
  2601  			}
  2602  			i -= size
  2603  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2604  		}
  2605  		i--
  2606  		dAtA[i] = 0x1a
  2607  	}
  2608  	if len(m.MsgTypeUrl) > 0 {
  2609  		i -= len(m.MsgTypeUrl)
  2610  		copy(dAtA[i:], m.MsgTypeUrl)
  2611  		i = encodeVarintQuery(dAtA, i, uint64(len(m.MsgTypeUrl)))
  2612  		i--
  2613  		dAtA[i] = 0x12
  2614  	}
  2615  	if len(m.Grantee) > 0 {
  2616  		i -= len(m.Grantee)
  2617  		copy(dAtA[i:], m.Grantee)
  2618  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee)))
  2619  		i--
  2620  		dAtA[i] = 0xa
  2621  	}
  2622  	return len(dAtA) - i, nil
  2623  }
  2624  
  2625  func (m *QueryGrantsResponse) Marshal() (dAtA []byte, err error) {
  2626  	size := m.Size()
  2627  	dAtA = make([]byte, size)
  2628  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2629  	if err != nil {
  2630  		return nil, err
  2631  	}
  2632  	return dAtA[:n], nil
  2633  }
  2634  
  2635  func (m *QueryGrantsResponse) MarshalTo(dAtA []byte) (int, error) {
  2636  	size := m.Size()
  2637  	return m.MarshalToSizedBuffer(dAtA[:size])
  2638  }
  2639  
  2640  func (m *QueryGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2641  	i := len(dAtA)
  2642  	_ = i
  2643  	var l int
  2644  	_ = l
  2645  	if m.Pagination != nil {
  2646  		{
  2647  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2648  			if err != nil {
  2649  				return 0, err
  2650  			}
  2651  			i -= size
  2652  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2653  		}
  2654  		i--
  2655  		dAtA[i] = 0x12
  2656  	}
  2657  	if len(m.Authorizations) > 0 {
  2658  		for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- {
  2659  			{
  2660  				size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2661  				if err != nil {
  2662  					return 0, err
  2663  				}
  2664  				i -= size
  2665  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2666  			}
  2667  			i--
  2668  			dAtA[i] = 0xa
  2669  		}
  2670  	}
  2671  	return len(dAtA) - i, nil
  2672  }
  2673  
  2674  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  2675  	offset -= sovQuery(v)
  2676  	base := offset
  2677  	for v >= 1<<7 {
  2678  		dAtA[offset] = uint8(v&0x7f | 0x80)
  2679  		v >>= 7
  2680  		offset++
  2681  	}
  2682  	dAtA[offset] = uint8(v)
  2683  	return base
  2684  }
  2685  func (m *QueryParamsRequest) Size() (n int) {
  2686  	if m == nil {
  2687  		return 0
  2688  	}
  2689  	var l int
  2690  	_ = l
  2691  	return n
  2692  }
  2693  
  2694  func (m *QueryParamsResponse) Size() (n int) {
  2695  	if m == nil {
  2696  		return 0
  2697  	}
  2698  	var l int
  2699  	_ = l
  2700  	l = m.Params.Size()
  2701  	n += 1 + l + sovQuery(uint64(l))
  2702  	return n
  2703  }
  2704  
  2705  func (m *QueryTreasuryRequest) Size() (n int) {
  2706  	if m == nil {
  2707  		return 0
  2708  	}
  2709  	var l int
  2710  	_ = l
  2711  	return n
  2712  }
  2713  
  2714  func (m *QueryTreasuryResponse) Size() (n int) {
  2715  	if m == nil {
  2716  		return 0
  2717  	}
  2718  	var l int
  2719  	_ = l
  2720  	if len(m.Amount) > 0 {
  2721  		for _, e := range m.Amount {
  2722  			l = e.Size()
  2723  			n += 1 + l + sovQuery(uint64(l))
  2724  		}
  2725  	}
  2726  	return n
  2727  }
  2728  
  2729  func (m *QueryFoundationInfoRequest) Size() (n int) {
  2730  	if m == nil {
  2731  		return 0
  2732  	}
  2733  	var l int
  2734  	_ = l
  2735  	return n
  2736  }
  2737  
  2738  func (m *QueryFoundationInfoResponse) Size() (n int) {
  2739  	if m == nil {
  2740  		return 0
  2741  	}
  2742  	var l int
  2743  	_ = l
  2744  	l = m.Info.Size()
  2745  	n += 1 + l + sovQuery(uint64(l))
  2746  	return n
  2747  }
  2748  
  2749  func (m *QueryMemberRequest) Size() (n int) {
  2750  	if m == nil {
  2751  		return 0
  2752  	}
  2753  	var l int
  2754  	_ = l
  2755  	l = len(m.Address)
  2756  	if l > 0 {
  2757  		n += 1 + l + sovQuery(uint64(l))
  2758  	}
  2759  	return n
  2760  }
  2761  
  2762  func (m *QueryMemberResponse) Size() (n int) {
  2763  	if m == nil {
  2764  		return 0
  2765  	}
  2766  	var l int
  2767  	_ = l
  2768  	if m.Member != nil {
  2769  		l = m.Member.Size()
  2770  		n += 1 + l + sovQuery(uint64(l))
  2771  	}
  2772  	return n
  2773  }
  2774  
  2775  func (m *QueryMembersRequest) Size() (n int) {
  2776  	if m == nil {
  2777  		return 0
  2778  	}
  2779  	var l int
  2780  	_ = l
  2781  	if m.Pagination != nil {
  2782  		l = m.Pagination.Size()
  2783  		n += 1 + l + sovQuery(uint64(l))
  2784  	}
  2785  	return n
  2786  }
  2787  
  2788  func (m *QueryMembersResponse) Size() (n int) {
  2789  	if m == nil {
  2790  		return 0
  2791  	}
  2792  	var l int
  2793  	_ = l
  2794  	if len(m.Members) > 0 {
  2795  		for _, e := range m.Members {
  2796  			l = e.Size()
  2797  			n += 1 + l + sovQuery(uint64(l))
  2798  		}
  2799  	}
  2800  	if m.Pagination != nil {
  2801  		l = m.Pagination.Size()
  2802  		n += 1 + l + sovQuery(uint64(l))
  2803  	}
  2804  	return n
  2805  }
  2806  
  2807  func (m *QueryProposalRequest) Size() (n int) {
  2808  	if m == nil {
  2809  		return 0
  2810  	}
  2811  	var l int
  2812  	_ = l
  2813  	if m.ProposalId != 0 {
  2814  		n += 1 + sovQuery(uint64(m.ProposalId))
  2815  	}
  2816  	return n
  2817  }
  2818  
  2819  func (m *QueryProposalResponse) Size() (n int) {
  2820  	if m == nil {
  2821  		return 0
  2822  	}
  2823  	var l int
  2824  	_ = l
  2825  	if m.Proposal != nil {
  2826  		l = m.Proposal.Size()
  2827  		n += 1 + l + sovQuery(uint64(l))
  2828  	}
  2829  	return n
  2830  }
  2831  
  2832  func (m *QueryProposalsRequest) Size() (n int) {
  2833  	if m == nil {
  2834  		return 0
  2835  	}
  2836  	var l int
  2837  	_ = l
  2838  	if m.Pagination != nil {
  2839  		l = m.Pagination.Size()
  2840  		n += 1 + l + sovQuery(uint64(l))
  2841  	}
  2842  	return n
  2843  }
  2844  
  2845  func (m *QueryProposalsResponse) Size() (n int) {
  2846  	if m == nil {
  2847  		return 0
  2848  	}
  2849  	var l int
  2850  	_ = l
  2851  	if len(m.Proposals) > 0 {
  2852  		for _, e := range m.Proposals {
  2853  			l = e.Size()
  2854  			n += 1 + l + sovQuery(uint64(l))
  2855  		}
  2856  	}
  2857  	if m.Pagination != nil {
  2858  		l = m.Pagination.Size()
  2859  		n += 1 + l + sovQuery(uint64(l))
  2860  	}
  2861  	return n
  2862  }
  2863  
  2864  func (m *QueryVoteRequest) Size() (n int) {
  2865  	if m == nil {
  2866  		return 0
  2867  	}
  2868  	var l int
  2869  	_ = l
  2870  	if m.ProposalId != 0 {
  2871  		n += 1 + sovQuery(uint64(m.ProposalId))
  2872  	}
  2873  	l = len(m.Voter)
  2874  	if l > 0 {
  2875  		n += 1 + l + sovQuery(uint64(l))
  2876  	}
  2877  	return n
  2878  }
  2879  
  2880  func (m *QueryVoteResponse) Size() (n int) {
  2881  	if m == nil {
  2882  		return 0
  2883  	}
  2884  	var l int
  2885  	_ = l
  2886  	if m.Vote != nil {
  2887  		l = m.Vote.Size()
  2888  		n += 1 + l + sovQuery(uint64(l))
  2889  	}
  2890  	return n
  2891  }
  2892  
  2893  func (m *QueryVotesRequest) Size() (n int) {
  2894  	if m == nil {
  2895  		return 0
  2896  	}
  2897  	var l int
  2898  	_ = l
  2899  	if m.ProposalId != 0 {
  2900  		n += 1 + sovQuery(uint64(m.ProposalId))
  2901  	}
  2902  	if m.Pagination != nil {
  2903  		l = m.Pagination.Size()
  2904  		n += 1 + l + sovQuery(uint64(l))
  2905  	}
  2906  	return n
  2907  }
  2908  
  2909  func (m *QueryVotesResponse) Size() (n int) {
  2910  	if m == nil {
  2911  		return 0
  2912  	}
  2913  	var l int
  2914  	_ = l
  2915  	if len(m.Votes) > 0 {
  2916  		for _, e := range m.Votes {
  2917  			l = e.Size()
  2918  			n += 1 + l + sovQuery(uint64(l))
  2919  		}
  2920  	}
  2921  	if m.Pagination != nil {
  2922  		l = m.Pagination.Size()
  2923  		n += 1 + l + sovQuery(uint64(l))
  2924  	}
  2925  	return n
  2926  }
  2927  
  2928  func (m *QueryTallyResultRequest) Size() (n int) {
  2929  	if m == nil {
  2930  		return 0
  2931  	}
  2932  	var l int
  2933  	_ = l
  2934  	if m.ProposalId != 0 {
  2935  		n += 1 + sovQuery(uint64(m.ProposalId))
  2936  	}
  2937  	return n
  2938  }
  2939  
  2940  func (m *QueryTallyResultResponse) Size() (n int) {
  2941  	if m == nil {
  2942  		return 0
  2943  	}
  2944  	var l int
  2945  	_ = l
  2946  	l = m.Tally.Size()
  2947  	n += 1 + l + sovQuery(uint64(l))
  2948  	return n
  2949  }
  2950  
  2951  func (m *QueryCensorshipsRequest) Size() (n int) {
  2952  	if m == nil {
  2953  		return 0
  2954  	}
  2955  	var l int
  2956  	_ = l
  2957  	if m.Pagination != nil {
  2958  		l = m.Pagination.Size()
  2959  		n += 1 + l + sovQuery(uint64(l))
  2960  	}
  2961  	return n
  2962  }
  2963  
  2964  func (m *QueryCensorshipsResponse) Size() (n int) {
  2965  	if m == nil {
  2966  		return 0
  2967  	}
  2968  	var l int
  2969  	_ = l
  2970  	if len(m.Censorships) > 0 {
  2971  		for _, e := range m.Censorships {
  2972  			l = e.Size()
  2973  			n += 1 + l + sovQuery(uint64(l))
  2974  		}
  2975  	}
  2976  	if m.Pagination != nil {
  2977  		l = m.Pagination.Size()
  2978  		n += 1 + l + sovQuery(uint64(l))
  2979  	}
  2980  	return n
  2981  }
  2982  
  2983  func (m *QueryGrantsRequest) Size() (n int) {
  2984  	if m == nil {
  2985  		return 0
  2986  	}
  2987  	var l int
  2988  	_ = l
  2989  	l = len(m.Grantee)
  2990  	if l > 0 {
  2991  		n += 1 + l + sovQuery(uint64(l))
  2992  	}
  2993  	l = len(m.MsgTypeUrl)
  2994  	if l > 0 {
  2995  		n += 1 + l + sovQuery(uint64(l))
  2996  	}
  2997  	if m.Pagination != nil {
  2998  		l = m.Pagination.Size()
  2999  		n += 1 + l + sovQuery(uint64(l))
  3000  	}
  3001  	return n
  3002  }
  3003  
  3004  func (m *QueryGrantsResponse) Size() (n int) {
  3005  	if m == nil {
  3006  		return 0
  3007  	}
  3008  	var l int
  3009  	_ = l
  3010  	if len(m.Authorizations) > 0 {
  3011  		for _, e := range m.Authorizations {
  3012  			l = e.Size()
  3013  			n += 1 + l + sovQuery(uint64(l))
  3014  		}
  3015  	}
  3016  	if m.Pagination != nil {
  3017  		l = m.Pagination.Size()
  3018  		n += 1 + l + sovQuery(uint64(l))
  3019  	}
  3020  	return n
  3021  }
  3022  
  3023  func sovQuery(x uint64) (n int) {
  3024  	return (math_bits.Len64(x|1) + 6) / 7
  3025  }
  3026  func sozQuery(x uint64) (n int) {
  3027  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  3028  }
  3029  func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
  3030  	l := len(dAtA)
  3031  	iNdEx := 0
  3032  	for iNdEx < l {
  3033  		preIndex := iNdEx
  3034  		var wire uint64
  3035  		for shift := uint(0); ; shift += 7 {
  3036  			if shift >= 64 {
  3037  				return ErrIntOverflowQuery
  3038  			}
  3039  			if iNdEx >= l {
  3040  				return io.ErrUnexpectedEOF
  3041  			}
  3042  			b := dAtA[iNdEx]
  3043  			iNdEx++
  3044  			wire |= uint64(b&0x7F) << shift
  3045  			if b < 0x80 {
  3046  				break
  3047  			}
  3048  		}
  3049  		fieldNum := int32(wire >> 3)
  3050  		wireType := int(wire & 0x7)
  3051  		if wireType == 4 {
  3052  			return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
  3053  		}
  3054  		if fieldNum <= 0 {
  3055  			return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3056  		}
  3057  		switch fieldNum {
  3058  		default:
  3059  			iNdEx = preIndex
  3060  			skippy, err := skipQuery(dAtA[iNdEx:])
  3061  			if err != nil {
  3062  				return err
  3063  			}
  3064  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3065  				return ErrInvalidLengthQuery
  3066  			}
  3067  			if (iNdEx + skippy) > l {
  3068  				return io.ErrUnexpectedEOF
  3069  			}
  3070  			iNdEx += skippy
  3071  		}
  3072  	}
  3073  
  3074  	if iNdEx > l {
  3075  		return io.ErrUnexpectedEOF
  3076  	}
  3077  	return nil
  3078  }
  3079  func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
  3080  	l := len(dAtA)
  3081  	iNdEx := 0
  3082  	for iNdEx < l {
  3083  		preIndex := iNdEx
  3084  		var wire uint64
  3085  		for shift := uint(0); ; shift += 7 {
  3086  			if shift >= 64 {
  3087  				return ErrIntOverflowQuery
  3088  			}
  3089  			if iNdEx >= l {
  3090  				return io.ErrUnexpectedEOF
  3091  			}
  3092  			b := dAtA[iNdEx]
  3093  			iNdEx++
  3094  			wire |= uint64(b&0x7F) << shift
  3095  			if b < 0x80 {
  3096  				break
  3097  			}
  3098  		}
  3099  		fieldNum := int32(wire >> 3)
  3100  		wireType := int(wire & 0x7)
  3101  		if wireType == 4 {
  3102  			return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
  3103  		}
  3104  		if fieldNum <= 0 {
  3105  			return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3106  		}
  3107  		switch fieldNum {
  3108  		case 1:
  3109  			if wireType != 2 {
  3110  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  3111  			}
  3112  			var msglen int
  3113  			for shift := uint(0); ; shift += 7 {
  3114  				if shift >= 64 {
  3115  					return ErrIntOverflowQuery
  3116  				}
  3117  				if iNdEx >= l {
  3118  					return io.ErrUnexpectedEOF
  3119  				}
  3120  				b := dAtA[iNdEx]
  3121  				iNdEx++
  3122  				msglen |= int(b&0x7F) << shift
  3123  				if b < 0x80 {
  3124  					break
  3125  				}
  3126  			}
  3127  			if msglen < 0 {
  3128  				return ErrInvalidLengthQuery
  3129  			}
  3130  			postIndex := iNdEx + msglen
  3131  			if postIndex < 0 {
  3132  				return ErrInvalidLengthQuery
  3133  			}
  3134  			if postIndex > l {
  3135  				return io.ErrUnexpectedEOF
  3136  			}
  3137  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3138  				return err
  3139  			}
  3140  			iNdEx = postIndex
  3141  		default:
  3142  			iNdEx = preIndex
  3143  			skippy, err := skipQuery(dAtA[iNdEx:])
  3144  			if err != nil {
  3145  				return err
  3146  			}
  3147  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3148  				return ErrInvalidLengthQuery
  3149  			}
  3150  			if (iNdEx + skippy) > l {
  3151  				return io.ErrUnexpectedEOF
  3152  			}
  3153  			iNdEx += skippy
  3154  		}
  3155  	}
  3156  
  3157  	if iNdEx > l {
  3158  		return io.ErrUnexpectedEOF
  3159  	}
  3160  	return nil
  3161  }
  3162  func (m *QueryTreasuryRequest) Unmarshal(dAtA []byte) error {
  3163  	l := len(dAtA)
  3164  	iNdEx := 0
  3165  	for iNdEx < l {
  3166  		preIndex := iNdEx
  3167  		var wire uint64
  3168  		for shift := uint(0); ; shift += 7 {
  3169  			if shift >= 64 {
  3170  				return ErrIntOverflowQuery
  3171  			}
  3172  			if iNdEx >= l {
  3173  				return io.ErrUnexpectedEOF
  3174  			}
  3175  			b := dAtA[iNdEx]
  3176  			iNdEx++
  3177  			wire |= uint64(b&0x7F) << shift
  3178  			if b < 0x80 {
  3179  				break
  3180  			}
  3181  		}
  3182  		fieldNum := int32(wire >> 3)
  3183  		wireType := int(wire & 0x7)
  3184  		if wireType == 4 {
  3185  			return fmt.Errorf("proto: QueryTreasuryRequest: wiretype end group for non-group")
  3186  		}
  3187  		if fieldNum <= 0 {
  3188  			return fmt.Errorf("proto: QueryTreasuryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3189  		}
  3190  		switch fieldNum {
  3191  		default:
  3192  			iNdEx = preIndex
  3193  			skippy, err := skipQuery(dAtA[iNdEx:])
  3194  			if err != nil {
  3195  				return err
  3196  			}
  3197  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3198  				return ErrInvalidLengthQuery
  3199  			}
  3200  			if (iNdEx + skippy) > l {
  3201  				return io.ErrUnexpectedEOF
  3202  			}
  3203  			iNdEx += skippy
  3204  		}
  3205  	}
  3206  
  3207  	if iNdEx > l {
  3208  		return io.ErrUnexpectedEOF
  3209  	}
  3210  	return nil
  3211  }
  3212  func (m *QueryTreasuryResponse) Unmarshal(dAtA []byte) error {
  3213  	l := len(dAtA)
  3214  	iNdEx := 0
  3215  	for iNdEx < l {
  3216  		preIndex := iNdEx
  3217  		var wire uint64
  3218  		for shift := uint(0); ; shift += 7 {
  3219  			if shift >= 64 {
  3220  				return ErrIntOverflowQuery
  3221  			}
  3222  			if iNdEx >= l {
  3223  				return io.ErrUnexpectedEOF
  3224  			}
  3225  			b := dAtA[iNdEx]
  3226  			iNdEx++
  3227  			wire |= uint64(b&0x7F) << shift
  3228  			if b < 0x80 {
  3229  				break
  3230  			}
  3231  		}
  3232  		fieldNum := int32(wire >> 3)
  3233  		wireType := int(wire & 0x7)
  3234  		if wireType == 4 {
  3235  			return fmt.Errorf("proto: QueryTreasuryResponse: wiretype end group for non-group")
  3236  		}
  3237  		if fieldNum <= 0 {
  3238  			return fmt.Errorf("proto: QueryTreasuryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3239  		}
  3240  		switch fieldNum {
  3241  		case 1:
  3242  			if wireType != 2 {
  3243  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3244  			}
  3245  			var msglen int
  3246  			for shift := uint(0); ; shift += 7 {
  3247  				if shift >= 64 {
  3248  					return ErrIntOverflowQuery
  3249  				}
  3250  				if iNdEx >= l {
  3251  					return io.ErrUnexpectedEOF
  3252  				}
  3253  				b := dAtA[iNdEx]
  3254  				iNdEx++
  3255  				msglen |= int(b&0x7F) << shift
  3256  				if b < 0x80 {
  3257  					break
  3258  				}
  3259  			}
  3260  			if msglen < 0 {
  3261  				return ErrInvalidLengthQuery
  3262  			}
  3263  			postIndex := iNdEx + msglen
  3264  			if postIndex < 0 {
  3265  				return ErrInvalidLengthQuery
  3266  			}
  3267  			if postIndex > l {
  3268  				return io.ErrUnexpectedEOF
  3269  			}
  3270  			m.Amount = append(m.Amount, types.DecCoin{})
  3271  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3272  				return err
  3273  			}
  3274  			iNdEx = postIndex
  3275  		default:
  3276  			iNdEx = preIndex
  3277  			skippy, err := skipQuery(dAtA[iNdEx:])
  3278  			if err != nil {
  3279  				return err
  3280  			}
  3281  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3282  				return ErrInvalidLengthQuery
  3283  			}
  3284  			if (iNdEx + skippy) > l {
  3285  				return io.ErrUnexpectedEOF
  3286  			}
  3287  			iNdEx += skippy
  3288  		}
  3289  	}
  3290  
  3291  	if iNdEx > l {
  3292  		return io.ErrUnexpectedEOF
  3293  	}
  3294  	return nil
  3295  }
  3296  func (m *QueryFoundationInfoRequest) Unmarshal(dAtA []byte) error {
  3297  	l := len(dAtA)
  3298  	iNdEx := 0
  3299  	for iNdEx < l {
  3300  		preIndex := iNdEx
  3301  		var wire uint64
  3302  		for shift := uint(0); ; shift += 7 {
  3303  			if shift >= 64 {
  3304  				return ErrIntOverflowQuery
  3305  			}
  3306  			if iNdEx >= l {
  3307  				return io.ErrUnexpectedEOF
  3308  			}
  3309  			b := dAtA[iNdEx]
  3310  			iNdEx++
  3311  			wire |= uint64(b&0x7F) << shift
  3312  			if b < 0x80 {
  3313  				break
  3314  			}
  3315  		}
  3316  		fieldNum := int32(wire >> 3)
  3317  		wireType := int(wire & 0x7)
  3318  		if wireType == 4 {
  3319  			return fmt.Errorf("proto: QueryFoundationInfoRequest: wiretype end group for non-group")
  3320  		}
  3321  		if fieldNum <= 0 {
  3322  			return fmt.Errorf("proto: QueryFoundationInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3323  		}
  3324  		switch fieldNum {
  3325  		default:
  3326  			iNdEx = preIndex
  3327  			skippy, err := skipQuery(dAtA[iNdEx:])
  3328  			if err != nil {
  3329  				return err
  3330  			}
  3331  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3332  				return ErrInvalidLengthQuery
  3333  			}
  3334  			if (iNdEx + skippy) > l {
  3335  				return io.ErrUnexpectedEOF
  3336  			}
  3337  			iNdEx += skippy
  3338  		}
  3339  	}
  3340  
  3341  	if iNdEx > l {
  3342  		return io.ErrUnexpectedEOF
  3343  	}
  3344  	return nil
  3345  }
  3346  func (m *QueryFoundationInfoResponse) Unmarshal(dAtA []byte) error {
  3347  	l := len(dAtA)
  3348  	iNdEx := 0
  3349  	for iNdEx < l {
  3350  		preIndex := iNdEx
  3351  		var wire uint64
  3352  		for shift := uint(0); ; shift += 7 {
  3353  			if shift >= 64 {
  3354  				return ErrIntOverflowQuery
  3355  			}
  3356  			if iNdEx >= l {
  3357  				return io.ErrUnexpectedEOF
  3358  			}
  3359  			b := dAtA[iNdEx]
  3360  			iNdEx++
  3361  			wire |= uint64(b&0x7F) << shift
  3362  			if b < 0x80 {
  3363  				break
  3364  			}
  3365  		}
  3366  		fieldNum := int32(wire >> 3)
  3367  		wireType := int(wire & 0x7)
  3368  		if wireType == 4 {
  3369  			return fmt.Errorf("proto: QueryFoundationInfoResponse: wiretype end group for non-group")
  3370  		}
  3371  		if fieldNum <= 0 {
  3372  			return fmt.Errorf("proto: QueryFoundationInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3373  		}
  3374  		switch fieldNum {
  3375  		case 1:
  3376  			if wireType != 2 {
  3377  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3378  			}
  3379  			var msglen int
  3380  			for shift := uint(0); ; shift += 7 {
  3381  				if shift >= 64 {
  3382  					return ErrIntOverflowQuery
  3383  				}
  3384  				if iNdEx >= l {
  3385  					return io.ErrUnexpectedEOF
  3386  				}
  3387  				b := dAtA[iNdEx]
  3388  				iNdEx++
  3389  				msglen |= int(b&0x7F) << shift
  3390  				if b < 0x80 {
  3391  					break
  3392  				}
  3393  			}
  3394  			if msglen < 0 {
  3395  				return ErrInvalidLengthQuery
  3396  			}
  3397  			postIndex := iNdEx + msglen
  3398  			if postIndex < 0 {
  3399  				return ErrInvalidLengthQuery
  3400  			}
  3401  			if postIndex > l {
  3402  				return io.ErrUnexpectedEOF
  3403  			}
  3404  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3405  				return err
  3406  			}
  3407  			iNdEx = postIndex
  3408  		default:
  3409  			iNdEx = preIndex
  3410  			skippy, err := skipQuery(dAtA[iNdEx:])
  3411  			if err != nil {
  3412  				return err
  3413  			}
  3414  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3415  				return ErrInvalidLengthQuery
  3416  			}
  3417  			if (iNdEx + skippy) > l {
  3418  				return io.ErrUnexpectedEOF
  3419  			}
  3420  			iNdEx += skippy
  3421  		}
  3422  	}
  3423  
  3424  	if iNdEx > l {
  3425  		return io.ErrUnexpectedEOF
  3426  	}
  3427  	return nil
  3428  }
  3429  func (m *QueryMemberRequest) Unmarshal(dAtA []byte) error {
  3430  	l := len(dAtA)
  3431  	iNdEx := 0
  3432  	for iNdEx < l {
  3433  		preIndex := iNdEx
  3434  		var wire uint64
  3435  		for shift := uint(0); ; shift += 7 {
  3436  			if shift >= 64 {
  3437  				return ErrIntOverflowQuery
  3438  			}
  3439  			if iNdEx >= l {
  3440  				return io.ErrUnexpectedEOF
  3441  			}
  3442  			b := dAtA[iNdEx]
  3443  			iNdEx++
  3444  			wire |= uint64(b&0x7F) << shift
  3445  			if b < 0x80 {
  3446  				break
  3447  			}
  3448  		}
  3449  		fieldNum := int32(wire >> 3)
  3450  		wireType := int(wire & 0x7)
  3451  		if wireType == 4 {
  3452  			return fmt.Errorf("proto: QueryMemberRequest: wiretype end group for non-group")
  3453  		}
  3454  		if fieldNum <= 0 {
  3455  			return fmt.Errorf("proto: QueryMemberRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3456  		}
  3457  		switch fieldNum {
  3458  		case 1:
  3459  			if wireType != 2 {
  3460  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3461  			}
  3462  			var stringLen uint64
  3463  			for shift := uint(0); ; shift += 7 {
  3464  				if shift >= 64 {
  3465  					return ErrIntOverflowQuery
  3466  				}
  3467  				if iNdEx >= l {
  3468  					return io.ErrUnexpectedEOF
  3469  				}
  3470  				b := dAtA[iNdEx]
  3471  				iNdEx++
  3472  				stringLen |= uint64(b&0x7F) << shift
  3473  				if b < 0x80 {
  3474  					break
  3475  				}
  3476  			}
  3477  			intStringLen := int(stringLen)
  3478  			if intStringLen < 0 {
  3479  				return ErrInvalidLengthQuery
  3480  			}
  3481  			postIndex := iNdEx + intStringLen
  3482  			if postIndex < 0 {
  3483  				return ErrInvalidLengthQuery
  3484  			}
  3485  			if postIndex > l {
  3486  				return io.ErrUnexpectedEOF
  3487  			}
  3488  			m.Address = string(dAtA[iNdEx:postIndex])
  3489  			iNdEx = postIndex
  3490  		default:
  3491  			iNdEx = preIndex
  3492  			skippy, err := skipQuery(dAtA[iNdEx:])
  3493  			if err != nil {
  3494  				return err
  3495  			}
  3496  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3497  				return ErrInvalidLengthQuery
  3498  			}
  3499  			if (iNdEx + skippy) > l {
  3500  				return io.ErrUnexpectedEOF
  3501  			}
  3502  			iNdEx += skippy
  3503  		}
  3504  	}
  3505  
  3506  	if iNdEx > l {
  3507  		return io.ErrUnexpectedEOF
  3508  	}
  3509  	return nil
  3510  }
  3511  func (m *QueryMemberResponse) Unmarshal(dAtA []byte) error {
  3512  	l := len(dAtA)
  3513  	iNdEx := 0
  3514  	for iNdEx < l {
  3515  		preIndex := iNdEx
  3516  		var wire uint64
  3517  		for shift := uint(0); ; shift += 7 {
  3518  			if shift >= 64 {
  3519  				return ErrIntOverflowQuery
  3520  			}
  3521  			if iNdEx >= l {
  3522  				return io.ErrUnexpectedEOF
  3523  			}
  3524  			b := dAtA[iNdEx]
  3525  			iNdEx++
  3526  			wire |= uint64(b&0x7F) << shift
  3527  			if b < 0x80 {
  3528  				break
  3529  			}
  3530  		}
  3531  		fieldNum := int32(wire >> 3)
  3532  		wireType := int(wire & 0x7)
  3533  		if wireType == 4 {
  3534  			return fmt.Errorf("proto: QueryMemberResponse: wiretype end group for non-group")
  3535  		}
  3536  		if fieldNum <= 0 {
  3537  			return fmt.Errorf("proto: QueryMemberResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3538  		}
  3539  		switch fieldNum {
  3540  		case 1:
  3541  			if wireType != 2 {
  3542  				return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
  3543  			}
  3544  			var msglen int
  3545  			for shift := uint(0); ; shift += 7 {
  3546  				if shift >= 64 {
  3547  					return ErrIntOverflowQuery
  3548  				}
  3549  				if iNdEx >= l {
  3550  					return io.ErrUnexpectedEOF
  3551  				}
  3552  				b := dAtA[iNdEx]
  3553  				iNdEx++
  3554  				msglen |= int(b&0x7F) << shift
  3555  				if b < 0x80 {
  3556  					break
  3557  				}
  3558  			}
  3559  			if msglen < 0 {
  3560  				return ErrInvalidLengthQuery
  3561  			}
  3562  			postIndex := iNdEx + msglen
  3563  			if postIndex < 0 {
  3564  				return ErrInvalidLengthQuery
  3565  			}
  3566  			if postIndex > l {
  3567  				return io.ErrUnexpectedEOF
  3568  			}
  3569  			if m.Member == nil {
  3570  				m.Member = &Member{}
  3571  			}
  3572  			if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3573  				return err
  3574  			}
  3575  			iNdEx = postIndex
  3576  		default:
  3577  			iNdEx = preIndex
  3578  			skippy, err := skipQuery(dAtA[iNdEx:])
  3579  			if err != nil {
  3580  				return err
  3581  			}
  3582  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3583  				return ErrInvalidLengthQuery
  3584  			}
  3585  			if (iNdEx + skippy) > l {
  3586  				return io.ErrUnexpectedEOF
  3587  			}
  3588  			iNdEx += skippy
  3589  		}
  3590  	}
  3591  
  3592  	if iNdEx > l {
  3593  		return io.ErrUnexpectedEOF
  3594  	}
  3595  	return nil
  3596  }
  3597  func (m *QueryMembersRequest) Unmarshal(dAtA []byte) error {
  3598  	l := len(dAtA)
  3599  	iNdEx := 0
  3600  	for iNdEx < l {
  3601  		preIndex := iNdEx
  3602  		var wire uint64
  3603  		for shift := uint(0); ; shift += 7 {
  3604  			if shift >= 64 {
  3605  				return ErrIntOverflowQuery
  3606  			}
  3607  			if iNdEx >= l {
  3608  				return io.ErrUnexpectedEOF
  3609  			}
  3610  			b := dAtA[iNdEx]
  3611  			iNdEx++
  3612  			wire |= uint64(b&0x7F) << shift
  3613  			if b < 0x80 {
  3614  				break
  3615  			}
  3616  		}
  3617  		fieldNum := int32(wire >> 3)
  3618  		wireType := int(wire & 0x7)
  3619  		if wireType == 4 {
  3620  			return fmt.Errorf("proto: QueryMembersRequest: wiretype end group for non-group")
  3621  		}
  3622  		if fieldNum <= 0 {
  3623  			return fmt.Errorf("proto: QueryMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3624  		}
  3625  		switch fieldNum {
  3626  		case 1:
  3627  			if wireType != 2 {
  3628  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3629  			}
  3630  			var msglen int
  3631  			for shift := uint(0); ; shift += 7 {
  3632  				if shift >= 64 {
  3633  					return ErrIntOverflowQuery
  3634  				}
  3635  				if iNdEx >= l {
  3636  					return io.ErrUnexpectedEOF
  3637  				}
  3638  				b := dAtA[iNdEx]
  3639  				iNdEx++
  3640  				msglen |= int(b&0x7F) << shift
  3641  				if b < 0x80 {
  3642  					break
  3643  				}
  3644  			}
  3645  			if msglen < 0 {
  3646  				return ErrInvalidLengthQuery
  3647  			}
  3648  			postIndex := iNdEx + msglen
  3649  			if postIndex < 0 {
  3650  				return ErrInvalidLengthQuery
  3651  			}
  3652  			if postIndex > l {
  3653  				return io.ErrUnexpectedEOF
  3654  			}
  3655  			if m.Pagination == nil {
  3656  				m.Pagination = &query.PageRequest{}
  3657  			}
  3658  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3659  				return err
  3660  			}
  3661  			iNdEx = postIndex
  3662  		default:
  3663  			iNdEx = preIndex
  3664  			skippy, err := skipQuery(dAtA[iNdEx:])
  3665  			if err != nil {
  3666  				return err
  3667  			}
  3668  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3669  				return ErrInvalidLengthQuery
  3670  			}
  3671  			if (iNdEx + skippy) > l {
  3672  				return io.ErrUnexpectedEOF
  3673  			}
  3674  			iNdEx += skippy
  3675  		}
  3676  	}
  3677  
  3678  	if iNdEx > l {
  3679  		return io.ErrUnexpectedEOF
  3680  	}
  3681  	return nil
  3682  }
  3683  func (m *QueryMembersResponse) Unmarshal(dAtA []byte) error {
  3684  	l := len(dAtA)
  3685  	iNdEx := 0
  3686  	for iNdEx < l {
  3687  		preIndex := iNdEx
  3688  		var wire uint64
  3689  		for shift := uint(0); ; shift += 7 {
  3690  			if shift >= 64 {
  3691  				return ErrIntOverflowQuery
  3692  			}
  3693  			if iNdEx >= l {
  3694  				return io.ErrUnexpectedEOF
  3695  			}
  3696  			b := dAtA[iNdEx]
  3697  			iNdEx++
  3698  			wire |= uint64(b&0x7F) << shift
  3699  			if b < 0x80 {
  3700  				break
  3701  			}
  3702  		}
  3703  		fieldNum := int32(wire >> 3)
  3704  		wireType := int(wire & 0x7)
  3705  		if wireType == 4 {
  3706  			return fmt.Errorf("proto: QueryMembersResponse: wiretype end group for non-group")
  3707  		}
  3708  		if fieldNum <= 0 {
  3709  			return fmt.Errorf("proto: QueryMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3710  		}
  3711  		switch fieldNum {
  3712  		case 1:
  3713  			if wireType != 2 {
  3714  				return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  3715  			}
  3716  			var msglen int
  3717  			for shift := uint(0); ; shift += 7 {
  3718  				if shift >= 64 {
  3719  					return ErrIntOverflowQuery
  3720  				}
  3721  				if iNdEx >= l {
  3722  					return io.ErrUnexpectedEOF
  3723  				}
  3724  				b := dAtA[iNdEx]
  3725  				iNdEx++
  3726  				msglen |= int(b&0x7F) << shift
  3727  				if b < 0x80 {
  3728  					break
  3729  				}
  3730  			}
  3731  			if msglen < 0 {
  3732  				return ErrInvalidLengthQuery
  3733  			}
  3734  			postIndex := iNdEx + msglen
  3735  			if postIndex < 0 {
  3736  				return ErrInvalidLengthQuery
  3737  			}
  3738  			if postIndex > l {
  3739  				return io.ErrUnexpectedEOF
  3740  			}
  3741  			m.Members = append(m.Members, Member{})
  3742  			if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3743  				return err
  3744  			}
  3745  			iNdEx = postIndex
  3746  		case 2:
  3747  			if wireType != 2 {
  3748  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3749  			}
  3750  			var msglen int
  3751  			for shift := uint(0); ; shift += 7 {
  3752  				if shift >= 64 {
  3753  					return ErrIntOverflowQuery
  3754  				}
  3755  				if iNdEx >= l {
  3756  					return io.ErrUnexpectedEOF
  3757  				}
  3758  				b := dAtA[iNdEx]
  3759  				iNdEx++
  3760  				msglen |= int(b&0x7F) << shift
  3761  				if b < 0x80 {
  3762  					break
  3763  				}
  3764  			}
  3765  			if msglen < 0 {
  3766  				return ErrInvalidLengthQuery
  3767  			}
  3768  			postIndex := iNdEx + msglen
  3769  			if postIndex < 0 {
  3770  				return ErrInvalidLengthQuery
  3771  			}
  3772  			if postIndex > l {
  3773  				return io.ErrUnexpectedEOF
  3774  			}
  3775  			if m.Pagination == nil {
  3776  				m.Pagination = &query.PageResponse{}
  3777  			}
  3778  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3779  				return err
  3780  			}
  3781  			iNdEx = postIndex
  3782  		default:
  3783  			iNdEx = preIndex
  3784  			skippy, err := skipQuery(dAtA[iNdEx:])
  3785  			if err != nil {
  3786  				return err
  3787  			}
  3788  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3789  				return ErrInvalidLengthQuery
  3790  			}
  3791  			if (iNdEx + skippy) > l {
  3792  				return io.ErrUnexpectedEOF
  3793  			}
  3794  			iNdEx += skippy
  3795  		}
  3796  	}
  3797  
  3798  	if iNdEx > l {
  3799  		return io.ErrUnexpectedEOF
  3800  	}
  3801  	return nil
  3802  }
  3803  func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error {
  3804  	l := len(dAtA)
  3805  	iNdEx := 0
  3806  	for iNdEx < l {
  3807  		preIndex := iNdEx
  3808  		var wire uint64
  3809  		for shift := uint(0); ; shift += 7 {
  3810  			if shift >= 64 {
  3811  				return ErrIntOverflowQuery
  3812  			}
  3813  			if iNdEx >= l {
  3814  				return io.ErrUnexpectedEOF
  3815  			}
  3816  			b := dAtA[iNdEx]
  3817  			iNdEx++
  3818  			wire |= uint64(b&0x7F) << shift
  3819  			if b < 0x80 {
  3820  				break
  3821  			}
  3822  		}
  3823  		fieldNum := int32(wire >> 3)
  3824  		wireType := int(wire & 0x7)
  3825  		if wireType == 4 {
  3826  			return fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group")
  3827  		}
  3828  		if fieldNum <= 0 {
  3829  			return fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3830  		}
  3831  		switch fieldNum {
  3832  		case 1:
  3833  			if wireType != 0 {
  3834  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  3835  			}
  3836  			m.ProposalId = 0
  3837  			for shift := uint(0); ; shift += 7 {
  3838  				if shift >= 64 {
  3839  					return ErrIntOverflowQuery
  3840  				}
  3841  				if iNdEx >= l {
  3842  					return io.ErrUnexpectedEOF
  3843  				}
  3844  				b := dAtA[iNdEx]
  3845  				iNdEx++
  3846  				m.ProposalId |= uint64(b&0x7F) << shift
  3847  				if b < 0x80 {
  3848  					break
  3849  				}
  3850  			}
  3851  		default:
  3852  			iNdEx = preIndex
  3853  			skippy, err := skipQuery(dAtA[iNdEx:])
  3854  			if err != nil {
  3855  				return err
  3856  			}
  3857  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3858  				return ErrInvalidLengthQuery
  3859  			}
  3860  			if (iNdEx + skippy) > l {
  3861  				return io.ErrUnexpectedEOF
  3862  			}
  3863  			iNdEx += skippy
  3864  		}
  3865  	}
  3866  
  3867  	if iNdEx > l {
  3868  		return io.ErrUnexpectedEOF
  3869  	}
  3870  	return nil
  3871  }
  3872  func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error {
  3873  	l := len(dAtA)
  3874  	iNdEx := 0
  3875  	for iNdEx < l {
  3876  		preIndex := iNdEx
  3877  		var wire uint64
  3878  		for shift := uint(0); ; shift += 7 {
  3879  			if shift >= 64 {
  3880  				return ErrIntOverflowQuery
  3881  			}
  3882  			if iNdEx >= l {
  3883  				return io.ErrUnexpectedEOF
  3884  			}
  3885  			b := dAtA[iNdEx]
  3886  			iNdEx++
  3887  			wire |= uint64(b&0x7F) << shift
  3888  			if b < 0x80 {
  3889  				break
  3890  			}
  3891  		}
  3892  		fieldNum := int32(wire >> 3)
  3893  		wireType := int(wire & 0x7)
  3894  		if wireType == 4 {
  3895  			return fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group")
  3896  		}
  3897  		if fieldNum <= 0 {
  3898  			return fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3899  		}
  3900  		switch fieldNum {
  3901  		case 1:
  3902  			if wireType != 2 {
  3903  				return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  3904  			}
  3905  			var msglen int
  3906  			for shift := uint(0); ; shift += 7 {
  3907  				if shift >= 64 {
  3908  					return ErrIntOverflowQuery
  3909  				}
  3910  				if iNdEx >= l {
  3911  					return io.ErrUnexpectedEOF
  3912  				}
  3913  				b := dAtA[iNdEx]
  3914  				iNdEx++
  3915  				msglen |= int(b&0x7F) << shift
  3916  				if b < 0x80 {
  3917  					break
  3918  				}
  3919  			}
  3920  			if msglen < 0 {
  3921  				return ErrInvalidLengthQuery
  3922  			}
  3923  			postIndex := iNdEx + msglen
  3924  			if postIndex < 0 {
  3925  				return ErrInvalidLengthQuery
  3926  			}
  3927  			if postIndex > l {
  3928  				return io.ErrUnexpectedEOF
  3929  			}
  3930  			if m.Proposal == nil {
  3931  				m.Proposal = &Proposal{}
  3932  			}
  3933  			if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3934  				return err
  3935  			}
  3936  			iNdEx = postIndex
  3937  		default:
  3938  			iNdEx = preIndex
  3939  			skippy, err := skipQuery(dAtA[iNdEx:])
  3940  			if err != nil {
  3941  				return err
  3942  			}
  3943  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3944  				return ErrInvalidLengthQuery
  3945  			}
  3946  			if (iNdEx + skippy) > l {
  3947  				return io.ErrUnexpectedEOF
  3948  			}
  3949  			iNdEx += skippy
  3950  		}
  3951  	}
  3952  
  3953  	if iNdEx > l {
  3954  		return io.ErrUnexpectedEOF
  3955  	}
  3956  	return nil
  3957  }
  3958  func (m *QueryProposalsRequest) Unmarshal(dAtA []byte) error {
  3959  	l := len(dAtA)
  3960  	iNdEx := 0
  3961  	for iNdEx < l {
  3962  		preIndex := iNdEx
  3963  		var wire uint64
  3964  		for shift := uint(0); ; shift += 7 {
  3965  			if shift >= 64 {
  3966  				return ErrIntOverflowQuery
  3967  			}
  3968  			if iNdEx >= l {
  3969  				return io.ErrUnexpectedEOF
  3970  			}
  3971  			b := dAtA[iNdEx]
  3972  			iNdEx++
  3973  			wire |= uint64(b&0x7F) << shift
  3974  			if b < 0x80 {
  3975  				break
  3976  			}
  3977  		}
  3978  		fieldNum := int32(wire >> 3)
  3979  		wireType := int(wire & 0x7)
  3980  		if wireType == 4 {
  3981  			return fmt.Errorf("proto: QueryProposalsRequest: wiretype end group for non-group")
  3982  		}
  3983  		if fieldNum <= 0 {
  3984  			return fmt.Errorf("proto: QueryProposalsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3985  		}
  3986  		switch fieldNum {
  3987  		case 1:
  3988  			if wireType != 2 {
  3989  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3990  			}
  3991  			var msglen int
  3992  			for shift := uint(0); ; shift += 7 {
  3993  				if shift >= 64 {
  3994  					return ErrIntOverflowQuery
  3995  				}
  3996  				if iNdEx >= l {
  3997  					return io.ErrUnexpectedEOF
  3998  				}
  3999  				b := dAtA[iNdEx]
  4000  				iNdEx++
  4001  				msglen |= int(b&0x7F) << shift
  4002  				if b < 0x80 {
  4003  					break
  4004  				}
  4005  			}
  4006  			if msglen < 0 {
  4007  				return ErrInvalidLengthQuery
  4008  			}
  4009  			postIndex := iNdEx + msglen
  4010  			if postIndex < 0 {
  4011  				return ErrInvalidLengthQuery
  4012  			}
  4013  			if postIndex > l {
  4014  				return io.ErrUnexpectedEOF
  4015  			}
  4016  			if m.Pagination == nil {
  4017  				m.Pagination = &query.PageRequest{}
  4018  			}
  4019  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4020  				return err
  4021  			}
  4022  			iNdEx = postIndex
  4023  		default:
  4024  			iNdEx = preIndex
  4025  			skippy, err := skipQuery(dAtA[iNdEx:])
  4026  			if err != nil {
  4027  				return err
  4028  			}
  4029  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4030  				return ErrInvalidLengthQuery
  4031  			}
  4032  			if (iNdEx + skippy) > l {
  4033  				return io.ErrUnexpectedEOF
  4034  			}
  4035  			iNdEx += skippy
  4036  		}
  4037  	}
  4038  
  4039  	if iNdEx > l {
  4040  		return io.ErrUnexpectedEOF
  4041  	}
  4042  	return nil
  4043  }
  4044  func (m *QueryProposalsResponse) Unmarshal(dAtA []byte) error {
  4045  	l := len(dAtA)
  4046  	iNdEx := 0
  4047  	for iNdEx < l {
  4048  		preIndex := iNdEx
  4049  		var wire uint64
  4050  		for shift := uint(0); ; shift += 7 {
  4051  			if shift >= 64 {
  4052  				return ErrIntOverflowQuery
  4053  			}
  4054  			if iNdEx >= l {
  4055  				return io.ErrUnexpectedEOF
  4056  			}
  4057  			b := dAtA[iNdEx]
  4058  			iNdEx++
  4059  			wire |= uint64(b&0x7F) << shift
  4060  			if b < 0x80 {
  4061  				break
  4062  			}
  4063  		}
  4064  		fieldNum := int32(wire >> 3)
  4065  		wireType := int(wire & 0x7)
  4066  		if wireType == 4 {
  4067  			return fmt.Errorf("proto: QueryProposalsResponse: wiretype end group for non-group")
  4068  		}
  4069  		if fieldNum <= 0 {
  4070  			return fmt.Errorf("proto: QueryProposalsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4071  		}
  4072  		switch fieldNum {
  4073  		case 1:
  4074  			if wireType != 2 {
  4075  				return fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType)
  4076  			}
  4077  			var msglen int
  4078  			for shift := uint(0); ; shift += 7 {
  4079  				if shift >= 64 {
  4080  					return ErrIntOverflowQuery
  4081  				}
  4082  				if iNdEx >= l {
  4083  					return io.ErrUnexpectedEOF
  4084  				}
  4085  				b := dAtA[iNdEx]
  4086  				iNdEx++
  4087  				msglen |= int(b&0x7F) << shift
  4088  				if b < 0x80 {
  4089  					break
  4090  				}
  4091  			}
  4092  			if msglen < 0 {
  4093  				return ErrInvalidLengthQuery
  4094  			}
  4095  			postIndex := iNdEx + msglen
  4096  			if postIndex < 0 {
  4097  				return ErrInvalidLengthQuery
  4098  			}
  4099  			if postIndex > l {
  4100  				return io.ErrUnexpectedEOF
  4101  			}
  4102  			m.Proposals = append(m.Proposals, Proposal{})
  4103  			if err := m.Proposals[len(m.Proposals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4104  				return err
  4105  			}
  4106  			iNdEx = postIndex
  4107  		case 2:
  4108  			if wireType != 2 {
  4109  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4110  			}
  4111  			var msglen int
  4112  			for shift := uint(0); ; shift += 7 {
  4113  				if shift >= 64 {
  4114  					return ErrIntOverflowQuery
  4115  				}
  4116  				if iNdEx >= l {
  4117  					return io.ErrUnexpectedEOF
  4118  				}
  4119  				b := dAtA[iNdEx]
  4120  				iNdEx++
  4121  				msglen |= int(b&0x7F) << shift
  4122  				if b < 0x80 {
  4123  					break
  4124  				}
  4125  			}
  4126  			if msglen < 0 {
  4127  				return ErrInvalidLengthQuery
  4128  			}
  4129  			postIndex := iNdEx + msglen
  4130  			if postIndex < 0 {
  4131  				return ErrInvalidLengthQuery
  4132  			}
  4133  			if postIndex > l {
  4134  				return io.ErrUnexpectedEOF
  4135  			}
  4136  			if m.Pagination == nil {
  4137  				m.Pagination = &query.PageResponse{}
  4138  			}
  4139  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4140  				return err
  4141  			}
  4142  			iNdEx = postIndex
  4143  		default:
  4144  			iNdEx = preIndex
  4145  			skippy, err := skipQuery(dAtA[iNdEx:])
  4146  			if err != nil {
  4147  				return err
  4148  			}
  4149  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4150  				return ErrInvalidLengthQuery
  4151  			}
  4152  			if (iNdEx + skippy) > l {
  4153  				return io.ErrUnexpectedEOF
  4154  			}
  4155  			iNdEx += skippy
  4156  		}
  4157  	}
  4158  
  4159  	if iNdEx > l {
  4160  		return io.ErrUnexpectedEOF
  4161  	}
  4162  	return nil
  4163  }
  4164  func (m *QueryVoteRequest) Unmarshal(dAtA []byte) error {
  4165  	l := len(dAtA)
  4166  	iNdEx := 0
  4167  	for iNdEx < l {
  4168  		preIndex := iNdEx
  4169  		var wire uint64
  4170  		for shift := uint(0); ; shift += 7 {
  4171  			if shift >= 64 {
  4172  				return ErrIntOverflowQuery
  4173  			}
  4174  			if iNdEx >= l {
  4175  				return io.ErrUnexpectedEOF
  4176  			}
  4177  			b := dAtA[iNdEx]
  4178  			iNdEx++
  4179  			wire |= uint64(b&0x7F) << shift
  4180  			if b < 0x80 {
  4181  				break
  4182  			}
  4183  		}
  4184  		fieldNum := int32(wire >> 3)
  4185  		wireType := int(wire & 0x7)
  4186  		if wireType == 4 {
  4187  			return fmt.Errorf("proto: QueryVoteRequest: wiretype end group for non-group")
  4188  		}
  4189  		if fieldNum <= 0 {
  4190  			return fmt.Errorf("proto: QueryVoteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4191  		}
  4192  		switch fieldNum {
  4193  		case 1:
  4194  			if wireType != 0 {
  4195  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4196  			}
  4197  			m.ProposalId = 0
  4198  			for shift := uint(0); ; shift += 7 {
  4199  				if shift >= 64 {
  4200  					return ErrIntOverflowQuery
  4201  				}
  4202  				if iNdEx >= l {
  4203  					return io.ErrUnexpectedEOF
  4204  				}
  4205  				b := dAtA[iNdEx]
  4206  				iNdEx++
  4207  				m.ProposalId |= uint64(b&0x7F) << shift
  4208  				if b < 0x80 {
  4209  					break
  4210  				}
  4211  			}
  4212  		case 2:
  4213  			if wireType != 2 {
  4214  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  4215  			}
  4216  			var stringLen uint64
  4217  			for shift := uint(0); ; shift += 7 {
  4218  				if shift >= 64 {
  4219  					return ErrIntOverflowQuery
  4220  				}
  4221  				if iNdEx >= l {
  4222  					return io.ErrUnexpectedEOF
  4223  				}
  4224  				b := dAtA[iNdEx]
  4225  				iNdEx++
  4226  				stringLen |= uint64(b&0x7F) << shift
  4227  				if b < 0x80 {
  4228  					break
  4229  				}
  4230  			}
  4231  			intStringLen := int(stringLen)
  4232  			if intStringLen < 0 {
  4233  				return ErrInvalidLengthQuery
  4234  			}
  4235  			postIndex := iNdEx + intStringLen
  4236  			if postIndex < 0 {
  4237  				return ErrInvalidLengthQuery
  4238  			}
  4239  			if postIndex > l {
  4240  				return io.ErrUnexpectedEOF
  4241  			}
  4242  			m.Voter = string(dAtA[iNdEx:postIndex])
  4243  			iNdEx = postIndex
  4244  		default:
  4245  			iNdEx = preIndex
  4246  			skippy, err := skipQuery(dAtA[iNdEx:])
  4247  			if err != nil {
  4248  				return err
  4249  			}
  4250  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4251  				return ErrInvalidLengthQuery
  4252  			}
  4253  			if (iNdEx + skippy) > l {
  4254  				return io.ErrUnexpectedEOF
  4255  			}
  4256  			iNdEx += skippy
  4257  		}
  4258  	}
  4259  
  4260  	if iNdEx > l {
  4261  		return io.ErrUnexpectedEOF
  4262  	}
  4263  	return nil
  4264  }
  4265  func (m *QueryVoteResponse) Unmarshal(dAtA []byte) error {
  4266  	l := len(dAtA)
  4267  	iNdEx := 0
  4268  	for iNdEx < l {
  4269  		preIndex := iNdEx
  4270  		var wire uint64
  4271  		for shift := uint(0); ; shift += 7 {
  4272  			if shift >= 64 {
  4273  				return ErrIntOverflowQuery
  4274  			}
  4275  			if iNdEx >= l {
  4276  				return io.ErrUnexpectedEOF
  4277  			}
  4278  			b := dAtA[iNdEx]
  4279  			iNdEx++
  4280  			wire |= uint64(b&0x7F) << shift
  4281  			if b < 0x80 {
  4282  				break
  4283  			}
  4284  		}
  4285  		fieldNum := int32(wire >> 3)
  4286  		wireType := int(wire & 0x7)
  4287  		if wireType == 4 {
  4288  			return fmt.Errorf("proto: QueryVoteResponse: wiretype end group for non-group")
  4289  		}
  4290  		if fieldNum <= 0 {
  4291  			return fmt.Errorf("proto: QueryVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4292  		}
  4293  		switch fieldNum {
  4294  		case 1:
  4295  			if wireType != 2 {
  4296  				return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  4297  			}
  4298  			var msglen int
  4299  			for shift := uint(0); ; shift += 7 {
  4300  				if shift >= 64 {
  4301  					return ErrIntOverflowQuery
  4302  				}
  4303  				if iNdEx >= l {
  4304  					return io.ErrUnexpectedEOF
  4305  				}
  4306  				b := dAtA[iNdEx]
  4307  				iNdEx++
  4308  				msglen |= int(b&0x7F) << shift
  4309  				if b < 0x80 {
  4310  					break
  4311  				}
  4312  			}
  4313  			if msglen < 0 {
  4314  				return ErrInvalidLengthQuery
  4315  			}
  4316  			postIndex := iNdEx + msglen
  4317  			if postIndex < 0 {
  4318  				return ErrInvalidLengthQuery
  4319  			}
  4320  			if postIndex > l {
  4321  				return io.ErrUnexpectedEOF
  4322  			}
  4323  			if m.Vote == nil {
  4324  				m.Vote = &Vote{}
  4325  			}
  4326  			if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4327  				return err
  4328  			}
  4329  			iNdEx = postIndex
  4330  		default:
  4331  			iNdEx = preIndex
  4332  			skippy, err := skipQuery(dAtA[iNdEx:])
  4333  			if err != nil {
  4334  				return err
  4335  			}
  4336  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4337  				return ErrInvalidLengthQuery
  4338  			}
  4339  			if (iNdEx + skippy) > l {
  4340  				return io.ErrUnexpectedEOF
  4341  			}
  4342  			iNdEx += skippy
  4343  		}
  4344  	}
  4345  
  4346  	if iNdEx > l {
  4347  		return io.ErrUnexpectedEOF
  4348  	}
  4349  	return nil
  4350  }
  4351  func (m *QueryVotesRequest) Unmarshal(dAtA []byte) error {
  4352  	l := len(dAtA)
  4353  	iNdEx := 0
  4354  	for iNdEx < l {
  4355  		preIndex := iNdEx
  4356  		var wire uint64
  4357  		for shift := uint(0); ; shift += 7 {
  4358  			if shift >= 64 {
  4359  				return ErrIntOverflowQuery
  4360  			}
  4361  			if iNdEx >= l {
  4362  				return io.ErrUnexpectedEOF
  4363  			}
  4364  			b := dAtA[iNdEx]
  4365  			iNdEx++
  4366  			wire |= uint64(b&0x7F) << shift
  4367  			if b < 0x80 {
  4368  				break
  4369  			}
  4370  		}
  4371  		fieldNum := int32(wire >> 3)
  4372  		wireType := int(wire & 0x7)
  4373  		if wireType == 4 {
  4374  			return fmt.Errorf("proto: QueryVotesRequest: wiretype end group for non-group")
  4375  		}
  4376  		if fieldNum <= 0 {
  4377  			return fmt.Errorf("proto: QueryVotesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4378  		}
  4379  		switch fieldNum {
  4380  		case 1:
  4381  			if wireType != 0 {
  4382  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4383  			}
  4384  			m.ProposalId = 0
  4385  			for shift := uint(0); ; shift += 7 {
  4386  				if shift >= 64 {
  4387  					return ErrIntOverflowQuery
  4388  				}
  4389  				if iNdEx >= l {
  4390  					return io.ErrUnexpectedEOF
  4391  				}
  4392  				b := dAtA[iNdEx]
  4393  				iNdEx++
  4394  				m.ProposalId |= uint64(b&0x7F) << shift
  4395  				if b < 0x80 {
  4396  					break
  4397  				}
  4398  			}
  4399  		case 2:
  4400  			if wireType != 2 {
  4401  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4402  			}
  4403  			var msglen int
  4404  			for shift := uint(0); ; shift += 7 {
  4405  				if shift >= 64 {
  4406  					return ErrIntOverflowQuery
  4407  				}
  4408  				if iNdEx >= l {
  4409  					return io.ErrUnexpectedEOF
  4410  				}
  4411  				b := dAtA[iNdEx]
  4412  				iNdEx++
  4413  				msglen |= int(b&0x7F) << shift
  4414  				if b < 0x80 {
  4415  					break
  4416  				}
  4417  			}
  4418  			if msglen < 0 {
  4419  				return ErrInvalidLengthQuery
  4420  			}
  4421  			postIndex := iNdEx + msglen
  4422  			if postIndex < 0 {
  4423  				return ErrInvalidLengthQuery
  4424  			}
  4425  			if postIndex > l {
  4426  				return io.ErrUnexpectedEOF
  4427  			}
  4428  			if m.Pagination == nil {
  4429  				m.Pagination = &query.PageRequest{}
  4430  			}
  4431  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4432  				return err
  4433  			}
  4434  			iNdEx = postIndex
  4435  		default:
  4436  			iNdEx = preIndex
  4437  			skippy, err := skipQuery(dAtA[iNdEx:])
  4438  			if err != nil {
  4439  				return err
  4440  			}
  4441  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4442  				return ErrInvalidLengthQuery
  4443  			}
  4444  			if (iNdEx + skippy) > l {
  4445  				return io.ErrUnexpectedEOF
  4446  			}
  4447  			iNdEx += skippy
  4448  		}
  4449  	}
  4450  
  4451  	if iNdEx > l {
  4452  		return io.ErrUnexpectedEOF
  4453  	}
  4454  	return nil
  4455  }
  4456  func (m *QueryVotesResponse) Unmarshal(dAtA []byte) error {
  4457  	l := len(dAtA)
  4458  	iNdEx := 0
  4459  	for iNdEx < l {
  4460  		preIndex := iNdEx
  4461  		var wire uint64
  4462  		for shift := uint(0); ; shift += 7 {
  4463  			if shift >= 64 {
  4464  				return ErrIntOverflowQuery
  4465  			}
  4466  			if iNdEx >= l {
  4467  				return io.ErrUnexpectedEOF
  4468  			}
  4469  			b := dAtA[iNdEx]
  4470  			iNdEx++
  4471  			wire |= uint64(b&0x7F) << shift
  4472  			if b < 0x80 {
  4473  				break
  4474  			}
  4475  		}
  4476  		fieldNum := int32(wire >> 3)
  4477  		wireType := int(wire & 0x7)
  4478  		if wireType == 4 {
  4479  			return fmt.Errorf("proto: QueryVotesResponse: wiretype end group for non-group")
  4480  		}
  4481  		if fieldNum <= 0 {
  4482  			return fmt.Errorf("proto: QueryVotesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4483  		}
  4484  		switch fieldNum {
  4485  		case 1:
  4486  			if wireType != 2 {
  4487  				return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  4488  			}
  4489  			var msglen int
  4490  			for shift := uint(0); ; shift += 7 {
  4491  				if shift >= 64 {
  4492  					return ErrIntOverflowQuery
  4493  				}
  4494  				if iNdEx >= l {
  4495  					return io.ErrUnexpectedEOF
  4496  				}
  4497  				b := dAtA[iNdEx]
  4498  				iNdEx++
  4499  				msglen |= int(b&0x7F) << shift
  4500  				if b < 0x80 {
  4501  					break
  4502  				}
  4503  			}
  4504  			if msglen < 0 {
  4505  				return ErrInvalidLengthQuery
  4506  			}
  4507  			postIndex := iNdEx + msglen
  4508  			if postIndex < 0 {
  4509  				return ErrInvalidLengthQuery
  4510  			}
  4511  			if postIndex > l {
  4512  				return io.ErrUnexpectedEOF
  4513  			}
  4514  			m.Votes = append(m.Votes, Vote{})
  4515  			if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4516  				return err
  4517  			}
  4518  			iNdEx = postIndex
  4519  		case 2:
  4520  			if wireType != 2 {
  4521  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4522  			}
  4523  			var msglen int
  4524  			for shift := uint(0); ; shift += 7 {
  4525  				if shift >= 64 {
  4526  					return ErrIntOverflowQuery
  4527  				}
  4528  				if iNdEx >= l {
  4529  					return io.ErrUnexpectedEOF
  4530  				}
  4531  				b := dAtA[iNdEx]
  4532  				iNdEx++
  4533  				msglen |= int(b&0x7F) << shift
  4534  				if b < 0x80 {
  4535  					break
  4536  				}
  4537  			}
  4538  			if msglen < 0 {
  4539  				return ErrInvalidLengthQuery
  4540  			}
  4541  			postIndex := iNdEx + msglen
  4542  			if postIndex < 0 {
  4543  				return ErrInvalidLengthQuery
  4544  			}
  4545  			if postIndex > l {
  4546  				return io.ErrUnexpectedEOF
  4547  			}
  4548  			if m.Pagination == nil {
  4549  				m.Pagination = &query.PageResponse{}
  4550  			}
  4551  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4552  				return err
  4553  			}
  4554  			iNdEx = postIndex
  4555  		default:
  4556  			iNdEx = preIndex
  4557  			skippy, err := skipQuery(dAtA[iNdEx:])
  4558  			if err != nil {
  4559  				return err
  4560  			}
  4561  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4562  				return ErrInvalidLengthQuery
  4563  			}
  4564  			if (iNdEx + skippy) > l {
  4565  				return io.ErrUnexpectedEOF
  4566  			}
  4567  			iNdEx += skippy
  4568  		}
  4569  	}
  4570  
  4571  	if iNdEx > l {
  4572  		return io.ErrUnexpectedEOF
  4573  	}
  4574  	return nil
  4575  }
  4576  func (m *QueryTallyResultRequest) Unmarshal(dAtA []byte) error {
  4577  	l := len(dAtA)
  4578  	iNdEx := 0
  4579  	for iNdEx < l {
  4580  		preIndex := iNdEx
  4581  		var wire uint64
  4582  		for shift := uint(0); ; shift += 7 {
  4583  			if shift >= 64 {
  4584  				return ErrIntOverflowQuery
  4585  			}
  4586  			if iNdEx >= l {
  4587  				return io.ErrUnexpectedEOF
  4588  			}
  4589  			b := dAtA[iNdEx]
  4590  			iNdEx++
  4591  			wire |= uint64(b&0x7F) << shift
  4592  			if b < 0x80 {
  4593  				break
  4594  			}
  4595  		}
  4596  		fieldNum := int32(wire >> 3)
  4597  		wireType := int(wire & 0x7)
  4598  		if wireType == 4 {
  4599  			return fmt.Errorf("proto: QueryTallyResultRequest: wiretype end group for non-group")
  4600  		}
  4601  		if fieldNum <= 0 {
  4602  			return fmt.Errorf("proto: QueryTallyResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4603  		}
  4604  		switch fieldNum {
  4605  		case 1:
  4606  			if wireType != 0 {
  4607  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4608  			}
  4609  			m.ProposalId = 0
  4610  			for shift := uint(0); ; shift += 7 {
  4611  				if shift >= 64 {
  4612  					return ErrIntOverflowQuery
  4613  				}
  4614  				if iNdEx >= l {
  4615  					return io.ErrUnexpectedEOF
  4616  				}
  4617  				b := dAtA[iNdEx]
  4618  				iNdEx++
  4619  				m.ProposalId |= uint64(b&0x7F) << shift
  4620  				if b < 0x80 {
  4621  					break
  4622  				}
  4623  			}
  4624  		default:
  4625  			iNdEx = preIndex
  4626  			skippy, err := skipQuery(dAtA[iNdEx:])
  4627  			if err != nil {
  4628  				return err
  4629  			}
  4630  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4631  				return ErrInvalidLengthQuery
  4632  			}
  4633  			if (iNdEx + skippy) > l {
  4634  				return io.ErrUnexpectedEOF
  4635  			}
  4636  			iNdEx += skippy
  4637  		}
  4638  	}
  4639  
  4640  	if iNdEx > l {
  4641  		return io.ErrUnexpectedEOF
  4642  	}
  4643  	return nil
  4644  }
  4645  func (m *QueryTallyResultResponse) Unmarshal(dAtA []byte) error {
  4646  	l := len(dAtA)
  4647  	iNdEx := 0
  4648  	for iNdEx < l {
  4649  		preIndex := iNdEx
  4650  		var wire uint64
  4651  		for shift := uint(0); ; shift += 7 {
  4652  			if shift >= 64 {
  4653  				return ErrIntOverflowQuery
  4654  			}
  4655  			if iNdEx >= l {
  4656  				return io.ErrUnexpectedEOF
  4657  			}
  4658  			b := dAtA[iNdEx]
  4659  			iNdEx++
  4660  			wire |= uint64(b&0x7F) << shift
  4661  			if b < 0x80 {
  4662  				break
  4663  			}
  4664  		}
  4665  		fieldNum := int32(wire >> 3)
  4666  		wireType := int(wire & 0x7)
  4667  		if wireType == 4 {
  4668  			return fmt.Errorf("proto: QueryTallyResultResponse: wiretype end group for non-group")
  4669  		}
  4670  		if fieldNum <= 0 {
  4671  			return fmt.Errorf("proto: QueryTallyResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4672  		}
  4673  		switch fieldNum {
  4674  		case 1:
  4675  			if wireType != 2 {
  4676  				return fmt.Errorf("proto: wrong wireType = %d for field Tally", wireType)
  4677  			}
  4678  			var msglen int
  4679  			for shift := uint(0); ; shift += 7 {
  4680  				if shift >= 64 {
  4681  					return ErrIntOverflowQuery
  4682  				}
  4683  				if iNdEx >= l {
  4684  					return io.ErrUnexpectedEOF
  4685  				}
  4686  				b := dAtA[iNdEx]
  4687  				iNdEx++
  4688  				msglen |= int(b&0x7F) << shift
  4689  				if b < 0x80 {
  4690  					break
  4691  				}
  4692  			}
  4693  			if msglen < 0 {
  4694  				return ErrInvalidLengthQuery
  4695  			}
  4696  			postIndex := iNdEx + msglen
  4697  			if postIndex < 0 {
  4698  				return ErrInvalidLengthQuery
  4699  			}
  4700  			if postIndex > l {
  4701  				return io.ErrUnexpectedEOF
  4702  			}
  4703  			if err := m.Tally.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4704  				return err
  4705  			}
  4706  			iNdEx = postIndex
  4707  		default:
  4708  			iNdEx = preIndex
  4709  			skippy, err := skipQuery(dAtA[iNdEx:])
  4710  			if err != nil {
  4711  				return err
  4712  			}
  4713  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4714  				return ErrInvalidLengthQuery
  4715  			}
  4716  			if (iNdEx + skippy) > l {
  4717  				return io.ErrUnexpectedEOF
  4718  			}
  4719  			iNdEx += skippy
  4720  		}
  4721  	}
  4722  
  4723  	if iNdEx > l {
  4724  		return io.ErrUnexpectedEOF
  4725  	}
  4726  	return nil
  4727  }
  4728  func (m *QueryCensorshipsRequest) Unmarshal(dAtA []byte) error {
  4729  	l := len(dAtA)
  4730  	iNdEx := 0
  4731  	for iNdEx < l {
  4732  		preIndex := iNdEx
  4733  		var wire uint64
  4734  		for shift := uint(0); ; shift += 7 {
  4735  			if shift >= 64 {
  4736  				return ErrIntOverflowQuery
  4737  			}
  4738  			if iNdEx >= l {
  4739  				return io.ErrUnexpectedEOF
  4740  			}
  4741  			b := dAtA[iNdEx]
  4742  			iNdEx++
  4743  			wire |= uint64(b&0x7F) << shift
  4744  			if b < 0x80 {
  4745  				break
  4746  			}
  4747  		}
  4748  		fieldNum := int32(wire >> 3)
  4749  		wireType := int(wire & 0x7)
  4750  		if wireType == 4 {
  4751  			return fmt.Errorf("proto: QueryCensorshipsRequest: wiretype end group for non-group")
  4752  		}
  4753  		if fieldNum <= 0 {
  4754  			return fmt.Errorf("proto: QueryCensorshipsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4755  		}
  4756  		switch fieldNum {
  4757  		case 1:
  4758  			if wireType != 2 {
  4759  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4760  			}
  4761  			var msglen int
  4762  			for shift := uint(0); ; shift += 7 {
  4763  				if shift >= 64 {
  4764  					return ErrIntOverflowQuery
  4765  				}
  4766  				if iNdEx >= l {
  4767  					return io.ErrUnexpectedEOF
  4768  				}
  4769  				b := dAtA[iNdEx]
  4770  				iNdEx++
  4771  				msglen |= int(b&0x7F) << shift
  4772  				if b < 0x80 {
  4773  					break
  4774  				}
  4775  			}
  4776  			if msglen < 0 {
  4777  				return ErrInvalidLengthQuery
  4778  			}
  4779  			postIndex := iNdEx + msglen
  4780  			if postIndex < 0 {
  4781  				return ErrInvalidLengthQuery
  4782  			}
  4783  			if postIndex > l {
  4784  				return io.ErrUnexpectedEOF
  4785  			}
  4786  			if m.Pagination == nil {
  4787  				m.Pagination = &query.PageRequest{}
  4788  			}
  4789  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4790  				return err
  4791  			}
  4792  			iNdEx = postIndex
  4793  		default:
  4794  			iNdEx = preIndex
  4795  			skippy, err := skipQuery(dAtA[iNdEx:])
  4796  			if err != nil {
  4797  				return err
  4798  			}
  4799  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4800  				return ErrInvalidLengthQuery
  4801  			}
  4802  			if (iNdEx + skippy) > l {
  4803  				return io.ErrUnexpectedEOF
  4804  			}
  4805  			iNdEx += skippy
  4806  		}
  4807  	}
  4808  
  4809  	if iNdEx > l {
  4810  		return io.ErrUnexpectedEOF
  4811  	}
  4812  	return nil
  4813  }
  4814  func (m *QueryCensorshipsResponse) Unmarshal(dAtA []byte) error {
  4815  	l := len(dAtA)
  4816  	iNdEx := 0
  4817  	for iNdEx < l {
  4818  		preIndex := iNdEx
  4819  		var wire uint64
  4820  		for shift := uint(0); ; shift += 7 {
  4821  			if shift >= 64 {
  4822  				return ErrIntOverflowQuery
  4823  			}
  4824  			if iNdEx >= l {
  4825  				return io.ErrUnexpectedEOF
  4826  			}
  4827  			b := dAtA[iNdEx]
  4828  			iNdEx++
  4829  			wire |= uint64(b&0x7F) << shift
  4830  			if b < 0x80 {
  4831  				break
  4832  			}
  4833  		}
  4834  		fieldNum := int32(wire >> 3)
  4835  		wireType := int(wire & 0x7)
  4836  		if wireType == 4 {
  4837  			return fmt.Errorf("proto: QueryCensorshipsResponse: wiretype end group for non-group")
  4838  		}
  4839  		if fieldNum <= 0 {
  4840  			return fmt.Errorf("proto: QueryCensorshipsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4841  		}
  4842  		switch fieldNum {
  4843  		case 1:
  4844  			if wireType != 2 {
  4845  				return fmt.Errorf("proto: wrong wireType = %d for field Censorships", wireType)
  4846  			}
  4847  			var msglen int
  4848  			for shift := uint(0); ; shift += 7 {
  4849  				if shift >= 64 {
  4850  					return ErrIntOverflowQuery
  4851  				}
  4852  				if iNdEx >= l {
  4853  					return io.ErrUnexpectedEOF
  4854  				}
  4855  				b := dAtA[iNdEx]
  4856  				iNdEx++
  4857  				msglen |= int(b&0x7F) << shift
  4858  				if b < 0x80 {
  4859  					break
  4860  				}
  4861  			}
  4862  			if msglen < 0 {
  4863  				return ErrInvalidLengthQuery
  4864  			}
  4865  			postIndex := iNdEx + msglen
  4866  			if postIndex < 0 {
  4867  				return ErrInvalidLengthQuery
  4868  			}
  4869  			if postIndex > l {
  4870  				return io.ErrUnexpectedEOF
  4871  			}
  4872  			m.Censorships = append(m.Censorships, Censorship{})
  4873  			if err := m.Censorships[len(m.Censorships)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4874  				return err
  4875  			}
  4876  			iNdEx = postIndex
  4877  		case 2:
  4878  			if wireType != 2 {
  4879  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4880  			}
  4881  			var msglen int
  4882  			for shift := uint(0); ; shift += 7 {
  4883  				if shift >= 64 {
  4884  					return ErrIntOverflowQuery
  4885  				}
  4886  				if iNdEx >= l {
  4887  					return io.ErrUnexpectedEOF
  4888  				}
  4889  				b := dAtA[iNdEx]
  4890  				iNdEx++
  4891  				msglen |= int(b&0x7F) << shift
  4892  				if b < 0x80 {
  4893  					break
  4894  				}
  4895  			}
  4896  			if msglen < 0 {
  4897  				return ErrInvalidLengthQuery
  4898  			}
  4899  			postIndex := iNdEx + msglen
  4900  			if postIndex < 0 {
  4901  				return ErrInvalidLengthQuery
  4902  			}
  4903  			if postIndex > l {
  4904  				return io.ErrUnexpectedEOF
  4905  			}
  4906  			if m.Pagination == nil {
  4907  				m.Pagination = &query.PageResponse{}
  4908  			}
  4909  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4910  				return err
  4911  			}
  4912  			iNdEx = postIndex
  4913  		default:
  4914  			iNdEx = preIndex
  4915  			skippy, err := skipQuery(dAtA[iNdEx:])
  4916  			if err != nil {
  4917  				return err
  4918  			}
  4919  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4920  				return ErrInvalidLengthQuery
  4921  			}
  4922  			if (iNdEx + skippy) > l {
  4923  				return io.ErrUnexpectedEOF
  4924  			}
  4925  			iNdEx += skippy
  4926  		}
  4927  	}
  4928  
  4929  	if iNdEx > l {
  4930  		return io.ErrUnexpectedEOF
  4931  	}
  4932  	return nil
  4933  }
  4934  func (m *QueryGrantsRequest) Unmarshal(dAtA []byte) error {
  4935  	l := len(dAtA)
  4936  	iNdEx := 0
  4937  	for iNdEx < l {
  4938  		preIndex := iNdEx
  4939  		var wire uint64
  4940  		for shift := uint(0); ; shift += 7 {
  4941  			if shift >= 64 {
  4942  				return ErrIntOverflowQuery
  4943  			}
  4944  			if iNdEx >= l {
  4945  				return io.ErrUnexpectedEOF
  4946  			}
  4947  			b := dAtA[iNdEx]
  4948  			iNdEx++
  4949  			wire |= uint64(b&0x7F) << shift
  4950  			if b < 0x80 {
  4951  				break
  4952  			}
  4953  		}
  4954  		fieldNum := int32(wire >> 3)
  4955  		wireType := int(wire & 0x7)
  4956  		if wireType == 4 {
  4957  			return fmt.Errorf("proto: QueryGrantsRequest: wiretype end group for non-group")
  4958  		}
  4959  		if fieldNum <= 0 {
  4960  			return fmt.Errorf("proto: QueryGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4961  		}
  4962  		switch fieldNum {
  4963  		case 1:
  4964  			if wireType != 2 {
  4965  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  4966  			}
  4967  			var stringLen uint64
  4968  			for shift := uint(0); ; shift += 7 {
  4969  				if shift >= 64 {
  4970  					return ErrIntOverflowQuery
  4971  				}
  4972  				if iNdEx >= l {
  4973  					return io.ErrUnexpectedEOF
  4974  				}
  4975  				b := dAtA[iNdEx]
  4976  				iNdEx++
  4977  				stringLen |= uint64(b&0x7F) << shift
  4978  				if b < 0x80 {
  4979  					break
  4980  				}
  4981  			}
  4982  			intStringLen := int(stringLen)
  4983  			if intStringLen < 0 {
  4984  				return ErrInvalidLengthQuery
  4985  			}
  4986  			postIndex := iNdEx + intStringLen
  4987  			if postIndex < 0 {
  4988  				return ErrInvalidLengthQuery
  4989  			}
  4990  			if postIndex > l {
  4991  				return io.ErrUnexpectedEOF
  4992  			}
  4993  			m.Grantee = string(dAtA[iNdEx:postIndex])
  4994  			iNdEx = postIndex
  4995  		case 2:
  4996  			if wireType != 2 {
  4997  				return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType)
  4998  			}
  4999  			var stringLen uint64
  5000  			for shift := uint(0); ; shift += 7 {
  5001  				if shift >= 64 {
  5002  					return ErrIntOverflowQuery
  5003  				}
  5004  				if iNdEx >= l {
  5005  					return io.ErrUnexpectedEOF
  5006  				}
  5007  				b := dAtA[iNdEx]
  5008  				iNdEx++
  5009  				stringLen |= uint64(b&0x7F) << shift
  5010  				if b < 0x80 {
  5011  					break
  5012  				}
  5013  			}
  5014  			intStringLen := int(stringLen)
  5015  			if intStringLen < 0 {
  5016  				return ErrInvalidLengthQuery
  5017  			}
  5018  			postIndex := iNdEx + intStringLen
  5019  			if postIndex < 0 {
  5020  				return ErrInvalidLengthQuery
  5021  			}
  5022  			if postIndex > l {
  5023  				return io.ErrUnexpectedEOF
  5024  			}
  5025  			m.MsgTypeUrl = string(dAtA[iNdEx:postIndex])
  5026  			iNdEx = postIndex
  5027  		case 3:
  5028  			if wireType != 2 {
  5029  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5030  			}
  5031  			var msglen int
  5032  			for shift := uint(0); ; shift += 7 {
  5033  				if shift >= 64 {
  5034  					return ErrIntOverflowQuery
  5035  				}
  5036  				if iNdEx >= l {
  5037  					return io.ErrUnexpectedEOF
  5038  				}
  5039  				b := dAtA[iNdEx]
  5040  				iNdEx++
  5041  				msglen |= int(b&0x7F) << shift
  5042  				if b < 0x80 {
  5043  					break
  5044  				}
  5045  			}
  5046  			if msglen < 0 {
  5047  				return ErrInvalidLengthQuery
  5048  			}
  5049  			postIndex := iNdEx + msglen
  5050  			if postIndex < 0 {
  5051  				return ErrInvalidLengthQuery
  5052  			}
  5053  			if postIndex > l {
  5054  				return io.ErrUnexpectedEOF
  5055  			}
  5056  			if m.Pagination == nil {
  5057  				m.Pagination = &query.PageRequest{}
  5058  			}
  5059  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5060  				return err
  5061  			}
  5062  			iNdEx = postIndex
  5063  		default:
  5064  			iNdEx = preIndex
  5065  			skippy, err := skipQuery(dAtA[iNdEx:])
  5066  			if err != nil {
  5067  				return err
  5068  			}
  5069  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5070  				return ErrInvalidLengthQuery
  5071  			}
  5072  			if (iNdEx + skippy) > l {
  5073  				return io.ErrUnexpectedEOF
  5074  			}
  5075  			iNdEx += skippy
  5076  		}
  5077  	}
  5078  
  5079  	if iNdEx > l {
  5080  		return io.ErrUnexpectedEOF
  5081  	}
  5082  	return nil
  5083  }
  5084  func (m *QueryGrantsResponse) Unmarshal(dAtA []byte) error {
  5085  	l := len(dAtA)
  5086  	iNdEx := 0
  5087  	for iNdEx < l {
  5088  		preIndex := iNdEx
  5089  		var wire uint64
  5090  		for shift := uint(0); ; shift += 7 {
  5091  			if shift >= 64 {
  5092  				return ErrIntOverflowQuery
  5093  			}
  5094  			if iNdEx >= l {
  5095  				return io.ErrUnexpectedEOF
  5096  			}
  5097  			b := dAtA[iNdEx]
  5098  			iNdEx++
  5099  			wire |= uint64(b&0x7F) << shift
  5100  			if b < 0x80 {
  5101  				break
  5102  			}
  5103  		}
  5104  		fieldNum := int32(wire >> 3)
  5105  		wireType := int(wire & 0x7)
  5106  		if wireType == 4 {
  5107  			return fmt.Errorf("proto: QueryGrantsResponse: wiretype end group for non-group")
  5108  		}
  5109  		if fieldNum <= 0 {
  5110  			return fmt.Errorf("proto: QueryGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5111  		}
  5112  		switch fieldNum {
  5113  		case 1:
  5114  			if wireType != 2 {
  5115  				return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType)
  5116  			}
  5117  			var msglen int
  5118  			for shift := uint(0); ; shift += 7 {
  5119  				if shift >= 64 {
  5120  					return ErrIntOverflowQuery
  5121  				}
  5122  				if iNdEx >= l {
  5123  					return io.ErrUnexpectedEOF
  5124  				}
  5125  				b := dAtA[iNdEx]
  5126  				iNdEx++
  5127  				msglen |= int(b&0x7F) << shift
  5128  				if b < 0x80 {
  5129  					break
  5130  				}
  5131  			}
  5132  			if msglen < 0 {
  5133  				return ErrInvalidLengthQuery
  5134  			}
  5135  			postIndex := iNdEx + msglen
  5136  			if postIndex < 0 {
  5137  				return ErrInvalidLengthQuery
  5138  			}
  5139  			if postIndex > l {
  5140  				return io.ErrUnexpectedEOF
  5141  			}
  5142  			m.Authorizations = append(m.Authorizations, &types1.Any{})
  5143  			if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5144  				return err
  5145  			}
  5146  			iNdEx = postIndex
  5147  		case 2:
  5148  			if wireType != 2 {
  5149  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5150  			}
  5151  			var msglen int
  5152  			for shift := uint(0); ; shift += 7 {
  5153  				if shift >= 64 {
  5154  					return ErrIntOverflowQuery
  5155  				}
  5156  				if iNdEx >= l {
  5157  					return io.ErrUnexpectedEOF
  5158  				}
  5159  				b := dAtA[iNdEx]
  5160  				iNdEx++
  5161  				msglen |= int(b&0x7F) << shift
  5162  				if b < 0x80 {
  5163  					break
  5164  				}
  5165  			}
  5166  			if msglen < 0 {
  5167  				return ErrInvalidLengthQuery
  5168  			}
  5169  			postIndex := iNdEx + msglen
  5170  			if postIndex < 0 {
  5171  				return ErrInvalidLengthQuery
  5172  			}
  5173  			if postIndex > l {
  5174  				return io.ErrUnexpectedEOF
  5175  			}
  5176  			if m.Pagination == nil {
  5177  				m.Pagination = &query.PageResponse{}
  5178  			}
  5179  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5180  				return err
  5181  			}
  5182  			iNdEx = postIndex
  5183  		default:
  5184  			iNdEx = preIndex
  5185  			skippy, err := skipQuery(dAtA[iNdEx:])
  5186  			if err != nil {
  5187  				return err
  5188  			}
  5189  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5190  				return ErrInvalidLengthQuery
  5191  			}
  5192  			if (iNdEx + skippy) > l {
  5193  				return io.ErrUnexpectedEOF
  5194  			}
  5195  			iNdEx += skippy
  5196  		}
  5197  	}
  5198  
  5199  	if iNdEx > l {
  5200  		return io.ErrUnexpectedEOF
  5201  	}
  5202  	return nil
  5203  }
  5204  func skipQuery(dAtA []byte) (n int, err error) {
  5205  	l := len(dAtA)
  5206  	iNdEx := 0
  5207  	depth := 0
  5208  	for iNdEx < l {
  5209  		var wire uint64
  5210  		for shift := uint(0); ; shift += 7 {
  5211  			if shift >= 64 {
  5212  				return 0, ErrIntOverflowQuery
  5213  			}
  5214  			if iNdEx >= l {
  5215  				return 0, io.ErrUnexpectedEOF
  5216  			}
  5217  			b := dAtA[iNdEx]
  5218  			iNdEx++
  5219  			wire |= (uint64(b) & 0x7F) << shift
  5220  			if b < 0x80 {
  5221  				break
  5222  			}
  5223  		}
  5224  		wireType := int(wire & 0x7)
  5225  		switch wireType {
  5226  		case 0:
  5227  			for shift := uint(0); ; shift += 7 {
  5228  				if shift >= 64 {
  5229  					return 0, ErrIntOverflowQuery
  5230  				}
  5231  				if iNdEx >= l {
  5232  					return 0, io.ErrUnexpectedEOF
  5233  				}
  5234  				iNdEx++
  5235  				if dAtA[iNdEx-1] < 0x80 {
  5236  					break
  5237  				}
  5238  			}
  5239  		case 1:
  5240  			iNdEx += 8
  5241  		case 2:
  5242  			var length int
  5243  			for shift := uint(0); ; shift += 7 {
  5244  				if shift >= 64 {
  5245  					return 0, ErrIntOverflowQuery
  5246  				}
  5247  				if iNdEx >= l {
  5248  					return 0, io.ErrUnexpectedEOF
  5249  				}
  5250  				b := dAtA[iNdEx]
  5251  				iNdEx++
  5252  				length |= (int(b) & 0x7F) << shift
  5253  				if b < 0x80 {
  5254  					break
  5255  				}
  5256  			}
  5257  			if length < 0 {
  5258  				return 0, ErrInvalidLengthQuery
  5259  			}
  5260  			iNdEx += length
  5261  		case 3:
  5262  			depth++
  5263  		case 4:
  5264  			if depth == 0 {
  5265  				return 0, ErrUnexpectedEndOfGroupQuery
  5266  			}
  5267  			depth--
  5268  		case 5:
  5269  			iNdEx += 4
  5270  		default:
  5271  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5272  		}
  5273  		if iNdEx < 0 {
  5274  			return 0, ErrInvalidLengthQuery
  5275  		}
  5276  		if depth == 0 {
  5277  			return iNdEx, nil
  5278  		}
  5279  	}
  5280  	return 0, io.ErrUnexpectedEOF
  5281  }
  5282  
  5283  var (
  5284  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  5285  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  5286  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  5287  )