Skip to main content

This WIP library runs the eth-portfolio and dao-treasury exporters for the Yearn Finance treasury.

Project description

This WIP library runs the dao-treasury exporter for the Yearn Finance treasury.

Installation

  • pip:

     pip install yearn-treasury
    
  • From Source:

    git clone https://github.com/BobTheBuidler/yearn-treasury
    cd yearn-treasury
    poetry install
    

Requirements

  • Python 3.10 or higher.
  • At least 16GB of RAM.
  • All dependencies installed as specified in the project’s pyproject.toml file.

Prerequisites

  • First, you will need to bring your own archive node. This can be one you run yourself, or one from one of the common providers (Tenderly, Alchemy, QuickNode, etc.). Your archive node must have tracing enabled (free-tier Alchemy nodes do not support this option).
  • You must configure a brownie network to use your RPC.
  • You will need an auth token for Etherscan's API. Follow their guide to get your key, and set env var ETHERSCAN_TOKEN with its value.
  • You'll also need Docker installed on your system. If on MacOS, you will need to leave Docker Desktop open while Yearn Treasury is running.

Usage

Run the treasury export tool:

# For pip installations:
yearn-treasury --network mainnet --interval 12h

For local development (from source installation), use:

poetry run yearn-treasury --network mainnet --interval 12h

CLI Options:

  • --network: The id of the brownie network the exporter will connect to (default: mainnet)
  • --interval: The time interval between each data snapshot (default: 12h)
  • --daemon: Run the export process in the background (default: False) (NOTE: currently unsupported)
  • --grafana-port: Set the port for the Grafana dashboard where you can view data (default: 3004)
  • --renderer-port: Set the port for the report rendering service (default: 8080)
  • --victoria-port: Set the port for the Victoria metrics reporting endpoint (default: 8430)

After running the command, the export script will run continuously until you close your terminal. To access the dashboard, open your browser and navigate to http://localhost:3004 for the dao-treasury dashboard.

Enjoy!

Screenshots

