mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 12:26:02 +00:00
775231eef1
The rationale in EIP-6[1] for changing names to `selfDestruct` applies to code as much as it does to specs. Also, Ethereum uses the new names consistently, so it's useful for our code to match the terms used in later EIP specs and testsuite entries. This change is straightforward, and is a prerequisite for patches to come that do things with the `selfDestruct` fields. [1] https://eips.ethereum.org/EIPS/eip-6 Hudson Jameson, "EIP-6: Renaming SUICIDE opcode," Ethereum Improvement Proposals, no. 6, November 2015. Signed-off-by: Jamie Lokier <jamie@shareable.org>
72 lines
1.6 KiB
Nim
72 lines
1.6 KiB
Nim
# Nimbus
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
# http://opensource.org/licenses/MIT)
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
# according to those terms.
|
|
|
|
|
|
# The VM computation module suffers from a circular include/import dependency.
|
|
# After fixing this wrapper should be re-factored.
|
|
when defined(evmc_enabled) or not defined(vm2_enabled):
|
|
import
|
|
./vm/computation as vmc
|
|
export
|
|
vmc.execCallOrCreate,
|
|
vmc.executeOpcodes
|
|
|
|
else:
|
|
import
|
|
./vm2/computation as vmc,
|
|
./vm2/interpreter_dispatch as vmi
|
|
export
|
|
vmi.execCallOrCreate,
|
|
vmi.executeOpcodes
|
|
|
|
export
|
|
vmc.accountExists,
|
|
vmc.addLogEntry,
|
|
vmc.chainTo,
|
|
vmc.commit,
|
|
vmc.dispose,
|
|
vmc.execSelfDestruct,
|
|
vmc.fork,
|
|
vmc.getBalance,
|
|
vmc.getBlockHash,
|
|
vmc.getBlockNumber,
|
|
vmc.getChainId,
|
|
vmc.getCode,
|
|
vmc.getCodeHash,
|
|
vmc.getCodeSize,
|
|
vmc.getCoinbase,
|
|
vmc.getDifficulty,
|
|
vmc.getGasLimit,
|
|
vmc.getGasPrice,
|
|
vmc.getGasRefund,
|
|
vmc.getOrigin,
|
|
vmc.getStorage,
|
|
vmc.getTimestamp,
|
|
vmc.isError,
|
|
vmc.isOriginComputation,
|
|
vmc.isSuccess,
|
|
vmc.isSelfDestructed,
|
|
vmc.merge,
|
|
vmc.newComputation,
|
|
vmc.prepareTracer,
|
|
vmc.refundSelfDestruct,
|
|
vmc.rollback,
|
|
vmc.selfDestruct,
|
|
vmc.setError,
|
|
vmc.shouldBurnGas,
|
|
vmc.snapshot,
|
|
vmc.traceError,
|
|
vmc.traceOpCodeEnded,
|
|
vmc.traceOpCodeStarted,
|
|
vmc.tracingEnabled,
|
|
vmc.writeContract
|
|
|
|
# End
|