Releases: Concordium/concordium-base
Releases · Concordium/concordium-base
concordium_base 9.0.0
Summary
Various incremental improvements.
Changes
- Changed
Debugimplementation of secret keys and cleartext values to not print the key or value. - Removed
ChainParameterVersionXtypes and theMintDistributionFamily,GASRewardsFamilyandAuthorizationsFamilytraits and their implementations. - Revised
UpdateSignerimplementations not to use references, since the one method (sign_update_hash) already takes a reference (&self). - Made
find_authorized_keyspublic for easier re-use. - Changed value inside
AttributeKindto be non-public since it has a length constraint. ImplementedAttributeKind::try_new,AsRef<str> for AttributeKindandFrom<AttributeKind> for String
to allow constructing and accessing values. - Added
EqandPartialEqinstances forUpdateKeysThresholdInclusiveRange<T>LeverageFactorMintRateCapitalBoundRatioHigherLevelAccessStructure<Kind>AccessStructure
concordium_base_derive 1.1.0-alpha
Implements derive macros for CBOR serialization defined in concordium_base 8.0.0-alpha
concordium_base 8.0.0-alpha
Summary
Support the upcoming release of Concordium node 9.x and Concordium Protocol Version 9, which implements support for protocol level tokens (PLT).
Changes
- Protocol level token events and reject reasons are now defined in
concordium_base::protocol_level_tokens.
Event and reject reasons CBOR can be decoded withTokenModuleEvent::decode_token_module_event_typeor
TokenModuleRejectReason::decode_reject_reason_type. - Transaction
Payloadnow supportsTokenGovernancepayloads.
Operations can be created using functions inconcordium_base::protocol_level_tokens::operations
and composed to transactions withsend::token_governance_operationsandconstruct::token_governance_operations. - Transaction
Payloadnow supportsTokenHolderpayloads.
Operations can be created using functions inconcordium_base::protocol_level_tokens::operations
and composed to transactions withsend::token_holder_operationsandconstruct::token_holder_operations.
The underlying model for protocol level tokens is defined inconcordium_base::protocol_level_tokens. - Publish
get_canonical_addressonAccountAddress - Introduce protocol version 9
ProtocolVersion::P9 - Introduce basic types related to protocol level tokens (PLT)
RawCbor,TokenId,TokenAmount,TokenModuleRef.- Extend
UpdatePayloadwithCreatePltvariant.
concordium-wasm 5.1.0
Changes
- Added public methods
get_mod_nameandget_item_nametoArtifactNamedImport
concordium-smart-contract-engine 6.1.0
Changes
- Removed
TestResultandrun_module_testssince they will be moved tocargo-concordium. As part of thisTestHost.rng_usedhas been made public. - Support more smart contract host-functions in
TestHost(used by cargo concordium test):get_slot_timeget_receive_self_addressget_receive_self_balanceget_parameter_sizeget_parameter_sectionget_init_originget_receive_invokerget_receive_senderget_receive_ownerget_receive_entrypointget_receive_entrypoint_sizeverify_ed25519_signatureverify_ecdsa_secp256k1_signaturehash_sha2_256hash_sha3_256hash_keccak_256
Corresponding new host functions are introduced just forTestHostallowing for setting the result of the above:set_slot_timeset_receive_self_addressset_receive_self_balanceset_parameterset_init_originset_receive_invokerset_receive_senderset_receive_ownerset_receive_entrypoint
Attempting to get a value before setting it will result in a runtime error.
The following getters are also created just for theTestHost:get_eventget_event_size
concordium_base 7.0.0
Summary
This release adds support for protocol version 8, which introduces (automatic) suspension of inactive validators.
Changes
- Add getter function
reward_period_epochsto access the field in the structRewardPeriodLength. - Add constructor
TokenAddress::newfor CIS2 typeTokenAddress. - Introduce new chain parameters
ValidatorScoreParametersthat contain the
threshold of maximal missed rounds before a validator gets suspended. - Add
Defaultinstance forUpdateSequenceNumber. - Add
FinalizationCommitteeHashtype.
concordium-wasm 5.0.0
Changes
- Revise the compilation of Wasm modules to
Artifacts. The notion of the
executable artifact is changed to no longer work with a stack. - The
Handlertrait is revised to providehandle_opcodefunction information
about reachability of the instruction that is being handled. - The
Hosttrait is expanded to special-case instructions for resource
accounting. - Introduce a new version of cost assignment that is to be used in protocol 7.
concordium-smart-contract-engine 6.0.0
Changes
- Bump
concordium-wasmto version 5 used by Concordium node version 7.0.0.- Changes Wasm to
Artifactcompilation, meaning already compiledArtifactswill need to be recompiled. - Introduces a new version of cost assignment used in Concordium Protocol Version 7.
- Changes Wasm to
- Loose the minor version for
concordium-contracts-commondependency.
concordium-contracts-common 9.2.0
Summary
Minor release adding a number of convenience features.
Changes
- Add
TryFromimplementation to convert&[u8]toAccountAddress, when featurederive-serdeis enabled. - Derive
serde::Serializeandserde::SerializeforPublicKeyEd25519using
FromStrandDisplayimplementations, when featurederive-serdeis
enabled. - Derive
DefaultonAmount(defaults to 0).
concordium_base 6.0.0
Summary
This release adds support for company identities and sponsored transactions (CIS3). Encrypted transfers are deprecated in this release as they are not supported from protocol version 7.
Changes
- Extend
id::types::ATTRIBUTE_NAMESwith new company attribute tags: "legalName", "legalCountry", "businessNumber" and "registationAuth". - Add a new module
cis3_typesthat defines the interface types for CIS3
compatible contracts. - Fix discrepancy in (de)serializing
Web3IdAttribute::Timestamps due to an unexpected breaking change introduced in version 0.4.32 ofchrono. concordium_base::ed25519now also exportsSigningKeyto enable constructingKeyPairstructs.- Deprecated various functions related to encrypted transfers, as encrypted transfers are no longer supported in protocol version 7.