github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/wasm/types/genesis.pb.go (about)

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