Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::EVMC Class Reference

The wrapper implementing the VMFace interface with a EVMC VM as a backend. More...

#include <EVMC.h>

Inheritance diagram for dev::eth::EVMC:
dev::eth::EVM dev::eth::VMFace

Public Member Functions

 EVMC (evmc_instance *_instance)
 
owning_bytes_ref exec (u256 &io_gas, ExtVMFace &_ext, OnOpFunc const &_onOp) final
 VM implementation. More...
 
- Public Member Functions inherited from dev::eth::EVM
 EVM (evmc_instance *_instance) noexcept
 
 ~EVM ()
 
 EVM (EVM const &)=delete
 
EVMoperator= (EVM)=delete
 
char const * name () const noexcept
 
char const * version () const noexcept
 
Result execute (ExtVMFace &_ext, int64_t gas)
 Handy wrapper for evmc_execute(). More...
 
- Public Member Functions inherited from dev::eth::VMFace
 VMFace ()=default
 
virtual ~VMFace ()=default
 
 VMFace (VMFace const &)=delete
 
VMFaceoperator= (VMFace const &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from dev::eth::EVM
static evmc_revision toRevision (EVMSchedule const &_schedule)
 Translate the EVMSchedule to EVMC revision. More...
 

Detailed Description

The wrapper implementing the VMFace interface with a EVMC VM as a backend.

Definition at line 86 of file EVMC.h.

Constructor & Destructor Documentation

◆ EVMC()

dev::eth::EVMC::EVMC ( evmc_instance *  _instance)
inlineexplicit

Definition at line 89 of file EVMC.h.

Member Function Documentation

◆ exec()

owning_bytes_ref dev::eth::EVMC::exec ( u256 io_gas,
ExtVMFace _ext,
OnOpFunc const &  _onOp 
)
finalvirtual

VM implementation.

Implements dev::eth::VMFace.

Definition at line 52 of file EVMC.cpp.


The documentation for this class was generated from the following files: