Releases: alloy-rs/core
Releases · alloy-rs/core
alloy-core v0.6.1
What's Changed
- feat(primitives): add
Address::from_private_key
by @DaniPopes in #483 - chore: improve unlinked bytecode deserde error by @mattsse in #484
- chore: include path in error by @mattsse in #486
- chore(primitives): pass B256 by reference in Signature methods by @DaniPopes in #487
- fix: deserialize missing state mutability as non payable by @mattsse in #488
- chore: add SECURITY.md by @DaniPopes in #494
- feat: add constructorCall to
sol!
by @leruaa in #493 - test: parity roundtripping by @prestwich in #497
- doc: fixes by @prestwich in #498
- docs: remove stray list element by @DaniPopes in #500
- feat(
primitives
): Addy_parity_byte_non_eip155
toParity
by @Evalir in #499 - test: don't print constructors for Solc tests by @DaniPopes in #501
New Contributors
Full Changelog: v0.6.0...v0.6.1
alloy-core v0.6.0
What's Changed
- refactor: Log implementation by @prestwich in #465
- fix: clean the sealed by @prestwich in #468
- feat(primitives): add Keccak256 hasher struct by @DaniPopes in #469
- feat(sol-type-parser): improve error message for bad array size by @DaniPopes in #470
- chore: move define_udt! decl macro to sol! proc macro by @fgimenez in #471
- chore: touch up UDVT expansion by @DaniPopes in #473
- feat(dyn-abi): improve hex error messages by @DaniPopes in #474
- feat(primitives): add a buffer type for address checksums by @DaniPopes in #472
- feat(primitives): add Signature type and utils by @prestwich in #459
- chore: clippy uninlined_format_args, use_self by @DaniPopes in #475
- fix(primitives): also apply EIP-155 to Parity::Parity by @DaniPopes in #476
- docs: update docs on parity by @DaniPopes in #477
- chore: bless tests by @DaniPopes in #478
- chore(deps): bump const-hex requirement by @DaniPopes in #479
- chore(deps): relax k256 requirement by @DaniPopes in #481
- feat(json-abi): add full_signature by @BrennerSpear in #480
New Contributors
- @fgimenez made their first contribution in #471
- @BrennerSpear made their first contribution in #480
Full Changelog: v0.5.4...v0.6.0
alloy-core v0.5.4
What's Changed
- chore(sol-types): make PanicKind non_exhaustive by @DaniPopes in #458
- Add ToSql and FromSql to Signed and FixedBytes by @hhamud in #447
- feat: enable postgres ruint feature by @DaniPopes in #460
- feat(primitives): support parsing numbers in Unit::from_str by @DaniPopes in #461
- chore: clippy by @DaniPopes in #463
- feat(primitives): re-export ::bytes by @DaniPopes in #462
- chore: clean up address checksum implementation by @DaniPopes in #464
- feature: sealed by @prestwich in #467
- perf: add optional support for keccak-asm by @DaniPopes in #466
New Contributors
Full Changelog: v0.5.3...v0.5.4
alloy-core v0.5.3
What's Changed
- feat(primitives): update Bytes formatting, add UpperHex by @DaniPopes in #446
- fix(primitives): return correct fixed length in ssz::Encode by @blombern in #451
- feat: add
RevertReason
enum by @tcoratger in #450 - chore: bless tests by @DaniPopes in #456
- feature: address from pubkey by @prestwich in #455
- fix: don't decode ZSTs by @prestwich in #454
- fix: ingest domain when instantiating TypedData by @prestwich in #453
- fix(sol-types): un-break decode revert by @DaniPopes in #457
New Contributors
- @blombern made their first contribution in #451
- @tcoratger made their first contribution in #450
Full Changelog: v0.5.2...v0.5.3
alloy-core v0.5.2
What's Changed
- test: add some regression tests by @DaniPopes in #443
- fix(dyn-abi): fixed arrays coerce_str by @DaniPopes in #442
Full Changelog: v0.5.1...v0.5.2
alloy-core v0.5.1
Fixes unintended MSRV breakage in sol-macro
. Main changes in v0.5.0.
What's Changed
- fix public leak by @kristian1108 in #437
- ci: re-enable MSRV all features check by @DaniPopes in #439
New Contributors
- @kristian1108 made their first contribution in #437
Full Changelog: v0.5.0...v0.5.1
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
alloy-core v0.4.2
Bug fix for alloy-primitives
features. Main changes in v0.4.1.
What's Changed
- fix(primitives): set serde derive feature by @DaniPopes in #359
Full Changelog: v0.4.1...v0.4.2
alloy-core v0.4.1
Highlights
alloy-primitives
now has a primitiveLog
struct (#271)- Added Human-Readable ABI support for
alloy-json-abi
items (#329) - Added
SolValue
convenience trait toalloy-sol-types
(#333) - Implemented
std::fmt::Display
on moresyn-solidity
items (#337, #339) - Original source of
sol!
generated items is now displayed in documentation code blocks (#356) - Bug fixes
What's Changed
- docs: fix changelog link by @DaniPopes in #323
- chore(dyn-abi): make
resolve
module private by @DaniPopes in #324 - chore: fix typos by @DaniPopes in #325
- chore: enable ruint std feature by @DaniPopes in #326
- ci: run miri in ci by @DaniPopes in #327
- docs: add scope to changelog commits by @DaniPopes in #328
- feat: add logs, add log dynamic decoding by @DaniPopes in #271
- feat: add parsing support for JSON items by @DaniPopes in #329
- chore: add count to all_the_tuples! macro by @DaniPopes in #331
- chore(sol-types): rewrite encodable impl generics by @DaniPopes in #332
- fix: serde rename resolver to types by @prestwich in #335
- fix(syn-solidity): set spans on generated struct names by @DaniPopes in #336
- feat(syn-solidity): add some more Display impls by @DaniPopes in #337
- feat(sol-macro): improve generated docs by @DaniPopes in #338
- feat(syn-solidity): add even more Display impls by @DaniPopes in #339
- fix(sol-macro): pass attributes to all generated items by @DaniPopes in #340
- fix(sol-macro): remove extra 0x in function docs by @DaniPopes in #341
- feat(sol-types): introduce
SolValue
, makeEncodable
an impl detail by @DaniPopes in #333 - fix: json-abi not using anonymous when converting to interface by @Will-Smith11 in #342
- feat(sol-macro): improve error messages by @DaniPopes in #345
- fix(sol-macro): dedup json abi items by @DaniPopes in #346
- feat(json-abi): deserialize more ContractObjects by @DaniPopes in #348
- fix(sol-macro): correct
TypeArray::is_abi_dynamic
by @DaniPopes in #353 - fix(json-abi): fallback to tuple types for nested params in
to_sol
by @DaniPopes in #354 - test: add regression test for #351 by @DaniPopes in #355
- feat(sol-macro): add docs to generated contract modules by @DaniPopes in #356
- fix(sol-macro): flatten doc strings correctly by @DaniPopes in #357
Full Changelog: v0.4.0...v0.4.1
alloy-core v0.4.0
Highlights
syn-solidity
is now (almost) complete, as it can also parse all expression, statements, and Yul. Special thanks to @Will-Smith11, @mouseless-eth, and @0xmemorygrinder! (#314, #268, #199)alloy-json-abi
items (likeFunction
andEvent
) can now be used in combination withalloy-dyn-abi
to ABI-encode their input or output parameters throughJsonAbiExt
(#243)- All the
encode
,encode_single
and functions and their respectives indecode*
andSolType::*
were renamed toencode_sequence
andencode
respectively.*_params
functions remain unchanged (#274) - Prefixed all ABI
encode
anddecode
-like functions withabi_
;alloy-sol-types
ABI-related items were moved into theabi
module (#311) alloy-sol-type-parser
got 10% to 50% faster, but now rejects any whitespace (#292)- Lots of bugfixes
What's Changed
- fix: hex compatibility by @DaniPopes in #244
- fix: MSRV tests by @DaniPopes in #246
- feat(primitives): allow empty input in hex macros by @DaniPopes in #245
- docs: data types typo by @DaniPopes in #248
- typo by @rodrigoherrerai in #249
- feat(sol-macro): add opt-in attributes for extra methods and derives by @DaniPopes in #250
- chore: some clippy lints by @DaniPopes in #251
- fix(syn-solidity): imports by @DaniPopes in #252
- docs: update fixed bytes docs by @DaniPopes in #255
- perf: use
slice::Iter
where possible by @DaniPopes in #256 - feat(dyn-abi): implement more ext traits for json-abi by @DaniPopes in #243
- fix: struct
eip712_data_word
by @prestwich in #258 - feat(syn-solidity): improve variable getters generation by @DaniPopes in #260
- feat(sol-macro): expand fields with attrs by @0xgregthedev in #263
- feat: add attributes to enum variants by @DaniPopes in #264
- feat(sol-macro): expand getter functions' return types by @DaniPopes in #262
- dep: pin anstyle to 1.65 compat by @prestwich in #266
- doc: add note regarding ruint::uint macro by @prestwich in #265
- chore: fix MSRV CI and dev deps by @DaniPopes in #267
- chore: update CODEOWNERS by @DaniPopes in #270
- feat(primitives): improve Bytes by @DaniPopes in #269
- Support yul ast by @mouseless-eth in #268
- chore: bump all deps by @DaniPopes in #273
- feat: add more
Bytes
conversion impls by @DaniPopes in #280 - feat: impl
bytes::Buf
for our ownBytes
by @DaniPopes in #279 - feat: use
FixedBytes
forsol_data::FixedBytes
by @DaniPopes in #276 - feat: add support for
rand
by @DaniPopes in #282 - feat: add more
FixedBytes
to int conversion impls by @DaniPopes in #281 - chore: re-export ::bytes by @DaniPopes in #278
- refactor: simplify
Eip712Domain::encode_data
by @DaniPopes in #277 - fix(syn-solidity): parse modifiers without parens by @DaniPopes in #284
- fix: rand default-features typo by @DaniPopes in #286
- feat: improve
SolError
,SolInterface
structs and implementations by @DaniPopes in #285 - docs(syn-solidity): document dollar signs in idents by @DaniPopes in #288
- fix: respect
all_derives = false
, fix custom type printing by @DaniPopes in #272 - feat(primitives): add more methods to
Function
by @DaniPopes in #290 - feat(json-abi): add
Function::signature_full
by @DaniPopes in #289 - chore: rename coding functions by @DaniPopes in #274
- feature: unsupported message for $idents by @prestwich in #293
- chore: do not implement SolType for SolStruct generically by @DaniPopes in #275
- chore: add missing
#[automatically_derived]
by @DaniPopes in #294 - refactor: rewrite type parser with
winnow
by @DaniPopes in #292 - chore: use
hex!
macro fromprimitives
re-export by @DaniPopes in #299 - chore: assert_eq! on Ok instead of unwrapping where possible by @DaniPopes in #297
- chore: sync crate level attributes by @DaniPopes in #303
- docs: improve
ResolveSolType
documentation by @DaniPopes in #296 - hash_message by @supernovahs in #304
- feat(syn-solidity): add more
Spanned
impls by @DaniPopes in #301 - feat(sol-macro): improve type expansion by @DaniPopes in #302
- perf: optimize identifier parsing by @DaniPopes in #295
- chore: unhide clippy config file by @DaniPopes in #305
- ci: cache on failure by @DaniPopes in #306
- fix: add super import on generated modules by @DaniPopes in #307
- test: move
decode_revert_reason
to alloy and add tests by @alessandromazza98 in #308 - chore: simpler ENCODED_SIZE for SolType tuples by @DaniPopes in #312
- chore: format code snippets in docs by @DaniPopes in #313
- feat(syn-solidity): visitor hooks for statements and expressions by @0xmemorygrinder in #314
- chore: touch up #314 by @DaniPopes in #315
- test(syn-solidity): improve contract tests by @DaniPopes in #316
- chore: don't pass debug feature to winnow by @DaniPopes in #317
- chore: prefix ABI encode and decode functions with
abi_
by @DaniPopes in #311 - feat(sol-macro): add support for overloaded events by @DaniPopes in #318
- fix(sol-macro): implement EventTopic for generated enums by @DaniPopes in #320
- feat(sol-macro): add docs to generated items by @DaniPopes in #321
- docs: add automated CHANGELOG.md by @DaniPopes in #322
New Contributors
- @rodrigoherrerai made their first contribution in #249
- @0xgregthedev made their first contribution in #263
- @supernovahs made their first contribution in #304
- @alessandromazza98 made their first contribution in #308
- @0xmemorygrinder made their first contribution in #314
Full Changelog: v0.3.2...v0.4.0