Elnaril's Avatar

Elnaril

@elnaril

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

38
Followers
6
Following
42
Posts
28.11.2024
Joined
Posts Following

Latest posts by Elnaril @elnaril

Installation:

pip install uniswap-universal-router-decoder==2.1.0

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! πŸ™

Happy dev!! :)

27.02.2026 13:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
The Python Uniswap Universal Router SDK v2.1.0 is released!

The Python Uniswap Universal Router SDK v2.1.0 is released!

✨ The Python Uniswap Universal Router (unofficial) SDK v2.1.0 is released! ✨

Among other improvements, the SDK now supports 2 additional Universal Router functions:
➑️ PERMIT2_PERMIT_BATCH
➑️ PERMIT2_TRANSFER_FROM_BATCH

Full release notes here: github.com/Elnaril/unis...

27.02.2026 13:29 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Happy New Year to everyone! :)

01.01.2026 18:37 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Advanced, Overlooked Python Typing There is a common debate in Python circles: if you want static typing, why choose Python to begin with?

Overlooked typing features of recent Python versions:

martynassubonis.substack.com/p/advanced-o...

11.12.2025 08:31 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Elnaril/uniswap-universal-router-decoder Uniswap Universal Router SDK - Decode and Encode Transactions - Uniswap V2, V3 & V4 - Elnaril/uniswap-universal-router-decoder

It's a fun way to grow skills and contribute to #OpenSource projects. πŸ˜ƒ

github.com/Elnaril/unis...

#DeFi | #Ethereum | #Buidl

30.09.2025 14:36 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

#Hacktoberfest2025 starts tomorrow and the (unofficial) #Python SDK for the #Uniswap Universal Router is part of it this year! ❀️‍πŸ”₯

I've described and tagged several updates/enhancements for this event, ranging from beginner to intermediate and advanced.

Have a look and share it!

30.09.2025 14:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Scaling asyncio on Free-Threaded Python A recap on the work done in Python 3.14 to enable asyncio to scale on the free-threaded build of CPython.

labs.quansight.org/blog/scaling...

22.09.2025 10:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Build an Autonomous Web3 AI Trading Agent (BASE + Uniswap V4 example)
Build an Autonomous Web3 AI Trading Agent (BASE + Uniswap V4 example) YouTube video by Chainstack

Web3/AI tutorial published by Chainstack
and using the #Uniswap Universal Router #Python SDK!

www.youtube.com/watch?v=2wQn...

#web3 #programming #coding #blockchain #Ethereum

30.08.2025 07:34 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

asyncio: a library with too many sharp corners

An explanation of some major issues with asyncio.

https://sailor.li/asyncio

05.08.2025 03:15 πŸ‘ 3 πŸ” 2 πŸ’¬ 0 πŸ“Œ 1
Preview
Encode_Uniswap_V4_Pool_Id Uniswap Universal Router SDK - Decode and Encode Transactions - Uniswap V2, V3 & V4 - Elnaril/uniswap-universal-router-decoder

#Python: How to encode a #Uniswap V4 pool key and pool id ?

github.com/Elnaril/unis...

#web3 #crypto #ethereum #buidl #DeFi #programming #coding #blockchain #opensource #foss

25.04.2025 07:54 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Python Tutorial: How to rate limit async requests to credit-based APIs

Easily manage rate limits based on a number of credits or computational units per time unit, or cups

https://dev.to/elnaril/python-tutorial-how-to-rate-limit-async-requests-to-credit-based-apis-ahj

23.04.2025 09:15 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Preview
Python Tutorial: How to rate limit async requests to credit-based APIs This tutorial demonstrates how to use the Python credit-rate-limit library to manage API rate limits...

#Python Tutorial: How to rate limit async requests to credit-based APIs

dev.to/elnaril/pyth...

#opensource #programming #coding #API #buidl #blockchain

20.04.2025 15:49 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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.

14.04.2025 10:24 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image
14.04.2025 10:21 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

14.04.2025 09:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Rule application to the right column:

Rule 1 => the right col. has 2B & 3W so the missing group must have 3B and 2W

14.04.2025 09:41 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

14.04.2025 09:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Top: 1B
Bottom: 2B & 2W

14.04.2025 09:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

07.03.2025 15:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Python Uniswap Universal Router breakdown of downloads in percentage per version

Python Uniswap Universal Router breakdown of downloads in percentage per version

Uniswap released #Uniswap V4 five weeks ago.

Alpha versions of the #Python UR SDK were already around and the stable one (v2.0.0) was packaged 2 weeks ago.

#web3 | #crypto | #DeFi | #programming | #coding | #blockchain

Here is the breakdown (in %) of downloads per version over the last week:

07.03.2025 15:28 πŸ‘ 2 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

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!

22.02.2025 09:46 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Installation:

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

22.02.2025 09:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

22.02.2025 09:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

22.02.2025 09:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

22.02.2025 09:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - Elnaril/uniswap-universal-router-decoder: Uniswap Universal Router SDK - Decode and Encode Transactions Uniswap Universal Router SDK - Decode and Encode Transactions - Elnaril/uniswap-universal-router-decoder

The #OpenSource #Python Universal Router SDK ✨v2.0.0✨ is released and supports now all #uniswap V4 features!

➑️ Swap on V4 pools
➑️ Create new V4 pools
➑️ Mint positions on V4 pools
➑️ And much more ....

github.com/Elnaril/unis...

#Web3 #BUIDL #DeFi #programming #coding #blockchain #crypto #ethereum

22.02.2025 09:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - Elnaril/uniswap-universal-router-decoder: Uniswap Universal Router SDK - Decode and Encode Transactions Uniswap Universal Router SDK - Decode and Encode Transactions - Elnaril/uniswap-universal-router-decoder

πŸ’« #Python #Uniswap Universal Router beta release: the v2.0.0b1 fixes some issues and improve documentation! πŸŽ‰

Are you ready to dev around Uniswap V4?
➑️ github.com/Elnaril/unis...

#Buidl | #Web3 | #OpenSource | #DeFi | #programming | #coding | #blockchain

09.02.2025 17:46 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

V4 SWAP_EXACT_OUT is now fixed as well! πŸ’«
Still available only from the repo at the moment, though

➑️ #Python #Uniswap Universal Router SDK

#DeFi | #Buidl | #OpenSource | #programming | #coding | #blockchain

07.02.2025 17:03 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Just pushed a fix for V4 SWAP_EXACT_IN.
Hopefully I will be able to release the first beta soonℒ️ !

➑️ #Python #Uniswap Universal Router SDK

#DeFi | #Buidl | #OpenSource | #web3

06.02.2025 19:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Welcome to any feedback! :)

22.01.2025 09:02 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0