Skip to content

Releases: Elnaril/uniswap-universal-router-decoder

v1.2.1 - Add support for latest Python and web3 versions

26 Oct 12:49
e683a86
Compare
Choose a tag to compare
  • Add support for web3 v7
  • Add support for Python 3.12 & 3.13

v1.2.0 - Add convenient methods

17 Jun 15:51
a945a74
Compare
Choose a tag to compare
  • Add compute_gas_fees(): utility function to compute gas fees
  • Add build_transaction() method: It's now possible to build the full transaction i/o just the input data.
  • Add fetch_permit2_allowance(): Easy way to check the current Permit2 allowed amount, expiration and nonce.
  • Make verifying contract (Permit2) configurable (Thanks to @speedssr and @freereaper)
  • Replace deprecated eth_account.encode_structured_data() with eth_account.messages.encode_typed_data()

v1.1.0 - Add support for TRANSFER

07 Feb 07:12
5dd1d62
Compare
Choose a tag to compare
  • Add support for the TRANSFER function
  • Add support for decoding the "revert on fail" flag and prepare for encoding on UR functions that support it.
  • Add support for encoding the execute() function without deadline

v0.5.5 - Fix decoding issue #35

02 Feb 13:32
4714b1c
Compare
Choose a tag to compare

Backport fix #35 - SDK fails to decode input data when there is too many commands

v1.0.1 - fix decoding issue #35

28 Dec 11:19
af911af
Compare
Choose a tag to compare
  • fix #35 - SDK fails to decode input data when there is too many commands
  • update README
  • update project configuration

v0.5.4 Fix decoding issue

26 Dec 20:57
ab53c80
Compare
Choose a tag to compare

Backport fix for decoding issue #28

v1.0.0 - Add support for SWEEP and PAY_PORTION

26 Oct 13:13
72bbf3b
Compare
Choose a tag to compare
  • Add support for SWEEP and PAY_PORTION
  • Fix decoding issues
  • Remove useless parameter payer_is_sender from v*_swap_exact_in_from_balance() methods
  • Update Router ABI
  • Add uint48 and uint160 in ABI builder

v0.9.1 - Minor fixes

04 Aug 13:40
5240e08
Compare
Choose a tag to compare
  • Fix lint error
  • Change v*_swap_exact_in_from_balance payer_is_sender default to False. This parameter will be removed in the next version.

v0.9.0 - Encode UNWRAP_WETH

04 Jul 17:27
bda750e
Compare
Choose a tag to compare
  • Add support for UNWRAP_WETH encoding (close ticket #7)
  • Add v2_swap_exact_in_from_balance() and v3_swap_exact_in_from_balance(): 2 convenient methods which are used when the exact in_amount is not known when the transaction is built, typically chained after a V*_SWAP_EXACT_IN.

v0.8.0 - function chaining

18 Mar 13:08
81ff701
Compare
Choose a tag to compare
  • Breaking changes because of refactoring
  • Command chaining extension: all supported UR functions can now be chained in a single transaction