Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallets and treasury update #182

Merged
merged 123 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
d3fc6b7
feat: add skeleton
BobTheBuidler Jan 19, 2022
ffd6d3a
fix: temporarily disable victoria
BobTheBuidler Jan 19, 2022
9ac47a2
feat: add total users
BobTheBuidler Jan 19, 2022
67d5e11
feat: count wallets by # vaults used
BobTheBuidler Jan 19, 2022
2292dc9
feat: add total users by vault
BobTheBuidler Jan 19, 2022
f4cb58c
fix: use Decimal instead of float
BobTheBuidler Jan 19, 2022
57e9854
feat: use pickle instead of csv for tx cache
BobTheBuidler Jan 19, 2022
0e9c248
chore: refactor
BobTheBuidler Jan 19, 2022
b9f84d1
chore: checkpoint tx pickle thru block 10949751
BobTheBuidler Jan 19, 2022
c747e51
feat: parallelism
BobTheBuidler Jan 19, 2022
8888c5b
fix: accept new transfer event field labels
BobTheBuidler Jan 19, 2022
7fcd660
fix: handle reverts in price magic
BobTheBuidler Jan 19, 2022
96985c1
fix: etherscan rate limit handler
BobTheBuidler Jan 19, 2022
ff3081e
chore: refactor dataframe
BobTheBuidler Jan 19, 2022
60acc61
chore: increase dop
BobTheBuidler Jan 19, 2022
06ac0a3
chore: refactor
BobTheBuidler Jan 19, 2022
0246984
chore: checkpoint tx pickle thru block 13398262
BobTheBuidler Jan 19, 2022
d326c99
feat:user balances (#2)
BobTheBuidler Jan 19, 2022
8445b30
feat: merge tx analysis with existing exporter
BobTheBuidler Jan 19, 2022
8b15888
chore: wallets not users
BobTheBuidler Jan 19, 2022
d0af3cc
chore: cleanup
BobTheBuidler Jan 19, 2022
ee03cb2
chore: wallets not users
BobTheBuidler Jan 19, 2022
734b94b
chore: refactor
BobTheBuidler Jan 19, 2022
5a8d9f2
feat: env variable to skip wallet stats for speed
BobTheBuidler Jan 19, 2022
5c139bb
chore: cleanup
BobTheBuidler Jan 19, 2022
f03c8b9
fix: skip transfers
BobTheBuidler Jan 19, 2022
c3b3d56
fix: typo
BobTheBuidler Jan 19, 2022
fa362b0
feat: treasury exporter
BobTheBuidler Jan 19, 2022
86d28e2
feat: add buckets
BobTheBuidler Jan 19, 2022
2a3a757
fix: add details to revert message when can't decode logs
BobTheBuidler Jan 19, 2022
739ae9d
feat: silent kwarg for magic.get_price
BobTheBuidler Jan 19, 2022
89c758a
feat: postgres tx caching
BobTheBuidler Jan 19, 2022
c8e6653
chore: cleanup reverted changes
BobTheBuidler Jan 19, 2022
548e4e0
feat: yearn.describe_wallets
BobTheBuidler Jan 19, 2022
30c0a78
feat: wallet exporter
BobTheBuidler Jan 19, 2022
cf6e06f
feat: specify new agg stats
BobTheBuidler Jan 19, 2022
2be4810
feat: skip middleware if already setup
BobTheBuidler Jan 19, 2022
fedd1fe
chore: cleanup
BobTheBuidler Jan 19, 2022
00f92e0
chore: black
BobTheBuidler Jan 19, 2022
913b68d
chore: cleanup
BobTheBuidler Jan 19, 2022
8526456
chore: cleanup
BobTheBuidler Jan 19, 2022
2e35686
fix: setup middleware
BobTheBuidler Jan 19, 2022
4b33693
chore: revert changes to create_filter
BobTheBuidler Jan 19, 2022
bd6891c
chore: revert silent kwarg on magic.get_price
BobTheBuidler Jan 19, 2022
14425c6
chore: refactor
BobTheBuidler Jan 19, 2022
e4bbe5d
feat: sms exporter
BobTheBuidler Jan 16, 2022
ec3c162
fix: compound debt zero address bug
BobTheBuidler Jan 16, 2022
fd8aacd
chore: fix logger name
BobTheBuidler Jan 16, 2022
f0ae455
feat: replace pyodbc with ponyorm
BobTheBuidler Jan 16, 2022
c8eaabb
feat: wallet exporter for earn, ib, special
BobTheBuidler Jan 16, 2022
dcb1090
chore: add pony to requirements
BobTheBuidler Jan 16, 2022
61d8a11
fix: sms exporter
BobTheBuidler Jan 16, 2022
39380b2
fix: wallet exporter
BobTheBuidler Jan 16, 2022
a5317d8
fix: historical treasury exporter
BobTheBuidler Jan 16, 2022
d937e92
fix: treasury exporter
BobTheBuidler Jan 16, 2022
b2b9fe3
fix: sql syntax
BobTheBuidler Jan 16, 2022
e6e597c
fix: registry wallet exporter
BobTheBuidler Jan 16, 2022
d2f1cf3
fix: vault wallet exporter
BobTheBuidler Jan 16, 2022
f99d094
fix: yearn registry
BobTheBuidler Jan 16, 2022
45c219f
fix: victoria
BobTheBuidler Jan 16, 2022
6d5f48e
fix: transactions exporter insufficient chunk size
BobTheBuidler Jan 16, 2022
9037fcf
feat: add sms address for ftm
BobTheBuidler Jan 16, 2022
92ecd4f
fix: typeerror in compound debt calc
BobTheBuidler Jan 16, 2022
116f8cf
chore: cleaner treasury constants for multichain
BobTheBuidler Jan 16, 2022
7b8a6d8
chore: homogenize registry method names for active_vaults_at
BobTheBuidler Jan 16, 2022
dbd9c92
chore: remove unnecessary caching
BobTheBuidler Jan 16, 2022
422ed57
chore: cleanup constants
BobTheBuidler Jan 16, 2022
0c7c3de
chore: refactor
BobTheBuidler Jan 16, 2022
8f86a69
chore: remove artifact from testing
BobTheBuidler Jan 16, 2022
f4cca02
chore: better utilize ponyorm queries
BobTheBuidler Jan 16, 2022
d2c419a
chore: refactor
BobTheBuidler Jan 16, 2022
1628ea8
fix: last_recorded_block postgres util
BobTheBuidler Jan 16, 2022
470220e
fix: transactions exporter broken by previous refactoring
BobTheBuidler Jan 16, 2022
4758f8f
chore: remove artifact from testing
BobTheBuidler Jan 16, 2022
cb30ec2
chore: remove unneeded infura env vars
BobTheBuidler Jan 16, 2022
7982682
chore: remove dev artifacts
BobTheBuidler Jan 16, 2022
f67478b
fix: remove parallelism on transactions exporter
BobTheBuidler Jan 16, 2022
eb09fbd
chore: extract variable
BobTheBuidler Jan 16, 2022
39d6529
chore: add comment
BobTheBuidler Jan 16, 2022
8ce3300
chore: refactor
BobTheBuidler Jan 16, 2022
116ee12
chore: remove commented out wip snippets
BobTheBuidler Jan 16, 2022
f6eca79
fix: buckets
BobTheBuidler Jan 16, 2022
caba854
fix: unhashable type error
BobTheBuidler Jan 16, 2022
2e1163a
chore: clarify comment
BobTheBuidler Jan 16, 2022
aafd4d0
fix: stablecoin checksum addresses
BobTheBuidler Jan 16, 2022
109ec5d
feat: add husd, dusd, musd, fusdt(ftm), mim (ftm) to stablecoin list
BobTheBuidler Jan 16, 2022
2fe5b9b
feat: support yearn vaults on ftm price magic
BobTheBuidler Jan 16, 2022
4f87902
chore: remove old code
BobTheBuidler Jan 16, 2022
2355492
fix: magic.get_price for yveCRV-DAO before there was liquidity
BobTheBuidler Jan 16, 2022
6b926aa
fix: data_query for ftm historical exporter
BobTheBuidler Jan 16, 2022
5b534e2
chore: remove empty exports
BobTheBuidler Jan 16, 2022
95bcc4e
chore: remove unused imports
BobTheBuidler Jan 16, 2022
82c6317
chore: cleanup logging
BobTheBuidler Jan 16, 2022
306eace
feat: magic.get_price for curve v2
BobTheBuidler Jan 16, 2022
3189214
chore: improve exception logging
BobTheBuidler Jan 16, 2022
d080711
fix: price edge cases for wallet exporter
BobTheBuidler Jan 16, 2022
ba64c3f
fix: null data display bug
BobTheBuidler Jan 16, 2022
bd23a0f
Revert "feat: magic.get_price for curve v2"
BobTheBuidler Jan 16, 2022
4452ae7
feat: add anydai and anymim to mainnet stablecoins list
BobTheBuidler Jan 17, 2022
e7767d4
fix: import error when postgres container not running
BobTheBuidler Jan 17, 2022
6d52ff2
feat: log errors while fetching price to sentry
BobTheBuidler Jan 18, 2022
b8c8873
feat: more responsive treasury event watching
BobTheBuidler Jan 19, 2022
6313f9d
fix: treasury watch events
BobTheBuidler Jan 19, 2022
042721c
fix: manually merge ib handling code into the PR branch.
mariuspod Jan 27, 2022
136bb47
feat: refactored outputs into separate files for better readability.
mariuspod Jan 27, 2022
29dadbf
feat: adding treasury file from bob.
mariuspod Jan 27, 2022
ba925c7
fix: move import to the right file
mariuspod Jan 27, 2022
aac3ac5
feat: remove unused packages from docker image.
mariuspod Jan 28, 2022
10e7546
chore: add FTMSCAN_TOKEN env var for ftm containers
BobTheBuidler Jan 29, 2022
b7582a5
fix: remove IS_CONTAINER env var
BobTheBuidler Jan 29, 2022
098dfee
fix: transactions-exporter TransactionIntegrityError on fresh startup
BobTheBuidler Jan 29, 2022
175e16a
chore: replace soon-to-be-deprecated df.append with pd.concat
BobTheBuidler Jan 29, 2022
76c6d57
fix: don't fail when transaction_exporter has not exported anything yet.
mariuspod Jan 30, 2022
0f25539
fix: handle the entity creation more gracefully with the transaction …
mariuspod Jan 30, 2022
ad12946
feat: refactor db entities a bit for more standardized PKs and FKs an…
mariuspod Jan 30, 2022
9eca867
fix: adding band supported tokens.
mariuspod Jan 31, 2022
b7daccb
fix: use PG* envs for postgres connection config.
mariuspod Jan 31, 2022
3efcdba
wip: trying to move pricePerShare logic into its own price class.
mariuspod Jan 31, 2022
d215e97
fix: adding file to calculate price per share of a token
mariuspod Jan 31, 2022
681f460
Revert "fix: adding file to calculate price per share of a token"
mariuspod Jan 31, 2022
2ecbb86
Revert "wip: trying to move pricePerShare logic into its own price cl…
mariuspod Jan 31, 2022
4ebbac5
fix: propagate error when unable to read share price
banteg Jan 31, 2022
3214a0a
fix: handle crvaave incident
banteg Jan 31, 2022
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
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ FROM python:3.9-bullseye
RUN mkdir -p /app/yearn-exporter
WORKDIR /app/yearn-exporter

RUN apt-get update
RUN apt-get install -y build-essential odbc-postgresql python3-dev unixodbc-dev

ADD requirements.txt ./
RUN pip3 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rebuild: down build up
scratch: clean-volumes build up

logs:
$(dashboards_command) logs -f -t eth-exporter historical-eth-exporter ftm-exporter historical-ftm-exporter treasury-exporter historical-treasury-exporter transactions-exporter wallet-exporter
$(dashboards_command) logs -f -t eth-exporter historical-eth-exporter ftm-exporter historical-ftm-exporter treasury-exporter historical-treasury-exporter transactions-exporter wallet-exporter sms-exporter historical-sms-exporter

test:
$(test_command) up
Expand Down
Loading