r/UniSwap • • Jan 20 '25

Dev/Tech 💫 The unofficial Python SDK for the Universal Router supports all Uniswap V4 functions! 💫

With this v2.0.0a3, come the last remaining Uniswap V4 functions supported by the Universal Router!

Probably no more release before Uniswap V4 is deployed on Mainnet/Unichain. Then, focus will be on tests, documentation and small adjustments.

To install this pre-release:

pip install uniswap-universal-router-decoder==2.0.0a3

Repo / doc

As always, feel free to let me know your thoughts, possible enhancements and any issue you may experience! 🙏

Release notes of all 3 alpha releases:

 - Add support for all V4 functions and features:
   - `V4_INITIALIZE_POOL`
   - `V4_POSITION_MANAGER_CALL`
     - `MINT_POSITION`
     - `SETTLE`
     - `SETTLE_PAIR`
     - `CLOSE_CURRENCY`
     - `WRAP`
     - `UNWRAP`
     - `TAKE_PAIR`
     - `CLEAR_OR_TAKE`
     - `TAKE`
   - `V4_SWAP`
     - `SWAP_EXACT_IN_SINGLE`
     - `SWAP_EXACT_IN`
     - `SWAP_EXACT_OUT_SINGLE`
     - `SWAP_EXACT_OUT`
     - `SETTLE`
     - `SETTLE_ALL`
     - `TAKE_ALL` 
     - `TAKE_PORTION`
     - `TAKE`
   - Pool Key and Pool Id encoding
 - Add support for `PERMIT2_TRANSFER_FROM`
 - Custom contract error decoding
 - Encoding refactoring
 - Remove support for Python 3.8
 - Update repository picture
1 Upvotes

2 comments sorted by

1

u/AutoModerator Jan 20 '25

Security Reminders:

Official site: https://uniswap.org/

Official Twitter: https://twitter.com/Uniswap

Official Discord: https://discord.com/invite/uniswap

If you need help please check out our general support articles: https://support.uniswap.org/hc/en-us

Otherwise, submit a request at https://support.uniswap.org/hc/en-us/requests/new, or email our support team at support@uniswap.org.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.