types

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2021 Evmos Foundation This file is part of Evmos' Ethermint library.

The Ethermint library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Ethermint library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Ethermint library. If not, see https://github.com/Helios-Chain-Labs/ethermint/blob/main/LICENSE

Copyright 2021 Evmos Foundation This file is part of Evmos' Ethermint library.

The Ethermint library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Ethermint library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Ethermint library. If not, see https://github.com/Helios-Chain-Labs/ethermint/blob/main/LICENSE

Copyright 2021 Evmos Foundation This file is part of Evmos' Ethermint library.

The Ethermint library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Ethermint library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Ethermint library. If not, see https://github.com/Helios-Chain-Labs/ethermint/blob/main/LICENSE

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthChainConfigV0        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChainConfigV0          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChainConfigV0 = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamStoreKeyEVMDenom            = []byte("EVMDenom")
	ParamStoreKeyEnableCreate        = []byte("EnableCreate")
	ParamStoreKeyEnableCall          = []byte("EnableCall")
	ParamStoreKeyExtraEIPs           = []byte("EnableExtraEIPs")
	ParamStoreKeyChainConfig         = []byte("ChainConfig")
	ParamStoreKeyAllowUnprotectedTxs = []byte("AllowUnprotectedTxs")
)

Parameter keys

View Source
var (
	ErrInvalidLengthParamsV0        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParamsV0          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParamsV0 = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTraceConfigV0        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTraceConfigV0          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTraceConfigV0 = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ParamKeyTable deprecated

func ParamKeyTable() paramtypes.KeyTable

Deprecated: ParamKeyTable returns the parameter key table. Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remain solely for migration purposes and will be removed in a future release.

func ValidateChainConfig

func ValidateChainConfig(i interface{}) error

Types

type V0ChainConfig

type V0ChainConfig struct {
	// homestead_block switch (nil no fork, 0 = already homestead)
	HomesteadBlock *cosmossdk_io_math.Int `` /* 159-byte string literal not displayed */
	// dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork)
	DAOForkBlock *cosmossdk_io_math.Int `` /* 154-byte string literal not displayed */
	// dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork
	DAOForkSupport bool `` /* 130-byte string literal not displayed */
	// eip150_block: EIP150 implements the Gas price changes
	// (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
	EIP150Block *cosmossdk_io_math.Int `` /* 147-byte string literal not displayed */
	// eip150_hash: 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"`
	// eip155_block: EIP155Block HF block
	EIP155Block *cosmossdk_io_math.Int `` /* 147-byte string literal not displayed */
	// eip158_block: EIP158 HF block
	EIP158Block *cosmossdk_io_math.Int `` /* 147-byte string literal not displayed */
	// byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium)
	ByzantiumBlock *cosmossdk_io_math.Int `` /* 159-byte string literal not displayed */
	// constantinople_block: Constantinople switch block (nil no fork, 0 = already activated)
	ConstantinopleBlock *cosmossdk_io_math.Int `` /* 179-byte string literal not displayed */
	// petersburg_block: Petersburg switch block (nil same as Constantinople)
	PetersburgBlock *cosmossdk_io_math.Int `` /* 164-byte string literal not displayed */
	// istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul)
	IstanbulBlock *cosmossdk_io_math.Int `` /* 156-byte string literal not displayed */
	// muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated)
	MuirGlacierBlock *cosmossdk_io_math.Int `` /* 171-byte string literal not displayed */
	// berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin)
	BerlinBlock *cosmossdk_io_math.Int `` /* 148-byte string literal not displayed */
	// london_block: London switch block (nil = no fork, 0 = already on london)
	LondonBlock *cosmossdk_io_math.Int `` /* 148-byte string literal not displayed */
	// arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated)
	ArrowGlacierBlock *cosmossdk_io_math.Int `` /* 175-byte string literal not displayed */
	// gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated)
	GrayGlacierBlock *cosmossdk_io_math.Int `` /* 171-byte string literal not displayed */
	// merge_netsplit_block: Virtual fork after The Merge to use as a network splitter
	MergeNetsplitBlock *cosmossdk_io_math.Int `` /* 179-byte string literal not displayed */
	// shanghai_block switch block (nil = no fork, 0 = already on shanghai)
	ShanghaiBlock *cosmossdk_io_math.Int `` /* 156-byte string literal not displayed */
	// cancun_block switch block (nil = no fork, 0 = already on cancun)
	CancunBlock *cosmossdk_io_math.Int `` /* 148-byte string literal not displayed */
}

V0ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int values instead of *big.Int.

func (*V0ChainConfig) Descriptor

func (*V0ChainConfig) Descriptor() ([]byte, []int)

func (*V0ChainConfig) GetDAOForkSupport

func (m *V0ChainConfig) GetDAOForkSupport() bool

func (*V0ChainConfig) GetEIP150Hash

func (m *V0ChainConfig) GetEIP150Hash() string

func (*V0ChainConfig) Marshal

func (m *V0ChainConfig) Marshal() (dAtA []byte, err error)

func (*V0ChainConfig) MarshalTo

func (m *V0ChainConfig) MarshalTo(dAtA []byte) (int, error)

func (*V0ChainConfig) MarshalToSizedBuffer

func (m *V0ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*V0ChainConfig) ProtoMessage

func (*V0ChainConfig) ProtoMessage()

func (*V0ChainConfig) Reset

func (m *V0ChainConfig) Reset()

func (*V0ChainConfig) Size

func (m *V0ChainConfig) Size() (n int)

func (*V0ChainConfig) String

func (m *V0ChainConfig) String() string

func (*V0ChainConfig) Unmarshal

func (m *V0ChainConfig) Unmarshal(dAtA []byte) error

func (V0ChainConfig) Validate

func (cc V0ChainConfig) Validate() error

Validate performs a basic validation of the ChainConfig params. The function will return an error if any of the block values is uninitialized (i.e nil) or if the EIP150Hash is an invalid hash.

func (*V0ChainConfig) XXX_DiscardUnknown

func (m *V0ChainConfig) XXX_DiscardUnknown()

func (*V0ChainConfig) XXX_Marshal

func (m *V0ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*V0ChainConfig) XXX_Merge

func (m *V0ChainConfig) XXX_Merge(src proto.Message)

func (*V0ChainConfig) XXX_Size

func (m *V0ChainConfig) XXX_Size() int

func (*V0ChainConfig) XXX_Unmarshal

func (m *V0ChainConfig) XXX_Unmarshal(b []byte) error

type V0Params

type V0Params 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"`
	// chain_config defines the EVM chain configuration parameters
	ChainConfig V0ChainConfig `protobuf:"bytes,5,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config"`
	// allow_unprotected_txs defines if replay-protected (i.e non EIP155
	// signed) transactions can be executed on the state machine.
	AllowUnprotectedTxs bool `protobuf:"varint,6,opt,name=allow_unprotected_txs,json=allowUnprotectedTxs,proto3" json:"allow_unprotected_txs,omitempty"`
}

