mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 12:26:02 +00:00
ff6921eb1a
why: the v2 prefix of the file name was used as a visual aid when comparing vm2 against vm sources details: all renamed v2*.nim sources compile locally with the -d:kludge:1 flag set or without (some work with either) only sources not renamed yet: v2state_transactions.nim
59 lines
1.3 KiB
Nim
59 lines
1.3 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.
|
|
|
|
when defined(evmc_enabled) or not defined(vm2_enabled):
|
|
import
|
|
./vm/types as vmt
|
|
else:
|
|
import
|
|
./vm2/types as vmt
|
|
|
|
export
|
|
vmt.AccessLogs,
|
|
vmt.BaseVMState,
|
|
vmt.CallKind,
|
|
vmt.Computation,
|
|
vmt.Error,
|
|
vmt.GasMeter,
|
|
vmt.Message,
|
|
vmt.MsgFlags,
|
|
vmt.TracerFlags,
|
|
vmt.TransactionTracer,
|
|
vmt.VMFlag
|
|
|
|
when defined(evmc_enabled):
|
|
import
|
|
./vm/evmc_api as evmc
|
|
export
|
|
evmc.HostContext,
|
|
evmc.accountExists,
|
|
evmc.call,
|
|
evmc.copyCode,
|
|
evmc.emitLog,
|
|
evmc.getBalance,
|
|
evmc.getBlockHash,
|
|
evmc.getCodeHash,
|
|
evmc.getCodeSize,
|
|
evmc.getStorage,
|
|
evmc.getTxContext,
|
|
evmc.init,
|
|
evmc.nim_create_nimbus_vm,
|
|
evmc.nim_host_create_context,
|
|
evmc.nim_host_destroy_context,
|
|
evmc.nim_host_get_interface,
|
|
evmc.nimbus_host_interface,
|
|
evmc.nimbus_message,
|
|
evmc.nimbus_result,
|
|
evmc.nimbus_tx_context,
|
|
evmc.selfDestruct,
|
|
evmc.setStorage
|
|
|
|
# End
|