Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[flake8]
ignore = E203, E231, E266, E501, E721, E722, W503, F403, F405, F401, W605
exclude =
.git,
__pycache__/,
migrations/,
static,
templates,
build,
dist
max-line-length = 79
max-complexity = 18
select = B,C,E,F,W,T4,B9
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@ cython_debug/

.vscode/
bin/

abis/
data/
tmp/
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/PyCQA/flake8
rev: "7.1.0"
hooks:
- id: flake8
args: ["--max-line-length", "79"]
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3.11.10-slim-bullseye
ENV PYTHONUNBUFFERED 1

COPY . /opt/ethereum-datafarm
WORKDIR /opt/ethereum-datafarm

RUN pip install -U pip
RUN pip install setuptools_scm
RUN pip install -r requirements.txt

# cleanup
RUN rm -rf /var/lib/apt/lists/*
RUN pip cache purge

# add user
RUN useradd -s /sbin/nologin -u 1001 -d /opt/ethereum-datafarm datafarm

VOLUME "data/"
5 changes: 1 addition & 4 deletions contracts.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5,ens_registrar,NameRegistered(string,bytes32,address,uint256,uint256),14363664,5000
0xdAC17F958D2ee523a2206206994597C13D831ec7,tether,Transfer(address,address,uint256),14363664,20
0x6B175474E89094C44Da98b954EedeAC495271d0F,dai,Transfer(address,address,uint256),14363664,500
0x5ef30b9986345249bc32d8928B7ee64DE9435E39,makerdao,NewCdp(address,address,uint256),14363664,5000
0x55d398326f99059ff775485246999027b3197955,BEP20USDT,Transfer(address,address,uint256),176416,20
4 changes: 4 additions & 0 deletions contracts.csv.bk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5,ens_registrar,NameRegistered(string,bytes32,address,uint256,uint256),14363664,5000
0xdAC17F958D2ee523a2206206994597C13D831ec7,tether,Transfer(address,address,uint256),14363664,20
0x6B175474E89094C44Da98b954EedeAC495271d0F,dai,Transfer(address,address,uint256),14363664,500
0x5ef30b9986345249bc32d8928B7ee64DE9435E39,makerdao,NewCdp(address,address,uint256),14363664,5000
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| requirements
| build
| dist
)/
'''
11 changes: 6 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
requests==2.28.1
termcolor==1.1.0
pysha3==1.0.2
web3==5.30.0
pandas==1.4.3
requests==2.32.3
termcolor==2.5.0
#pysha3==1.0.2
pycryptodome==3.21.0
web3==7.6.0
pandas==2.2.3
1 change: 0 additions & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Loading