Hacker Newsnew | past | comments | ask | show | jobs | submit | ElnarilDev's commentslogin

UniswapX orders are not straightforward to decode or encode. With this codec, you can very easily get, decode, verify and encode UniswapX orders.


There are more than 30 functions implemented in the Universal Router at the moment, as we can see in the repository main branch.

They're ranging from ERC-20 DeFi to transfers, permit and NFTs ...

Which ones of these functions are actually called?


You'll learn how to use the Permit2 contract with the Uniswap Universal Router, through its function PERMIT2_PERMIT. The point is to be able to give a Permit allowance to swap/sell ERC-20 tokens.


V0.9.0 is out !! - The latest version of the (unofficial) Python wrapper for the Uniswap Universal Router has been released!


Creating a swap transaction for the latest Uniswap router is not as straightforward as it used to be with the previous routers: you cannot just use the router ABI and invoke a swap function. This guide will teach you how to use Python to build the transaction input data you need to send to the Uniswap Universal Router (UR) in order to buy a token with ETH.


The open source library "uniswap-universal-router-decoder" allows you to easily decode and encode transaction data sent to the Uniswap Universal Router.

It supports the chaining of functions in the same transactions, for example wrapping ETH and using the WETH to buy tokens from a V2 and a V3 pool in the very same transaction.

The latest version (v0.8.0) is packaged on pypi.org and the code is fully visible here: https://github.com/Elnaril/uniswap-universal-router-decoder


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: