This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
Releases: Concordium/concordium-contracts-common
Releases · Concordium/concordium-contracts-common
Release concordium-contracts-common 5.0.0
concordium-contracts-common 5.0.0 (2022-11-21)
- Add support for smart contract V3 schemas.
- Add type
ModuleReference
representing a module reference. - Implement
SchemaType
forOwnedEntrypointName
andOwnedParameter
. - Add type
ExchangeRate
representing an exchange rate between two quantities. - Make the following functions
const
:Duration::from_millis
,Duration::from_seconds
,Duration::from_minutes
,Duration::from_hours
andDuration::from_days
. - Add
is_account
andis_contract
methods to theAddress
type. - When deserializing according to
Enum
schema type, variant indices were
erroneously parsed asu32
when more than 256 enum variants are specified.
These are now parsed asu16
as intended.
Release concordium-contracts-common 3.1.0
concordium-contracts-common 3.1.0 (2022-08-04)
- Extend schema type with ULeb128, ILeb128, ByteList and ByteArray.
- ULeb128 and ILeb128 allow for integers of arbitrary size and are represented in JSON as a string containing the integer.
- ByteList and ByteArray are byte specialized versions of List and Array and are represented in JSON as lowercase hex encoded strings.
- Add new schema version which include the versioning in the serialization.
- Use schema::Type::ByteList for [u8] implementation of SchemaType.
- Introduce HasSize trait.
- Implement Seek for Cursor when T implements HasSize.
- Add traits Serial, Deserial, SerialCtx and DeserialCtx.
- Add procedural macros for deriving Serial and Deserial.
- Implement std::error:Error for error types, when std feature is enabled.
Release concordium-contracts-common-derive 1.0.0
This is the initial release of concordium-contracts-common-derive.
This crate splits some of the derive macros out of the concordium-std-derive crate so that they may be used off-chain.
Release version 2.0.0
Changelog
- Update references to token to match token name (CCD).
Release version 1.0.0.
releases/concordium-contracts-common/1.0.0 Release version 1.
Release 0.4.0
concordium-contracts-common 0.4.0 (2021-05-12)
- Add String to the schema.
- Add ContractName and ReceiveName to schema.
- Add ContractName and ReceiveName types for added type safety.