V0Params defines the EVM module parameters

func (*V0Params) Descriptor

func (*V0Params) Descriptor() ([]byte, []int)

func (*V0Params) GetAllowUnprotectedTxs

func (m *V0Params) GetAllowUnprotectedTxs() bool

func (*V0Params) GetChainConfig

func (m *V0Params) GetChainConfig() V0ChainConfig

func (*V0Params) GetEnableCall

func (m *V0Params) GetEnableCall() bool

func (*V0Params) GetEnableCreate

func (m *V0Params) GetEnableCreate() bool

func (*V0Params) GetEvmDenom

func (m *V0Params) GetEvmDenom() string

func (*V0Params) GetExtraEIPs

func (m *V0Params) GetExtraEIPs() []int64

func (*V0Params) Marshal

func (m *V0Params) Marshal() (dAtA []byte, err error)

func (*V0Params) MarshalTo

func (m *V0Params) MarshalTo(dAtA []byte) (int, error)

func (*V0Params) MarshalToSizedBuffer

func (m *V0Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*V0Params) ParamSetPairs deprecated

func (p *V0Params) ParamSetPairs() paramtypes.ParamSetPairs

Deprecated: ParamSetPairs returns the parameter set pairs. Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remain solely for migration purposes and will be removed in a future release.

func (*V0Params) ProtoMessage

func (*V0Params) ProtoMessage()

func (*V0Params) Reset

func (m *V0Params) Reset()

func (*V0Params) Size

func (m *V0Params) Size() (n int)

func (*V0Params) String

func (m *V0Params) String() string

func (V0Params) ToParams

func (p V0Params) ToParams() currenttypes.Params

func (*V0Params) Unmarshal

func (m *V0Params) Unmarshal(dAtA []byte) error

func (V0Params) Validate

func (p V0Params) Validate() error

Validate performs basic validation on evm parameters.

func (*V0Params) XXX_DiscardUnknown

func (m *V0Params) XXX_DiscardUnknown()

func (*V0Params) XXX_Marshal

func (m *V0Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*V0Params) XXX_Merge

func (m *V0Params) XXX_Merge(src proto.Message)

func (*V0Params) XXX_Size

