Elnaril
banner
elnaril.bsky.social
Elnaril
@elnaril.bsky.social
Freelance and open-source developer working on Python blockchain projects.

https://github.com/Elnaril
https://fiverr.com/elnaril
https://gravatar.com/elnaril

#python #web3 #crypto #ethereum #uniswap #buidl #DeFi #programming #coding #blockchain
It's a fun way to grow skills and contribute to #OpenSource projects. 😃

github.com/Elnaril/unis...

#DeFi | #Ethereum | #Buidl
Elnaril/uniswap-universal-router-decoder
Uniswap Universal Router SDK - Decode and Encode Transactions - Uniswap V2, V3 & V4 - Elnaril/uniswap-universal-router-decoder
github.com
September 30, 2025 at 2:37 PM
starting from the top left grid, the left black square rotates by +2 positions, while the right one rotates by -1 position. The answer is the missing positions in the given list of grids.
April 14, 2025 at 10:24 AM
April 14, 2025 at 10:21 AM
Rule 2 => the right col. has 2W & 1B above the line, so the missing group must have 1B & no W above the line

Rule 3 => the right col. has 1B & 1W below the line, so the missing group must have 2B & 2W below the line
April 14, 2025 at 9:42 AM
Rule application to the right column:

Rule 1 => the right col. has 2B & 3W so the missing group must have 3B and 2W
April 14, 2025 at 9:41 AM
Reasoning:
Let's consider the 3 groups on the left column.

1st rule:
There are 5B and 5W

2nd rule:
There are 2B above the lines
There are 2W above the lines

3rd rule:
There are 3B below the lines
There are 3W below the lines
April 14, 2025 at 9:40 AM
Top: 1B
Bottom: 2B & 2W
April 14, 2025 at 9:40 AM
Interesting to see that:
- v1.2.0 (26.6%) & 0.9.1 (21.3%) are still the most downloaded
- versions related to #Uniswap V4 (v2.0.0 & its pre-releases) come third (18.7%)

=> the vast majority (81.3%) still concerns #Uniswap V2 & V3.

We'll see how this breakdown changes in time.

#buidl
March 7, 2025 at 3:29 PM
Feel free to give me any feedback on this release here, or open a discussion or a ticket about a feature that should be in the next one!
February 22, 2025 at 9:46 AM
Installation:

pip install uniswap-universal-router-decoder==2.0.0
February 22, 2025 at 9:45 AM
Full v2.0.0 release notes - 3:

- Add support for `PERMIT2_TRANSFER_FROM`
- Custom contract error decoding
- Encoding refactoring
- Remove support for Python 3.8
- Update repository picture
- Update default router address to Mainnet's one
- Add integration tests for V4
February 22, 2025 at 9:45 AM
Full v2.0.0 release notes - 2:

- Add support for V4 swaps:
- 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, Path and Id encoding
February 22, 2025 at 9:45 AM
Full v2.0.0 release notes - 1:

- Add support for V4 pools:
- V4_INITIALIZE_POOL
- V4_POSITION_MANAGER_CALL
- MINT_POSITION
- SETTLE
- SETTLE_PAIR
- CLOSE_CURRENCY
- WRAP
- UNWRAP
- TAKE_PAIR
- CLEAR_OR_TAKE
- TAKE
February 22, 2025 at 9:44 AM