All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
- Added support for
RewardsHandlingto the execution engine testing crate - Added support for
minimum_delegation_rateto the execution engine testing crate
- Provide
from_chainspec_pathandmax_associated_keyshelper methods onChainspecConfig. - Provide functions for converting from
ChainspecConfigtoEngineConfig. - Provide
try_execmethod onWasmTestBuilderfor fallible contract execution. - Provide
PRODUCTION_CHAINSPEC_PATH: a lazy static defining the path to the production chainspec.toml file.
- Provide
calculate_refund_amountonWasmTestBuilder. - Provide
upgrade_with_upgrade_request_and_configonWasmTestBuilder.
- Update
casper-execution-enginedependency. - Handle evict items in the
WasmTestBuilderwhen advancing eras or callingstep.
- Add
WasmTestBuilder::get_execution_journalsmethod for returning execution journals for all test runs. - Add support to load values from a given Chainspec.
- Add static and constants that represent Casper-mainnet chainspec values. These values will change as new ProtocolVersions are added. The current values reflect ones used in the 1.5.0 ProtocolVersion.
- Add
WasmTestBuilder::advance_era,WasmTestBuilder::advance_eras_by, andWasmTestBuilder::advance_eras_by_default_auction_delayto advance chain and run auction contract in test environment.
WasmTestBuilder::get_transformsis deprecated in favor ofWasmTestBuilder::get_execution_journals.deploy_hashfield is now defaulted to a random value rather than zeros inDeployItemBuilder.
- Update dependencies (in particular
casper-typesto v2.0.0 due to additionalKeyvariant, requiring a major version bump here).
- Update chainspec values used in
PRODUCTION_RUN_GENESIS_REQUESTto match those of Mainnet protocol version 1.4.15.
- Add support for
commit_pruneofcasper-execution-engine.
- Version bump only to match major version bump of
casper-execution-enginedependency.
- Add
ChainspecConfigto support parsing a chainspec.
- Add some auction and transfer test support functions for reuse among benchmarks and unit tests.
- Deprecated the
DEFAULT_RUN_GENESIS_REQUESTin favor ofPRODUCTION_RUN_GENESIS_REQUEST.
- Add further helper methods to
WasmTestBuilder.
- Added
WasmTestBuilder::get_balance_keysfunction.
- Revert the change to the path detection logic applied in v2.0.1.
2.0.1 - 2021-11-4
- Change the path detection logic for compiled Wasm as used by the casper-node monorepo.
- Deprecate the
test-supportfeature. It had and continues to have no effect when enabled.
2.0.0 - 2021-11-01
- Provide fine-grained support for testing all aspects of smart contract execution, including:
WasmTestBuilderfor building and running a test to exercise a smart contractDeployItemBuilderfor building aDeployItemfrom a smart contractExecuteRequestBuilderfor building anExecuteRequestto execute a given smart contractAdditiveMapDiffto allow easy comparison of two AdditiveMapsStepRequestBuilderfor building aStepRequest(generally only used by the execution engine itself)UpgradeRequestBuilderfor building anUpgradeRequest(generally only used by the execution engine itself)
- Provide
LmdbWasmTestBuildercan be used where global state needs to be persisted after execution of a smart contract - Provide several helper functions in
utilsmodule - Provide several default consts and statics useful across many test scenarios
- Remove coarse-grained support and newtypes for testing smart contracts, including removal of:
AccountAccountHashErrorSessionSessionBuilderSessionTransferInfoTestContextTestContextBuilderValue
- Remove
InMemoryWasmTestBuilder.
1.4.0 - 2021-10-04
- Support building and testing using stable Rust.
1.3.0 - 2021-07-19
- Update pinned version of Rust to
nightly-2021-06-17.
1.2.0 - 2021-05-28
- Change to Apache 2.0 license.
1.1.1 - 2021-04-19
No changes.
1.1.0 - 2021-04-13 [YANKED]
No changes.
1.0.1 - 2021-04-08
No changes.
1.0.0 - 2021-03-30
- Initial release of execution-engine test support framework compatible with Casper mainnet.