// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ethermint/evm/v1alpha1/evm.proto package types import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the EVM module parameters type Params struct { // evm_denom represents the token denomination used to run the EVM state // transitions. EvmDenom string `protobuf:"bytes,1,opt,name=evm_denom,json=evmDenom,proto3" json:"evm_denom,omitempty" yaml:"evm_denom"` // enable_create toggles state transitions that use the vm.Create function EnableCreate bool `protobuf:"varint,2,opt,name=enable_create,json=enableCreate,proto3" json:"enable_create,omitempty" yaml:"enable_create"` // enable_call toggles state transitions that use the vm.Call function EnableCall bool `protobuf:"varint,3,opt,name=enable_call,json=enableCall,proto3" json:"enable_call,omitempty" yaml:"enable_call"` // extra_eips defines the additional EIPs for the vm.Config ExtraEIPs []int64 `protobuf:"varint,4,rep,packed,name=extra_eips,json=extraEips,proto3" json:"extra_eips,omitempty" yaml:"extra_eips"` } func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Params.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Params) XXX_Merge(src proto.Message) { xxx_messageInfo_Params.Merge(m, src) } func (m *Params) XXX_Size() int { return m.Size() } func (m *Params) XXX_DiscardUnknown() { xxx_messageInfo_Params.DiscardUnknown(m) } var xxx_messageInfo_Params proto.InternalMessageInfo func (m *Params) GetEvmDenom() string { if m != nil { return m.EvmDenom } return "" } func (m *Params) GetEnableCreate() bool { if m != nil { return m.EnableCreate } return false } func (m *Params) GetEnableCall() bool { if m != nil { return m.EnableCall } return false } func (m *Params) GetExtraEIPs() []int64 { if m != nil { return m.ExtraEIPs } return nil } // ChainConfig defines the Ethereum ChainConfig parameters using sdk.Int values // instead of big.Int. // // NOTE 1: Since empty/uninitialized Ints (i.e with a nil big.Int value) are // parsed to zero, we need to manually specify that negative Int values will be // considered as nil. See getBlockValue for reference. // // NOTE 2: This type is not a configurable Param since the SDK does not allow // for validation against a previous stored parameter values or the current // block height (retrieved from context). If you want to update the config // values, use an software upgrade procedure. type ChainConfig struct { // Homestead switch block (< 0 no fork, 0 = already homestead) HomesteadBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=homestead_block,json=homesteadBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"homestead_block" yaml:"homestead_block"` // TheDAO hard-fork switch block (< 0 no fork) DAOForkBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=dao_fork_block,json=daoForkBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"dao_fork_block" yaml:"dao_fork_block"` // Whether the nodes supports or opposes the DAO hard-fork DAOForkSupport bool `protobuf:"varint,3,opt,name=dao_fork_support,json=daoForkSupport,proto3" json:"dao_fork_support,omitempty" yaml:"dao_fork_support"` // EIP150 implements the Gas price changes // (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (< 0 no fork) EIP150Block github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=eip150_block,json=eip150Block,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"eip150_block" yaml:"eip150_block"` // EIP150 HF hash (needed for header only clients as only gas pricing changed) EIP150Hash string `protobuf:"bytes,5,opt,name=eip150_hash,json=eip150Hash,proto3" json:"eip150_hash,omitempty" yaml:"byzantium_block"` // EIP155Block HF block EIP155Block github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=eip155_block,json=eip155Block,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"eip155_block" yaml:"eip155_block"` // EIP158 HF block EIP158Block github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=eip158_block,json=eip158Block,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"eip158_block" yaml:"eip158_block"` // Byzantium switch block (< 0 no fork, 0 = already on byzantium) ByzantiumBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=byzantium_block,json=byzantiumBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"byzantium_block" yaml:"byzantium_block"` // Constantinople switch block (< 0 no fork, 0 = already activated) ConstantinopleBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=constantinople_block,json=constantinopleBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"constantinople_block" yaml:"constantinople_block"` // Petersburg switch block (< 0 same as Constantinople) PetersburgBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=petersburg_block,json=petersburgBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"petersburg_block" yaml:"petersburg_block"` // Istanbul switch block (< 0 no fork, 0 = already on istanbul) IstanbulBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=istanbul_block,json=istanbulBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"istanbul_block" yaml:"istanbul_block"` // Eip-2384 (bomb delay) switch block (< 0 no fork, 0 = already activated) MuirGlacierBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,12,opt,name=muir_glacier_block,json=muirGlacierBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"muir_glacier_block" yaml:"muir_glacier_block"` // Berlin switch block (< 0 = no fork, 0 = already on berlin) BerlinBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,13,opt,name=berlin_block,json=berlinBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"berlin_block" yaml:"berlin_block"` // YOLO v3: Gas repricings YoloV3Block github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,14,opt,name=yolo_v3_block,json=yoloV3Block,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"yolo_v3_block" yaml:"yolo_v3_block"` // EWASM switch block (< 0 no fork, 0 = already activated) EWASMBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,15,opt,name=ewasm_block,json=ewasmBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ewasm_block" yaml:"ewasm_block"` // Catalyst switch block (< 0 = no fork, 0 = already on catalyst) CatalystBlock github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,16,opt,name=catalyst_block,json=catalystBlock,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"catalyst_block" yaml:"catalyst_block"` } func (m *ChainConfig) Reset() { *m = ChainConfig{} } func (m *ChainConfig) String() string { return proto.CompactTextString(m) } func (*ChainConfig) ProtoMessage() {} func (*ChainConfig) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{1} } func (m *ChainConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ChainConfig.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ChainConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_ChainConfig.Merge(m, src) } func (m *ChainConfig) XXX_Size() int { return m.Size() } func (m *ChainConfig) XXX_DiscardUnknown() { xxx_messageInfo_ChainConfig.DiscardUnknown(m) } var xxx_messageInfo_ChainConfig proto.InternalMessageInfo func (m *ChainConfig) GetDAOForkSupport() bool { if m != nil { return m.DAOForkSupport } return false } func (m *ChainConfig) GetEIP150Hash() string { if m != nil { return m.EIP150Hash } return "" } // State represents a single Storage key value pair item. type State struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (m *State) Reset() { *m = State{} } func (m *State) String() string { return proto.CompactTextString(m) } func (*State) ProtoMessage() {} func (*State) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{2} } func (m *State) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_State.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *State) XXX_Merge(src proto.Message) { xxx_messageInfo_State.Merge(m, src) } func (m *State) XXX_Size() int { return m.Size() } func (m *State) XXX_DiscardUnknown() { xxx_messageInfo_State.DiscardUnknown(m) } var xxx_messageInfo_State proto.InternalMessageInfo func (m *State) GetKey() string { if m != nil { return m.Key } return "" } func (m *State) GetValue() string { if m != nil { return m.Value } return "" } // TransactionLogs define the logs generated from a transaction execution // with a given hash. It it used for import/export data as transactions are not // persisted on blockchain state after an upgrade. type TransactionLogs struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Logs []*Log `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` } func (m *TransactionLogs) Reset() { *m = TransactionLogs{} } func (m *TransactionLogs) String() string { return proto.CompactTextString(m) } func (*TransactionLogs) ProtoMessage() {} func (*TransactionLogs) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{3} } func (m *TransactionLogs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TransactionLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TransactionLogs.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *TransactionLogs) XXX_Merge(src proto.Message) { xxx_messageInfo_TransactionLogs.Merge(m, src) } func (m *TransactionLogs) XXX_Size() int { return m.Size() } func (m *TransactionLogs) XXX_DiscardUnknown() { xxx_messageInfo_TransactionLogs.DiscardUnknown(m) } var xxx_messageInfo_TransactionLogs proto.InternalMessageInfo func (m *TransactionLogs) GetHash() string { if m != nil { return m.Hash } return "" } func (m *TransactionLogs) GetLogs() []*Log { if m != nil { return m.Logs } return nil } // Log represents an protobuf compatible Ethereum Log that defines a contract // log event. These events are generated by the LOG opcode and stored/indexed by // the node. type Log struct { // address of the contract that generated the event Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // list of topics provided by the contract. Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` // supplied by the contract, usually ABI-encoded Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // block in which the transaction was included BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"blockNumber"` // hash of the transaction TxHash string `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"transactionHash"` // index of the transaction in the block TxIndex uint64 `protobuf:"varint,6,opt,name=tx_index,json=txIndex,proto3" json:"transactionIndex"` // hash of the block in which the transaction was included BlockHash string `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"blockHash"` // index of the log in the block Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"logIndex"` // The Removed field is true if this log was reverted due to a chain // reorganisation. You must pay attention to this field if you receive logs // through a filter query. Removed bool `protobuf:"varint,9,opt,name=removed,proto3" json:"removed,omitempty"` } func (m *Log) Reset() { *m = Log{} } func (m *Log) String() string { return proto.CompactTextString(m) } func (*Log) ProtoMessage() {} func (*Log) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{4} } func (m *Log) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Log.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Log) XXX_Merge(src proto.Message) { xxx_messageInfo_Log.Merge(m, src) } func (m *Log) XXX_Size() int { return m.Size() } func (m *Log) XXX_DiscardUnknown() { xxx_messageInfo_Log.DiscardUnknown(m) } var xxx_messageInfo_Log proto.InternalMessageInfo func (m *Log) GetAddress() string { if m != nil { return m.Address } return "" } func (m *Log) GetTopics() []string { if m != nil { return m.Topics } return nil } func (m *Log) GetData() []byte { if m != nil { return m.Data } return nil } func (m *Log) GetBlockNumber() uint64 { if m != nil { return m.BlockNumber } return 0 } func (m *Log) GetTxHash() string { if m != nil { return m.TxHash } return "" } func (m *Log) GetTxIndex() uint64 { if m != nil { return m.TxIndex } return 0 } func (m *Log) GetBlockHash() string { if m != nil { return m.BlockHash } return "" } func (m *Log) GetIndex() uint64 { if m != nil { return m.Index } return 0 } func (m *Log) GetRemoved() bool { if m != nil { return m.Removed } return false } // TxReceipt defines the receipt type stored in KV for each EVM transaction. type TxReceipt struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Data *TxData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Result *TxResult `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` Index uint64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` BlockHeight uint64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockHash string `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` } func (m *TxReceipt) Reset() { *m = TxReceipt{} } func (m *TxReceipt) String() string { return proto.CompactTextString(m) } func (*TxReceipt) ProtoMessage() {} func (*TxReceipt) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{5} } func (m *TxReceipt) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TxReceipt.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *TxReceipt) XXX_Merge(src proto.Message) { xxx_messageInfo_TxReceipt.Merge(m, src) } func (m *TxReceipt) XXX_Size() int { return m.Size() } func (m *TxReceipt) XXX_DiscardUnknown() { xxx_messageInfo_TxReceipt.DiscardUnknown(m) } var xxx_messageInfo_TxReceipt proto.InternalMessageInfo // TxResult stores results of Tx execution. type TxResult struct { // contract_address contains the ethereum address of the created contract (if // any). If the state transition is an evm.Call, the contract address will be // empty. ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty" yaml:"contract_address"` // bloom represents the bloom filter bytes Bloom []byte `protobuf:"bytes,2,opt,name=bloom,proto3" json:"bloom,omitempty"` // tx_logs contains the transaction hash and the proto-compatible ethereum // logs. TxLogs TransactionLogs `protobuf:"bytes,3,opt,name=tx_logs,json=txLogs,proto3" json:"tx_logs" yaml:"tx_logs"` // ret defines the bytes from the execution. Ret []byte `protobuf:"bytes,4,opt,name=ret,proto3" json:"ret,omitempty"` // reverted flag is set to true when the call has been reverted Reverted bool `protobuf:"varint,5,opt,name=reverted,proto3" json:"reverted,omitempty"` // gas_used notes the amount of gas consumed while execution GasUsed uint64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` } func (m *TxResult) Reset() { *m = TxResult{} } func (m *TxResult) String() string { return proto.CompactTextString(m) } func (*TxResult) ProtoMessage() {} func (*TxResult) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{6} } func (m *TxResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TxResult.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *TxResult) XXX_Merge(src proto.Message) { xxx_messageInfo_TxResult.Merge(m, src) } func (m *TxResult) XXX_Size() int { return m.Size() } func (m *TxResult) XXX_DiscardUnknown() { xxx_messageInfo_TxResult.DiscardUnknown(m) } var xxx_messageInfo_TxResult proto.InternalMessageInfo // TxData implements the Ethereum transaction data structure. It is used // solely as intended in Ethereum abiding by the protocol. type TxData struct { // destination EVM chain ID ChainID []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chainID"` // nonce corresponds to the account nonce (transaction sequence). Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // price defines the unsigned integer value of the gas price in bytes. GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // gas defines the gas limit defined for the transaction. GasLimit uint64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"` // hex formatted address of the recipient To string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"` // value defines the unsigned integer value of the transaction amount. Amount []byte `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` // input defines the data payload bytes of the transaction. Input []byte `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"` Accesses AccessList `protobuf:"bytes,8,rep,name=accesses,proto3,castrepeated=AccessList" json:"accessList"` // v defines the signature value V []byte `protobuf:"bytes,9,opt,name=v,proto3" json:"v,omitempty"` // r defines the signature value R []byte `protobuf:"bytes,10,opt,name=r,proto3" json:"r,omitempty"` // s define the signature value S []byte `protobuf:"bytes,11,opt,name=s,proto3" json:"s,omitempty"` } func (m *TxData) Reset() { *m = TxData{} } func (m *TxData) String() string { return proto.CompactTextString(m) } func (*TxData) ProtoMessage() {} func (*TxData) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{7} } func (m *TxData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TxData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TxData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *TxData) XXX_Merge(src proto.Message) { xxx_messageInfo_TxData.Merge(m, src) } func (m *TxData) XXX_Size() int { return m.Size() } func (m *TxData) XXX_DiscardUnknown() { xxx_messageInfo_TxData.DiscardUnknown(m) } var xxx_messageInfo_TxData proto.InternalMessageInfo type BytesList struct { Bytes [][]byte `protobuf:"bytes,1,rep,name=bytes,proto3" json:"bytes,omitempty"` } func (m *BytesList) Reset() { *m = BytesList{} } func (m *BytesList) String() string { return proto.CompactTextString(m) } func (*BytesList) ProtoMessage() {} func (*BytesList) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{8} } func (m *BytesList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *BytesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_BytesList.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *BytesList) XXX_Merge(src proto.Message) { xxx_messageInfo_BytesList.Merge(m, src) } func (m *BytesList) XXX_Size() int { return m.Size() } func (m *BytesList) XXX_DiscardUnknown() { xxx_messageInfo_BytesList.DiscardUnknown(m) } var xxx_messageInfo_BytesList proto.InternalMessageInfo // AccessTuple is the element type of an access list. type AccessTuple struct { // hex formatted ethereum address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // hex formatted hashes of the storage keys StorageKeys []string `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storageKeys"` } func (m *AccessTuple) Reset() { *m = AccessTuple{} } func (m *AccessTuple) String() string { return proto.CompactTextString(m) } func (*AccessTuple) ProtoMessage() {} func (*AccessTuple) Descriptor() ([]byte, []int) { return fileDescriptor_98f00fcca8b6b943, []int{9} } func (m *AccessTuple) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AccessTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AccessTuple.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AccessTuple) XXX_Merge(src proto.Message) { xxx_messageInfo_AccessTuple.Merge(m, src) } func (m *AccessTuple) XXX_Size() int { return m.Size() } func (m *AccessTuple) XXX_DiscardUnknown() { xxx_messageInfo_AccessTuple.DiscardUnknown(m) } var xxx_messageInfo_AccessTuple proto.InternalMessageInfo func init() { proto.RegisterType((*Params)(nil), "ethermint.evm.v1alpha1.Params") proto.RegisterType((*ChainConfig)(nil), "ethermint.evm.v1alpha1.ChainConfig") proto.RegisterType((*State)(nil), "ethermint.evm.v1alpha1.State") proto.RegisterType((*TransactionLogs)(nil), "ethermint.evm.v1alpha1.TransactionLogs") proto.RegisterType((*Log)(nil), "ethermint.evm.v1alpha1.Log") proto.RegisterType((*TxReceipt)(nil), "ethermint.evm.v1alpha1.TxReceipt") proto.RegisterType((*TxResult)(nil), "ethermint.evm.v1alpha1.TxResult") proto.RegisterType((*TxData)(nil), "ethermint.evm.v1alpha1.TxData") proto.RegisterType((*BytesList)(nil), "ethermint.evm.v1alpha1.BytesList") proto.RegisterType((*AccessTuple)(nil), "ethermint.evm.v1alpha1.AccessTuple") } func init() { proto.RegisterFile("ethermint/evm/v1alpha1/evm.proto", fileDescriptor_98f00fcca8b6b943) } var fileDescriptor_98f00fcca8b6b943 = []byte{ // 1532 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xbd, 0x6f, 0x1b, 0x47, 0x16, 0x17, 0x3f, 0x44, 0x2d, 0x87, 0x2b, 0x8a, 0x37, 0xd6, 0xe9, 0x68, 0x1b, 0xc7, 0xe5, 0xed, 0x01, 0x67, 0x1d, 0x60, 0x8b, 0x96, 0x0c, 0xe1, 0x04, 0x03, 0x57, 0x88, 0x96, 0x6c, 0x09, 0x96, 0x13, 0x61, 0xac, 0xd8, 0x41, 0x1a, 0x62, 0xb8, 0x3b, 0x5e, 0x6e, 0xb4, 0xbb, 0xc3, 0xec, 0x0c, 0x69, 0x32, 0x40, 0x80, 0x94, 0x29, 0x93, 0x2e, 0xa5, 0xeb, 0xfc, 0x25, 0x46, 0x2a, 0x97, 0x41, 0x8a, 0x4d, 0x40, 0x77, 0x2a, 0xd9, 0xa4, 0x09, 0x90, 0x60, 0x3e, 0x96, 0x22, 0x65, 0x29, 0x00, 0xa1, 0x8a, 0xf3, 0xde, 0xbc, 0xf9, 0xfd, 0xe6, 0xbd, 0x79, 0x1f, 0x4b, 0x50, 0x27, 0xbc, 0x43, 0xe2, 0xd0, 0x8f, 0x78, 0x83, 0xf4, 0xc3, 0x46, 0x7f, 0x13, 0x07, 0xdd, 0x0e, 0xde, 0x14, 0xc2, 0x46, 0x37, 0xa6, 0x9c, 0xc2, 0xb5, 0x89, 0xc5, 0x86, 0x50, 0xa6, 0x16, 0xb7, 0x56, 0x3d, 0xea, 0x51, 0x69, 0xd2, 0x10, 0x2b, 0x65, 0x6d, 0xff, 0x9e, 0x01, 0x85, 0x63, 0x1c, 0xe3, 0x90, 0xc1, 0x4d, 0x50, 0x24, 0xfd, 0xb0, 0xe5, 0x92, 0x88, 0x86, 0xd5, 0x4c, 0x3d, 0xb3, 0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, 0x6a, 0x99, 0x77, 0xa3, 0x5a, 0xe6, 0xd7, 0x51, 0x2d, 0xf3, 0xed, 0xfb, 0xda, 0xc2, 0xbb, 0xf7, 0xb5, 0x85, 0x9f, 0xde, 0xd7, 0x16, 0x3e, 0x5b, 0x9f, 0x9a, 0x2d, 0xbc, 0x83, 0x63, 0xe6, 0xb3, 0xc6, 0xf9, 0x1f, 0xd2, 0x81, 0xfc, 0x4b, 0x2a, 0x27, 0x4c, 0xbb, 0x20, 0xff, 0x5e, 0x3e, 0xf8, 0x33, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xa0, 0x05, 0x1a, 0xb0, 0x0e, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Params) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ExtraEIPs) > 0 { dAtA2 := make([]byte, len(m.ExtraEIPs)*10) var j1 int for _, num1 := range m.ExtraEIPs { num := uint64(num1) for num >= 1<<7 { dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j1++ } dAtA2[j1] = uint8(num) j1++ } i -= j1 copy(dAtA[i:], dAtA2[:j1]) i = encodeVarintEvm(dAtA, i, uint64(j1)) i-- dAtA[i] = 0x22 } if m.EnableCall { i-- if m.EnableCall { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } if m.EnableCreate { i-- if m.EnableCreate { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if len(m.EvmDenom) > 0 { i -= len(m.EvmDenom) copy(dAtA[i:], m.EvmDenom) i = encodeVarintEvm(dAtA, i, uint64(len(m.EvmDenom))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ChainConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size := m.CatalystBlock.Size() i -= size if _, err := m.CatalystBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x82 { size := m.EWASMBlock.Size() i -= size if _, err := m.EWASMBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x7a { size := m.YoloV3Block.Size() i -= size if _, err := m.YoloV3Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x72 { size := m.BerlinBlock.Size() i -= size if _, err := m.BerlinBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x6a { size := m.MuirGlacierBlock.Size() i -= size if _, err := m.MuirGlacierBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 { size := m.IstanbulBlock.Size() i -= size if _, err := m.IstanbulBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a { size := m.PetersburgBlock.Size() i -= size if _, err := m.PetersburgBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 { size := m.ConstantinopleBlock.Size() i -= size if _, err := m.ConstantinopleBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a { size := m.ByzantiumBlock.Size() i -= size if _, err := m.ByzantiumBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 { size := m.EIP158Block.Size() i -= size if _, err := m.EIP158Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a { size := m.EIP155Block.Size() i -= size if _, err := m.EIP155Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 if len(m.EIP150Hash) > 0 { i -= len(m.EIP150Hash) copy(dAtA[i:], m.EIP150Hash) i = encodeVarintEvm(dAtA, i, uint64(len(m.EIP150Hash))) i-- dAtA[i] = 0x2a } { size := m.EIP150Block.Size() i -= size if _, err := m.EIP150Block.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 if m.DAOForkSupport { i-- if m.DAOForkSupport { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } { size := m.DAOForkBlock.Size() i -= size if _, err := m.DAOForkBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 { size := m.HomesteadBlock.Size() i -= size if _, err := m.HomesteadBlock.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *State) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *State) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Value) > 0 { i -= len(m.Value) copy(dAtA[i:], m.Value) i = encodeVarintEvm(dAtA, i, uint64(len(m.Value))) i-- dAtA[i] = 0x12 } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) i = encodeVarintEvm(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *TransactionLogs) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TransactionLogs) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TransactionLogs) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Logs) > 0 { for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Logs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) i = encodeVarintEvm(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Log) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Log) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Removed { i-- if m.Removed { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x48 } if m.Index != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.Index)) i-- dAtA[i] = 0x40 } if len(m.BlockHash) > 0 { i -= len(m.BlockHash) copy(dAtA[i:], m.BlockHash) i = encodeVarintEvm(dAtA, i, uint64(len(m.BlockHash))) i-- dAtA[i] = 0x3a } if m.TxIndex != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.TxIndex)) i-- dAtA[i] = 0x30 } if len(m.TxHash) > 0 { i -= len(m.TxHash) copy(dAtA[i:], m.TxHash) i = encodeVarintEvm(dAtA, i, uint64(len(m.TxHash))) i-- dAtA[i] = 0x2a } if m.BlockNumber != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.BlockNumber)) i-- dAtA[i] = 0x20 } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) i = encodeVarintEvm(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x1a } if len(m.Topics) > 0 { for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Topics[iNdEx]) copy(dAtA[i:], m.Topics[iNdEx]) i = encodeVarintEvm(dAtA, i, uint64(len(m.Topics[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) i = encodeVarintEvm(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *TxReceipt) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TxReceipt) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TxReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.BlockHash) > 0 { i -= len(m.BlockHash) copy(dAtA[i:], m.BlockHash) i = encodeVarintEvm(dAtA, i, uint64(len(m.BlockHash))) i-- dAtA[i] = 0x3a } if m.BlockHeight != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.BlockHeight)) i-- dAtA[i] = 0x30 } if m.Index != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.Index)) i-- dAtA[i] = 0x28 } if m.Result != nil { { size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Data != nil { { size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if len(m.From) > 0 { i -= len(m.From) copy(dAtA[i:], m.From) i = encodeVarintEvm(dAtA, i, uint64(len(m.From))) i-- dAtA[i] = 0x12 } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) i = encodeVarintEvm(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *TxResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TxResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.GasUsed != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.GasUsed)) i-- dAtA[i] = 0x30 } if m.Reverted { i-- if m.Reverted { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x28 } if len(m.Ret) > 0 { i -= len(m.Ret) copy(dAtA[i:], m.Ret) i = encodeVarintEvm(dAtA, i, uint64(len(m.Ret))) i-- dAtA[i] = 0x22 } { size, err := m.TxLogs.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.Bloom) > 0 { i -= len(m.Bloom) copy(dAtA[i:], m.Bloom) i = encodeVarintEvm(dAtA, i, uint64(len(m.Bloom))) i-- dAtA[i] = 0x12 } if len(m.ContractAddress) > 0 { i -= len(m.ContractAddress) copy(dAtA[i:], m.ContractAddress) i = encodeVarintEvm(dAtA, i, uint64(len(m.ContractAddress))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *TxData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TxData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TxData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.S) > 0 { i -= len(m.S) copy(dAtA[i:], m.S) i = encodeVarintEvm(dAtA, i, uint64(len(m.S))) i-- dAtA[i] = 0x5a } if len(m.R) > 0 { i -= len(m.R) copy(dAtA[i:], m.R) i = encodeVarintEvm(dAtA, i, uint64(len(m.R))) i-- dAtA[i] = 0x52 } if len(m.V) > 0 { i -= len(m.V) copy(dAtA[i:], m.V) i = encodeVarintEvm(dAtA, i, uint64(len(m.V))) i-- dAtA[i] = 0x4a } if len(m.Accesses) > 0 { for iNdEx := len(m.Accesses) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Accesses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintEvm(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } } if len(m.Input) > 0 { i -= len(m.Input) copy(dAtA[i:], m.Input) i = encodeVarintEvm(dAtA, i, uint64(len(m.Input))) i-- dAtA[i] = 0x3a } if len(m.Amount) > 0 { i -= len(m.Amount) copy(dAtA[i:], m.Amount) i = encodeVarintEvm(dAtA, i, uint64(len(m.Amount))) i-- dAtA[i] = 0x32 } if len(m.To) > 0 { i -= len(m.To) copy(dAtA[i:], m.To) i = encodeVarintEvm(dAtA, i, uint64(len(m.To))) i-- dAtA[i] = 0x2a } if m.GasLimit != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.GasLimit)) i-- dAtA[i] = 0x20 } if len(m.GasPrice) > 0 { i -= len(m.GasPrice) copy(dAtA[i:], m.GasPrice) i = encodeVarintEvm(dAtA, i, uint64(len(m.GasPrice))) i-- dAtA[i] = 0x1a } if m.Nonce != 0 { i = encodeVarintEvm(dAtA, i, uint64(m.Nonce)) i-- dAtA[i] = 0x10 } if len(m.ChainID) > 0 { i -= len(m.ChainID) copy(dAtA[i:], m.ChainID) i = encodeVarintEvm(dAtA, i, uint64(len(m.ChainID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *BytesList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *BytesList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *BytesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Bytes) > 0 { for iNdEx := len(m.Bytes) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Bytes[iNdEx]) copy(dAtA[i:], m.Bytes[iNdEx]) i = encodeVarintEvm(dAtA, i, uint64(len(m.Bytes[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *AccessTuple) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AccessTuple) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AccessTuple) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.StorageKeys) > 0 { for iNdEx := len(m.StorageKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.StorageKeys[iNdEx]) copy(dAtA[i:], m.StorageKeys[iNdEx]) i = encodeVarintEvm(dAtA, i, uint64(len(m.StorageKeys[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) i = encodeVarintEvm(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintEvm(dAtA []byte, offset int, v uint64) int { offset -= sovEvm(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *Params) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.EvmDenom) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.EnableCreate { n += 2 } if m.EnableCall { n += 2 } if len(m.ExtraEIPs) > 0 { l = 0 for _, e := range m.ExtraEIPs { l += sovEvm(uint64(e)) } n += 1 + sovEvm(uint64(l)) + l } return n } func (m *ChainConfig) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.HomesteadBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.DAOForkBlock.Size() n += 1 + l + sovEvm(uint64(l)) if m.DAOForkSupport { n += 2 } l = m.EIP150Block.Size() n += 1 + l + sovEvm(uint64(l)) l = len(m.EIP150Hash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = m.EIP155Block.Size() n += 1 + l + sovEvm(uint64(l)) l = m.EIP158Block.Size() n += 1 + l + sovEvm(uint64(l)) l = m.ByzantiumBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.ConstantinopleBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.PetersburgBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.IstanbulBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.MuirGlacierBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.BerlinBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.YoloV3Block.Size() n += 1 + l + sovEvm(uint64(l)) l = m.EWASMBlock.Size() n += 1 + l + sovEvm(uint64(l)) l = m.CatalystBlock.Size() n += 2 + l + sovEvm(uint64(l)) return n } func (m *State) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Key) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.Value) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } return n } func (m *TransactionLogs) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Hash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if len(m.Logs) > 0 { for _, e := range m.Logs { l = e.Size() n += 1 + l + sovEvm(uint64(l)) } } return n } func (m *Log) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Address) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if len(m.Topics) > 0 { for _, s := range m.Topics { l = len(s) n += 1 + l + sovEvm(uint64(l)) } } l = len(m.Data) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.BlockNumber != 0 { n += 1 + sovEvm(uint64(m.BlockNumber)) } l = len(m.TxHash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.TxIndex != 0 { n += 1 + sovEvm(uint64(m.TxIndex)) } l = len(m.BlockHash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.Index != 0 { n += 1 + sovEvm(uint64(m.Index)) } if m.Removed { n += 2 } return n } func (m *TxReceipt) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Hash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.From) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.Data != nil { l = m.Data.Size() n += 1 + l + sovEvm(uint64(l)) } if m.Result != nil { l = m.Result.Size() n += 1 + l + sovEvm(uint64(l)) } if m.Index != 0 { n += 1 + sovEvm(uint64(m.Index)) } if m.BlockHeight != 0 { n += 1 + sovEvm(uint64(m.BlockHeight)) } l = len(m.BlockHash) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } return n } func (m *TxResult) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ContractAddress) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.Bloom) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = m.TxLogs.Size() n += 1 + l + sovEvm(uint64(l)) l = len(m.Ret) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.Reverted { n += 2 } if m.GasUsed != 0 { n += 1 + sovEvm(uint64(m.GasUsed)) } return n } func (m *TxData) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ChainID) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.Nonce != 0 { n += 1 + sovEvm(uint64(m.Nonce)) } l = len(m.GasPrice) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if m.GasLimit != 0 { n += 1 + sovEvm(uint64(m.GasLimit)) } l = len(m.To) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.Amount) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.Input) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if len(m.Accesses) > 0 { for _, e := range m.Accesses { l = e.Size() n += 1 + l + sovEvm(uint64(l)) } } l = len(m.V) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.R) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } l = len(m.S) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } return n } func (m *BytesList) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Bytes) > 0 { for _, b := range m.Bytes { l = len(b) n += 1 + l + sovEvm(uint64(l)) } } return n } func (m *AccessTuple) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Address) if l > 0 { n += 1 + l + sovEvm(uint64(l)) } if len(m.StorageKeys) > 0 { for _, s := range m.StorageKeys { l = len(s) n += 1 + l + sovEvm(uint64(l)) } } return n } func sovEvm(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozEvm(x uint64) (n int) { return sovEvm(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Params: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EvmDenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.EvmDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EnableCreate", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.EnableCreate = bool(v != 0) case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EnableCall", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.EnableCall = bool(v != 0) case 4: if wireType == 0 { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int64(b&0x7F) << shift if b < 0x80 { break } } m.ExtraEIPs = append(m.ExtraEIPs, v) } else if wireType == 2 { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ packedLen |= int(b&0x7F) << shift if b < 0x80 { break } } if packedLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + packedLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } } elementCount = count if elementCount != 0 && len(m.ExtraEIPs) == 0 { m.ExtraEIPs = make([]int64, 0, elementCount) } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int64(b&0x7F) << shift if b < 0x80 { break } } m.ExtraEIPs = append(m.ExtraEIPs, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field ExtraEIPs", wireType) } default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ChainConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ChainConfig: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ChainConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field HomesteadBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.HomesteadBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DAOForkBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.DAOForkBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field DAOForkSupport", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.DAOForkSupport = bool(v != 0) case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EIP150Block", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.EIP150Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EIP150Hash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.EIP150Hash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EIP155Block", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.EIP155Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EIP158Block", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.EIP158Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ByzantiumBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.ByzantiumBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ConstantinopleBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.ConstantinopleBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PetersburgBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.PetersburgBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IstanbulBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.IstanbulBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MuirGlacierBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.MuirGlacierBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BerlinBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.BerlinBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field YoloV3Block", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.YoloV3Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 15: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EWASMBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.EWASMBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 16: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CatalystBlock", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.CatalystBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *State) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: State: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: State: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Value = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TransactionLogs) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TransactionLogs: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TransactionLogs: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Hash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Logs = append(m.Logs, &Log{}) if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Log) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Log: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Log: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) if m.Data == nil { m.Data = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) } m.BlockNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.BlockNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.TxHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TxIndex", wireType) } m.TxIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.TxIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.BlockHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) } m.Index = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Removed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TxReceipt) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TxReceipt: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TxReceipt: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Hash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if m.Data == nil { m.Data = &TxData{} } if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if m.Result == nil { m.Result = &TxResult{} } if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) } m.Index = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } m.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BlockHash", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.BlockHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TxResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TxResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TxResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.ContractAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Bloom", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Bloom = append(m.Bloom[:0], dAtA[iNdEx:postIndex]...) if m.Bloom == nil { m.Bloom = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TxLogs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.TxLogs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ret", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Ret = append(m.Ret[:0], dAtA[iNdEx:postIndex]...) if m.Ret == nil { m.Ret = []byte{} } iNdEx = postIndex case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Reverted", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Reverted = bool(v != 0) case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) } m.GasUsed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.GasUsed |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TxData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: TxData: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TxData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.ChainID = append(m.ChainID[:0], dAtA[iNdEx:postIndex]...) if m.ChainID == nil { m.ChainID = []byte{} } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Nonce |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.GasPrice = append(m.GasPrice[:0], dAtA[iNdEx:postIndex]...) if m.GasPrice == nil { m.GasPrice = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) } m.GasLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.GasLimit |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.To = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Amount = append(m.Amount[:0], dAtA[iNdEx:postIndex]...) if m.Amount == nil { m.Amount = []byte{} } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...) if m.Input == nil { m.Input = []byte{} } iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Accesses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Accesses = append(m.Accesses, AccessTuple{}) if err := m.Accesses[len(m.Accesses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field V", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.V = append(m.V[:0], dAtA[iNdEx:postIndex]...) if m.V == nil { m.V = []byte{} } iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field R", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.R = append(m.R[:0], dAtA[iNdEx:postIndex]...) if m.R == nil { m.R = []byte{} } iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field S", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.S = append(m.S[:0], dAtA[iNdEx:postIndex]...) if m.S == nil { m.S = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *BytesList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: BytesList: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: BytesList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Bytes = append(m.Bytes, make([]byte, postIndex-iNdEx)) copy(m.Bytes[len(m.Bytes)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AccessTuple) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AccessTuple: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AccessTuple: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StorageKeys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvm } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthEvm } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEvm } if postIndex > l { return io.ErrUnexpectedEOF } m.StorageKeys = append(m.StorageKeys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvm(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) < 0 { return ErrInvalidLengthEvm } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipEvm(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowEvm } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowEvm } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowEvm } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthEvm } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupEvm } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthEvm } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthEvm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvm = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvm = fmt.Errorf("proto: unexpected end of group") )