All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
- Remove filesystem I/O functionality from the
std
feature, and gated this behind a new featurestd-fs-io
which depends uponstd
.
- Add a new
SyncHandling
enum, which allows a node to opt out of historical sync.
- Update
k256
to version 0.13.1.
- Remove
ExecutionResult::successful_transfers
.
- Update
ed25519-dalek
to version 2.0.0 as mitigation for RUSTSEC-2022-0093
- Add new
bytesrepr::Error::NotRepresentable
error variant that represents values that are not representable by the serialization format. - Add new
Key::Unbond
key variant under which the new unbonding information (to support redelegation) is written. - Add new
Key::ChainspecRegistry
key variant under which theChainspecRegistry
is written. - Add new
Key::ChecksumRegistry
key variant under which a registry of checksums for a given block is written. There are two checksums in the registry, one for the execution results and the other for the approvals of all deploys in the block. - Add new
StoredValue::Unbonding
variant to support redelegating. - Add a new type
WithdrawPurses
which is meant to representUnbondingPurses
as they exist in current live networks.
- Extend
UnbondingPurse
to take a new fieldnew_validator
which represents the validator to whom tokens will be re-delegated. - Increase
DICTIONARY_ITEM_KEY_MAX_LENGTH
to 128. - Change prefix of formatted string representation of
ContractPackageHash
from "contract-package-wasm" to "contract-package-". Parsing from the old format is still supported. - Apply
#[non_exhaustive]
to error enums. - Change Debug output of
DeployHash
to hex-encoded string rather than a list of integers.
- Fix some integer casts, where failure is now detected and reported via new error variant
NotRepresentable
.
- Republish v1.6.0 as v2.0.0 due to missed breaking change in API (addition of new variant to
Key
).
- Extend asymmetric key functionality, available via feature
std
(moved fromcasper-nodes
crate). - Provide
Timestamp
andTimeDiff
types for time operations, with extended functionality available via featurestd
(moved fromcasper-nodes
crate). - Provide test-only functionality, in particular a seedable RNG
TestRng
which outputs its seed on test failure. Available via a new featuretesting
. - Add new
Key::EraSummary
key variant under which the era summary info is written on each switch block execution.
- Deprecate
gens
feature: its functionality is included in the newtesting
feature.
- Provide types and functionality to support improved access control inside execution engine.
- Provide
CLTyped
impl forContractPackage
to allow it to be passed into contracts.
- Limit parsing of CLTyped objects to a maximum of 50 types deep.
- Disable checksummed-hex encoding, but leave checksummed-hex decoding in place.
- Add function to
auction::MintProvider
trait to support minting into an existing purse.
- Change checksummed hex implementation to use 32 byte rather than 64 byte blake2b digests.
- Revert the accidental change to the
std
feature causing a broken build when this feature is enabled.
1.4.3 - 2021-11-17 [YANKED]
1.4.2 - 2021-11-13 [YANKED]
- Add checksummed hex encoding following a scheme similar to EIP-55.
1.4.1 - 2021-10-23
No changes.
1.4.0 - 2021-10-21 [YANKED]
- Add
json-schema
feature, disabled by default, to enable many types to be used to produce JSON-schema data. - Add implicit
datasize
feature, disabled by default, to enable many types to derive theDataSize
trait. - Add
StoredValue
types to this crate.
- Support building and testing using stable Rust.
- Allow longer hex string to be presented in
json
files. Current maximum is increased from 100 to 150 characters. - Improve documentation and
Debug
impls forApiError
.
- Feature
std
is deprecated as it is now a no-op, since there is no benefit to linking the std lib via this crate.
1.3.0 - 2021-07-19
- Restrict summarization when JSON pretty-printing to contiguous long hex strings.
- Update pinned version of Rust to
nightly-2021-06-17
.
- Remove ability to clone
SecretKey
s.
1.2.0 - 2021-05-27
- Change to Apache 2.0 license.
- Return a
Result
from the constructor ofSecretKey
rather than potentially panicking. - Improve
Key
error reporting and tests.
- Fix
Key
deserialization.
1.1.1 - 2021-04-19
No changes.
1.1.0 - 2021-04-13 [YANKED]
No changes.
1.0.1 - 2021-04-08
No changes.
1.0.0 - 2021-03-30
- Initial release of types for use by software compatible with Casper mainnet.