evm package¶
Subpackages¶
- evm.chains package
- evm.consensus package
- evm.db package
- evm.logic package
- Submodules
- evm.logic.arithmetic module
- evm.logic.block module
- evm.logic.call module
- evm.logic.comparison module
- evm.logic.context module
- evm.logic.duplication module
- evm.logic.flow module
- evm.logic.invalid module
- evm.logic.logging module
- evm.logic.memory module
- evm.logic.sha3 module
- evm.logic.stack module
- evm.logic.storage module
- evm.logic.swap module
- evm.logic.system module
- Module contents
- evm.p2p package
- Submodules
- evm.p2p.auth module
- evm.p2p.constants module
- evm.p2p.discovery module
- evm.p2p.ecies module
- evm.p2p.exceptions module
- evm.p2p.kademlia module
- evm.p2p.les module
- evm.p2p.lightchain module
- evm.p2p.p2p_proto module
- evm.p2p.peer module
- evm.p2p.protocol module
- evm.p2p.test_auth module
- evm.p2p.test_discovery module
- evm.p2p.test_ecies module
- evm.p2p.test_kademlia module
- evm.p2p.test_lightchain module
- evm.p2p.test_peer module
- evm.p2p.utils module
- Module contents
- evm.precompiles package
- evm.rlp package
- evm.rpc package
- evm.utils package
- Submodules
- evm.utils.address module
- evm.utils.bn128 module
- evm.utils.chain module
- evm.utils.db module
- evm.utils.empty module
- evm.utils.fixture_tests module
- evm.utils.headers module
- evm.utils.hexadecimal module
- evm.utils.keccak module
- evm.utils.logging module
- evm.utils.module_loading module
- evm.utils.numeric module
- evm.utils.padding module
- evm.utils.rlp module
- evm.utils.state module
- evm.utils.transactions module
- Module contents
- evm.vm package
- Subpackages
- Submodules
- evm.vm.base module
- evm.vm.code_stream module
- evm.vm.computation module
- evm.vm.gas_meter module
- evm.vm.memory module
- evm.vm.message module
- evm.vm.stack module
- Module contents
Submodules¶
evm.constants module¶
evm.exceptions module¶
-
exception
evm.exceptions.BlockNotFound¶ Bases:
evm.exceptions.PyEVMErrorThe block with the given number/hash does not exist.
-
exception
evm.exceptions.CanonicalHeadNotFound¶ Bases:
evm.exceptions.PyEVMErrorThe chain has no canonical head.
-
exception
evm.exceptions.ContractCreationCollision¶ Bases:
evm.exceptions.VMErrorError signaling that there was an address collision during contract creation.
-
exception
evm.exceptions.FullStack¶ Bases:
evm.exceptions.VMErrorError signaling that the stack is full.
-
exception
evm.exceptions.Halt¶ Bases:
evm.exceptions.PyEVMErrorRaised by opcode function to halt vm execution.
-
exception
evm.exceptions.InsufficientFunds¶ Bases:
evm.exceptions.VMErrorError signaling that an account has insufficient funds to transfer the requested value.
-
exception
evm.exceptions.InsufficientStack¶ Bases:
evm.exceptions.VMErrorError signaling that the stack is empty.
-
exception
evm.exceptions.InvalidInstruction¶ Bases:
evm.exceptions.VMErrorError signaling that an opcode is invalid.
-
exception
evm.exceptions.InvalidJumpDestination¶ Bases:
evm.exceptions.VMErrorError signaling that the jump destination for a JUMPDEST operation is invalid.
-
exception
evm.exceptions.OutOfBoundsRead¶ Bases:
evm.exceptions.VMErrorError raised to indicate an attempt was made to read data beyond the boundaries of the buffer (such as with RETURNDATACOPY)
-
exception
evm.exceptions.OutOfGas¶ Bases:
evm.exceptions.VMErrorError signaling that VM execution has run out of gas.
-
exception
evm.exceptions.ParentNotFound¶ Bases:
evm.exceptions.PyEVMErrorThe parent of a given block does not exist.
-
exception
evm.exceptions.Revert¶ Bases:
evm.exceptions.VMErrorError used by the REVERT opcode
-
burns_gas= False¶
-
zeros_return_data= False¶
-
-
exception
evm.exceptions.StackDepthLimit¶ Bases:
evm.exceptions.VMErrorError signaling that the call stack has exceeded it’s maximum allowed depth.
-
exception
evm.exceptions.VMError¶ Bases:
evm.exceptions.PyEVMErrorClass of errors which can be raised during VM execution.
-
burns_gas= True¶
-
zeros_return_data= True¶
-
-
exception
evm.exceptions.VMNotFound¶ Bases:
evm.exceptions.PyEVMErrorNo VM available for the provided block number.
-
exception
evm.exceptions.ValidationError¶ Bases:
evm.exceptions.PyEVMErrorError to signal something does not pass a validation check.
-
exception
evm.exceptions.WriteProtection¶ Bases:
evm.exceptions.VMErrorError raised if an attempt to modify the state database is made while operating inside of a STATICCALL context.
evm.lightchain_shell module¶
evm.mnemonics module¶
evm.opcode module¶
evm.opcode_values module¶
evm.validation module¶
-
evm.validation.validate_block_number(block_number, title='Block Number')¶
-
evm.validation.validate_canonical_address(value, title='Value')¶
-
evm.validation.validate_gt(value, minimum, title='Value')¶
-
evm.validation.validate_gte(value, minimum, title='Value')¶
-
evm.validation.validate_header_params_for_configuration(header_params)¶
-
evm.validation.validate_is_boolean(value, title='Value')¶
-
evm.validation.validate_is_bytes(value, title='Value')¶
-
evm.validation.validate_is_integer(value, title='Value')¶
-
evm.validation.validate_length(value, length, title='Value')¶
-
evm.validation.validate_length_lte(value, maximum_length, title='Value')¶
-
evm.validation.validate_lt(value, maximum, title='Value')¶
-
evm.validation.validate_lte(value, maximum, title='Value')¶
-
evm.validation.validate_multiple_of(value, multiple_of, title='Value')¶
-
evm.validation.validate_stack_item(value)¶
-
evm.validation.validate_uint256(value, title='Value')¶
-
evm.validation.validate_unique(values, title='Value')¶
-
evm.validation.validate_vm_block_numbers(vm_block_numbers)¶
-
evm.validation.validate_word(value, title='Value')¶