Elnaril's Avatar

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

36 Followers  |  6 Following  |  40 Posts  |  Joined: 28.11.2024  |  1.8834

Latest posts by elnaril.bsky.social on Bluesky

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)
YouTube video by Chainstack Build an Autonomous Web3 AI Trading Agent (BASE + Uniswap V4 example)

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
Preview
GitHub - Elnaril/gedit-plugin-collection: Collection of plugins for gedit Collection of plugins for gedit. Contribute to Elnaril/gedit-plugin-collection development by creating an account on GitHub.

I wrote a couple of #Gedit plugins that help me for my jobs, and I thought they could also help others, so I #OpenSource 'ed them:

- JSON Formatter: Verify, Format and Minimify #JSON documents
- Prettifier: Prettify data structures

Repo/doc: github.com/Elnaril/gedi...

#Python

22.01.2025 09:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Probably no more release before #Unichain and #V4 are deployed and deeper/more reliable tests can be done.

20.01.2025 18:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@elnaril is following 6 prominent accounts