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.32.tar.gz (57.3 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.32-cp312-cp312-win_amd64.whl (414.7 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.32-cp312-cp312-win32.whl (380.3 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.32-cp312-cp312-musllinux_1_2_x86_64.whl (570.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.32-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (566.6 kB view details)

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

yearn_treasury-0.0.32-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (587.0 kB view details)

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

yearn_treasury-0.0.32-cp312-cp312-macosx_11_0_arm64.whl (371.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.32-cp311-cp311-win_amd64.whl (413.9 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.32-cp311-cp311-win32.whl (378.2 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.32-cp311-cp311-musllinux_1_2_x86_64.whl (558.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.32-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (546.1 kB view details)

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

yearn_treasury-0.0.32-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (552.4 kB view details)

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

yearn_treasury-0.0.32-cp311-cp311-macosx_11_0_arm64.whl (372.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.32-cp310-cp310-win_amd64.whl (414.3 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.32-cp310-cp310-win32.whl (379.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.32-cp310-cp310-musllinux_1_2_x86_64.whl (572.2 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.32-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (561.1 kB view details)

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

yearn_treasury-0.0.32-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (567.0 kB view details)

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

yearn_treasury-0.0.32-cp310-cp310-macosx_11_0_arm64.whl (378.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.32.tar.gz
  • Upload date:
  • Size: 57.3 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.32.tar.gz
Algorithm Hash digest
SHA256 bf07ffd1a7f961d0c9e87fe68b37ed62ec70e08c99ffb246fba6af72a7e3c005
MD5 5f417a3760ee0af6d7312fce1c5dda1d
BLAKE2b-256 f36329108ae208fefb63cb3883c1c9a9060421f177119db3848a35fe44f2bd38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aaeb71409dc6c7ab45f048540ec432cffbf3725677cc8a8e93a630af738a608f
MD5 e0cc5e81c443569c1e035dd5bc96c96c
BLAKE2b-256 7f6a8aa7d9a1b918368b0c81591a25e51c863e11ebd77ab2f472bd8980a7cb3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 78d0373142ae09db12ee7e58fe754e82f122860028a1482afce0e54b2529e3d5
MD5 b4055170b68e0d167d51a84fdf477f1a
BLAKE2b-256 a4c20b8bdcd447de7c60af37559dffd534fe47461fd8a24c6d758e6c40d524a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2cc6f0f2b503a7786a16839f81c3467c4d34ebb9350e05bd3520e565a8d6a7f4
MD5 3f65157891fe950cd36127d7c53393f8
BLAKE2b-256 5d427caed67b02cb9dee1797e2fa02d6fe0a7fd39417a1d547f751559b1a7814

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.32-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.32-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b0204efc9bf4141bfc2d6778195dece26e666966439638b91a0ca172ad90644
MD5 00608d98a0a173e7623a0eadaca77bc8
BLAKE2b-256 4cbb7814a069c3df37c2461156b467a0463e4ea41fbefe658c8ce203c0aecd10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 25a13bd876185063315581f21dcf79a1e9974bb36105648fbe9ed50aaba99133
MD5 4b89a02d19dcdf90852df7f0d65d133c
BLAKE2b-256 5b5d5a034ffc741616f98ed7e26bf30f75f13494979b799d6c01f1d9a098f370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9eaf5fa671aaad83ede8f0cc082aa23b1f27b9d8c70e8c46d5132999ad83de16
MD5 3898d832fc5e32aa8c101d11f6fa2169
BLAKE2b-256 0e35c4fa39c2e9ca72ecd5ba0fe4a31a2ee2f9e09347c9762460ebe7cbd5143f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45aec956a08494e2c5ff17c5665a89fe17a2b5dc5c164b873a1e6703f426a29d
MD5 33483454ebd368ef33b68d59ae9d2077
BLAKE2b-256 e4ee058b77f212586f871e1baf843857cc5978c7924af818b871e0994d31ed6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7402aff6e2b09c01ad5dbfea64ccfff0e9480d5354b030c9f4ec1473ca1c54e4
MD5 ada1d2a69be84cb2e076e1f3720d4572
BLAKE2b-256 fb4bfa7bf0e3b5ce384a6b2fa88f7384b3f1904f682e36800ebdac0ede7d1468

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ff8f36e65eda621e7b1c1b550bcd963270447ca02b1330bbaf7517fd21fd2e89
MD5 cadbc1fa4175585ee39c7c53426c05f2
BLAKE2b-256 bab365e15bd7746165ae924efed93c93bab7040dce139ebabcd916ba0eede870

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.32-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.32-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ac02c7f856e8ee4ef486c7d48e29692e0e109b6a1adf88ead56ff3fca2c34c01
MD5 41db646de53b9bd1b350ffceeebabcd4
BLAKE2b-256 353bc5e6c0d9e58d9f4281e8579b905225e6153727061c24802839f9bef53f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 ea64c38fdc588d537aa3bd4d4effefe78aa02a69b1dc532faa315a85caeb0f52
MD5 c53da296e9baa9c82bbb3aa6737c4bdd
BLAKE2b-256 875e4c41b7d1474fe424bc0ebecacd9aa14e127e4f56df128a087172a1153337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b2e8f4784443006cb306e8d2c2e4e136fee296da1166ba383d3b6f7a5d7d4c2
MD5 39659f68318d56a1f0829f775e98476c
BLAKE2b-256 b0d4dd2fd0c0499508f64926dea90d99df884d36d3443f90312fe4321e15737c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5acb033901f411c5f0696e44ba2ab5e3d9418a454edf34a8bb03a69a89b5d19f
MD5 103733b0e43775fb2d96e001b15c7aea
BLAKE2b-256 e94f26a6cfd92cafabc4f9507de44686becc92a92c2865f247f7fcc0389064ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 43a912d9477895b69366a7c3986fe39fb8dfd04981e995d1887439ee3e5ce266
MD5 ac22ce13d18e8411a47e1d56ca678012
BLAKE2b-256 608e560098816c59a10da80ee27cc54528407e3000e4fe283081c7fcbd4475c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5eae6864e597f9e4e7a30056df4a2ac882d14d36c789539c57e2b50234e6ff13
MD5 bcf899286ea234ae4d54666d734ed9d8
BLAKE2b-256 fcc262bf4f972e925f041a4653c4ec4ad11baf5f28adde797a9f83a024bf6d79

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.32-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.32-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 73449553fdbfbf01a3610a735d3ec9cb3b047eccf5e04e1ba04afc59ebcb6a26
MD5 f5f026bc3667a5ab58d5e0dbc4552b7a
BLAKE2b-256 e60aa99e37063684d4ee2266bc00e38a55d9b8a8310d474ed5a6a9a8d02019fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 67b7834cd41754bd86d9b2d65caafec1e112e2a7168917d5812f501cfb20f782
MD5 6842105da075f4da7ff62c5b40bb2c2f
BLAKE2b-256 b1fd30d8d2518059e07d51b0852c6d8a8456dbadf0f0ec34c4e255bbbfec3d3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.32-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15bd554045e4a9de3dcf15f321ddceb49708575cc3f4c2ad6e066cfcb80541f9
MD5 dbb68700c0a59ffe17770092d9161629
BLAKE2b-256 ca4d975cfdc4f730e85876dbe514d79cebd6f31b2879c55ac2ef0be677b7977c

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