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
|
|
|
|
2022-09-26 04:56:54 +00:00
|
|
|
import
|
2022-12-02 04:39:12 +00:00
|
|
|
./evm/types as vmt
|
2021-03-31 08:21:27 +00:00
|
|
|
|
|
|
|
export
|
|
|
|
vmt.BaseVMState,
|
|
|
|
vmt.CallKind,
|
|
|
|
vmt.Computation,
|
|
|
|
vmt.Error,
|
|
|
|
vmt.GasMeter,
|
|
|
|
vmt.Message,
|
|
|
|
vmt.MsgFlags,
|
|
|
|
vmt.TracerFlags,
|
2023-08-02 10:17:40 +00:00
|
|
|
vmt.TracerRef,
|
2023-09-24 15:25:41 +00:00
|
|
|
vmt.VMFlag,
|
|
|
|
vmt.BlockContext
|
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
|
2022-12-02 04:39:12 +00:00
|
|
|
./evm/evmc_api as evmc
|
2021-03-31 08:21:27 +00:00
|
|
|
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
|