Releases: Concordium/concordium-rust-smart-contracts
Releases · Concordium/concordium-rust-smart-contracts
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_qc
as a#[concordium_test]
function.
It is enabled by theconcordium-quickcheck
feature.
Release concordium-std 5.0.0
concordium-std 5.0.0 (2022-11-21)
- Add
upgrade
method toHasHost
for upgrading a smart contract instance to use a new smart contract module. - Support mocking
upgrade
calls inTestHost
. Anupgrade
is mocked by specifying a module reference and aUpgradeResult
as the outcome of upgrading to this module. - Add the chain queries
account_balance
,contract_balance
andexchange_rates
toHasHost
for querying balances and the current exchange rates. - Support mocking chain queries
account_balance
,contract_balance
andexchange_rates
inTestHost
. 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-std
to version 5. - Add
From
implementation 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.
Release concordium-std-derive 3.1.0
concordium-std-derive 3.1.0 (2022-08-04)
- Removed derive(Serial) and derive(Deserial) (moved to concordium-contracts-common-derive).