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

feat: Add github action to build and bush docker container image" #1

Closed
wants to merge 29 commits into from

Conversation

numan
Copy link
Owner

@numan numan commented Feb 18, 2022

jstashh and others added 29 commits December 30, 2021 22:01
* fix: use crypto swap registry if available

* fix: make boolean check more explicit
…rn#186)

* fix: Requesting ERC-20 or ERC-677 Transfer events in log filter.

* fix: use brownie version that contains the ability to download the latest solc compiler patch version for contract compilations and remove handling of '(unknown)' events.

* fix: don't import relative parts and use encode_* methods to encode the addresses for the log filter.

* fix: typo in yaml file

* feat: use brownie master branch which has the required changes merged in which fix event decoding for the given chainlink contract.
* fix: arbitrum pricing fixes, disable curve apy for now

* fix: revert change to interface

* fix: remove unused interface import
…-01-22 (yearn#199)

* fix: added ust stablecoin.

* feat: refactor multiple chain-based #get_price methods into a single one.

* feat: set ironbank tvl to 0 after 2022-01-22T00:00:00Z because they launched as a separate product.

* fix: define a constant for the ironbank snapshot block per network and use that for comparing with the current block.

* fix: allow to override the default behaviour where the ib TVL is excluded after the snapshot block.

* fix: remove __repr__ method.

* fix: remove chain.id check.

* fix: make token unwrapping chain-aware.

* feat: refactor balance as a class. Move memory-cached code into a pure function so it can be cached.

* feat: refactor pool-like markets and add #is_in_pool and #get_pool_price for them

* fix: make the usage of the constant more explicit.

* fix: remove special handling here to not obscure any underlying problems.

* fix: order for if-check

* fix: change market order.

* fix: create two metrics to track ib tvl before and after the snapshot.

* fix: revert changes and make querying of uniswap_v2, balancer and yearn-lens more explicit again.

* fix: oracles could be empty for the given network.

* feat: remove ib tvl from the total sums if the conditions are met.

* fix: constant import

* fix: remove unused __repr__ methods.

* fix: resolve circular import for balancer.

* Update dashboards (yearn#209)

* fix: ironbank dash

* fix: overview dash

* update overview changes

* update TVL in Yearn Ecosystem dash

* update vault overview dash

* run prettier

Co-authored-by: Dark Ghosty <[email protected]>
* fix vault overview name

* fix tvl name

* fix overview name
* feat: add skeleton

* fix: temporarily disable victoria

* feat: add total users

* feat: count wallets by # vaults used

* feat: add total users by vault

* fix: use Decimal instead of float

* feat: use pickle instead of csv for tx cache

* chore: refactor

* chore: checkpoint tx pickle thru block 10949751

* feat: parallelism

* fix: accept new transfer event field labels

* fix: handle reverts in price magic

* fix: etherscan rate limit handler

* chore: refactor dataframe

* chore: increase dop

* chore: refactor

* chore: checkpoint tx pickle thru block 13398262

* feat:user balances (#2)

* feat: add transactions exporter to docker

* chore: reduce unnecessary printing

* feat: user balances

* feat: merge tx analysis with existing exporter

* chore: wallets not users

* chore: cleanup

* chore: wallets not users

* chore: refactor

* feat: env variable to skip wallet stats for speed

* chore: cleanup

* fix: skip transfers

* fix: typo

* feat: treasury exporter

* feat: add buckets

* fix: add details to revert message when can't decode logs

* feat: silent kwarg for magic.get_price

* feat: postgres tx caching

* chore: cleanup reverted changes

* feat: yearn.describe_wallets

* feat: wallet exporter

* feat: specify new agg stats

* feat: skip middleware if already setup

* chore: cleanup

* chore: black

* chore: cleanup

* chore: cleanup

* fix: setup middleware

* chore: revert changes to create_filter

* chore: revert silent kwarg on magic.get_price

* chore: refactor

* feat: sms exporter

* fix: compound debt zero address bug

* chore: fix logger name

* feat: replace pyodbc with ponyorm

* feat: wallet exporter for earn, ib, special

* chore: add pony to requirements

* fix: sms exporter

* fix: wallet exporter

* fix: historical treasury exporter

* fix: treasury exporter

* fix: sql syntax

* fix: registry wallet exporter

* fix: vault wallet exporter

* fix: yearn registry

* fix: victoria

* fix: transactions exporter insufficient chunk size

* feat: add sms address for ftm

* fix: typeerror in compound debt calc

* chore: cleaner treasury constants for multichain

* chore: homogenize registry method names for active_vaults_at

* chore: remove unnecessary caching

* chore: cleanup constants

* chore: refactor

* chore: remove artifact from testing

* chore: better utilize ponyorm queries

* chore: refactor

* fix: last_recorded_block postgres util

* fix: transactions exporter broken by previous refactoring

* chore: remove artifact from testing

* chore: remove unneeded infura env vars

* chore: remove dev artifacts

* fix: remove parallelism on transactions exporter

* chore: extract variable

* chore: add comment

* chore: refactor

* chore: remove commented out wip snippets

* fix: buckets

* fix: unhashable type error

* chore: clarify comment

* fix: stablecoin checksum addresses

* feat: add husd, dusd, musd, fusdt(ftm), mim (ftm) to stablecoin list

* feat: support yearn vaults on ftm price magic

* chore: remove old code

* fix: magic.get_price for yveCRV-DAO before there was liquidity

* fix: data_query for ftm historical exporter

* chore: remove empty exports

* chore: remove unused imports

* chore: cleanup logging

* feat: magic.get_price for curve v2

* chore: improve exception logging

* fix: price edge cases for wallet exporter

* fix: null data display bug

* Revert "feat: magic.get_price for curve v2"

This reverts commit 15e3d1d.

* feat: add anydai and anymim to mainnet stablecoins list

* fix: import error when postgres container not running

* feat: log errors while fetching price to sentry

* feat: more responsive treasury event watching

* fix: treasury watch events

* fix: manually merge ib handling code into the PR branch.

* feat: refactored outputs into separate files for better readability.

* feat: adding treasury file from bob.

* fix: move import to the right file

* feat: remove unused packages from docker image.

* chore: add FTMSCAN_TOKEN env var for ftm containers

* fix: remove IS_CONTAINER env var

* fix: transactions-exporter TransactionIntegrityError on fresh startup

* chore: replace soon-to-be-deprecated df.append with pd.concat

* fix: don't fail when transaction_exporter has not exported anything yet.

* fix: handle the entity creation more gracefully with the transaction so it doesn't raise IntegrityException.

* feat: refactor db entities a bit for more standardized PKs and FKs and less ORM surprises.

* fix: adding band supported tokens.

* fix: use PG* envs for postgres connection config.

* wip: trying to move pricePerShare logic into its own price class.

* fix: adding file to calculate price per share of a token

* Revert "fix: adding file to calculate price per share of a token"

This reverts commit d215e97.

* Revert "wip: trying to move pricePerShare logic into its own price class."

This reverts commit 3efcdba.

* fix: propagate error when unable to read share price

* fix: handle crvaave incident

Co-authored-by: mariuspod <[email protected]>
Co-authored-by: banteg <[email protected]>
* feat: multicall can require success

* fix: yearn oracle error for zero share price

* feat: add gusd incident handling
* feat: env variable to skip wallet stats for speed

* feat: postgres tx caching

* fix: price edge cases for wallet exporter

* feat: add new exporters to make logs

* fix: treasury params for multichain

* feat: make wallet exporter loop instead of restarting container

* fix: fantom env vars

* feat: make logs-all

Co-authored-by: banteg <[email protected]>

Co-authored-by: banteg <[email protected]>
…ptions (yearn#192)

* feat: add -r flag to raise exceptions from the brownie script to the caller.

* feat: integrate sentry.

* feat: unlock the thread if there is an exception and re-raise.

* feat: make sentry optional.

* feat: add KeyboardInterrupt to the ingnore_errors for sentry.

* feat: added @sentry_catch_all, @wait_or_exit_before and @wait_or_exit_after decorators for multi-threaded handling.

* feat: DRY common envs and volumes as variables in docker-compose.

* fix: add correct decorator
* fix: correct YFI price on fantom by reading from the CL price feed directly until there's a deployed registry on fantom.

* fix: adding some CL price feed mappings for fantom from: https://data.chain.link/fantom/mainnet

* fix: clean comments for fantom chainlink feeds

* fix: xcredit price block identifier

Co-authored-by: banteg <[email protected]>
* fix: check for reward token

* style: pythonic

Co-authored-by: banteg <[email protected]>
* fix: BlockNotFound error revealed by @sentry_catch_all

* fix: BlockNotFound error revealed by @sentry_catch_all

* chore: add symbol to PriceError messages

* fix: wallet exporter rebase mixup

* fix: add vm dependency to wallet exporters in docker-compose

* fix: broken wallet exporter due to entity definition changes

* fix: chainlink feed for wbtc on fantom

* fix: whoops, used sql syntax instead of pony syntax

* fix: add vm dependency to treasury exporters in docker-compose

* feat: add sentry tags for network and chainid

* fix: potential for revert in magic error messages

* feat: allow Network.label() with or without chain_id input

* feat: use Network.name for sentry tag instead of Network.label

* feat: add Network.name to price magic error msgs

* fix: prevent exception when magic.get_price returns 0
* fix: circular import of curve oracle

* feat: simplify curve oracle

* test: update curve tests

* feat: add default decorators for threaded exception tracking with sentry.

* feat: give sentry a bit more time to send off all events.

* fix: explicit call to _add_deployment_topics before filter creation so brownie matches event topics against the contract ABI's topic_map instead of the thread-unsafe ~/.brownie/topics.json from disk.

* feat: adding custom sentry tags for chain_id and network_label

* feat: bumping the sentry max_string_length to 8KB so exceptions are not truncated.

* fix: not every factory has #get_underlying_coins().

Co-authored-by: mariuspod <[email protected]>
* feat: using the default envs that sentry picks up by default: SENTRY_ENVIRONMENT, SENTRY_RELEASE.

* feat: adding more custom tags to sentry.
* fix: curve Ids enum for id 6

* chore: improve comments

* chore: cleanup comments
…t have #get_underlying_coins but has #get_coins. (yearn#241)
…#237)

* fix: fixed postgres db connection configurability

* removed ENV in compose file
… can use the default aws environment variables
@numan numan temporarily deployed to production February 18, 2022 05:23 Inactive
@numan numan temporarily deployed to production February 18, 2022 07:20 Inactive
@numan numan closed this Feb 18, 2022
@numan numan temporarily deployed to production February 18, 2022 19:38 Inactive
@numan numan temporarily deployed to production February 19, 2022 03:15 Inactive
@numan numan temporarily deployed to production February 19, 2022 08:01 Inactive
@numan numan temporarily deployed to production February 19, 2022 08:59 Inactive
@numan numan temporarily deployed to production February 19, 2022 20:56 Inactive
@numan numan deployed to production February 20, 2022 00:03 Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants