What's Changed
Enhancements
- Add EIP-7702 set-code transaction support (type 4)
- Add
Ethers.fee_history/4(eth_feeHistory) with decoded integer quantities, also usable inEthers.batch/2via{:fee_history, [block_count, newest_block, reward_percentiles]} - Add
Ethers.estimate_fees/1: estimate EIP-1559max_fee_per_gasandmax_priority_fee_per_gasfrom recent blocks' priority fees (:slow/:standard/:fastspeeds or a raw percentile) withmax_fee_per_gas = 2 * next_base_fee + priority_fee - Transaction auto-fill now prices EIP-1559 transactions with
Ethers.estimate_fees/1instead of overpaying with a margin overeth_gasPrice, falling back to the legacy behaviour on RPC clients withouteth_feeHistorysupport - Add state override support to
Ethers.call/2andEthers.estimate_gas/2via the new:state_overridesoption: simulate calls against spoofed balances/nonces, injected contract code or rewritten storage slots (seeEthers.StateOverride) - Add
Ethers.create_access_list/2(eth_createAccessList): generate the EIP-2930 access list a transaction would touch, in a format that plugs directly back into the:access_listtransaction override
Pull Requests in Release
- Add EIP-7702 (type 4) transaction support by @alisinabh in #269
- Add
eth_feeHistorybased fee estimation by @alisinabh in #270 - Add
eth_callstate overrides andeth_createAccessListsupport by @alisinabh in #271
Full Changelog: v0.7.0...v0.8.0