DEXcryptoLib is a Python library designed to streamline interactions with the blockchain. The primary objective of this project is to replicate the functionalities of smart contracts, particularly those found in decentralized exchanges like Uniswap or Quickswap, facilitating direct interaction with smart contracts using your code.
For example, for ERC 20 Tokens functions, refer to: ier20.py in Lib/Web3/ier20.py.
Important
The project structure is based on my understanding of web3, hence expect periodic updates to the main structure of the project to align with changes in smart contracts or networks.
Caution
This is a library, and it does not govern all transaction security. If you encounter any issues during your transactions, they may be caused by factors unrelated to the library or its code.
This library leverages Python's native Web3 API, which can be installed using the following command:
pip install web3
To include the project as a submodule of your project, run:
git submodule add https://github.com/simonpotel/DEXcryptoLib
To get the latest version of the library:
git submodule update --remote
Include the library in your code as follows:
from DEXcryptoLib.Lib import *
For usage examples, refer to the snippets provided in DEXcryptoLib\snippets*.