alloy-core v0.5.0
Highlights
- Implemented more utilities in [
alloy-primitives
] (#432) - Added
sol-macro
json-abi
item generation through#[sol(abi)]
(#422) - Added
sol-macro
SolEventInterface
(#426) - Added support for SSZ (#407)
- Added
dyn-abi
DynSolType::coerce_str
(#380) - Renamed
sol-types
SolType::TokenType
GAT andTokenType
trait toToken
(#417)
What's Changed
- chore(sol-types): remove impls for isize/usize by @DaniPopes in #362
- chore(sol-macro): move generated docs below input attrs by @DaniPopes in #363
- fix(syn-solidity): struct fields formatting by @DaniPopes in #364
- fix(sol-macro): correct
SolCall::abi_decode_returns
by @DaniPopes in #367 - ci: cargo build instead of check by @DaniPopes in #368
- fix(sol-macro): bug fixes by @DaniPopes in #372
- docs(
alloy-sol-types
): Switch incorrect function docs by @Evalir in #374 - chore: clean up ABI, EIP-712, docs by @DaniPopes in #373
- feat(dyn-abi):
DynSolType::coerce_str
by @DaniPopes in #380 - fix(sol-types):
SolInterface::MIN_DATA_LENGTH
overflow by @DaniPopes in #383 - fix(dyn-abi): generate Int, Uint, FixedBytes adjusted to their size by @DaniPopes in #384
- enable rand feature for re-exported ruint crate by @cool-mestorf in #385
- fix(json-abi):
Param.ty
is not always a validTypeSpecifier
by @DaniPopes in #386 - test: add errors abi test by @mattsse in #390
- fix(sol-macro): keep more attributes on contract module by @DaniPopes in #391
- feat(sol-macro): add definition doc to structs and enums by @DaniPopes in #393
- fix: don't use directory symlinks by @DaniPopes in #394
- fix(primitives): Signed cleanup by @DaniPopes in #395
- fix: avoid symlinks by @DaniPopes in #396
- fix(sol-type-parser): normalize
u?int
tou?int256
by @DaniPopes in #397 - fix(syn-solidity): allow some duplicate attributes by @DaniPopes in #399
- fix(dyn-abi): handle empty hex strings by @DaniPopes in #400
- chore: use winnow
separated
instead ofseparated0
by @DaniPopes in #403 - feat(sol-types): add some more methods to
abi::Decoder
by @DaniPopes in #404 - fmt: update rustfmt config by @DaniPopes in #406
- SSZ implementation for alloy primitives by @loocapro in #407
- feat(json-abi): improve
JsonAbi::to_sol
by @DaniPopes in #408 - fix(dyn-abi): correctly parse strings in
coerce_str
by @DaniPopes in #410 - feat: Added Hash to DynSolType and StructProp by @NianSol in #411
- fix: wrong as_u8 generated for enum by @huyhduong1401 in #413
- fix: rust keyword conflict by @Will-Smith11 in #405
- fix(syn-solidity): raw keyword identifiers by @DaniPopes in #415
- chore: remove dead code by @DaniPopes in #416
- chore: rename
TokenType
GAT and trait toToken
by @DaniPopes in #417 - fix(sol-types): remove
SolType::ENCODED_SIZE
default by @DaniPopes in #418 - feat(json-abi): permit keyword prefixes in HR parser by @DaniPopes in #420
- chore: restructure tests by @DaniPopes in #421
- feat: enable ruint ssz when primitives ssz by @prestwich in #419
- feat(sol-macro): add
json-abi
item generation by @DaniPopes in #422 - fix(sol-macro): correctly print Custom types in parameters by @DaniPopes in #425
- test: check version before running Solc by @DaniPopes in #428
- fix(sol-macro): handle outer attrs in abigen input by @DaniPopes in #429
- feat(sol-macro):
SolEventInterface
:SolInterface
for contract events enum by @DaniPopes in #426 - fix(sol-types): ContractError decoding by @DaniPopes in #430
- feat(sol-types): add empty
bytes
andstring
specialization by @DaniPopes in #435 - feat(primitives): improve utils by @DaniPopes in #432
- fix(sol-types): many ABI coder fixes by @DaniPopes in #434
- feat(primitives): left and right padding conversions by @prestwich in #424
New Contributors
- @Evalir made their first contribution in #374
- @cool-mestorf made their first contribution in #385
- @mattsse made their first contribution in #390
- @loocapro made their first contribution in #407
- @NianSol made their first contribution in #411
- @huyhduong1401 made their first contribution in #413
Full Changelog: v0.4.2...v0.5.0