Skip to content

Commit

Permalink
Temporary Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Apr 18, 2024
1 parent 55ac5a1 commit 7e480a6
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions x/evm/vm/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,6 @@ type PrecompiledContracts map[common.Address]vm.PrecompiledContract

type StatefulPrecompiledContracts map[common.Address]contract.StatefulPrecompiledContract

//type StatefulPrecompiledContract interface {
// vm.PrecompiledContract
// RunStateful(evm EVM, addr common.Address, input []byte, value *big.Int) (ret []byte, err error)
//}

// EVM defines the interface for the Ethereum Virtual Machine used by the EVM module.
//type EVM interface {
// Config() vm.Config
// Context() vm.BlockContext
// TxContext() vm.TxContext
//
// Reset(txCtx vm.TxContext, statedb vm.StateDB)
// Cancel()
// Cancelled() bool //nolint
// Interpreter() *vm.EVMInterpreter
// Call(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error)
// CallCode(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error)
// DelegateCall(caller vm.ContractRef, addr common.Address, input []byte, gas uint64) (ret []byte, leftOverGas uint64, err error)
// StaticCall(caller vm.ContractRef, addr common.Address, input []byte, gas uint64) (ret []byte, leftOverGas uint64, err error)
// Create(caller vm.ContractRef, code []byte, gas uint64, value *big.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error)
// Create2(
// caller vm.ContractRef,
// code []byte,
// gas uint64,
// endowment *big.Int,
// salt *uint256.Int) (
// ret []byte, contractAddr common.Address, leftOverGas uint64, err error,
// )
// ChainConfig() *params.ChainConfig
//
// ActivePrecompiles(rules params.Rules) []common.Address
//}

// Constructor defines the function used to instantiate the EVM on
// each state transition.
type Constructor func(
Expand Down

0 comments on commit 7e480a6

Please sign in to comment.