Transactions Dashboard

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yearn_treasury-0.0.30.tar.gz (57.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

yearn_treasury-0.0.30-cp312-cp312-win_amd64.whl (407.8 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.30-cp312-cp312-win32.whl (374.1 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.30-cp312-cp312-musllinux_1_2_x86_64.whl (562.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.30-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (559.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

yearn_treasury-0.0.30-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (579.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

yearn_treasury-0.0.30-cp312-cp312-macosx_11_0_arm64.whl (365.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.30-cp311-cp311-win_amd64.whl (407.0 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.30-cp311-cp311-win32.whl (371.9 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.30-cp311-cp311-musllinux_1_2_x86_64.whl (551.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.30-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (539.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

yearn_treasury-0.0.30-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (544.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

yearn_treasury-0.0.30-cp311-cp311-macosx_11_0_arm64.whl (367.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.30-cp310-cp310-win_amd64.whl (407.5 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.30-cp310-cp310-win32.whl (372.8 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.30-cp310-cp310-musllinux_1_2_x86_64.whl (565.4 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.30-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (553.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

yearn_treasury-0.0.30-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (560.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

yearn_treasury-0.0.30-cp310-cp310-macosx_11_0_arm64.whl (374.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file yearn_treasury-0.0.30.tar.gz.

File metadata

  • Download URL: yearn_treasury-0.0.30.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for yearn_treasury-0.0.30.tar.gz
Algorithm Hash digest
SHA256 48dfc94804ffaadb75124bb8b169ef4a3d24a83fb023fe87ab0a9fd3e0602482
MD5 2cade8ba278be4c1011dec0ea337209e
BLAKE2b-256 06bee8900565740d00120041d322d8daa148d99bb417835875fc6df46f27c8e7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f88bae9a6e6bcd7ac57dfa717acd497504d0f0f40d59db43bb6a58be87588feb
MD5 1ee05e0b92845a8d513ffd33dcdddc3c
BLAKE2b-256 9c308ec7e5c39a84aeeb423ae35fa65a7c411673e2caf8ddcc048091109bd90d

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9c52e6645ccf6b1e8e2e98021a429875fc6a228b6ccd4a21ca2358628859161a
MD5 ccea9db684f42dc6aec4d331b92ee905
BLAKE2b-256 9268eb2beb2cde640d78fc34fb5a37e8f75f3a25470cd9eddfacd7cd501e88cf

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 303ab5bbade4af796f6c0c9c9aec1fcb2e1d9c2cc5afcdaf2d244ab5642cdc2a
MD5 816cfe4880cd0f81f722b1cea00a92cd
BLAKE2b-256 6649b02e0b07310dc3f141c2e99644346693fb73c00eddac8b37a8324d5a7477

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a24b81c4b89bc37d48f8029d611b88686888fba7ee10fdf5b2f7e69a2ee743c
MD5 365fe8c1b5debdf31967e113f290bc83
BLAKE2b-256 d01c4f2cc5af0dc7b5546723966ef4f0c93edbcae685be46f93a74acf4c01778

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 21cb4c988be0fedcf8b4a4e595bef541c55e10d5e4ba2cda23cc5c9ec69a2b89
MD5 3893298d46b109b6e99a0dba7025655e
BLAKE2b-256 4ca04ab5ec64fdb9ebb49904816668cba0f241c9b70857ed30c3f5d6a30c43e4

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc8ddab6356dd7d4001c1b0ee330f567caaf311617ad87c2b9ada876b98ed8d3
MD5 29c56c01beba55c6ba7308e56351b64a
BLAKE2b-256 da91bb12663415ee02fbb6fd06d0c8cdd1502d038f202ae31037468e53d914a9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d7ddfc159014978f60ce40ccd606a1bdfbdf31816f6f085e9841216db7e0e68
MD5 659637906351bf304464acd443a4d767
BLAKE2b-256 fee51cc12476d781f911b96a7f533c7a8871097b295257bf98967da351ad85af

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ef8d7b606b392d845966e228a774667535ff038f86c6731102aa109d66e4ec90
MD5 0861b01ff7db908b63bc02fbcf4df043
BLAKE2b-256 4c144b30918201493073ef42f95ea6c8dfbe362be80849e3222917313c7e0f17

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7483d7715c150d41780a67755991c625ae557b3297d0e3a52a2fc48925ef634a
MD5 c1d7f782c77737e41b8b764e0c37f334
BLAKE2b-256 fec7ca0958fd5032c9ac46603ba0ff444d9abf964a59c98c4a152450882943b7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bb81861498becc3e8b5aedbf361f29440857ed265f0e3aa7914e617e745ebc7
MD5 d01f2a9f3fa6c91cd9b0c4e840317fc8
BLAKE2b-256 be8974f25260a9077b70ebbe5d3b2fc63d24fb013ee25c4a131267659fc19bfb

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 0a4dd30186e57e7adfa999046130c34fd134e102214781618dfc6165f6e97ea2
MD5 221497ec04c8bc17de8a75d0ec187bb3
BLAKE2b-256 43d38e1b4866211d09dc4694a8fcdeabae24e1b715b6fd6cc2cc33c0eebe5df7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8805f1087925608ec6a67df247443d8637feccf47d37813ca78cabbcac1f2217
MD5 c2a9a1ed09d27708b8406dfefc4f4c8d
BLAKE2b-256 0a9a61661642595fbebf1d0f2a58ace1762e9c7ac28c229c02c27bcb03c2d864

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a770e8996ac85fe7a13f2744b95b401cffaf7b05585a33c5c49942874ba72635
MD5 a85f0cda1466714deae3f737416343e3
BLAKE2b-256 8ca176a37ef05588e7245fc93733f5cb542da3df1cc2839d8d3c1cec23db2250

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5ffcd4b0ddb80e5ed997d3147c060bd9721f55a395b7b4fe9c96046cfbaf2866
MD5 63209822a316da37d475c9bdd42bd045
BLAKE2b-256 b585ea358bb42afd26d9440c3f7dee66a267eb8b3a1f508611d6300559d4d538

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 187162bba24fb91649780a4f4ff87121b648785a50bef9f7fe61e3e69289ee7c
MD5 90926a8fe6762eeb6381724ae455ef2e
BLAKE2b-256 b6b2b7487ffd1e755e4505a808e719e1b8a55c109f46695b04fabc8bb456a364

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c67f6dec8888a3697290f934358c7953cff82f3033ed69cdac0e192f1bad0c18
MD5 e9cfee30d68ff0cabb0e74af88ee5df2
BLAKE2b-256 c4386315bc3a800f89896562b9aec806c267d43d4d2d9c8ede2cebb6a09cb248

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 68ec7df88eacb6a2c19f007cf9204c01031fb76dc1c508ae90f79b2eac24697a
MD5 7ca6ebd5bbe751215d06ded7b16173ef
BLAKE2b-256 e58aebe3d92f61a9a7537830b689652935713c1e480e7924c9562b78f45984b2

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.30-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1993d3bb3efe0b140cc96f73103bc62c22eb2476914cb617e5904bab64ccb6e6
MD5 3bb2e6e918d0ccae808b48a7b4114a08
BLAKE2b-256 adae186066578097304863f7f03e4bc95d580fbac9a2f47d66db2b8012495f19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page