mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Updated docs and evmc.h header file for evmone 0.8.0 release
This commit is contained in:
parent
6b8c32b859
commit
8bec0c8a6b
@ -112,7 +112,7 @@ starting from the current directory. The required file is called ``libevmone.so`
|
|||||||
``evmone.dll`` on Windows systems and ``libevmone.dylib`` on macOS. If it is not found, tests that
|
``evmone.dll`` on Windows systems and ``libevmone.dylib`` on macOS. If it is not found, tests that
|
||||||
use it are skipped. These tests are ``libsolididty/semanticTests``, ``libsolidity/GasCosts``,
|
use it are skipped. These tests are ``libsolididty/semanticTests``, ``libsolidity/GasCosts``,
|
||||||
``libsolidity/SolidityEndToEndTest``, part of the soltest suite. To run all tests, download the library from
|
``libsolidity/SolidityEndToEndTest``, part of the soltest suite. To run all tests, download the library from
|
||||||
`GitHub <https://github.com/ethereum/evmone/releases/tag/v0.7.0>`_
|
`GitHub <https://github.com/ethereum/evmone/releases/tag/v0.8.0>`_
|
||||||
and place it in the project root path or inside the ``deps`` folder.
|
and place it in the project root path or inside the ``deps`` folder.
|
||||||
|
|
||||||
If the ``libz3`` library is not installed on your system, you should disable the
|
If the ``libz3`` library is not installed on your system, you should disable the
|
||||||
|
@ -3,7 +3,7 @@ $ErrorActionPreference = "Stop"
|
|||||||
# Needed for Invoke-WebRequest to work via CI.
|
# Needed for Invoke-WebRequest to work via CI.
|
||||||
$progressPreference = "silentlyContinue"
|
$progressPreference = "silentlyContinue"
|
||||||
|
|
||||||
Invoke-WebRequest -URI "https://github.com/ethereum/evmone/releases/download/v0.7.0/evmone-0.7.0-windows-amd64.zip" -OutFile "evmone.zip"
|
Invoke-WebRequest -URI "https://github.com/ethereum/evmone/releases/download/v0.8.0/evmone-0.8.0-windows-amd64.zip" -OutFile "evmone.zip"
|
||||||
tar -xf evmone.zip "bin/evmone.dll"
|
tar -xf evmone.zip "bin/evmone.dll"
|
||||||
mkdir deps
|
mkdir deps
|
||||||
mv bin/evmone.dll deps
|
mv bin/evmone.dll deps
|
||||||
|
@ -31,19 +31,19 @@ namespace solidity::test
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static constexpr auto evmoneFilename = "evmone.dll";
|
static constexpr auto evmoneFilename = "evmone.dll";
|
||||||
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.7.0/evmone-0.7.0-windows-amd64.zip";
|
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.8.0/evmone-0.8.0-windows-amd64.zip";
|
||||||
static constexpr auto heraFilename = "hera.dll";
|
static constexpr auto heraFilename = "hera.dll";
|
||||||
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/archive/v0.3.2-evmc8.tar.gz";
|
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/archive/v0.3.2-evmc8.tar.gz";
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
static constexpr auto evmoneFilename = "libevmone.dylib";
|
static constexpr auto evmoneFilename = "libevmone.dylib";
|
||||||
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.7.0/evmone-0.7.0-darwin-x86_64.tar.gz";
|
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.8.0/evmone-0.8.0-darwin-x86_64.tar.gz";
|
||||||
static constexpr auto heraFilename = "libhera.dylib";
|
static constexpr auto heraFilename = "libhera.dylib";
|
||||||
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/releases/download/v0.3.2-evmc8/hera-0.3.2+commit.dc886eb7-darwin-x86_64.tar.gz";
|
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/releases/download/v0.5.0/hera-0.5.0-darwin-x86_64.tar.gz";
|
||||||
#else
|
#else
|
||||||
static constexpr auto evmoneFilename = "libevmone.so";
|
static constexpr auto evmoneFilename = "libevmone.so";
|
||||||
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.7.0/evmone-0.7.0-linux-x86_64.tar.gz";
|
static constexpr auto evmoneDownloadLink = "https://github.com/ethereum/evmone/releases/download/v0.8.0/evmone-0.8.0-linux-x86_64.tar.gz";
|
||||||
static constexpr auto heraFilename = "libhera.so";
|
static constexpr auto heraFilename = "libhera.so";
|
||||||
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/releases/download/v0.3.2-evmc8/hera-0.3.2+commit.dc886eb7-linux-x86_64.tar.gz";
|
static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/releases/download/v0.5.0/hera-0.5.0-linux-x86_64.tar.gz";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct ConfigException : public util::Exception {};
|
struct ConfigException : public util::Exception {};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# EVMC
|
# EVMC
|
||||||
|
|
||||||
This is an import of [EVMC](https://github.com/ethereum/evmc) version [8.0.0](https://github.com/ethereum/evmc/releases/tag/v8.0.0).
|
This is an import of [EVMC](https://github.com/ethereum/evmc) version [9.0.0](https://github.com/ethereum/evmc/releases/tag/v9.0.0).
|
||||||
|
|
||||||
Important: The `MockedAccount.storage` is changed to a map from unordered_map as ordering is important for fuzzing.
|
Important: The `MockedAccount.storage` is changed to a map from unordered_map as ordering is important for fuzzing.
|
||||||
|
@ -44,7 +44,7 @@ enum
|
|||||||
*
|
*
|
||||||
* @see @ref versioning
|
* @see @ref versioning
|
||||||
*/
|
*/
|
||||||
EVMC_ABI_VERSION = 8
|
EVMC_ABI_VERSION = 9
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -154,6 +154,7 @@ struct evmc_tx_context
|
|||||||
int64_t block_gas_limit; /**< The block gas limit. */
|
int64_t block_gas_limit; /**< The block gas limit. */
|
||||||
evmc_uint256be block_difficulty; /**< The block difficulty. */
|
evmc_uint256be block_difficulty; /**< The block difficulty. */
|
||||||
evmc_uint256be chain_id; /**< The blockchain's ChainID. */
|
evmc_uint256be chain_id; /**< The blockchain's ChainID. */
|
||||||
|
evmc_uint256be block_base_fee; /**< The block base fee per gas (EIP-1559, EIP-3198). */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -813,19 +814,40 @@ enum evmc_revision
|
|||||||
/**
|
/**
|
||||||
* The Istanbul revision.
|
* The Istanbul revision.
|
||||||
*
|
*
|
||||||
* The spec draft: https://eips.ethereum.org/EIPS/eip-1679.
|
* https://eips.ethereum.org/EIPS/eip-1679
|
||||||
*/
|
*/
|
||||||
EVMC_ISTANBUL = 7,
|
EVMC_ISTANBUL = 7,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Berlin revision.
|
* The Berlin revision.
|
||||||
*
|
*
|
||||||
* The spec draft: https://eips.ethereum.org/EIPS/eip-2070.
|
* https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/berlin.md
|
||||||
*/
|
*/
|
||||||
EVMC_BERLIN = 8,
|
EVMC_BERLIN = 8,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The London revision.
|
||||||
|
*
|
||||||
|
* https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md
|
||||||
|
*/
|
||||||
|
EVMC_LONDON = 9,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Shanghai revision.
|
||||||
|
*
|
||||||
|
* https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md
|
||||||
|
*/
|
||||||
|
EVMC_SHANGHAI = 10,
|
||||||
|
|
||||||
/** The maximum EVM revision supported. */
|
/** The maximum EVM revision supported. */
|
||||||
EVMC_MAX_REVISION = EVMC_BERLIN
|
EVMC_MAX_REVISION = EVMC_SHANGHAI,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The latest known EVM revision with finalized specification.
|
||||||
|
*
|
||||||
|
* This is handy for EVM tools to always use the latest revision available.
|
||||||
|
*/
|
||||||
|
EVMC_LATEST_STABLE_REVISION = EVMC_LONDON
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user