0.6.0
What's Changed
Breaking Changes
- Removed
Ethers.Transactionstruct and replaced with separate EIP-1559 and Legacy transaction structs for improved type safety - Deprecated
Ethers.Transaction.from_map/1- useEthers.Transaction.from_rpc_map/1instead for RPC response parsing - Deprecated
Ethers.Utils.maybe_add_gas_limit/2- gas limits should now be set explicitly - Changed input format requirements: All inputs to
Ethersfunctions must use native types (e.g., integers) instead of hex strings encoded values - Removed auto-gas estimation from send_transaction calls
tx_typeoption in transaction overrides has been replaced withtype, now requiring explicit struct modules (e.g.Ethers.Transaction.Eip1559,Ethers.Transaction.Legacy)- Moved
Ethers.Transaction.calculate_y_parity_or_v/1toEthers.Transaction.Signedmodule - Deprecate
Ethers.send/2in favor ofEthers.send_transaction/2for clarity and prevent collision withKernel.send/2.
New features
- Added EIP-3668 CCIP-Read support via
Ethers.CcipReadmodule for off-chain data resolution - Extended NameService to handle off-chain and cross-chain name resolution using CCIP-Read protocol
- Introduced
Ethers.Transaction.Protocolbehaviour for improved transaction handling - Added dedicated EIP-1559 and Legacy transaction struct types with validation
- New address utilities:
Ethers.Utils.decode_address/1andEthers.Utils.encode_address/1 - Added
Transaction.decode/1to decode raw transactions
Enhancements
- Improved error handling and reporting in
Ethers.deploy/2 - Enhanced NameService with ENSIP-10 wildcard resolution support
- Use checksum addresses when decoding transactions
- Add bang versions of
Etherstop module functions which were missing
Pull Requests in Release
- Implement CCIP Read by @alisinabh in #158
- Improve name service + offchain lookup support by @alisinabh in #159
- Fix the typos in README.md by @caicaishmily in #162
- Bump req from 0.5.1 to 0.5.8 by @dependabot in #161
- Improve Transaction handling by @alisinabh in #164
- Implement
Transaction.decode/1by @alisinabh in #166 - Use checksummed addresses when possible by @alisinabh in #167
- Bump ex_doc from 0.35.1 to 0.36.1 by @dependabot in #169
- Bump credo from 1.7.10 to 1.7.11 by @dependabot in #170
- Rename
Ethers.send/2toEthers.send_transaction/2by @alisinabh in #171 - Add missing bang functions by @alisinabh in #168
New Contributors
- @caicaishmily made their first contribution in #162
Full Changelog: v0.5.5...v0.6.0