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.42.tar.gz (59.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.42-cp312-cp312-win_amd64.whl (451.3 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.42-cp312-cp312-win32.whl (412.7 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.42-cp312-cp312-musllinux_1_2_x86_64.whl (669.1 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.42-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (668.0 kB view details)

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

yearn_treasury-0.0.42-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (694.8 kB view details)

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

yearn_treasury-0.0.42-cp312-cp312-macosx_11_0_arm64.whl (431.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.42-cp311-cp311-win_amd64.whl (450.3 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.42-cp311-cp311-win32.whl (410.5 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.42-cp311-cp311-musllinux_1_2_x86_64.whl (655.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.42-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (643.8 kB view details)

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

yearn_treasury-0.0.42-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (648.7 kB view details)

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

yearn_treasury-0.0.42-cp311-cp311-macosx_11_0_arm64.whl (431.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.42-cp310-cp310-win_amd64.whl (450.8 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.42-cp310-cp310-win32.whl (411.8 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.42-cp310-cp310-musllinux_1_2_x86_64.whl (671.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.42-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (658.2 kB view details)

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

yearn_treasury-0.0.42-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (666.9 kB view details)

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

yearn_treasury-0.0.42-cp310-cp310-macosx_11_0_arm64.whl (436.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.0.42.tar.gz
Algorithm Hash digest
SHA256 4bc35125ed682868f8fa31f67798da62a4ec763ef294bd64272b5df13733c9fd
MD5 9ce0a1a5b66154d8218fac4be211d302
BLAKE2b-256 e777af4d953734f4e04e0441eb276e01693f1f40c9be4d3ba5a8a568f8a99cbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1bbdd7663a4b51f0fb8ee619bd17a148fa753aefadf40904a6ef43aaadf802fc
MD5 2b4d9a582b9e58c900ec17f08495d003
BLAKE2b-256 fae5ef4bbf766885351d216f44f67b21c099c1e4a1fdf5c454702dff115385e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 81a665d932b947b79704e57b80fc424ba814c5d721bedf49c1ad3da243670b99
MD5 ef67ca7128fbc1661cf6095f3000a4df
BLAKE2b-256 8cb8035ea6505235352718372107d91f7d6a5476651da194c41de3c1f66c55df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5df4c75407af3cbd068b637e0ac4d91c6f62eda503f4f11c3d104bf8a5d17169
MD5 60234e7ea46b207eb67825d5de2361e1
BLAKE2b-256 15dc8326215bf262829fe9439d9a883dae847367c9f325b754d904b676fc7ba8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.42-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.42-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee91590c593d98b23d8a695a057df868c453624e93c10e0ef9b97d2b62fed60a
MD5 02fe63f5eba8ee8e81c77b8e122c4956
BLAKE2b-256 4687147b7345059d0a841d9e510c19aca02fca9f6fecc3cd1f2de37d79a90cbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 8e966cfea4a06b7b5634c3993d30b69babf4afe79fb679d7bb918b9619f228ee
MD5 dc1d7999c0609baee3e2eea0c3ff44cd
BLAKE2b-256 903fc52c758e7c35eac5728195814709609bca272ba58cfc67a93acf14c5edc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7720a670722f732e60a9bd8da51c78f177ad59b6d639e6302fb354f5862068a4
MD5 9a02bee55c7fd86341b0f06037c842ec
BLAKE2b-256 02d67d8edd13f07881327e899e798fe5add4a9f82438216ab87b9b221cc20e86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 607e79475bec925b781732a38d3c721f28fdf7bac78000c175fb0d97a374de80
MD5 60eda9ecbd4aa87983acd1db85a4b154
BLAKE2b-256 5ba8f11bc094e89764c11c60e96c5b3db13ce2a78c5bec0e160426111cd2f818

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a782178b63bd1a17717a6ef203e4c57f5a37ac67a4ed7de6fef8146439072b7
MD5 7c7f6c7e4b8c49219418ff7895234111
BLAKE2b-256 bd485642da2b07592f862fafe211d64142eb9982b1d25dcf1083f7bb7899b186

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7c39b6357d064a13aec74e918308eb26aed0b69844d00821b13b0489645ce3f
MD5 1c58b1fa97edbba2107fde67d2c78dd5
BLAKE2b-256 be0cb023112d4202bac3167729d80bbb61d9a0cf154ce7b1412d90ddc0b4e0d9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.42-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.42-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd9a5bae41b749a4d4c803b8d81cb9bb42202b8a62fd48e6f63aa300d8124862
MD5 99ad4f3d0b9ba46a8d32da924f1b473a
BLAKE2b-256 b8733971f5788412ca8c04687a9dd5b33cc3af2b881376f3b52b5eec181cd839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 871d3673e52a24b227e76680a21d2b5e9da60b97d00eff2ffc5a3253c481248b
MD5 437ab4b8e22cc14adb15922db6e8ab12
BLAKE2b-256 1b36d7eee3866e8b2328bd664aa7aa78f560b8fd6408863dda0059d14bd557ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bb657c400445de6f6f723333e8a05b0275dda29df9c74b4cc9d25c731d7d128
MD5 78d73dba44a461c5c615fe0928a8f7ee
BLAKE2b-256 d3666aeeaccfc85bd479f81a49a32cd2c088552e528e29343528471f789ad4c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed47af388b1aed95588521bb2eaa16523a857acb1b303b49045f58d7a0b90f6b
MD5 06dfab28e91a962ef3a3de330956ea82
BLAKE2b-256 1a54d195ca39db37bf39a51be64a252a1f610f1546861c6442d6c7081e413f47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 89f5eeb6b0995af976cd8d341ff7e20ce805d14b3e04caeed2681d4f7caf93a6
MD5 def9d8a45ea4f6039109f992210c921b
BLAKE2b-256 b59d147df3424b86757d087dcbc932de401d85a129677f28fc1efd345b523ac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c693e1f24bc2003c37c9d4a584a76492d6fb44eb9ee4415d6267fc88dcc14f91
MD5 73776b6fe3aa7c09370ed6b1eaa332bb
BLAKE2b-256 c210007ef43afeb23d1b915843011c81be744995bba81da8a7dcfd38056937c6

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.42-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.42-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f51b03227280f6bc99eae6958cf99d868e96743816d80bebfe008bb65c2df628
MD5 608c0a099521b50b206a914bb070c54e
BLAKE2b-256 4ece81e7d8f2157cfd5c25c3980baa7770bbb5e403550aade37772561c73b018

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 c85a139e50be645dde7c43fd1567c40485e1b50ec550649926e9b7003d5c2add
MD5 598e924620d7f43eb7681abeed5cd70a
BLAKE2b-256 8d502934389f514ed333e9a4290c04c6d4d4caf67dfc00543f8c360871e5ad30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.42-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c35362117a988d071b658dbfafa16d83b16538746ecf931cc8b4f3e60371bfe8
MD5 53176d9bf09debe56d945c3b13f7a5ef
BLAKE2b-256 bd192a4c8df6f6024ab1db39c7333f9203bb529f7980db0719953087370a5b9d

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