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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmwasm/wasm/v1/types.proto
     3  
     4  package types
     5  
     6  import (
     7  	bytes "bytes"
     8  	fmt "fmt"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  
    13  	_ "github.com/gogo/protobuf/gogoproto"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	types "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types"
    16  	github_com_tendermint_tendermint_libs_bytes "github.com/fibonacci-chain/fbc/libs/tendermint/libs/bytes"
    17  	_ "github.com/regen-network/cosmos-proto"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  
    23  var (
    24  	_ = fmt.Errorf
    25  	_ = math.Inf
    26  )
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    33  
    34  // AccessType permission types
    35  type AccessType int32
    36  
    37  const (
    38  	// AccessTypeUnspecified placeholder for empty value
    39  	AccessTypeUnspecified AccessType = 0
    40  	// AccessTypeNobody forbidden
    41  	AccessTypeNobody AccessType = 1
    42  	// AccessTypeOnlyAddress restricted to some addresses
    43  	AccessTypeOnlyAddress AccessType = 2
    44  	// AccessTypeEverybody unrestricted
    45  	AccessTypeEverybody AccessType = 3
    46  )
    47  
    48  var AccessType_name = map[int32]string{
    49  	0: "ACCESS_TYPE_UNSPECIFIED",
    50  	1: "ACCESS_TYPE_NOBODY",
    51  	2: "ACCESS_TYPE_ONLY_ADDRESS",
    52  	3: "ACCESS_TYPE_EVERYBODY",
    53  }
    54  
    55  var AccessType_value = map[string]int32{
    56  	"ACCESS_TYPE_UNSPECIFIED":  0,
    57  	"ACCESS_TYPE_NOBODY":       1,
    58  	"ACCESS_TYPE_ONLY_ADDRESS": 2,
    59  	"ACCESS_TYPE_EVERYBODY":    3,
    60  }
    61  
    62  func (AccessType) EnumDescriptor() ([]byte, []int) {
    63  	return fileDescriptor_e6155d98fa173e02, []int{0}
    64  }
    65  
    66  // ContractCodeHistoryOperationType actions that caused a code change
    67  type ContractCodeHistoryOperationType int32
    68  
    69  const (
    70  	// ContractCodeHistoryOperationTypeUnspecified placeholder for empty value
    71  	ContractCodeHistoryOperationTypeUnspecified ContractCodeHistoryOperationType = 0
    72  	// ContractCodeHistoryOperationTypeInit on chain contract instantiation
    73  	ContractCodeHistoryOperationTypeInit ContractCodeHistoryOperationType = 1
    74  	// ContractCodeHistoryOperationTypeMigrate code migration
    75  	ContractCodeHistoryOperationTypeMigrate ContractCodeHistoryOperationType = 2
    76  	// ContractCodeHistoryOperationTypeGenesis based on genesis data
    77  	ContractCodeHistoryOperationTypeGenesis ContractCodeHistoryOperationType = 3
    78  )
    79  
    80  var ContractCodeHistoryOperationType_name = map[int32]string{
    81  	0: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",
    82  	1: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",
    83  	2: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",
    84  	3: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",
    85  }
    86  
    87  var ContractCodeHistoryOperationType_value = map[string]int32{
    88  	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED": 0,
    89  	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":        1,
    90  	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":     2,
    91  	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":     3,
    92  }
    93  
    94  func (x ContractCodeHistoryOperationType) String() string {
    95  	return proto.EnumName(ContractCodeHistoryOperationType_name, int32(x))
    96  }
    97  
    98  func (ContractCodeHistoryOperationType) EnumDescriptor() ([]byte, []int) {
    99  	return fileDescriptor_e6155d98fa173e02, []int{1}
   100  }
   101  
   102  // AccessTypeParam
   103  type AccessTypeParam struct {
   104  	Value AccessType `protobuf:"varint,1,opt,name=value,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"value,omitempty" yaml:"value"`
   105  }
   106  
   107  func (m *AccessTypeParam) Reset()         { *m = AccessTypeParam{} }
   108  func (m *AccessTypeParam) String() string { return proto.CompactTextString(m) }
   109  func (*AccessTypeParam) ProtoMessage()    {}
   110  func (*AccessTypeParam) Descriptor() ([]byte, []int) {
   111  	return fileDescriptor_e6155d98fa173e02, []int{0}
   112  }
   113  
   114  func (m *AccessTypeParam) XXX_Unmarshal(b []byte) error {
   115  	return m.Unmarshal(b)
   116  }
   117  
   118  func (m *AccessTypeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   119  	if deterministic {
   120  		return xxx_messageInfo_AccessTypeParam.Marshal(b, m, deterministic)
   121  	} else {
   122  		b = b[:cap(b)]
   123  		n, err := m.MarshalToSizedBuffer(b)
   124  		if err != nil {
   125  			return nil, err
   126  		}
   127  		return b[:n], nil
   128  	}
   129  }
   130  
   131  func (m *AccessTypeParam) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_AccessTypeParam.Merge(m, src)
   133  }
   134  
   135  func (m *AccessTypeParam) XXX_Size() int {
   136  	return m.Size()
   137  }
   138  
   139  func (m *AccessTypeParam) XXX_DiscardUnknown() {
   140  	xxx_messageInfo_AccessTypeParam.DiscardUnknown(m)
   141  }
   142  
   143  var xxx_messageInfo_AccessTypeParam proto.InternalMessageInfo
   144  
   145  // AccessConfig access control type.
   146  type AccessConfig struct {
   147  	Permission AccessType `protobuf:"varint,1,opt,name=permission,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"permission,omitempty" yaml:"permission"`
   148  	Address    string     `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
   149  }
   150  
   151  func (m *AccessConfig) Reset()         { *m = AccessConfig{} }
   152  func (m *AccessConfig) String() string { return proto.CompactTextString(m) }
   153  func (*AccessConfig) ProtoMessage()    {}
   154  func (*AccessConfig) Descriptor() ([]byte, []int) {
   155  	return fileDescriptor_e6155d98fa173e02, []int{1}
   156  }
   157  
   158  func (m *AccessConfig) XXX_Unmarshal(b []byte) error {
   159  	return m.Unmarshal(b)
   160  }
   161  
   162  func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   163  	if deterministic {
   164  		return xxx_messageInfo_AccessConfig.Marshal(b, m, deterministic)
   165  	} else {
   166  		b = b[:cap(b)]
   167  		n, err := m.MarshalToSizedBuffer(b)
   168  		if err != nil {
   169  			return nil, err
   170  		}
   171  		return b[:n], nil
   172  	}
   173  }
   174  
   175  func (m *AccessConfig) XXX_Merge(src proto.Message) {
   176  	xxx_messageInfo_AccessConfig.Merge(m, src)
   177  }
   178  
   179  func (m *AccessConfig) XXX_Size() int {
   180  	return m.Size()
   181  }
   182  
   183  func (m *AccessConfig) XXX_DiscardUnknown() {
   184  	xxx_messageInfo_AccessConfig.DiscardUnknown(m)
   185  }
   186  
   187  var xxx_messageInfo_AccessConfig proto.InternalMessageInfo
   188  
   189  // Params defines the set of wasm parameters.
   190  type Params struct {
   191  	CodeUploadAccess             AccessConfig `protobuf:"bytes,1,opt,name=code_upload_access,json=codeUploadAccess,proto3" json:"code_upload_access" yaml:"code_upload_access"`
   192  	InstantiateDefaultPermission AccessType   `protobuf:"varint,2,opt,name=instantiate_default_permission,json=instantiateDefaultPermission,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"instantiate_default_permission,omitempty" yaml:"instantiate_default_permission"`
   193  	UseContractBlockedList       bool         `protobuf:"varint,3,opt,name=use_contract_blocked_list,json=useContractBlockedList,proto3" json:"use_contract_blocked_list,omitempty" yaml:"use_contract_blocked_list"`
   194  	VmbridgeEnable               bool         `protobuf:"varint,4,opt,name=vmbridge_enable,json=vmbridgeEnable,proto3" json:"vmbridge_enable,omitempty" yaml:"use_contract_blocked_list"`
   195  }
   196  
   197  func (m *Params) Reset()      { *m = Params{} }
   198  func (*Params) ProtoMessage() {}
   199  func (*Params) Descriptor() ([]byte, []int) {
   200  	return fileDescriptor_e6155d98fa173e02, []int{2}
   201  }
   202  
   203  func (m *Params) XXX_Unmarshal(b []byte) error {
   204  	return m.Unmarshal(b)
   205  }
   206  
   207  func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   208  	if deterministic {
   209  		return xxx_messageInfo_Params.Marshal(b, m, deterministic)
   210  	} else {
   211  		b = b[:cap(b)]
   212  		n, err := m.MarshalToSizedBuffer(b)
   213  		if err != nil {
   214  			return nil, err
   215  		}
   216  		return b[:n], nil
   217  	}
   218  }
   219  
   220  func (m *Params) XXX_Merge(src proto.Message) {
   221  	xxx_messageInfo_Params.Merge(m, src)
   222  }
   223  
   224  func (m *Params) XXX_Size() int {
   225  	return m.Size()
   226  }
   227  
   228  func (m *Params) XXX_DiscardUnknown() {
   229  	xxx_messageInfo_Params.DiscardUnknown(m)
   230  }
   231  
   232  var xxx_messageInfo_Params proto.InternalMessageInfo
   233  
   234  // CodeInfo is data for the uploaded contract WASM code
   235  type CodeInfo struct {
   236  	// CodeHash is the unique identifier created by wasmvm
   237  	CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
   238  	// Creator address who initially stored the code
   239  	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
   240  	// InstantiateConfig access control to apply on contract creation, optional
   241  	InstantiateConfig AccessConfig `protobuf:"bytes,5,opt,name=instantiate_config,json=instantiateConfig,proto3" json:"instantiate_config"`
   242  }
   243  
   244  func (m *CodeInfo) Reset()         { *m = CodeInfo{} }
   245  func (m *CodeInfo) String() string { return proto.CompactTextString(m) }
   246  func (*CodeInfo) ProtoMessage()    {}
   247  func (*CodeInfo) Descriptor() ([]byte, []int) {
   248  	return fileDescriptor_e6155d98fa173e02, []int{3}
   249  }
   250  
   251  func (m *CodeInfo) XXX_Unmarshal(b []byte) error {
   252  	return m.Unmarshal(b)
   253  }
   254  
   255  func (m *CodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   256  	if deterministic {
   257  		return xxx_messageInfo_CodeInfo.Marshal(b, m, deterministic)
   258  	} else {
   259  		b = b[:cap(b)]
   260  		n, err := m.MarshalToSizedBuffer(b)
   261  		if err != nil {
   262  			return nil, err
   263  		}
   264  		return b[:n], nil
   265  	}
   266  }
   267  
   268  func (m *CodeInfo) XXX_Merge(src proto.Message) {
   269  	xxx_messageInfo_CodeInfo.Merge(m, src)
   270  }
   271  
   272  func (m *CodeInfo) XXX_Size() int {
   273  	return m.Size()
   274  }
   275  
   276  func (m *CodeInfo) XXX_DiscardUnknown() {
   277  	xxx_messageInfo_CodeInfo.DiscardUnknown(m)
   278  }
   279  
   280  var xxx_messageInfo_CodeInfo proto.InternalMessageInfo
   281  
   282  // ContractInfo stores a WASM contract instance
   283  type ContractInfo struct {
   284  	// CodeID is the reference to the stored Wasm code
   285  	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
   286  	// Creator address who initially instantiated the contract
   287  	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
   288  	// Admin is an optional address that can execute migrations
   289  	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
   290  	// Label is optional metadata to be stored with a contract instance.
   291  	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
   292  	// Created Tx position when the contract was instantiated.
   293  	// This data should kept internal and not be exposed via query results. Just
   294  	// use for sorting
   295  	Created   *AbsoluteTxPosition `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
   296  	IBCPortID string              `protobuf:"bytes,6,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty"`
   297  	// Extension is an extension point to store custom metadata within the
   298  	// persistence model.
   299  	Extension *types.Any `protobuf:"bytes,7,opt,name=extension,proto3" json:"extension,omitempty"`
   300  }
   301  
   302  func (m *ContractInfo) Reset()         { *m = ContractInfo{} }
   303  func (m *ContractInfo) String() string { return proto.CompactTextString(m) }
   304  func (*ContractInfo) ProtoMessage()    {}
   305  func (*ContractInfo) Descriptor() ([]byte, []int) {
   306  	return fileDescriptor_e6155d98fa173e02, []int{4}
   307  }
   308  
   309  func (m *ContractInfo) XXX_Unmarshal(b []byte) error {
   310  	return m.Unmarshal(b)
   311  }
   312  
   313  func (m *ContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   314  	if deterministic {
   315  		return xxx_messageInfo_ContractInfo.Marshal(b, m, deterministic)
   316  	} else {
   317  		b = b[:cap(b)]
   318  		n, err := m.MarshalToSizedBuffer(b)
   319  		if err != nil {
   320  			return nil, err
   321  		}
   322  		return b[:n], nil
   323  	}
   324  }
   325  
   326  func (m *ContractInfo) XXX_Merge(src proto.Message) {
   327  	xxx_messageInfo_ContractInfo.Merge(m, src)
   328  }
   329  
   330  func (m *ContractInfo) XXX_Size() int {
   331  	return m.Size()
   332  }
   333  
   334  func (m *ContractInfo) XXX_DiscardUnknown() {
   335  	xxx_messageInfo_ContractInfo.DiscardUnknown(m)
   336  }
   337  
   338  var xxx_messageInfo_ContractInfo proto.InternalMessageInfo
   339  
   340  // ContractCodeHistoryEntry metadata to a contract.
   341  type ContractCodeHistoryEntry struct {
   342  	Operation ContractCodeHistoryOperationType `protobuf:"varint,1,opt,name=operation,proto3,enum=cosmwasm.wasm.v1.ContractCodeHistoryOperationType" json:"operation,omitempty"`
   343  	// CodeID is the reference to the stored WASM code
   344  	CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
   345  	// Updated Tx position when the operation was executed.
   346  	Updated *AbsoluteTxPosition `protobuf:"bytes,3,opt,name=updated,proto3" json:"updated,omitempty"`
   347  	Msg     RawContractMessage  `protobuf:"bytes,4,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"`
   348  }
   349  
   350  func (m *ContractCodeHistoryEntry) Reset()         { *m = ContractCodeHistoryEntry{} }
   351  func (m *ContractCodeHistoryEntry) String() string { return proto.CompactTextString(m) }
   352  func (*ContractCodeHistoryEntry) ProtoMessage()    {}
   353  func (*ContractCodeHistoryEntry) Descriptor() ([]byte, []int) {
   354  	return fileDescriptor_e6155d98fa173e02, []int{5}
   355  }
   356  
   357  func (m *ContractCodeHistoryEntry) XXX_Unmarshal(b []byte) error {
   358  	return m.Unmarshal(b)
   359  }
   360  
   361  func (m *ContractCodeHistoryEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   362  	if deterministic {
   363  		return xxx_messageInfo_ContractCodeHistoryEntry.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  
   374  func (m *ContractCodeHistoryEntry) XXX_Merge(src proto.Message) {
   375  	xxx_messageInfo_ContractCodeHistoryEntry.Merge(m, src)
   376  }
   377  
   378  func (m *ContractCodeHistoryEntry) XXX_Size() int {
   379  	return m.Size()
   380  }
   381  
   382  func (m *ContractCodeHistoryEntry) XXX_DiscardUnknown() {
   383  	xxx_messageInfo_ContractCodeHistoryEntry.DiscardUnknown(m)
   384  }
   385  
   386  var xxx_messageInfo_ContractCodeHistoryEntry proto.InternalMessageInfo
   387  
   388  // AbsoluteTxPosition is a unique transaction position that allows for global
   389  // ordering of transactions.
   390  type AbsoluteTxPosition struct {
   391  	// BlockHeight is the block the contract was created at
   392  	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
   393  	// TxIndex is a monotonic counter within the block (actual transaction index,
   394  	// or gas consumed)
   395  	TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
   396  }
   397  
   398  func (m *AbsoluteTxPosition) Reset()         { *m = AbsoluteTxPosition{} }
   399  func (m *AbsoluteTxPosition) String() string { return proto.CompactTextString(m) }
   400  func (*AbsoluteTxPosition) ProtoMessage()    {}
   401  func (*AbsoluteTxPosition) Descriptor() ([]byte, []int) {
   402  	return fileDescriptor_e6155d98fa173e02, []int{6}
   403  }
   404  
   405  func (m *AbsoluteTxPosition) XXX_Unmarshal(b []byte) error {
   406  	return m.Unmarshal(b)
   407  }
   408  
   409  func (m *AbsoluteTxPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   410  	if deterministic {
   411  		return xxx_messageInfo_AbsoluteTxPosition.Marshal(b, m, deterministic)
   412  	} else {
   413  		b = b[:cap(b)]
   414  		n, err := m.MarshalToSizedBuffer(b)
   415  		if err != nil {
   416  			return nil, err
   417  		}
   418  		return b[:n], nil
   419  	}
   420  }
   421  
   422  func (m *AbsoluteTxPosition) XXX_Merge(src proto.Message) {
   423  	xxx_messageInfo_AbsoluteTxPosition.Merge(m, src)
   424  }
   425  
   426  func (m *AbsoluteTxPosition) XXX_Size() int {
   427  	return m.Size()
   428  }
   429  
   430  func (m *AbsoluteTxPosition) XXX_DiscardUnknown() {
   431  	xxx_messageInfo_AbsoluteTxPosition.DiscardUnknown(m)
   432  }
   433  
   434  var xxx_messageInfo_AbsoluteTxPosition proto.InternalMessageInfo
   435  
   436  // Model is a struct that holds a KV pair
   437  type Model struct {
   438  	// hex-encode key to read it better (this is often ascii)
   439  	Key github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/fibonacci-chain/fbc/libs/tendermint/libs/bytes.HexBytes" json:"key,omitempty"`
   440  	// base64-encode raw value
   441  	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   442  }
   443  
   444  func (m *Model) Reset()         { *m = Model{} }
   445  func (m *Model) String() string { return proto.CompactTextString(m) }
   446  func (*Model) ProtoMessage()    {}
   447  func (*Model) Descriptor() ([]byte, []int) {
   448  	return fileDescriptor_e6155d98fa173e02, []int{7}
   449  }
   450  
   451  func (m *Model) XXX_Unmarshal(b []byte) error {
   452  	return m.Unmarshal(b)
   453  }
   454  
   455  func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   456  	if deterministic {
   457  		return xxx_messageInfo_Model.Marshal(b, m, deterministic)
   458  	} else {
   459  		b = b[:cap(b)]
   460  		n, err := m.MarshalToSizedBuffer(b)
   461  		if err != nil {
   462  			return nil, err
   463  		}
   464  		return b[:n], nil
   465  	}
   466  }
   467  
   468  func (m *Model) XXX_Merge(src proto.Message) {
   469  	xxx_messageInfo_Model.Merge(m, src)
   470  }
   471  
   472  func (m *Model) XXX_Size() int {
   473  	return m.Size()
   474  }
   475  
   476  func (m *Model) XXX_DiscardUnknown() {
   477  	xxx_messageInfo_Model.DiscardUnknown(m)
   478  }
   479  
   480  var xxx_messageInfo_Model proto.InternalMessageInfo
   481  
   482  func init() {
   483  	proto.RegisterEnum("cosmwasm.wasm.v1.AccessType", AccessType_name, AccessType_value)
   484  	proto.RegisterEnum("cosmwasm.wasm.v1.ContractCodeHistoryOperationType", ContractCodeHistoryOperationType_name, ContractCodeHistoryOperationType_value)
   485  	proto.RegisterType((*AccessTypeParam)(nil), "cosmwasm.wasm.v1.AccessTypeParam")
   486  	proto.RegisterType((*AccessConfig)(nil), "cosmwasm.wasm.v1.AccessConfig")
   487  	proto.RegisterType((*Params)(nil), "cosmwasm.wasm.v1.Params")
   488  	proto.RegisterType((*CodeInfo)(nil), "cosmwasm.wasm.v1.CodeInfo")
   489  	proto.RegisterType((*ContractInfo)(nil), "cosmwasm.wasm.v1.ContractInfo")
   490  	proto.RegisterType((*ContractCodeHistoryEntry)(nil), "cosmwasm.wasm.v1.ContractCodeHistoryEntry")
   491  	proto.RegisterType((*AbsoluteTxPosition)(nil), "cosmwasm.wasm.v1.AbsoluteTxPosition")
   492  	proto.RegisterType((*Model)(nil), "cosmwasm.wasm.v1.Model")
   493  }
   494  
   495  func init() { proto.RegisterFile("cosmwasm/wasm/v1/types.proto", fileDescriptor_e6155d98fa173e02) }
   496  
   497  var fileDescriptor_e6155d98fa173e02 = []byte{
   498  	// 1194 bytes of a gzipped FileDescriptorProto
   499  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcb, 0x6f, 0x1b, 0xc5,
   500  	0x1f, 0xf7, 0xda, 0x4e, 0x62, 0x4f, 0xf3, 0x6b, 0xdd, 0xf9, 0x25, 0xad, 0x6d, 0x2a, 0xdb, 0x5d,
   501  	0x0a, 0xa4, 0x2f, 0x9b, 0x06, 0x04, 0xa8, 0x87, 0x4a, 0x5e, 0x7b, 0x69, 0xb6, 0x6a, 0x6c, 0x6b,
   502  	0xec, 0x52, 0x05, 0xa9, 0x5a, 0xed, 0x63, 0xe2, 0x8c, 0xba, 0xde, 0xb1, 0x76, 0xc6, 0xa9, 0xfd,
   503  	0x1f, 0xa0, 0x48, 0x48, 0xdc, 0xe0, 0x12, 0x09, 0x01, 0x42, 0xfd, 0x03, 0xb8, 0x22, 0xae, 0x15,
   504  	0xa7, 0x1e, 0x39, 0x59, 0x90, 0x5e, 0xe0, 0x9a, 0x63, 0xb9, 0xa0, 0x9d, 0xf1, 0xca, 0xab, 0xbe,
   505  	0xe2, 0x5e, 0xac, 0xf9, 0x3e, 0x3e, 0x9f, 0xef, 0x6b, 0xbe, 0xe3, 0x05, 0x17, 0x1c, 0xca, 0x06,
   506  	0x8f, 0x2c, 0x36, 0xa8, 0x89, 0x9f, 0xfd, 0x1b, 0x35, 0x3e, 0x19, 0x62, 0x56, 0x1d, 0x06, 0x94,
   507  	0x53, 0x98, 0x8b, 0xac, 0x55, 0xf1, 0xb3, 0x7f, 0xa3, 0x58, 0x08, 0x35, 0x94, 0x99, 0xc2, 0x5e,
   508  	0x93, 0x82, 0x74, 0x2e, 0xae, 0xf5, 0x69, 0x9f, 0x4a, 0x7d, 0x78, 0x9a, 0x69, 0x0b, 0x7d, 0x4a,
   509  	0xfb, 0x1e, 0xae, 0x09, 0xc9, 0x1e, 0xed, 0xd6, 0x2c, 0x7f, 0x22, 0x4d, 0xea, 0x03, 0x70, 0xa6,
   510  	0xee, 0x38, 0x98, 0xb1, 0xde, 0x64, 0x88, 0x3b, 0x56, 0x60, 0x0d, 0x60, 0x13, 0x2c, 0xed, 0x5b,
   511  	0xde, 0x08, 0xe7, 0x95, 0x8a, 0xb2, 0x71, 0x7a, 0xf3, 0x42, 0xf5, 0xc5, 0x04, 0xaa, 0x73, 0x84,
   512  	0x96, 0x3b, 0x9e, 0x96, 0x57, 0x27, 0xd6, 0xc0, 0xbb, 0xa9, 0x0a, 0x90, 0x8a, 0x24, 0xf8, 0x66,
   513  	0xfa, 0xbb, 0xef, 0xcb, 0x8a, 0xfa, 0xad, 0x02, 0x56, 0xa5, 0x77, 0x83, 0xfa, 0xbb, 0xa4, 0x0f,
   514  	0xbb, 0x00, 0x0c, 0x71, 0x30, 0x20, 0x8c, 0x11, 0xea, 0x2f, 0x14, 0x61, 0xfd, 0x78, 0x5a, 0x3e,
   515  	0x2b, 0x23, 0xcc, 0x91, 0x2a, 0x8a, 0xd1, 0xc0, 0x6b, 0x60, 0xc5, 0x72, 0xdd, 0x00, 0x33, 0x96,
   516  	0x4f, 0x56, 0x94, 0x8d, 0xac, 0x06, 0x8f, 0xa7, 0xe5, 0xd3, 0x12, 0x33, 0x33, 0xa8, 0x28, 0x72,
   517  	0x99, 0x65, 0xf6, 0x5b, 0x0a, 0x2c, 0x8b, 0x7a, 0x19, 0xa4, 0x00, 0x3a, 0xd4, 0xc5, 0xe6, 0x68,
   518  	0xe8, 0x51, 0xcb, 0x35, 0x2d, 0x11, 0x5b, 0xe4, 0x76, 0x6a, 0xb3, 0xf4, 0xba, 0xdc, 0x64, 0x3d,
   519  	0xda, 0xc5, 0x27, 0xd3, 0x72, 0xe2, 0x78, 0x5a, 0x2e, 0xc8, 0x68, 0x2f, 0xf3, 0xa8, 0x28, 0x17,
   520  	0x2a, 0xef, 0x09, 0x9d, 0x84, 0xc2, 0xaf, 0x15, 0x50, 0x22, 0x3e, 0xe3, 0x96, 0xcf, 0x89, 0xc5,
   521  	0xb1, 0xe9, 0xe2, 0x5d, 0x6b, 0xe4, 0x71, 0x33, 0xd6, 0x99, 0xe4, 0x02, 0x9d, 0xb9, 0x7c, 0x3c,
   522  	0x2d, 0xbf, 0x27, 0xe3, 0xbe, 0x99, 0x4d, 0x45, 0x17, 0x62, 0x0e, 0x4d, 0x69, 0xef, 0xcc, 0xfb,
   523  	0x67, 0x82, 0xc2, 0x88, 0x61, 0xd3, 0xa1, 0x3e, 0x0f, 0x2c, 0x87, 0x9b, 0xb6, 0x47, 0x9d, 0x87,
   524  	0xd8, 0x35, 0x3d, 0xc2, 0x78, 0x3e, 0x55, 0x51, 0x36, 0x32, 0xda, 0xa5, 0xe3, 0x69, 0xb9, 0x22,
   525  	0x63, 0xbd, 0xd6, 0x55, 0x45, 0xe7, 0x46, 0x0c, 0x37, 0x66, 0x26, 0x4d, 0x5a, 0xee, 0x12, 0xc6,
   526  	0xe1, 0x36, 0x38, 0xb3, 0x3f, 0xb0, 0x03, 0xe2, 0xf6, 0xb1, 0x89, 0x7d, 0xcb, 0xf6, 0x70, 0x3e,
   527  	0xfd, 0x16, 0xb4, 0xa7, 0x23, 0xb0, 0x2e, 0xb0, 0x62, 0x82, 0x09, 0xf5, 0x07, 0x05, 0x64, 0x1a,
   528  	0xd4, 0xc5, 0x86, 0xbf, 0x4b, 0xe1, 0x3b, 0x20, 0x2b, 0x7a, 0xbf, 0x67, 0xb1, 0x3d, 0x31, 0xba,
   529  	0x55, 0x94, 0x09, 0x15, 0x5b, 0x16, 0xdb, 0x83, 0x79, 0xb0, 0xe2, 0x04, 0xd8, 0xe2, 0x34, 0x90,
   530  	0xf7, 0x03, 0x45, 0x22, 0xec, 0x02, 0x18, 0x6f, 0x9d, 0x23, 0x86, 0x9a, 0x5f, 0x5a, 0x68, 0xf4,
   531  	0xe9, 0x70, 0xf4, 0xe8, 0x6c, 0x0c, 0x2f, 0x0d, 0x77, 0xd2, 0x99, 0x54, 0x2e, 0x7d, 0x27, 0x9d,
   532  	0x49, 0xe7, 0x96, 0xd4, 0x5f, 0x93, 0x60, 0x35, 0xea, 0x88, 0x48, 0xf4, 0x5d, 0xb0, 0x22, 0x12,
   533  	0x25, 0xae, 0x48, 0x33, 0xad, 0x81, 0xa3, 0x69, 0x79, 0x59, 0xd4, 0xd1, 0x44, 0xcb, 0xa1, 0xc9,
   534  	0x70, 0xdf, 0x90, 0xf0, 0x1a, 0x58, 0xb2, 0xdc, 0x01, 0xf1, 0xc5, 0x58, 0xb2, 0x48, 0x0a, 0xa1,
   535  	0xd6, 0xb3, 0x6c, 0xec, 0x89, 0xae, 0x66, 0x91, 0x14, 0xe0, 0xad, 0x19, 0x0b, 0x76, 0x67, 0x15,
   536  	0x5d, 0x7a, 0x45, 0x45, 0x36, 0xa3, 0xde, 0x88, 0xe3, 0xde, 0xb8, 0x43, 0x19, 0xe1, 0x84, 0xfa,
   537  	0x28, 0x02, 0xc1, 0xeb, 0xe0, 0x14, 0xb1, 0x1d, 0x73, 0x48, 0x03, 0x1e, 0xa6, 0xbb, 0x2c, 0x56,
   538  	0xeb, 0x7f, 0x47, 0xd3, 0x72, 0xd6, 0xd0, 0x1a, 0x1d, 0x1a, 0x70, 0xa3, 0x89, 0xb2, 0xc4, 0x76,
   539  	0xc4, 0xd1, 0x85, 0xdb, 0x20, 0x8b, 0xc7, 0x1c, 0xfb, 0xe2, 0xfe, 0xae, 0x88, 0x80, 0x6b, 0x55,
   540  	0xf9, 0xf2, 0x54, 0xa3, 0x97, 0xa7, 0x5a, 0xf7, 0x27, 0x5a, 0xe1, 0xf7, 0x5f, 0xae, 0xaf, 0xc7,
   541  	0x9b, 0xa2, 0x47, 0x30, 0x34, 0x67, 0xb8, 0x99, 0xfe, 0x3b, 0x5c, 0xd3, 0x7f, 0x15, 0x90, 0x8f,
   542  	0x5c, 0xc3, 0x26, 0x6d, 0x11, 0xc6, 0x69, 0x30, 0xd1, 0x7d, 0x1e, 0x4c, 0x60, 0x07, 0x64, 0xe9,
   543  	0x10, 0x07, 0x16, 0x9f, 0xbf, 0x25, 0x9b, 0x2f, 0x97, 0xf8, 0x0a, 0x78, 0x3b, 0x42, 0x85, 0x7b,
   544  	0x84, 0xe6, 0x24, 0xf1, 0xe9, 0x24, 0x5f, 0x3b, 0x9d, 0x5b, 0x60, 0x65, 0x34, 0x74, 0x45, 0x5f,
   545  	0x53, 0x6f, 0xd3, 0xd7, 0x19, 0x08, 0x6e, 0x80, 0xd4, 0x80, 0xf5, 0xc5, 0xac, 0x56, 0xb5, 0x73,
   546  	0xcf, 0xa7, 0x65, 0x88, 0xac, 0x47, 0x51, 0x96, 0xdb, 0x98, 0x31, 0xab, 0x8f, 0x51, 0xe8, 0xa2,
   547  	0x22, 0x00, 0x5f, 0x26, 0x82, 0x17, 0xc1, 0xaa, 0xd8, 0x0f, 0x73, 0x0f, 0x93, 0xfe, 0x1e, 0x97,
   548  	0xf7, 0x08, 0x9d, 0x12, 0xba, 0x2d, 0xa1, 0x82, 0x05, 0x90, 0xe1, 0x63, 0x93, 0xf8, 0x2e, 0x1e,
   549  	0xcb, 0x42, 0xd0, 0x0a, 0x1f, 0x1b, 0xa1, 0xa8, 0x12, 0xb0, 0xb4, 0x4d, 0x5d, 0xec, 0xc1, 0x3b,
   550  	0x20, 0xf5, 0x10, 0x4f, 0xe4, 0xb2, 0x68, 0x9f, 0x3d, 0x9f, 0x96, 0x3f, 0xee, 0x13, 0xbe, 0x37,
   551  	0xb2, 0xab, 0x0e, 0x1d, 0xd4, 0x38, 0xf6, 0xdd, 0xf0, 0x81, 0xf0, 0x79, 0xfc, 0xe8, 0x11, 0x9b,
   552  	0xd5, 0xec, 0x09, 0xc7, 0xac, 0xba, 0x85, 0xc7, 0x5a, 0x78, 0x40, 0x21, 0x49, 0x78, 0x01, 0xe5,
   553  	0x7f, 0x46, 0x52, 0xac, 0x9e, 0x14, 0xae, 0xfc, 0xa3, 0x00, 0x30, 0x7f, 0xaf, 0xe0, 0x27, 0xe0,
   554  	0x7c, 0xbd, 0xd1, 0xd0, 0xbb, 0x5d, 0xb3, 0xb7, 0xd3, 0xd1, 0xcd, 0x7b, 0xad, 0x6e, 0x47, 0x6f,
   555  	0x18, 0x9f, 0x1b, 0x7a, 0x33, 0x97, 0x28, 0x16, 0x0e, 0x0e, 0x2b, 0xeb, 0x73, 0xe7, 0x7b, 0x3e,
   556  	0x1b, 0x62, 0x87, 0xec, 0x12, 0xec, 0xc2, 0x6b, 0x00, 0xc6, 0x71, 0xad, 0xb6, 0xd6, 0x6e, 0xee,
   557  	0xe4, 0x94, 0xe2, 0xda, 0xc1, 0x61, 0x25, 0x37, 0x87, 0xb4, 0xa8, 0x4d, 0xdd, 0x09, 0xfc, 0x14,
   558  	0xe4, 0xe3, 0xde, 0xed, 0xd6, 0xdd, 0x1d, 0xb3, 0xde, 0x6c, 0x22, 0xbd, 0xdb, 0xcd, 0x25, 0x5f,
   559  	0x0c, 0xd3, 0xf6, 0xbd, 0x49, 0x5d, 0xfe, 0x2f, 0xc0, 0x4d, 0xb0, 0x1e, 0x07, 0xea, 0x5f, 0xe8,
   560  	0x68, 0x47, 0x44, 0x4a, 0x15, 0xcf, 0x1f, 0x1c, 0x56, 0xfe, 0x3f, 0x47, 0xe9, 0xfb, 0x38, 0x98,
   561  	0x84, 0xc1, 0x8a, 0x99, 0xaf, 0x7e, 0x2c, 0x25, 0x1e, 0xff, 0x54, 0x4a, 0x5c, 0xf9, 0x39, 0x05,
   562  	0x2a, 0x27, 0xdd, 0x34, 0x88, 0xc1, 0x87, 0x8d, 0x76, 0xab, 0x87, 0xea, 0x8d, 0x9e, 0xd9, 0x68,
   563  	0x37, 0x75, 0x73, 0xcb, 0xe8, 0xf6, 0xda, 0x68, 0xc7, 0x6c, 0x77, 0x74, 0x54, 0xef, 0x19, 0xed,
   564  	0xd6, 0xab, 0x5a, 0x53, 0x3b, 0x38, 0xac, 0x5c, 0x3d, 0x89, 0x3b, 0xde, 0xb0, 0xfb, 0xe0, 0xf2,
   565  	0x42, 0x61, 0x8c, 0x96, 0xd1, 0xcb, 0x29, 0xc5, 0x8d, 0x83, 0xc3, 0xca, 0xa5, 0x93, 0xf8, 0x0d,
   566  	0x9f, 0x70, 0xf8, 0x00, 0x5c, 0x5b, 0x88, 0x78, 0xdb, 0xb8, 0x8d, 0xea, 0x3d, 0x3d, 0x97, 0x2c,
   567  	0x5e, 0x3d, 0x38, 0xac, 0x7c, 0x70, 0x12, 0xf7, 0x36, 0xe9, 0x07, 0x16, 0xc7, 0x0b, 0xd3, 0xdf,
   568  	0xd6, 0x5b, 0x7a, 0xd7, 0xe8, 0xe6, 0x52, 0x8b, 0xd1, 0xdf, 0xc6, 0x3e, 0x66, 0x84, 0x15, 0xd3,
   569  	0xe1, 0xb0, 0xb4, 0xad, 0x27, 0x7f, 0x95, 0x12, 0x8f, 0x8f, 0x4a, 0xca, 0x93, 0xa3, 0x92, 0xf2,
   570  	0xf4, 0xa8, 0xa4, 0xfc, 0x79, 0x54, 0x52, 0xbe, 0x79, 0x56, 0x4a, 0x3c, 0x7d, 0x56, 0x4a, 0xfc,
   571  	0xf1, 0xac, 0x94, 0xf8, 0xf2, 0xfd, 0xd8, 0x1e, 0x34, 0x28, 0x1b, 0xdc, 0x8f, 0x3e, 0xcd, 0xdc,
   572  	0xda, 0x58, 0x7e, 0xa2, 0x89, 0xef, 0x33, 0x7b, 0x59, 0xbc, 0x6a, 0x1f, 0xfd, 0x17, 0x00, 0x00,
   573  	0xff, 0xff, 0x7e, 0x4d, 0x85, 0x2f, 0xc0, 0x09, 0x00, 0x00,
   574  }
   575  
   576  func (this *AccessTypeParam) Equal(that interface{}) bool {
   577  	if that == nil {
   578  		return this == nil
   579  	}
   580  
   581  	that1, ok := that.(*AccessTypeParam)
   582  	if !ok {
   583  		that2, ok := that.(AccessTypeParam)
   584  		if ok {
   585  			that1 = &that2
   586  		} else {
   587  			return false
   588  		}
   589  	}
   590  	if that1 == nil {
   591  		return this == nil
   592  	} else if this == nil {
   593  		return false
   594  	}
   595  	if this.Value != that1.Value {
   596  		return false
   597  	}
   598  	return true
   599  }
   600  
   601  func (this *AccessConfig) Equal(that interface{}) bool {
   602  	if that == nil {
   603  		return this == nil
   604  	}
   605  
   606  	that1, ok := that.(*AccessConfig)
   607  	if !ok {
   608  		that2, ok := that.(AccessConfig)
   609  		if ok {
   610  			that1 = &that2
   611  		} else {
   612  			return false
   613  		}
   614  	}
   615  	if that1 == nil {
   616  		return this == nil
   617  	} else if this == nil {
   618  		return false
   619  	}
   620  	if this.Permission != that1.Permission {
   621  		return false
   622  	}
   623  	if this.Address != that1.Address {
   624  		return false
   625  	}
   626  	return true
   627  }
   628  
   629  func (this *Params) Equal(that interface{}) bool {
   630  	if that == nil {
   631  		return this == nil
   632  	}
   633  
   634  	that1, ok := that.(*Params)
   635  	if !ok {
   636  		that2, ok := that.(Params)
   637  		if ok {
   638  			that1 = &that2
   639  		} else {
   640  			return false
   641  		}
   642  	}
   643  	if that1 == nil {
   644  		return this == nil
   645  	} else if this == nil {
   646  		return false
   647  	}
   648  	if !this.CodeUploadAccess.Equal(&that1.CodeUploadAccess) {
   649  		return false
   650  	}
   651  	if this.InstantiateDefaultPermission != that1.InstantiateDefaultPermission {
   652  		return false
   653  	}
   654  	if this.UseContractBlockedList != that1.UseContractBlockedList {
   655  		return false
   656  	}
   657  	if this.VmbridgeEnable != that1.VmbridgeEnable {
   658  		return false
   659  	}
   660  	return true
   661  }
   662  
   663  func (this *CodeInfo) Equal(that interface{}) bool {
   664  	if that == nil {
   665  		return this == nil
   666  	}
   667  
   668  	that1, ok := that.(*CodeInfo)
   669  	if !ok {
   670  		that2, ok := that.(CodeInfo)
   671  		if ok {
   672  			that1 = &that2
   673  		} else {
   674  			return false
   675  		}
   676  	}
   677  	if that1 == nil {
   678  		return this == nil
   679  	} else if this == nil {
   680  		return false
   681  	}
   682  	if !bytes.Equal(this.CodeHash, that1.CodeHash) {
   683  		return false
   684  	}
   685  	if this.Creator != that1.Creator {
   686  		return false
   687  	}
   688  	if !this.InstantiateConfig.Equal(&that1.InstantiateConfig) {
   689  		return false
   690  	}
   691  	return true
   692  }
   693  
   694  func (this *ContractInfo) Equal(that interface{}) bool {
   695  	if that == nil {
   696  		return this == nil
   697  	}
   698  
   699  	that1, ok := that.(*ContractInfo)
   700  	if !ok {
   701  		that2, ok := that.(ContractInfo)
   702  		if ok {
   703  			that1 = &that2
   704  		} else {
   705  			return false
   706  		}
   707  	}
   708  	if that1 == nil {
   709  		return this == nil
   710  	} else if this == nil {
   711  		return false
   712  	}
   713  	if this.CodeID != that1.CodeID {
   714  		return false
   715  	}
   716  	if this.Creator != that1.Creator {
   717  		return false
   718  	}
   719  	if this.Admin != that1.Admin {
   720  		return false
   721  	}
   722  	if this.Label != that1.Label {
   723  		return false
   724  	}
   725  	if !this.Created.Equal(that1.Created) {
   726  		return false
   727  	}
   728  	if this.IBCPortID != that1.IBCPortID {
   729  		return false
   730  	}
   731  	if !this.Extension.Equal(that1.Extension) {
   732  		return false
   733  	}
   734  	return true
   735  }
   736  
   737  func (this *ContractCodeHistoryEntry) Equal(that interface{}) bool {
   738  	if that == nil {
   739  		return this == nil
   740  	}
   741  
   742  	that1, ok := that.(*ContractCodeHistoryEntry)
   743  	if !ok {
   744  		that2, ok := that.(ContractCodeHistoryEntry)
   745  		if ok {
   746  			that1 = &that2
   747  		} else {
   748  			return false
   749  		}
   750  	}
   751  	if that1 == nil {
   752  		return this == nil
   753  	} else if this == nil {
   754  		return false
   755  	}
   756  	if this.Operation != that1.Operation {
   757  		return false
   758  	}
   759  	if this.CodeID != that1.CodeID {
   760  		return false
   761  	}
   762  	if !this.Updated.Equal(that1.Updated) {
   763  		return false
   764  	}
   765  	if !bytes.Equal(this.Msg, that1.Msg) {
   766  		return false
   767  	}
   768  	return true
   769  }
   770  
   771  func (this *AbsoluteTxPosition) Equal(that interface{}) bool {
   772  	if that == nil {
   773  		return this == nil
   774  	}
   775  
   776  	that1, ok := that.(*AbsoluteTxPosition)
   777  	if !ok {
   778  		that2, ok := that.(AbsoluteTxPosition)
   779  		if ok {
   780  			that1 = &that2
   781  		} else {
   782  			return false
   783  		}
   784  	}
   785  	if that1 == nil {
   786  		return this == nil
   787  	} else if this == nil {
   788  		return false
   789  	}
   790  	if this.BlockHeight != that1.BlockHeight {
   791  		return false
   792  	}
   793  	if this.TxIndex != that1.TxIndex {
   794  		return false
   795  	}
   796  	return true
   797  }
   798  
   799  func (this *Model) Equal(that interface{}) bool {
   800  	if that == nil {
   801  		return this == nil
   802  	}
   803  
   804  	that1, ok := that.(*Model)
   805  	if !ok {
   806  		that2, ok := that.(Model)
   807  		if ok {
   808  			that1 = &that2
   809  		} else {
   810  			return false
   811  		}
   812  	}
   813  	if that1 == nil {
   814  		return this == nil
   815  	} else if this == nil {
   816  		return false
   817  	}
   818  	if !bytes.Equal(this.Key, that1.Key) {
   819  		return false
   820  	}
   821  	if !bytes.Equal(this.Value, that1.Value) {
   822  		return false
   823  	}
   824  	return true
   825  }
   826  
   827  func (m *AccessTypeParam) Marshal() (dAtA []byte, err error) {
   828  	size := m.Size()
   829  	dAtA = make([]byte, size)
   830  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   831  	if err != nil {
   832  		return nil, err
   833  	}
   834  	return dAtA[:n], nil
   835  }
   836  
   837  func (m *AccessTypeParam) MarshalTo(dAtA []byte) (int, error) {
   838  	size := m.Size()
   839  	return m.MarshalToSizedBuffer(dAtA[:size])
   840  }
   841  
   842  func (m *AccessTypeParam) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   843  	i := len(dAtA)
   844  	_ = i
   845  	var l int
   846  	_ = l
   847  	if m.Value != 0 {
   848  		i = encodeVarintTypes(dAtA, i, uint64(m.Value))
   849  		i--
   850  		dAtA[i] = 0x8
   851  	}
   852  	return len(dAtA) - i, nil
   853  }
   854  
   855  func (m *AccessConfig) Marshal() (dAtA []byte, err error) {
   856  	size := m.Size()
   857  	dAtA = make([]byte, size)
   858  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   859  	if err != nil {
   860  		return nil, err
   861  	}
   862  	return dAtA[:n], nil
   863  }
   864  
   865  func (m *AccessConfig) MarshalTo(dAtA []byte) (int, error) {
   866  	size := m.Size()
   867  	return m.MarshalToSizedBuffer(dAtA[:size])
   868  }
   869  
   870  func (m *AccessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   871  	i := len(dAtA)
   872  	_ = i
   873  	var l int
   874  	_ = l
   875  	if len(m.Address) > 0 {
   876  		i -= len(m.Address)
   877  		copy(dAtA[i:], m.Address)
   878  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
   879  		i--
   880  		dAtA[i] = 0x12
   881  	}
   882  	if m.Permission != 0 {
   883  		i = encodeVarintTypes(dAtA, i, uint64(m.Permission))
   884  		i--
   885  		dAtA[i] = 0x8
   886  	}
   887  	return len(dAtA) - i, nil
   888  }
   889  
   890  func (m *Params) Marshal() (dAtA []byte, err error) {
   891  	size := m.Size()
   892  	dAtA = make([]byte, size)
   893  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   894  	if err != nil {
   895  		return nil, err
   896  	}
   897  	return dAtA[:n], nil
   898  }
   899  
   900  func (m *Params) MarshalTo(dAtA []byte) (int, error) {
   901  	size := m.Size()
   902  	return m.MarshalToSizedBuffer(dAtA[:size])
   903  }
   904  
   905  func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   906  	i := len(dAtA)
   907  	_ = i
   908  	var l int
   909  	_ = l
   910  	if m.VmbridgeEnable {
   911  		i--
   912  		if m.VmbridgeEnable {
   913  			dAtA[i] = 1
   914  		} else {
   915  			dAtA[i] = 0
   916  		}
   917  		i--
   918  		dAtA[i] = 0x20
   919  	}
   920  	if m.UseContractBlockedList {
   921  		i--
   922  		if m.UseContractBlockedList {
   923  			dAtA[i] = 1
   924  		} else {
   925  			dAtA[i] = 0
   926  		}
   927  		i--
   928  		dAtA[i] = 0x18
   929  	}
   930  	if m.InstantiateDefaultPermission != 0 {
   931  		i = encodeVarintTypes(dAtA, i, uint64(m.InstantiateDefaultPermission))
   932  		i--
   933  		dAtA[i] = 0x10
   934  	}
   935  	{
   936  		size, err := m.CodeUploadAccess.MarshalToSizedBuffer(dAtA[:i])
   937  		if err != nil {
   938  			return 0, err
   939  		}
   940  		i -= size
   941  		i = encodeVarintTypes(dAtA, i, uint64(size))
   942  	}
   943  	i--
   944  	dAtA[i] = 0xa
   945  	return len(dAtA) - i, nil
   946  }
   947  
   948  func (m *CodeInfo) Marshal() (dAtA []byte, err error) {
   949  	size := m.Size()
   950  	dAtA = make([]byte, size)
   951  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   952  	if err != nil {
   953  		return nil, err
   954  	}
   955  	return dAtA[:n], nil
   956  }
   957  
   958  func (m *CodeInfo) MarshalTo(dAtA []byte) (int, error) {
   959  	size := m.Size()
   960  	return m.MarshalToSizedBuffer(dAtA[:size])
   961  }
   962  
   963  func (m *CodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   964  	i := len(dAtA)
   965  	_ = i
   966  	var l int
   967  	_ = l
   968  	{
   969  		size, err := m.InstantiateConfig.MarshalToSizedBuffer(dAtA[:i])
   970  		if err != nil {
   971  			return 0, err
   972  		}
   973  		i -= size
   974  		i = encodeVarintTypes(dAtA, i, uint64(size))
   975  	}
   976  	i--
   977  	dAtA[i] = 0x2a
   978  	if len(m.Creator) > 0 {
   979  		i -= len(m.Creator)
   980  		copy(dAtA[i:], m.Creator)
   981  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Creator)))
   982  		i--
   983  		dAtA[i] = 0x12
   984  	}
   985  	if len(m.CodeHash) > 0 {
   986  		i -= len(m.CodeHash)
   987  		copy(dAtA[i:], m.CodeHash)
   988  		i = encodeVarintTypes(dAtA, i, uint64(len(m.CodeHash)))
   989  		i--
   990  		dAtA[i] = 0xa
   991  	}
   992  	return len(dAtA) - i, nil
   993  }
   994  
   995  func (m *ContractInfo) Marshal() (dAtA []byte, err error) {
   996  	size := m.Size()
   997  	dAtA = make([]byte, size)
   998  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   999  	if err != nil {
  1000  		return nil, err
  1001  	}
  1002  	return dAtA[:n], nil
  1003  }
  1004  
  1005  func (m *ContractInfo) MarshalTo(dAtA []byte) (int, error) {
  1006  	size := m.Size()
  1007  	return m.MarshalToSizedBuffer(dAtA[:size])
  1008  }
  1009  
  1010  func (m *ContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1011  	i := len(dAtA)
  1012  	_ = i
  1013  	var l int
  1014  	_ = l
  1015  	if m.Extension != nil {
  1016  		{
  1017  			size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i])
  1018  			if err != nil {
  1019  				return 0, err
  1020  			}
  1021  			i -= size
  1022  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1023  		}
  1024  		i--
  1025  		dAtA[i] = 0x3a
  1026  	}
  1027  	if len(m.IBCPortID) > 0 {
  1028  		i -= len(m.IBCPortID)
  1029  		copy(dAtA[i:], m.IBCPortID)
  1030  		i = encodeVarintTypes(dAtA, i, uint64(len(m.IBCPortID)))
  1031  		i--
  1032  		dAtA[i] = 0x32
  1033  	}
  1034  	if m.Created != nil {
  1035  		{
  1036  			size, err := m.Created.MarshalToSizedBuffer(dAtA[:i])
  1037  			if err != nil {
  1038  				return 0, err
  1039  			}
  1040  			i -= size
  1041  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1042  		}
  1043  		i--
  1044  		dAtA[i] = 0x2a
  1045  	}
  1046  	if len(m.Label) > 0 {
  1047  		i -= len(m.Label)
  1048  		copy(dAtA[i:], m.Label)
  1049  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Label)))
  1050  		i--
  1051  		dAtA[i] = 0x22
  1052  	}
  1053  	if len(m.Admin) > 0 {
  1054  		i -= len(m.Admin)
  1055  		copy(dAtA[i:], m.Admin)
  1056  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Admin)))
  1057  		i--
  1058  		dAtA[i] = 0x1a
  1059  	}
  1060  	if len(m.Creator) > 0 {
  1061  		i -= len(m.Creator)
  1062  		copy(dAtA[i:], m.Creator)
  1063  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Creator)))
  1064  		i--
  1065  		dAtA[i] = 0x12
  1066  	}
  1067  	if m.CodeID != 0 {
  1068  		i = encodeVarintTypes(dAtA, i, uint64(m.CodeID))
  1069  		i--
  1070  		dAtA[i] = 0x8
  1071  	}
  1072  	return len(dAtA) - i, nil
  1073  }
  1074  
  1075  func (m *ContractCodeHistoryEntry) Marshal() (dAtA []byte, err error) {
  1076  	size := m.Size()
  1077  	dAtA = make([]byte, size)
  1078  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1079  	if err != nil {
  1080  		return nil, err
  1081  	}
  1082  	return dAtA[:n], nil
  1083  }
  1084  
  1085  func (m *ContractCodeHistoryEntry) MarshalTo(dAtA []byte) (int, error) {
  1086  	size := m.Size()
  1087  	return m.MarshalToSizedBuffer(dAtA[:size])
  1088  }
  1089  
  1090  func (m *ContractCodeHistoryEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1091  	i := len(dAtA)
  1092  	_ = i
  1093  	var l int
  1094  	_ = l
  1095  	if len(m.Msg) > 0 {
  1096  		i -= len(m.Msg)
  1097  		copy(dAtA[i:], m.Msg)
  1098  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Msg)))
  1099  		i--
  1100  		dAtA[i] = 0x22
  1101  	}
  1102  	if m.Updated != nil {
  1103  		{
  1104  			size, err := m.Updated.MarshalToSizedBuffer(dAtA[:i])
  1105  			if err != nil {
  1106  				return 0, err
  1107  			}
  1108  			i -= size
  1109  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1110  		}
  1111  		i--
  1112  		dAtA[i] = 0x1a
  1113  	}
  1114  	if m.CodeID != 0 {
  1115  		i = encodeVarintTypes(dAtA, i, uint64(m.CodeID))
  1116  		i--
  1117  		dAtA[i] = 0x10
  1118  	}
  1119  	if m.Operation != 0 {
  1120  		i = encodeVarintTypes(dAtA, i, uint64(m.Operation))
  1121  		i--
  1122  		dAtA[i] = 0x8
  1123  	}
  1124  	return len(dAtA) - i, nil
  1125  }
  1126  
  1127  func (m *AbsoluteTxPosition) Marshal() (dAtA []byte, err error) {
  1128  	size := m.Size()
  1129  	dAtA = make([]byte, size)
  1130  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1131  	if err != nil {
  1132  		return nil, err
  1133  	}
  1134  	return dAtA[:n], nil
  1135  }
  1136  
  1137  func (m *AbsoluteTxPosition) MarshalTo(dAtA []byte) (int, error) {
  1138  	size := m.Size()
  1139  	return m.MarshalToSizedBuffer(dAtA[:size])
  1140  }
  1141  
  1142  func (m *AbsoluteTxPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1143  	i := len(dAtA)
  1144  	_ = i
  1145  	var l int
  1146  	_ = l
  1147  	if m.TxIndex != 0 {
  1148  		i = encodeVarintTypes(dAtA, i, uint64(m.TxIndex))
  1149  		i--
  1150  		dAtA[i] = 0x10
  1151  	}
  1152  	if m.BlockHeight != 0 {
  1153  		i = encodeVarintTypes(dAtA, i, uint64(m.BlockHeight))
  1154  		i--
  1155  		dAtA[i] = 0x8
  1156  	}
  1157  	return len(dAtA) - i, nil
  1158  }
  1159  
  1160  func (m *Model) Marshal() (dAtA []byte, err error) {
  1161  	size := m.Size()
  1162  	dAtA = make([]byte, size)
  1163  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1164  	if err != nil {
  1165  		return nil, err
  1166  	}
  1167  	return dAtA[:n], nil
  1168  }
  1169  
  1170  func (m *Model) MarshalTo(dAtA []byte) (int, error) {
  1171  	size := m.Size()
  1172  	return m.MarshalToSizedBuffer(dAtA[:size])
  1173  }
  1174  
  1175  func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1176  	i := len(dAtA)
  1177  	_ = i
  1178  	var l int
  1179  	_ = l
  1180  	if len(m.Value) > 0 {
  1181  		i -= len(m.Value)
  1182  		copy(dAtA[i:], m.Value)
  1183  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  1184  		i--
  1185  		dAtA[i] = 0x12
  1186  	}
  1187  	if len(m.Key) > 0 {
  1188  		i -= len(m.Key)
  1189  		copy(dAtA[i:], m.Key)
  1190  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  1191  		i--
  1192  		dAtA[i] = 0xa
  1193  	}
  1194  	return len(dAtA) - i, nil
  1195  }
  1196  
  1197  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  1198  	offset -= sovTypes(v)
  1199  	base := offset
  1200  	for v >= 1<<7 {
  1201  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1202  		v >>= 7
  1203  		offset++
  1204  	}
  1205  	dAtA[offset] = uint8(v)
  1206  	return base
  1207  }
  1208  
  1209  func (m *AccessTypeParam) Size() (n int) {
  1210  	if m == nil {
  1211  		return 0
  1212  	}
  1213  	var l int
  1214  	_ = l
  1215  	if m.Value != 0 {
  1216  		n += 1 + sovTypes(uint64(m.Value))
  1217  	}
  1218  	return n
  1219  }
  1220  
  1221  func (m *AccessConfig) Size() (n int) {
  1222  	if m == nil {
  1223  		return 0
  1224  	}
  1225  	var l int
  1226  	_ = l
  1227  	if m.Permission != 0 {
  1228  		n += 1 + sovTypes(uint64(m.Permission))
  1229  	}
  1230  	l = len(m.Address)
  1231  	if l > 0 {
  1232  		n += 1 + l + sovTypes(uint64(l))
  1233  	}
  1234  	return n
  1235  }
  1236  
  1237  func (m *Params) Size() (n int) {
  1238  	if m == nil {
  1239  		return 0
  1240  	}
  1241  	var l int
  1242  	_ = l
  1243  	l = m.CodeUploadAccess.Size()
  1244  	n += 1 + l + sovTypes(uint64(l))
  1245  	if m.InstantiateDefaultPermission != 0 {
  1246  		n += 1 + sovTypes(uint64(m.InstantiateDefaultPermission))
  1247  	}
  1248  	if m.UseContractBlockedList {
  1249  		n += 2
  1250  	}
  1251  	if m.VmbridgeEnable {
  1252  		n += 2
  1253  	}
  1254  	return n
  1255  }
  1256  
  1257  func (m *CodeInfo) Size() (n int) {
  1258  	if m == nil {
  1259  		return 0
  1260  	}
  1261  	var l int
  1262  	_ = l
  1263  	l = len(m.CodeHash)
  1264  	if l > 0 {
  1265  		n += 1 + l + sovTypes(uint64(l))
  1266  	}
  1267  	l = len(m.Creator)
  1268  	if l > 0 {
  1269  		n += 1 + l + sovTypes(uint64(l))
  1270  	}
  1271  	l = m.InstantiateConfig.Size()
  1272  	n += 1 + l + sovTypes(uint64(l))
  1273  	return n
  1274  }
  1275  
  1276  func (m *ContractInfo) Size() (n int) {
  1277  	if m == nil {
  1278  		return 0
  1279  	}
  1280  	var l int
  1281  	_ = l
  1282  	if m.CodeID != 0 {
  1283  		n += 1 + sovTypes(uint64(m.CodeID))
  1284  	}
  1285  	l = len(m.Creator)
  1286  	if l > 0 {
  1287  		n += 1 + l + sovTypes(uint64(l))
  1288  	}
  1289  	l = len(m.Admin)
  1290  	if l > 0 {
  1291  		n += 1 + l + sovTypes(uint64(l))
  1292  	}
  1293  	l = len(m.Label)
  1294  	if l > 0 {
  1295  		n += 1 + l + sovTypes(uint64(l))
  1296  	}
  1297  	if m.Created != nil {
  1298  		l = m.Created.Size()
  1299  		n += 1 + l + sovTypes(uint64(l))
  1300  	}
  1301  	l = len(m.IBCPortID)
  1302  	if l > 0 {
  1303  		n += 1 + l + sovTypes(uint64(l))
  1304  	}
  1305  	if m.Extension != nil {
  1306  		l = m.Extension.Size()
  1307  		n += 1 + l + sovTypes(uint64(l))
  1308  	}
  1309  	return n
  1310  }
  1311  
  1312  func (m *ContractCodeHistoryEntry) Size() (n int) {
  1313  	if m == nil {
  1314  		return 0
  1315  	}
  1316  	var l int
  1317  	_ = l
  1318  	if m.Operation != 0 {
  1319  		n += 1 + sovTypes(uint64(m.Operation))
  1320  	}
  1321  	if m.CodeID != 0 {
  1322  		n += 1 + sovTypes(uint64(m.CodeID))
  1323  	}
  1324  	if m.Updated != nil {
  1325  		l = m.Updated.Size()
  1326  		n += 1 + l + sovTypes(uint64(l))
  1327  	}
  1328  	l = len(m.Msg)
  1329  	if l > 0 {
  1330  		n += 1 + l + sovTypes(uint64(l))
  1331  	}
  1332  	return n
  1333  }
  1334  
  1335  func (m *AbsoluteTxPosition) Size() (n int) {
  1336  	if m == nil {
  1337  		return 0
  1338  	}
  1339  	var l int
  1340  	_ = l
  1341  	if m.BlockHeight != 0 {
  1342  		n += 1 + sovTypes(uint64(m.BlockHeight))
  1343  	}
  1344  	if m.TxIndex != 0 {
  1345  		n += 1 + sovTypes(uint64(m.TxIndex))
  1346  	}
  1347  	return n
  1348  }
  1349  
  1350  func (m *Model) Size() (n int) {
  1351  	if m == nil {
  1352  		return 0
  1353  	}
  1354  	var l int
  1355  	_ = l
  1356  	l = len(m.Key)
  1357  	if l > 0 {
  1358  		n += 1 + l + sovTypes(uint64(l))
  1359  	}
  1360  	l = len(m.Value)
  1361  	if l > 0 {
  1362  		n += 1 + l + sovTypes(uint64(l))
  1363  	}
  1364  	return n
  1365  }
  1366  
  1367  func sovTypes(x uint64) (n int) {
  1368  	return (math_bits.Len64(x|1) + 6) / 7
  1369  }
  1370  
  1371  func sozTypes(x uint64) (n int) {
  1372  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1373  }
  1374  
  1375  func (m *AccessTypeParam) Unmarshal(dAtA []byte) error {
  1376  	l := len(dAtA)
  1377  	iNdEx := 0
  1378  	for iNdEx < l {
  1379  		preIndex := iNdEx
  1380  		var wire uint64
  1381  		for shift := uint(0); ; shift += 7 {
  1382  			if shift >= 64 {
  1383  				return ErrIntOverflowTypes
  1384  			}
  1385  			if iNdEx >= l {
  1386  				return io.ErrUnexpectedEOF
  1387  			}
  1388  			b := dAtA[iNdEx]
  1389  			iNdEx++
  1390  			wire |= uint64(b&0x7F) << shift
  1391  			if b < 0x80 {
  1392  				break
  1393  			}
  1394  		}
  1395  		fieldNum := int32(wire >> 3)
  1396  		wireType := int(wire & 0x7)
  1397  		if wireType == 4 {
  1398  			return fmt.Errorf("proto: AccessTypeParam: wiretype end group for non-group")
  1399  		}
  1400  		if fieldNum <= 0 {
  1401  			return fmt.Errorf("proto: AccessTypeParam: illegal tag %d (wire type %d)", fieldNum, wire)
  1402  		}
  1403  		switch fieldNum {
  1404  		case 1:
  1405  			if wireType != 0 {
  1406  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1407  			}
  1408  			m.Value = 0
  1409  			for shift := uint(0); ; shift += 7 {
  1410  				if shift >= 64 {
  1411  					return ErrIntOverflowTypes
  1412  				}
  1413  				if iNdEx >= l {
  1414  					return io.ErrUnexpectedEOF
  1415  				}
  1416  				b := dAtA[iNdEx]
  1417  				iNdEx++
  1418  				m.Value |= AccessType(b&0x7F) << shift
  1419  				if b < 0x80 {
  1420  					break
  1421  				}
  1422  			}
  1423  		default:
  1424  			iNdEx = preIndex
  1425  			skippy, err := skipTypes(dAtA[iNdEx:])
  1426  			if err != nil {
  1427  				return err
  1428  			}
  1429  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1430  				return ErrInvalidLengthTypes
  1431  			}
  1432  			if (iNdEx + skippy) > l {
  1433  				return io.ErrUnexpectedEOF
  1434  			}
  1435  			iNdEx += skippy
  1436  		}
  1437  	}
  1438  
  1439  	if iNdEx > l {
  1440  		return io.ErrUnexpectedEOF
  1441  	}
  1442  	return nil
  1443  }
  1444  
  1445  func (m *AccessConfig) Unmarshal(dAtA []byte) error {
  1446  	l := len(dAtA)
  1447  	iNdEx := 0
  1448  	for iNdEx < l {
  1449  		preIndex := iNdEx
  1450  		var wire uint64
  1451  		for shift := uint(0); ; shift += 7 {
  1452  			if shift >= 64 {
  1453  				return ErrIntOverflowTypes
  1454  			}
  1455  			if iNdEx >= l {
  1456  				return io.ErrUnexpectedEOF
  1457  			}
  1458  			b := dAtA[iNdEx]
  1459  			iNdEx++
  1460  			wire |= uint64(b&0x7F) << shift
  1461  			if b < 0x80 {
  1462  				break
  1463  			}
  1464  		}
  1465  		fieldNum := int32(wire >> 3)
  1466  		wireType := int(wire & 0x7)
  1467  		if wireType == 4 {
  1468  			return fmt.Errorf("proto: AccessConfig: wiretype end group for non-group")
  1469  		}
  1470  		if fieldNum <= 0 {
  1471  			return fmt.Errorf("proto: AccessConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  1472  		}
  1473  		switch fieldNum {
  1474  		case 1:
  1475  			if wireType != 0 {
  1476  				return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
  1477  			}
  1478  			m.Permission = 0
  1479  			for shift := uint(0); ; shift += 7 {
  1480  				if shift >= 64 {
  1481  					return ErrIntOverflowTypes
  1482  				}
  1483  				if iNdEx >= l {
  1484  					return io.ErrUnexpectedEOF
  1485  				}
  1486  				b := dAtA[iNdEx]
  1487  				iNdEx++
  1488  				m.Permission |= AccessType(b&0x7F) << shift
  1489  				if b < 0x80 {
  1490  					break
  1491  				}
  1492  			}
  1493  		case 2:
  1494  			if wireType != 2 {
  1495  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  1496  			}
  1497  			var stringLen uint64
  1498  			for shift := uint(0); ; shift += 7 {
  1499  				if shift >= 64 {
  1500  					return ErrIntOverflowTypes
  1501  				}
  1502  				if iNdEx >= l {
  1503  					return io.ErrUnexpectedEOF
  1504  				}
  1505  				b := dAtA[iNdEx]
  1506  				iNdEx++
  1507  				stringLen |= uint64(b&0x7F) << shift
  1508  				if b < 0x80 {
  1509  					break
  1510  				}
  1511  			}
  1512  			intStringLen := int(stringLen)
  1513  			if intStringLen < 0 {
  1514  				return ErrInvalidLengthTypes
  1515  			}
  1516  			postIndex := iNdEx + intStringLen
  1517  			if postIndex < 0 {
  1518  				return ErrInvalidLengthTypes
  1519  			}
  1520  			if postIndex > l {
  1521  				return io.ErrUnexpectedEOF
  1522  			}
  1523  			m.Address = string(dAtA[iNdEx:postIndex])
  1524  			iNdEx = postIndex
  1525  		default:
  1526  			iNdEx = preIndex
  1527  			skippy, err := skipTypes(dAtA[iNdEx:])
  1528  			if err != nil {
  1529  				return err
  1530  			}
  1531  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1532  				return ErrInvalidLengthTypes
  1533  			}
  1534  			if (iNdEx + skippy) > l {
  1535  				return io.ErrUnexpectedEOF
  1536  			}
  1537  			iNdEx += skippy
  1538  		}
  1539  	}
  1540  
  1541  	if iNdEx > l {
  1542  		return io.ErrUnexpectedEOF
  1543  	}
  1544  	return nil
  1545  }
  1546  
  1547  func (m *Params) Unmarshal(dAtA []byte) error {
  1548  	l := len(dAtA)
  1549  	iNdEx := 0
  1550  	for iNdEx < l {
  1551  		preIndex := iNdEx
  1552  		var wire uint64
  1553  		for shift := uint(0); ; shift += 7 {
  1554  			if shift >= 64 {
  1555  				return ErrIntOverflowTypes
  1556  			}
  1557  			if iNdEx >= l {
  1558  				return io.ErrUnexpectedEOF
  1559  			}
  1560  			b := dAtA[iNdEx]
  1561  			iNdEx++
  1562  			wire |= uint64(b&0x7F) << shift
  1563  			if b < 0x80 {
  1564  				break
  1565  			}
  1566  		}
  1567  		fieldNum := int32(wire >> 3)
  1568  		wireType := int(wire & 0x7)
  1569  		if wireType == 4 {
  1570  			return fmt.Errorf("proto: Params: wiretype end group for non-group")
  1571  		}
  1572  		if fieldNum <= 0 {
  1573  			return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
  1574  		}
  1575  		switch fieldNum {
  1576  		case 1:
  1577  			if wireType != 2 {
  1578  				return fmt.Errorf("proto: wrong wireType = %d for field CodeUploadAccess", wireType)
  1579  			}
  1580  			var msglen int
  1581  			for shift := uint(0); ; shift += 7 {
  1582  				if shift >= 64 {
  1583  					return ErrIntOverflowTypes
  1584  				}
  1585  				if iNdEx >= l {
  1586  					return io.ErrUnexpectedEOF
  1587  				}
  1588  				b := dAtA[iNdEx]
  1589  				iNdEx++
  1590  				msglen |= int(b&0x7F) << shift
  1591  				if b < 0x80 {
  1592  					break
  1593  				}
  1594  			}
  1595  			if msglen < 0 {
  1596  				return ErrInvalidLengthTypes
  1597  			}
  1598  			postIndex := iNdEx + msglen
  1599  			if postIndex < 0 {
  1600  				return ErrInvalidLengthTypes
  1601  			}
  1602  			if postIndex > l {
  1603  				return io.ErrUnexpectedEOF
  1604  			}
  1605  			if err := m.CodeUploadAccess.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1606  				return err
  1607  			}
  1608  			iNdEx = postIndex
  1609  		case 2:
  1610  			if wireType != 0 {
  1611  				return fmt.Errorf("proto: wrong wireType = %d for field InstantiateDefaultPermission", wireType)
  1612  			}
  1613  			m.InstantiateDefaultPermission = 0
  1614  			for shift := uint(0); ; shift += 7 {
  1615  				if shift >= 64 {
  1616  					return ErrIntOverflowTypes
  1617  				}
  1618  				if iNdEx >= l {
  1619  					return io.ErrUnexpectedEOF
  1620  				}
  1621  				b := dAtA[iNdEx]
  1622  				iNdEx++
  1623  				m.InstantiateDefaultPermission |= AccessType(b&0x7F) << shift
  1624  				if b < 0x80 {
  1625  					break
  1626  				}
  1627  			}
  1628  		case 3:
  1629  			if wireType != 0 {
  1630  				return fmt.Errorf("proto: wrong wireType = %d for field UseContractBlockedList", wireType)
  1631  			}
  1632  			var v int
  1633  			for shift := uint(0); ; shift += 7 {
  1634  				if shift >= 64 {
  1635  					return ErrIntOverflowTypes
  1636  				}
  1637  				if iNdEx >= l {
  1638  					return io.ErrUnexpectedEOF
  1639  				}
  1640  				b := dAtA[iNdEx]
  1641  				iNdEx++
  1642  				v |= int(b&0x7F) << shift
  1643  				if b < 0x80 {
  1644  					break
  1645  				}
  1646  			}
  1647  			m.UseContractBlockedList = bool(v != 0)
  1648  		case 4:
  1649  			if wireType != 0 {
  1650  				return fmt.Errorf("proto: wrong wireType = %d for field VmbridgeEnable", wireType)
  1651  			}
  1652  			var v int
  1653  			for shift := uint(0); ; shift += 7 {
  1654  				if shift >= 64 {
  1655  					return ErrIntOverflowTypes
  1656  				}
  1657  				if iNdEx >= l {
  1658  					return io.ErrUnexpectedEOF
  1659  				}
  1660  				b := dAtA[iNdEx]
  1661  				iNdEx++
  1662  				v |= int(b&0x7F) << shift
  1663  				if b < 0x80 {
  1664  					break
  1665  				}
  1666  			}
  1667  			m.VmbridgeEnable = bool(v != 0)
  1668  		default:
  1669  			iNdEx = preIndex
  1670  			skippy, err := skipTypes(dAtA[iNdEx:])
  1671  			if err != nil {
  1672  				return err
  1673  			}
  1674  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1675  				return ErrInvalidLengthTypes
  1676  			}
  1677  			if (iNdEx + skippy) > l {
  1678  				return io.ErrUnexpectedEOF
  1679  			}
  1680  			iNdEx += skippy
  1681  		}
  1682  	}
  1683  
  1684  	if iNdEx > l {
  1685  		return io.ErrUnexpectedEOF
  1686  	}
  1687  	return nil
  1688  }
  1689  
  1690  func (m *CodeInfo) Unmarshal(dAtA []byte) error {
  1691  	l := len(dAtA)
  1692  	iNdEx := 0
  1693  	for iNdEx < l {
  1694  		preIndex := iNdEx
  1695  		var wire uint64
  1696  		for shift := uint(0); ; shift += 7 {
  1697  			if shift >= 64 {
  1698  				return ErrIntOverflowTypes
  1699  			}
  1700  			if iNdEx >= l {
  1701  				return io.ErrUnexpectedEOF
  1702  			}
  1703  			b := dAtA[iNdEx]
  1704  			iNdEx++
  1705  			wire |= uint64(b&0x7F) << shift
  1706  			if b < 0x80 {
  1707  				break
  1708  			}
  1709  		}
  1710  		fieldNum := int32(wire >> 3)
  1711  		wireType := int(wire & 0x7)
  1712  		if wireType == 4 {
  1713  			return fmt.Errorf("proto: CodeInfo: wiretype end group for non-group")
  1714  		}
  1715  		if fieldNum <= 0 {
  1716  			return fmt.Errorf("proto: CodeInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1717  		}
  1718  		switch fieldNum {
  1719  		case 1:
  1720  			if wireType != 2 {
  1721  				return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType)
  1722  			}
  1723  			var byteLen int
  1724  			for shift := uint(0); ; shift += 7 {
  1725  				if shift >= 64 {
  1726  					return ErrIntOverflowTypes
  1727  				}
  1728  				if iNdEx >= l {
  1729  					return io.ErrUnexpectedEOF
  1730  				}
  1731  				b := dAtA[iNdEx]
  1732  				iNdEx++
  1733  				byteLen |= int(b&0x7F) << shift
  1734  				if b < 0x80 {
  1735  					break
  1736  				}
  1737  			}
  1738  			if byteLen < 0 {
  1739  				return ErrInvalidLengthTypes
  1740  			}
  1741  			postIndex := iNdEx + byteLen
  1742  			if postIndex < 0 {
  1743  				return ErrInvalidLengthTypes
  1744  			}
  1745  			if postIndex > l {
  1746  				return io.ErrUnexpectedEOF
  1747  			}
  1748  			m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...)
  1749  			if m.CodeHash == nil {
  1750  				m.CodeHash = []byte{}
  1751  			}
  1752  			iNdEx = postIndex
  1753  		case 2:
  1754  			if wireType != 2 {
  1755  				return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
  1756  			}
  1757  			var stringLen uint64
  1758  			for shift := uint(0); ; shift += 7 {
  1759  				if shift >= 64 {
  1760  					return ErrIntOverflowTypes
  1761  				}
  1762  				if iNdEx >= l {
  1763  					return io.ErrUnexpectedEOF
  1764  				}
  1765  				b := dAtA[iNdEx]
  1766  				iNdEx++
  1767  				stringLen |= uint64(b&0x7F) << shift
  1768  				if b < 0x80 {
  1769  					break
  1770  				}
  1771  			}
  1772  			intStringLen := int(stringLen)
  1773  			if intStringLen < 0 {
  1774  				return ErrInvalidLengthTypes
  1775  			}
  1776  			postIndex := iNdEx + intStringLen
  1777  			if postIndex < 0 {
  1778  				return ErrInvalidLengthTypes
  1779  			}
  1780  			if postIndex > l {
  1781  				return io.ErrUnexpectedEOF
  1782  			}
  1783  			m.Creator = string(dAtA[iNdEx:postIndex])
  1784  			iNdEx = postIndex
  1785  		case 5:
  1786  			if wireType != 2 {
  1787  				return fmt.Errorf("proto: wrong wireType = %d for field InstantiateConfig", wireType)
  1788  			}
  1789  			var msglen int
  1790  			for shift := uint(0); ; shift += 7 {
  1791  				if shift >= 64 {
  1792  					return ErrIntOverflowTypes
  1793  				}
  1794  				if iNdEx >= l {
  1795  					return io.ErrUnexpectedEOF
  1796  				}
  1797  				b := dAtA[iNdEx]
  1798  				iNdEx++
  1799  				msglen |= int(b&0x7F) << shift
  1800  				if b < 0x80 {
  1801  					break
  1802  				}
  1803  			}
  1804  			if msglen < 0 {
  1805  				return ErrInvalidLengthTypes
  1806  			}
  1807  			postIndex := iNdEx + msglen
  1808  			if postIndex < 0 {
  1809  				return ErrInvalidLengthTypes
  1810  			}
  1811  			if postIndex > l {
  1812  				return io.ErrUnexpectedEOF
  1813  			}
  1814  			if err := m.InstantiateConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1815  				return err
  1816  			}
  1817  			iNdEx = postIndex
  1818  		default:
  1819  			iNdEx = preIndex
  1820  			skippy, err := skipTypes(dAtA[iNdEx:])
  1821  			if err != nil {
  1822  				return err
  1823  			}
  1824  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1825  				return ErrInvalidLengthTypes
  1826  			}
  1827  			if (iNdEx + skippy) > l {
  1828  				return io.ErrUnexpectedEOF
  1829  			}
  1830  			iNdEx += skippy
  1831  		}
  1832  	}
  1833  
  1834  	if iNdEx > l {
  1835  		return io.ErrUnexpectedEOF
  1836  	}
  1837  	return nil
  1838  }
  1839  
  1840  func (m *ContractInfo) Unmarshal(dAtA []byte) error {
  1841  	l := len(dAtA)
  1842  	iNdEx := 0
  1843  	for iNdEx < l {
  1844  		preIndex := iNdEx
  1845  		var wire uint64
  1846  		for shift := uint(0); ; shift += 7 {
  1847  			if shift >= 64 {
  1848  				return ErrIntOverflowTypes
  1849  			}
  1850  			if iNdEx >= l {
  1851  				return io.ErrUnexpectedEOF
  1852  			}
  1853  			b := dAtA[iNdEx]
  1854  			iNdEx++
  1855  			wire |= uint64(b&0x7F) << shift
  1856  			if b < 0x80 {
  1857  				break
  1858  			}
  1859  		}
  1860  		fieldNum := int32(wire >> 3)
  1861  		wireType := int(wire & 0x7)
  1862  		if wireType == 4 {
  1863  			return fmt.Errorf("proto: ContractInfo: wiretype end group for non-group")
  1864  		}
  1865  		if fieldNum <= 0 {
  1866  			return fmt.Errorf("proto: ContractInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1867  		}
  1868  		switch fieldNum {
  1869  		case 1:
  1870  			if wireType != 0 {
  1871  				return fmt.Errorf("proto: wrong wireType = %d for field CodeID", wireType)
  1872  			}
  1873  			m.CodeID = 0
  1874  			for shift := uint(0); ; shift += 7 {
  1875  				if shift >= 64 {
  1876  					return ErrIntOverflowTypes
  1877  				}
  1878  				if iNdEx >= l {
  1879  					return io.ErrUnexpectedEOF
  1880  				}
  1881  				b := dAtA[iNdEx]
  1882  				iNdEx++
  1883  				m.CodeID |= uint64(b&0x7F) << shift
  1884  				if b < 0x80 {
  1885  					break
  1886  				}
  1887  			}
  1888  		case 2:
  1889  			if wireType != 2 {
  1890  				return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
  1891  			}
  1892  			var stringLen uint64
  1893  			for shift := uint(0); ; shift += 7 {
  1894  				if shift >= 64 {
  1895  					return ErrIntOverflowTypes
  1896  				}
  1897  				if iNdEx >= l {
  1898  					return io.ErrUnexpectedEOF
  1899  				}
  1900  				b := dAtA[iNdEx]
  1901  				iNdEx++
  1902  				stringLen |= uint64(b&0x7F) << shift
  1903  				if b < 0x80 {
  1904  					break
  1905  				}
  1906  			}
  1907  			intStringLen := int(stringLen)
  1908  			if intStringLen < 0 {
  1909  				return ErrInvalidLengthTypes
  1910  			}
  1911  			postIndex := iNdEx + intStringLen
  1912  			if postIndex < 0 {
  1913  				return ErrInvalidLengthTypes
  1914  			}
  1915  			if postIndex > l {
  1916  				return io.ErrUnexpectedEOF
  1917  			}
  1918  			m.Creator = string(dAtA[iNdEx:postIndex])
  1919  			iNdEx = postIndex
  1920  		case 3:
  1921  			if wireType != 2 {
  1922  				return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType)
  1923  			}
  1924  			var stringLen uint64
  1925  			for shift := uint(0); ; shift += 7 {
  1926  				if shift >= 64 {
  1927  					return ErrIntOverflowTypes
  1928  				}
  1929  				if iNdEx >= l {
  1930  					return io.ErrUnexpectedEOF
  1931  				}
  1932  				b := dAtA[iNdEx]
  1933  				iNdEx++
  1934  				stringLen |= uint64(b&0x7F) << shift
  1935  				if b < 0x80 {
  1936  					break
  1937  				}
  1938  			}
  1939  			intStringLen := int(stringLen)
  1940  			if intStringLen < 0 {
  1941  				return ErrInvalidLengthTypes
  1942  			}
  1943  			postIndex := iNdEx + intStringLen
  1944  			if postIndex < 0 {
  1945  				return ErrInvalidLengthTypes
  1946  			}
  1947  			if postIndex > l {
  1948  				return io.ErrUnexpectedEOF
  1949  			}
  1950  			m.Admin = string(dAtA[iNdEx:postIndex])
  1951  			iNdEx = postIndex
  1952  		case 4:
  1953  			if wireType != 2 {
  1954  				return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  1955  			}
  1956  			var stringLen uint64
  1957  			for shift := uint(0); ; shift += 7 {
  1958  				if shift >= 64 {
  1959  					return ErrIntOverflowTypes
  1960  				}
  1961  				if iNdEx >= l {
  1962  					return io.ErrUnexpectedEOF
  1963  				}
  1964  				b := dAtA[iNdEx]
  1965  				iNdEx++
  1966  				stringLen |= uint64(b&0x7F) << shift
  1967  				if b < 0x80 {
  1968  					break
  1969  				}
  1970  			}
  1971  			intStringLen := int(stringLen)
  1972  			if intStringLen < 0 {
  1973  				return ErrInvalidLengthTypes
  1974  			}
  1975  			postIndex := iNdEx + intStringLen
  1976  			if postIndex < 0 {
  1977  				return ErrInvalidLengthTypes
  1978  			}
  1979  			if postIndex > l {
  1980  				return io.ErrUnexpectedEOF
  1981  			}
  1982  			m.Label = string(dAtA[iNdEx:postIndex])
  1983  			iNdEx = postIndex
  1984  		case 5:
  1985  			if wireType != 2 {
  1986  				return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
  1987  			}
  1988  			var msglen int
  1989  			for shift := uint(0); ; shift += 7 {
  1990  				if shift >= 64 {
  1991  					return ErrIntOverflowTypes
  1992  				}
  1993  				if iNdEx >= l {
  1994  					return io.ErrUnexpectedEOF
  1995  				}
  1996  				b := dAtA[iNdEx]
  1997  				iNdEx++
  1998  				msglen |= int(b&0x7F) << shift
  1999  				if b < 0x80 {
  2000  					break
  2001  				}
  2002  			}
  2003  			if msglen < 0 {
  2004  				return ErrInvalidLengthTypes
  2005  			}
  2006  			postIndex := iNdEx + msglen
  2007  			if postIndex < 0 {
  2008  				return ErrInvalidLengthTypes
  2009  			}
  2010  			if postIndex > l {
  2011  				return io.ErrUnexpectedEOF
  2012  			}
  2013  			if m.Created == nil {
  2014  				m.Created = &AbsoluteTxPosition{}
  2015  			}
  2016  			if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2017  				return err
  2018  			}
  2019  			iNdEx = postIndex
  2020  		case 6:
  2021  			if wireType != 2 {
  2022  				return fmt.Errorf("proto: wrong wireType = %d for field IBCPortID", wireType)
  2023  			}
  2024  			var stringLen uint64
  2025  			for shift := uint(0); ; shift += 7 {
  2026  				if shift >= 64 {
  2027  					return ErrIntOverflowTypes
  2028  				}
  2029  				if iNdEx >= l {
  2030  					return io.ErrUnexpectedEOF
  2031  				}
  2032  				b := dAtA[iNdEx]
  2033  				iNdEx++
  2034  				stringLen |= uint64(b&0x7F) << shift
  2035  				if b < 0x80 {
  2036  					break
  2037  				}
  2038  			}
  2039  			intStringLen := int(stringLen)
  2040  			if intStringLen < 0 {
  2041  				return ErrInvalidLengthTypes
  2042  			}
  2043  			postIndex := iNdEx + intStringLen
  2044  			if postIndex < 0 {
  2045  				return ErrInvalidLengthTypes
  2046  			}
  2047  			if postIndex > l {
  2048  				return io.ErrUnexpectedEOF
  2049  			}
  2050  			m.IBCPortID = string(dAtA[iNdEx:postIndex])
  2051  			iNdEx = postIndex
  2052  		case 7:
  2053  			if wireType != 2 {
  2054  				return fmt.Errorf("proto: wrong wireType = %d for field Extension", wireType)
  2055  			}
  2056  			var msglen int
  2057  			for shift := uint(0); ; shift += 7 {
  2058  				if shift >= 64 {
  2059  					return ErrIntOverflowTypes
  2060  				}
  2061  				if iNdEx >= l {
  2062  					return io.ErrUnexpectedEOF
  2063  				}
  2064  				b := dAtA[iNdEx]
  2065  				iNdEx++
  2066  				msglen |= int(b&0x7F) << shift
  2067  				if b < 0x80 {
  2068  					break
  2069  				}
  2070  			}
  2071  			if msglen < 0 {
  2072  				return ErrInvalidLengthTypes
  2073  			}
  2074  			postIndex := iNdEx + msglen
  2075  			if postIndex < 0 {
  2076  				return ErrInvalidLengthTypes
  2077  			}
  2078  			if postIndex > l {
  2079  				return io.ErrUnexpectedEOF
  2080  			}
  2081  			if m.Extension == nil {
  2082  				m.Extension = &types.Any{}
  2083  			}
  2084  			if err := m.Extension.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2085  				return err
  2086  			}
  2087  			iNdEx = postIndex
  2088  		default:
  2089  			iNdEx = preIndex
  2090  			skippy, err := skipTypes(dAtA[iNdEx:])
  2091  			if err != nil {
  2092  				return err
  2093  			}
  2094  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2095  				return ErrInvalidLengthTypes
  2096  			}
  2097  			if (iNdEx + skippy) > l {
  2098  				return io.ErrUnexpectedEOF
  2099  			}
  2100  			iNdEx += skippy
  2101  		}
  2102  	}
  2103  
  2104  	if iNdEx > l {
  2105  		return io.ErrUnexpectedEOF
  2106  	}
  2107  	return nil
  2108  }
  2109  
  2110  func (m *ContractCodeHistoryEntry) Unmarshal(dAtA []byte) error {
  2111  	l := len(dAtA)
  2112  	iNdEx := 0
  2113  	for iNdEx < l {
  2114  		preIndex := iNdEx
  2115  		var wire uint64
  2116  		for shift := uint(0); ; shift += 7 {
  2117  			if shift >= 64 {
  2118  				return ErrIntOverflowTypes
  2119  			}
  2120  			if iNdEx >= l {
  2121  				return io.ErrUnexpectedEOF
  2122  			}
  2123  			b := dAtA[iNdEx]
  2124  			iNdEx++
  2125  			wire |= uint64(b&0x7F) << shift
  2126  			if b < 0x80 {
  2127  				break
  2128  			}
  2129  		}
  2130  		fieldNum := int32(wire >> 3)
  2131  		wireType := int(wire & 0x7)
  2132  		if wireType == 4 {
  2133  			return fmt.Errorf("proto: ContractCodeHistoryEntry: wiretype end group for non-group")
  2134  		}
  2135  		if fieldNum <= 0 {
  2136  			return fmt.Errorf("proto: ContractCodeHistoryEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  2137  		}
  2138  		switch fieldNum {
  2139  		case 1:
  2140  			if wireType != 0 {
  2141  				return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
  2142  			}
  2143  			m.Operation = 0
  2144  			for shift := uint(0); ; shift += 7 {
  2145  				if shift >= 64 {
  2146  					return ErrIntOverflowTypes
  2147  				}
  2148  				if iNdEx >= l {
  2149  					return io.ErrUnexpectedEOF
  2150  				}
  2151  				b := dAtA[iNdEx]
  2152  				iNdEx++
  2153  				m.Operation |= ContractCodeHistoryOperationType(b&0x7F) << shift
  2154  				if b < 0x80 {
  2155  					break
  2156  				}
  2157  			}
  2158  		case 2:
  2159  			if wireType != 0 {
  2160  				return fmt.Errorf("proto: wrong wireType = %d for field CodeID", wireType)
  2161  			}
  2162  			m.CodeID = 0
  2163  			for shift := uint(0); ; shift += 7 {
  2164  				if shift >= 64 {
  2165  					return ErrIntOverflowTypes
  2166  				}
  2167  				if iNdEx >= l {
  2168  					return io.ErrUnexpectedEOF
  2169  				}
  2170  				b := dAtA[iNdEx]
  2171  				iNdEx++
  2172  				m.CodeID |= uint64(b&0x7F) << shift
  2173  				if b < 0x80 {
  2174  					break
  2175  				}
  2176  			}
  2177  		case 3:
  2178  			if wireType != 2 {
  2179  				return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType)
  2180  			}
  2181  			var msglen int
  2182  			for shift := uint(0); ; shift += 7 {
  2183  				if shift >= 64 {
  2184  					return ErrIntOverflowTypes
  2185  				}
  2186  				if iNdEx >= l {
  2187  					return io.ErrUnexpectedEOF
  2188  				}
  2189  				b := dAtA[iNdEx]
  2190  				iNdEx++
  2191  				msglen |= int(b&0x7F) << shift
  2192  				if b < 0x80 {
  2193  					break
  2194  				}
  2195  			}
  2196  			if msglen < 0 {
  2197  				return ErrInvalidLengthTypes
  2198  			}
  2199  			postIndex := iNdEx + msglen
  2200  			if postIndex < 0 {
  2201  				return ErrInvalidLengthTypes
  2202  			}
  2203  			if postIndex > l {
  2204  				return io.ErrUnexpectedEOF
  2205  			}
  2206  			if m.Updated == nil {
  2207  				m.Updated = &AbsoluteTxPosition{}
  2208  			}
  2209  			if err := m.Updated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2210  				return err
  2211  			}
  2212  			iNdEx = postIndex
  2213  		case 4:
  2214  			if wireType != 2 {
  2215  				return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2216  			}
  2217  			var byteLen int
  2218  			for shift := uint(0); ; shift += 7 {
  2219  				if shift >= 64 {
  2220  					return ErrIntOverflowTypes
  2221  				}
  2222  				if iNdEx >= l {
  2223  					return io.ErrUnexpectedEOF
  2224  				}
  2225  				b := dAtA[iNdEx]
  2226  				iNdEx++
  2227  				byteLen |= int(b&0x7F) << shift
  2228  				if b < 0x80 {
  2229  					break
  2230  				}
  2231  			}
  2232  			if byteLen < 0 {
  2233  				return ErrInvalidLengthTypes
  2234  			}
  2235  			postIndex := iNdEx + byteLen
  2236  			if postIndex < 0 {
  2237  				return ErrInvalidLengthTypes
  2238  			}
  2239  			if postIndex > l {
  2240  				return io.ErrUnexpectedEOF
  2241  			}
  2242  			m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
  2243  			if m.Msg == nil {
  2244  				m.Msg = []byte{}
  2245  			}
  2246  			iNdEx = postIndex
  2247  		default:
  2248  			iNdEx = preIndex
  2249  			skippy, err := skipTypes(dAtA[iNdEx:])
  2250  			if err != nil {
  2251  				return err
  2252  			}
  2253  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2254  				return ErrInvalidLengthTypes
  2255  			}
  2256  			if (iNdEx + skippy) > l {
  2257  				return io.ErrUnexpectedEOF
  2258  			}
  2259  			iNdEx += skippy
  2260  		}
  2261  	}
  2262  
  2263  	if iNdEx > l {
  2264  		return io.ErrUnexpectedEOF
  2265  	}
  2266  	return nil
  2267  }
  2268  
  2269  func (m *AbsoluteTxPosition) Unmarshal(dAtA []byte) error {
  2270  	l := len(dAtA)
  2271  	iNdEx := 0
  2272  	for iNdEx < l {
  2273  		preIndex := iNdEx
  2274  		var wire uint64
  2275  		for shift := uint(0); ; shift += 7 {
  2276  			if shift >= 64 {
  2277  				return ErrIntOverflowTypes
  2278  			}
  2279  			if iNdEx >= l {
  2280  				return io.ErrUnexpectedEOF
  2281  			}
  2282  			b := dAtA[iNdEx]
  2283  			iNdEx++
  2284  			wire |= uint64(b&0x7F) << shift
  2285  			if b < 0x80 {
  2286  				break
  2287  			}
  2288  		}
  2289  		fieldNum := int32(wire >> 3)
  2290  		wireType := int(wire & 0x7)
  2291  		if wireType == 4 {
  2292  			return fmt.Errorf("proto: AbsoluteTxPosition: wiretype end group for non-group")
  2293  		}
  2294  		if fieldNum <= 0 {
  2295  			return fmt.Errorf("proto: AbsoluteTxPosition: illegal tag %d (wire type %d)", fieldNum, wire)
  2296  		}
  2297  		switch fieldNum {
  2298  		case 1:
  2299  			if wireType != 0 {
  2300  				return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType)
  2301  			}
  2302  			m.BlockHeight = 0
  2303  			for shift := uint(0); ; shift += 7 {
  2304  				if shift >= 64 {
  2305  					return ErrIntOverflowTypes
  2306  				}
  2307  				if iNdEx >= l {
  2308  					return io.ErrUnexpectedEOF
  2309  				}
  2310  				b := dAtA[iNdEx]
  2311  				iNdEx++
  2312  				m.BlockHeight |= uint64(b&0x7F) << shift
  2313  				if b < 0x80 {
  2314  					break
  2315  				}
  2316  			}
  2317  		case 2:
  2318  			if wireType != 0 {
  2319  				return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType)
  2320  			}
  2321  			m.TxIndex = 0
  2322  			for shift := uint(0); ; shift += 7 {
  2323  				if shift >= 64 {
  2324  					return ErrIntOverflowTypes
  2325  				}
  2326  				if iNdEx >= l {
  2327  					return io.ErrUnexpectedEOF
  2328  				}
  2329  				b := dAtA[iNdEx]
  2330  				iNdEx++
  2331  				m.TxIndex |= uint64(b&0x7F) << shift
  2332  				if b < 0x80 {
  2333  					break
  2334  				}
  2335  			}
  2336  		default:
  2337  			iNdEx = preIndex
  2338  			skippy, err := skipTypes(dAtA[iNdEx:])
  2339  			if err != nil {
  2340  				return err
  2341  			}
  2342  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2343  				return ErrInvalidLengthTypes
  2344  			}
  2345  			if (iNdEx + skippy) > l {
  2346  				return io.ErrUnexpectedEOF
  2347  			}
  2348  			iNdEx += skippy
  2349  		}
  2350  	}
  2351  
  2352  	if iNdEx > l {
  2353  		return io.ErrUnexpectedEOF
  2354  	}
  2355  	return nil
  2356  }
  2357  
  2358  func (m *Model) Unmarshal(dAtA []byte) error {
  2359  	l := len(dAtA)
  2360  	iNdEx := 0
  2361  	for iNdEx < l {
  2362  		preIndex := iNdEx
  2363  		var wire uint64
  2364  		for shift := uint(0); ; shift += 7 {
  2365  			if shift >= 64 {
  2366  				return ErrIntOverflowTypes
  2367  			}
  2368  			if iNdEx >= l {
  2369  				return io.ErrUnexpectedEOF
  2370  			}
  2371  			b := dAtA[iNdEx]
  2372  			iNdEx++
  2373  			wire |= uint64(b&0x7F) << shift
  2374  			if b < 0x80 {
  2375  				break
  2376  			}
  2377  		}
  2378  		fieldNum := int32(wire >> 3)
  2379  		wireType := int(wire & 0x7)
  2380  		if wireType == 4 {
  2381  			return fmt.Errorf("proto: Model: wiretype end group for non-group")
  2382  		}
  2383  		if fieldNum <= 0 {
  2384  			return fmt.Errorf("proto: Model: illegal tag %d (wire type %d)", fieldNum, wire)
  2385  		}
  2386  		switch fieldNum {
  2387  		case 1:
  2388  			if wireType != 2 {
  2389  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  2390  			}
  2391  			var byteLen int
  2392  			for shift := uint(0); ; shift += 7 {
  2393  				if shift >= 64 {
  2394  					return ErrIntOverflowTypes
  2395  				}
  2396  				if iNdEx >= l {
  2397  					return io.ErrUnexpectedEOF
  2398  				}
  2399  				b := dAtA[iNdEx]
  2400  				iNdEx++
  2401  				byteLen |= int(b&0x7F) << shift
  2402  				if b < 0x80 {
  2403  					break
  2404  				}
  2405  			}
  2406  			if byteLen < 0 {
  2407  				return ErrInvalidLengthTypes
  2408  			}
  2409  			postIndex := iNdEx + byteLen
  2410  			if postIndex < 0 {
  2411  				return ErrInvalidLengthTypes
  2412  			}
  2413  			if postIndex > l {
  2414  				return io.ErrUnexpectedEOF
  2415  			}
  2416  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  2417  			if m.Key == nil {
  2418  				m.Key = []byte{}
  2419  			}
  2420  			iNdEx = postIndex
  2421  		case 2:
  2422  			if wireType != 2 {
  2423  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  2424  			}
  2425  			var byteLen int
  2426  			for shift := uint(0); ; shift += 7 {
  2427  				if shift >= 64 {
  2428  					return ErrIntOverflowTypes
  2429  				}
  2430  				if iNdEx >= l {
  2431  					return io.ErrUnexpectedEOF
  2432  				}
  2433  				b := dAtA[iNdEx]
  2434  				iNdEx++
  2435  				byteLen |= int(b&0x7F) << shift
  2436  				if b < 0x80 {
  2437  					break
  2438  				}
  2439  			}
  2440  			if byteLen < 0 {
  2441  				return ErrInvalidLengthTypes
  2442  			}
  2443  			postIndex := iNdEx + byteLen
  2444  			if postIndex < 0 {
  2445  				return ErrInvalidLengthTypes
  2446  			}
  2447  			if postIndex > l {
  2448  				return io.ErrUnexpectedEOF
  2449  			}
  2450  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  2451  			if m.Value == nil {
  2452  				m.Value = []byte{}
  2453  			}
  2454  			iNdEx = postIndex
  2455  		default:
  2456  			iNdEx = preIndex
  2457  			skippy, err := skipTypes(dAtA[iNdEx:])
  2458  			if err != nil {
  2459  				return err
  2460  			}
  2461  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2462  				return ErrInvalidLengthTypes
  2463  			}
  2464  			if (iNdEx + skippy) > l {
  2465  				return io.ErrUnexpectedEOF
  2466  			}
  2467  			iNdEx += skippy
  2468  		}
  2469  	}
  2470  
  2471  	if iNdEx > l {
  2472  		return io.ErrUnexpectedEOF
  2473  	}
  2474  	return nil
  2475  }
  2476  
  2477  func skipTypes(dAtA []byte) (n int, err error) {
  2478  	l := len(dAtA)
  2479  	iNdEx := 0
  2480  	depth := 0
  2481  	for iNdEx < l {
  2482  		var wire uint64
  2483  		for shift := uint(0); ; shift += 7 {
  2484  			if shift >= 64 {
  2485  				return 0, ErrIntOverflowTypes
  2486  			}
  2487  			if iNdEx >= l {
  2488  				return 0, io.ErrUnexpectedEOF
  2489  			}
  2490  			b := dAtA[iNdEx]
  2491  			iNdEx++
  2492  			wire |= (uint64(b) & 0x7F) << shift
  2493  			if b < 0x80 {
  2494  				break
  2495  			}
  2496  		}
  2497  		wireType := int(wire & 0x7)
  2498  		switch wireType {
  2499  		case 0:
  2500  			for shift := uint(0); ; shift += 7 {
  2501  				if shift >= 64 {
  2502  					return 0, ErrIntOverflowTypes
  2503  				}
  2504  				if iNdEx >= l {
  2505  					return 0, io.ErrUnexpectedEOF
  2506  				}
  2507  				iNdEx++
  2508  				if dAtA[iNdEx-1] < 0x80 {
  2509  					break
  2510  				}
  2511  			}
  2512  		case 1:
  2513  			iNdEx += 8
  2514  		case 2:
  2515  			var length int
  2516  			for shift := uint(0); ; shift += 7 {
  2517  				if shift >= 64 {
  2518  					return 0, ErrIntOverflowTypes
  2519  				}
  2520  				if iNdEx >= l {
  2521  					return 0, io.ErrUnexpectedEOF
  2522  				}
  2523  				b := dAtA[iNdEx]
  2524  				iNdEx++
  2525  				length |= (int(b) & 0x7F) << shift
  2526  				if b < 0x80 {
  2527  					break
  2528  				}
  2529  			}
  2530  			if length < 0 {
  2531  				return 0, ErrInvalidLengthTypes
  2532  			}
  2533  			iNdEx += length
  2534  		case 3:
  2535  			depth++
  2536  		case 4:
  2537  			if depth == 0 {
  2538  				return 0, ErrUnexpectedEndOfGroupTypes
  2539  			}
  2540  			depth--
  2541  		case 5:
  2542  			iNdEx += 4
  2543  		default:
  2544  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2545  		}
  2546  		if iNdEx < 0 {
  2547  			return 0, ErrInvalidLengthTypes
  2548  		}
  2549  		if depth == 0 {
  2550  			return iNdEx, nil
  2551  		}
  2552  	}
  2553  	return 0, io.ErrUnexpectedEOF
  2554  }
  2555  
  2556  var (
  2557  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
  2558  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
  2559  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
  2560  )