Add your description here
Project description
EVM contract abstraction and ABI utilities.
The main difference from Web3().eth.contract() is decoupling the contract from the Web3 instance, makes it easy to work with multiple providers, which is particularly important in today's multi-chain environment.
See the unit tests for examples of how to use it.
Builtin common contract ABIs:
- ERC20
- CREATE2 factory (0x4e59b44847b379578588920ca78fbf26c0b4956c)
include cli utility to deploy contract using the factory,
python -m eth_contract.create2 --help. - createx factory (https://github.com/pcaversaccio/createx)
include cli utility to deploy contract with create3,
python -m eth_contract.create3 --help. - multicall3 (https://github.com/mds1/multicall3)
- weth (https://github.com/gnosis/canonical-weth)
Please open issue if you want to see more ABIs included.
TODO
- event filter arguments building.
- more tests.
- more builtin contract ABIs for convenience
- Create2/create3 factory
- Permit2
- multicall
- etc
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eth_contract-0.1.0.tar.gz.
File metadata
- Download URL: eth_contract-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c4610fd0f0c3aa30678e5578d7a732039751bf391a908c3da56b9c0d988955
|
|
| MD5 |
da7b15581627aa8f21fb50465af9d213
|
|
| BLAKE2b-256 |
ee32352001bd02f74edf05cdede94445ea07061828f0ef7d2f37e94515e9e031
|
File details
Details for the file eth_contract-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eth_contract-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1882ec94f8071821f531f9460e25708861e61a1cd9383f08e507debdb3c37441
|
|
| MD5 |
0b2c5d9a28465a7c1b3267024d135038
|
|
| BLAKE2b-256 |
16666d6e7dee3ac3187f21bfd1756c5d041fd803ea393dfa4fb0d30b2ab3c272
|