2018-04-06 14:52:10 +00:00
|
|
|
# Nimbus
|
|
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
|
|
# Licensed under either of
|
2021-03-31 08:21:27 +00:00
|
|
|
# * 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.
|
2018-04-06 14:52:10 +00:00
|
|
|
|
2018-03-13 14:30:38 +00:00
|
|
|
import
|
2021-03-31 08:21:27 +00:00
|
|
|
./vm/nvm_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
|
2018-05-30 16:11:15 +00:00
|
|
|
|
2020-01-17 14:54:28 +00:00
|
|
|
when defined(evmc_enabled):
|
2021-03-31 08:21:27 +00:00
|
|
|
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
|