mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-19 23:20:32 -04:00
💾
This commit is contained in:
parent
75a4fdf440
commit
7d4747153c
3 changed files with 1745 additions and 7 deletions
|
@ -7,12 +7,17 @@ an on-going development of a library and set of python scripts with my fav on-ch
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
### installing
|
### setting up
|
||||||
|
|
||||||
|
we use [poetry](https://python-poetry.org/docs/) to setup this package (config details at `pyproject.toml`).
|
||||||
|
|
||||||
|
installing:
|
||||||
|
|
||||||
```
|
```
|
||||||
brew install poetry
|
brew install poetry
|
||||||
make install
|
make install
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
vim .env
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,7 +33,10 @@ cp .env.example .env
|
||||||
|
|
||||||
1. add info to `.env`
|
1. add info to `.env`
|
||||||
2. run
|
2. run
|
||||||
`poetry run python get_contracts_deployed.py`
|
```
|
||||||
|
cd scripts
|
||||||
|
poetry run python get_contracts_deployed.py
|
||||||
|
```
|
||||||
3. any output is saved to `data/`.
|
3. any output is saved to `data/`.
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,10 +46,12 @@ cp .env.example .env
|
||||||
|
|
||||||
#### get reserve history by block for a pair of addresses
|
#### get reserve history by block for a pair of addresses
|
||||||
|
|
||||||
1. add the pair abi to `abi`
|
1. add the pair abi to `abis/
|
||||||
2. add info to `.env`
|
2. run
|
||||||
3. run
|
```
|
||||||
`poetry run python get_reserve_history_by_block.py`
|
cd scripts
|
||||||
|
poetry run python get_reserve_history_by_block.py
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
1728
web3toolkit/poetry.lock
generated
Normal file
1728
web3toolkit/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@ readme = "README.md"
|
||||||
packages = [{include = "scripts"}]
|
packages = [{include = "scripts"}]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "3.10"
|
python = "3.11.1"
|
||||||
ethereum-etl = "2.1.2"
|
ethereum-etl = "2.1.2"
|
||||||
python-dotenv = "0.21.0"
|
python-dotenv = "0.21.0"
|
||||||
web3 = "5.31.3"
|
web3 = "5.31.3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue