Skip to content

Commit

Permalink
Update .env (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Apr 4, 2022
1 parent 581dfe8 commit 5659446
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export DUNE_USER=
export DUNE_PASSWORD=
export DUNE_QUERY_ID=
export FILE_OUT_PATH=./out
DUNE_USER=
DUNE_PASSWORD=
DUNE_QUERY_ID=
FILE_OUT_PATH=./out
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
python3 -m venv env
source ./env/bin/activate
pip install -r requirements.txt
cp .env.sample .env
source .env
cp .env.sample .env <----- Copy your Dune credentials here!
```

Fill out your Dune credentials in the `.env` file. The Dune user and password are
Expand Down Expand Up @@ -79,7 +78,6 @@ The solver reimbursements are to be executed each Tuesday with the accounting pe

In order to do the payout, run the following scripts:
```shell
source .env
rm -r out/
python -m src.fetch.transfer_file --start '2022-MM-DD'
```
Expand Down
28 changes: 28 additions & 0 deletions logging.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[loggers]
keys=root,src.fetch

[handlers]
keys=consoleHandler

[formatters]
keys=sampleFormatter

[logger_root]
level=INFO
handlers=consoleHandler
propagate=0

[logger_src.fetch]
level=INFO
qualname=src.fetch
handlers=consoleHandler
propagate=0

[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=sampleFormatter
args=(sys.stdout,)

[formatter_sampleFormatter]
format=%(asctime)s %(levelname)s %(name)s %(message)s
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
black==22.3.0
duneapi==2.0.4
mypy==0.941
pylint==2.12.2
duneapi==2.2.2
mypy==0.942
pylint==2.13.4
pytest==7.1.1
types-requests==2.27.14
python-dotenv==0.20.0
types-requests==2.27.16
web3>=5.28.0
4 changes: 4 additions & 0 deletions src/fetch/period_slippage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A standalone script for fetching Solver Slippage for Accounting Period"""
from __future__ import annotations

import logging.config
from dataclasses import dataclass
from enum import Enum
from pprint import pprint
Expand All @@ -13,6 +14,9 @@
from src.token_list import fetch_trusted_tokens
from src.utils.script_args import generic_script_init

log = logging.getLogger(__name__)
logging.config.fileConfig(fname="logging.conf", disable_existing_loggers=False)


def allowed_token_list_query(token_list: list[str]) -> str:
"""Constructs sub query for allowed tokens"""
Expand Down

0 comments on commit 5659446

Please sign in to comment.