Metadata-Version: 2.1
Name: pyrevm-contract
Version: 0.2.1
Summary: Minimal Brownie like contract wrapper for Pyrevm
Home-page: https://github.com/jalbrekt85/pyrevm_contract
Author: jalbrekt85
Author-email: jcalbrecht85@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyrevm
Requires-Dist: eth-abi
Requires-Dist: pysha3

# pyrevm_contract
Minimal Brownie like contract wrapper for Pyrevm

```
pip install pyrevm_contract
```

```py
from pyrevm_contract import Revm, Contract

caller = "0x00000000000000000000000000000000000021E8"
weth_addr = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
weth_abi_path = ... # abi .json file path

Revm("https://eth.llamarpc.com", block_number=5282490) # revm singleton; sets backend for all contracts
weth = Contract(weth_addr, abi_file_path=weth_abi_path)

weth.balanceOf(caller) # -> 0
weth.deposit(value=100, caller=caller)
weth.balanceOf(caller) # -> 100
```
