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

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