concordium-smart-contract-engine 5.0.0
Summary
Support for P7 host calls and revision of the TestHost to better support running tests for contracts that use state in their unit tests.
Changes
TestHost
no longer implements theValidateImportExport
trait, instead useNoDuplicateImport
struct.TestHost::new
now takes an instance state, allowing for support of host functions related to the smart contract key-value state.- The function
utils::run_module_tests
now provides an empty in-memory instance state for each test case, allowing module tests to use host functions related to the smart contract key-value state. - Support for querying the module reference and contract name of an instance via
invoke
(for protocol version 7). These are enabled by a new
support_contract_inspection_queries
parameter inReceiveParams
and
call_receive_v1
. When enabled,invoke
can generate the new interrupt
typesQueryContractModuleReference
andQueryContractName
.