Releases: Concordium/concordium-rust-smart-contracts
Releases · Concordium/concordium-rust-smart-contracts
Release concordium-std 5.1.0
concordium-std 5.1.0 (2022-12-14)
- Add a new primitive
get_randomfor generating random numbers in Wasm code testing;get_randomcan be used in tests only, not available for smart contracts on the chain. - Fix a linking issue when compiling contracts to native code on Windows and OSX.
Release concordium-std-derive 5.1.0
concordium-std-derive 5.1.0 (2022-12-14)
- Add a
#[concordium_quickcheck]macro that re-exports a customized QuickCheck function
test_infrastructure::concordium_qcas a#[concordium_test]function.
It is enabled by theconcordium-quickcheckfeature.
Release concordium-std 5.0.0
concordium-std 5.0.0 (2022-11-21)
- Add
upgrademethod toHasHostfor upgrading a smart contract instance to use a new smart contract module. - Support mocking
upgradecalls inTestHost. Anupgradeis mocked by specifying a module reference and aUpgradeResultas the outcome of upgrading to this module. - Add the chain queries
account_balance,contract_balanceandexchange_ratestoHasHostfor querying balances and the current exchange rates. - Support mocking chain queries
account_balance,contract_balanceandexchange_ratesinTestHost. For each parameter a corresponding response can be setup.
Release concordium-std-derive 5.0.0
concordium-std-derive 5.0.0 (2022-11-21)
- Add support for event schemas (V3 schemas) in the schema derivation macro.
Release concordium-cis2 2.0.0
concordium-cis2 2.0.0 (2022-11-21)
- Update
concordium-stdto version 5. - Add
Fromimplementation from types implementingFrom<UpgradeError>,From<QueryAccountBalanceError>orFrom<QueryContractBalanceError>toCis2Error. - Add SchemaType for Cis2Event<T, A>
Release concordium-std-derive 4.1.0
concordium-std-derive 4.1.0 (2022-10-31)
- Allow
#[concordium(state_parameter)]'s value be not just identifier but any type path
forderive(DeserialWithState)andderive(Deletable)to generate implementations.
Release concordium-cis2 1.2.0
concordium-cis2 1.2.0
- Add TokenAmountU256
- Fix overflow during deserialization of amounts.
Release concordium-cis2 1.1.0
concordium-cis2 (2022-08-22)
- Update concordium-std to version 4.
- Support schemas for error types defined in the library.
Release concordium-cis2 1.0.0
Initial release of the concordium-cis2 on crates.io
Release concordium-std 3.1.0
concordium-std 3.1.0 (2022-08-04)
- Change SchemaType implementation for cryptographic primitives to ByteArray, meaning that the primitives(e.g., hashes and signatures) are now supplied as hex strings in JSON.
- Add Seek requirement for HasParameter.
- Implement Seek for ExternParameter.
- Add wrapper type TestParameterCursor instead of exposing Cursor directly, when using TestContext. This is changing the type returned by parameter_cursor for TestContext, but provides the same interface.