func (m *V0Params) XXX_Size() int

func (*V0Params) XXX_Unmarshal

func (m *V0Params) XXX_Unmarshal(b []byte) error

type V0TraceConfig

type V0TraceConfig struct {
	// tracer is a custom javascript tracer
	Tracer string `protobuf:"bytes,1,opt,name=tracer,proto3" json:"tracer,omitempty"`
	// timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
	// calls
	Timeout string `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// reexec defines the number of blocks the tracer is willing to go back
	Reexec uint64 `protobuf:"varint,3,opt,name=reexec,proto3" json:"reexec,omitempty"`
	// disable_stack switches stack capture
	DisableStack bool `protobuf:"varint,5,opt,name=disable_stack,json=disableStack,proto3" json:"disableStack"`
	// disable_storage switches storage capture
	DisableStorage bool `protobuf:"varint,6,opt,name=disable_storage,json=disableStorage,proto3" json:"disableStorage"`
	// debug can be used to print output during capture end
	Debug bool `protobuf:"varint,8,opt,name=debug,proto3" json:"debug,omitempty"`
	// limit defines the maximum length of output, but zero means unlimited
	Limit int32 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"`
	// overrides can be used to execute a trace using future fork rules
	Overrides *V0ChainConfig `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"`
	// enable_memory switches memory capture
	EnableMemory bool `protobuf:"varint,11,opt,name=enable_memory,json=enableMemory,proto3" json:"enableMemory"`
	// enable_return_data switches the capture of return data
	EnableReturnData bool `protobuf:"varint,12,opt,name=enable_return_data,json=enableReturnData,proto3" json:"enableReturnData"`
	// tracer_json_config configures the tracer using a JSON string
	TracerJsonConfig string `protobuf:"bytes,13,opt,name=tracer_json_config,json=tracerJsonConfig,proto3" json:"tracerConfig"`
}

V0TraceConfig holds extra parameters to trace functions.

func (*V0TraceConfig) Descriptor

func (*V0TraceConfig) Descriptor() ([]byte, []int)

func (*V0TraceConfig) GetDebug

func (m *V0TraceConfig) GetDebug() bool

func (*V0TraceConfig) GetDisableStack

func (m *V0TraceConfig) GetDisableStack() bool

func (*V0TraceConfig) GetDisableStorage

func (m *V0TraceConfig) GetDisableStorage() bool

func (*V0TraceConfig) GetEnableMemory

func (m *V0TraceConfig) GetEnableMemory() bool

func (*V0TraceConfig) GetEnableReturnData

func (m *V0TraceConfig) GetEnableReturnData() bool

func (*V0TraceConfig) GetLimit

func (m *V0TraceConfig) GetLimit() int32

func (*V0TraceConfig) GetOverrides

func (m *V0TraceConfig) GetOverrides() *V0ChainConfig

func (*V0TraceConfig) GetReexec

func (m *V0TraceConfig) GetReexec() uint64

func (*V0TraceConfig) GetTimeout

func (m *V0TraceConfig) GetTimeout() string

func (*V0TraceConfig) GetTracer

func (m *V0TraceConfig) GetTracer() string

func (*V0TraceConfig) GetTracerJsonConfig

func (m *V0TraceConfig) GetTracerJsonConfig() string

func (*V0TraceConfig) Marshal

func (m *V0TraceConfig) Marshal() (dAtA []byte, err error)

func (*V0TraceConfig) MarshalTo

func (m *V0TraceConfig) MarshalTo(dAtA []byte) (int, error)

func (*V0TraceConfig) MarshalToSizedBuffer

func (m *V0TraceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*V0TraceConfig) ProtoMessage

func (*V0TraceConfig) ProtoMessage()

func (*V0TraceConfig) Reset

func (m *V0TraceConfig) Reset()

func (*V0TraceConfig) Size

func (m *V0TraceConfig) Size() (n int)

func (*V0TraceConfig) String

func (m *V0TraceConfig) String() string

func (*V0TraceConfig) Unmarshal

func (m *V0TraceConfig) Unmarshal(dAtA []byte) error

func (*V0TraceConfig) XXX_DiscardUnknown

func (m *V0TraceConfig) XXX_DiscardUnknown()

func (*V0TraceConfig) XXX_Marshal

func (m *V0TraceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*V0TraceConfig) XXX_Merge

func (m *V0TraceConfig) XXX_Merge(src proto.Message)

func (*V0TraceConfig) XXX_Size

func (m *V0TraceConfig) XXX_Size() int

func (*V0TraceConfig) XXX_Unmarshal

func (m *V0TraceConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL