From e89c26b8db6d6361a93c2889d5042770c4d7b040 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:17:06 +0100 Subject: [PATCH] chore: release 0.5.0 --- CHANGELOG.md | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 16 ++++----- 2 files changed, 98 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48b772134..8789184c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,86 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.0](https://github.com/alloy-rs/core/releases/tag/v0.5.0) - 2023-11-23 + +### Bug Fixes + +- [sol-types] Many ABI coder fixes ([#434](https://github.com/alloy-rs/core/issues/434)) +- [sol-types] ContractError decoding ([#430](https://github.com/alloy-rs/core/issues/430)) +- [sol-macro] Handle outer attrs in abigen input ([#429](https://github.com/alloy-rs/core/issues/429)) +- [sol-macro] Correctly print Custom types in parameters ([#425](https://github.com/alloy-rs/core/issues/425)) +- [sol-types] Remove `SolType::ENCODED_SIZE` default ([#418](https://github.com/alloy-rs/core/issues/418)) +- [syn-solidity] Raw keyword identifiers ([#415](https://github.com/alloy-rs/core/issues/415)) +- Rust keyword conflict ([#405](https://github.com/alloy-rs/core/issues/405)) +- Wrong as_u8 generated for enum ([#413](https://github.com/alloy-rs/core/issues/413)) +- [dyn-abi] Correctly parse strings in `coerce_str` ([#410](https://github.com/alloy-rs/core/issues/410)) +- [dyn-abi] Handle empty hex strings ([#400](https://github.com/alloy-rs/core/issues/400)) +- [syn-solidity] Allow some duplicate attributes ([#399](https://github.com/alloy-rs/core/issues/399)) +- [sol-type-parser] Normalize `u?int` to `u?int256` ([#397](https://github.com/alloy-rs/core/issues/397)) +- Avoid symlinks ([#396](https://github.com/alloy-rs/core/issues/396)) +- [primitives] Signed cleanup ([#395](https://github.com/alloy-rs/core/issues/395)) +- Don't use directory symlinks ([#394](https://github.com/alloy-rs/core/issues/394)) +- [sol-macro] Keep more attributes on contract module ([#391](https://github.com/alloy-rs/core/issues/391)) +- [json-abi] `Param.ty` is not always a valid `TypeSpecifier` ([#386](https://github.com/alloy-rs/core/issues/386)) +- [dyn-abi] Generate Int, Uint, FixedBytes adjusted to their size ([#384](https://github.com/alloy-rs/core/issues/384)) +- [sol-types] `SolInterface::MIN_DATA_LENGTH` overflow ([#383](https://github.com/alloy-rs/core/issues/383)) +- [docs] Switch incorrect function docs ([#374](https://github.com/alloy-rs/core/issues/374)) +- [sol-macro] Bug fixes ([#372](https://github.com/alloy-rs/core/issues/372)) +- [sol-macro] Correct `SolCall::abi_decode_returns` ([#367](https://github.com/alloy-rs/core/issues/367)) +- [syn-solidity] Struct fields formatting ([#364](https://github.com/alloy-rs/core/issues/364)) + +### Features + +- [primitives] Left and right padding conversions ([#424](https://github.com/alloy-rs/core/issues/424)) +- [primitives] Improve utils ([#432](https://github.com/alloy-rs/core/issues/432)) +- [sol-types] Add empty `bytes` and `string` specialization ([#435](https://github.com/alloy-rs/core/issues/435)) +- [sol-macro] `SolEventInterface`: `SolInterface` for contract events enum ([#426](https://github.com/alloy-rs/core/issues/426)) +- [sol-macro] Add `json-abi` item generation ([#422](https://github.com/alloy-rs/core/issues/422)) +- Enable ruint ssz when primitives ssz ([#419](https://github.com/alloy-rs/core/issues/419)) +- [json-abi] Permit keyword prefixes in HR parser ([#420](https://github.com/alloy-rs/core/issues/420)) +- Added Hash to DynSolType and StructProp ([#411](https://github.com/alloy-rs/core/issues/411)) +- [json-abi] Improve `JsonAbi::to_sol` ([#408](https://github.com/alloy-rs/core/issues/408)) +- [sol-types] Add some more methods to `abi::Decoder` ([#404](https://github.com/alloy-rs/core/issues/404)) +- [sol-macro] Add definition doc to structs and enums ([#393](https://github.com/alloy-rs/core/issues/393)) +- [dyn-abi] `DynSolType::coerce_str` ([#380](https://github.com/alloy-rs/core/issues/380)) + +### Miscellaneous Tasks + +- Update git-cliff config +- Restructure tests ([#421](https://github.com/alloy-rs/core/issues/421)) +- Rename `TokenType` GAT and trait to `Token` ([#417](https://github.com/alloy-rs/core/issues/417)) +- Remove dead code ([#416](https://github.com/alloy-rs/core/issues/416)) +- Update .git-blame-ignore-revs +- Use winnow `separated` instead of `separated0` ([#403](https://github.com/alloy-rs/core/issues/403)) +- Clean up ABI, EIP-712, docs ([#373](https://github.com/alloy-rs/core/issues/373)) +- [sol-macro] Move generated docs below input attrs ([#363](https://github.com/alloy-rs/core/issues/363)) +- [sol-types] Remove impls for isize/usize ([#362](https://github.com/alloy-rs/core/issues/362)) + +### Other + +- SSZ implementation for alloy primitives ([#407](https://github.com/alloy-rs/core/issues/407)) +- Enable rand feature for re-exported ruint crate ([#385](https://github.com/alloy-rs/core/issues/385)) +- Cargo build instead of check ([#368](https://github.com/alloy-rs/core/issues/368)) + +### Styling + +- Update rustfmt config ([#406](https://github.com/alloy-rs/core/issues/406)) + +### Testing + +- Check version before running Solc ([#428](https://github.com/alloy-rs/core/issues/428)) +- Add errors abi test ([#390](https://github.com/alloy-rs/core/issues/390)) + ## [0.4.2](https://github.com/alloy-rs/core/releases/tag/v0.4.2) - 2023-10-09 ### Bug Fixes - [primitives] Set serde derive feature ([#359](https://github.com/alloy-rs/core/issues/359)) +### Miscellaneous Tasks + +- Release 0.4.2 + ## [0.4.1](https://github.com/alloy-rs/core/releases/tag/v0.4.1) - 2023-10-09 ### Bug Fixes @@ -464,4 +538,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add custom sol structs to tests and docs - Clean up some type check and add a couple new ones - \ No newline at end of file +[`dyn-abi`]: https://crates.io/crates/alloy-dyn-abi +[dyn-abi]: https://crates.io/crates/alloy-dyn-abi +[`json-abi`]: https://crates.io/crates/alloy-json-abi +[json-abi]: https://crates.io/crates/alloy-json-abi +[`primitives`]: https://crates.io/crates/alloy-primitives +[primitives]: https://crates.io/crates/alloy-primitives +[`sol-macro`]: https://crates.io/crates/alloy-sol-macro +[sol-macro]: https://crates.io/crates/alloy-sol-macro +[`sol-type-parser`]: https://crates.io/crates/alloy-sol-type-parser +[sol-type-parser]: https://crates.io/crates/alloy-sol-type-parser +[`sol-types`]: https://crates.io/crates/alloy-sol-types +[sol-types]: https://crates.io/crates/alloy-sol-types +[`syn-solidity`]: https://crates.io/crates/syn-solidity +[syn-solidity]: https://crates.io/crates/syn-solidity + + diff --git a/Cargo.toml b/Cargo.toml index 00bc2e17d..b84497e78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.4.2" +version = "0.5.0" edition = "2021" rust-version = "1.65" authors = ["Alloy Contributors"] @@ -18,13 +18,13 @@ rustdoc-args = ["--cfg", "docsrs"] [workspace.dependencies] # workspace crates -alloy-dyn-abi = { version = "0.4.2", path = "crates/dyn-abi", default-features = false } -alloy-json-abi = { version = "0.4.2", path = "crates/json-abi", default-features = false } -alloy-primitives = { version = "0.4.2", path = "crates/primitives", default-features = false } -alloy-sol-macro = { version = "0.4.2", path = "crates/sol-macro", default-features = false } -alloy-sol-type-parser = { version = "0.4.2", path = "crates/sol-type-parser", default-features = false } -alloy-sol-types = { version = "0.4.2", path = "crates/sol-types", default-features = false } -syn-solidity = { version = "0.4.2", path = "crates/syn-solidity", default-features = false } +alloy-dyn-abi = { version = "0.5.0", path = "crates/dyn-abi", default-features = false } +alloy-json-abi = { version = "0.5.0", path = "crates/json-abi", default-features = false } +alloy-primitives = { version = "0.5.0", path = "crates/primitives", default-features = false } +alloy-sol-macro = { version = "0.5.0", path = "crates/sol-macro", default-features = false } +alloy-sol-type-parser = { version = "0.5.0", path = "crates/sol-type-parser", default-features = false } +alloy-sol-types = { version = "0.5.0", path = "crates/sol-types", default-features = false } +syn-solidity = { version = "0.5.0", path = "crates/syn-solidity", default-features = false } # serde serde = { version = "1.0", default-features = false, features = ["alloc"] }