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.28.tar.gz (56.7 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.28-cp312-cp312-win_amd64.whl (407.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.28-cp312-cp312-win32.whl (373.7 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.28-cp312-cp312-musllinux_1_2_x86_64.whl (562.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.28-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (558.7 kB view details)

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

yearn_treasury-0.0.28-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (578.6 kB view details)

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

yearn_treasury-0.0.28-cp312-cp312-macosx_11_0_arm64.whl (315.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.28-cp311-cp311-win_amd64.whl (406.6 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.28-cp311-cp311-win32.whl (371.4 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.28-cp311-cp311-musllinux_1_2_x86_64.whl (550.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.28-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (539.0 kB view details)

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

yearn_treasury-0.0.28-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (544.0 kB view details)

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

yearn_treasury-0.0.28-cp311-cp311-macosx_11_0_arm64.whl (315.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.28-cp310-cp310-win_amd64.whl (407.0 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.28-cp310-cp310-win32.whl (372.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.28-cp310-cp310-musllinux_1_2_x86_64.whl (565.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.28-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (553.0 kB view details)

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

yearn_treasury-0.0.28-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (559.7 kB view details)

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

yearn_treasury-0.0.28-cp310-cp310-macosx_11_0_arm64.whl (321.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.0.28.tar.gz
Algorithm Hash digest
SHA256 fb67c82ca51e70103616f1e10a54f927eb2055ad29c40f01f96583acbae635ac
MD5 a8d54e73f3919154e07f693697b91c34
BLAKE2b-256 1d4122be45fb8a3fc18be4eda03bf8a483913a1894f0ddec84ced124e36dfd1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10e8d1ac1de4dabfdcd7626d2caa3dd0df4c9757634f938ab6591281932e7d4c
MD5 2b6e63572864fbbeb301af2eb9ce5f4a
BLAKE2b-256 4f1b82a11736133350ef84617c16299061ad749e5157056f9b1681bb4ed4f36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3be68a68530d65221f843f261cd185f5c263dc580e7e6adafa8bca242790c96
MD5 80291d2df377a928266932a3e8ed8d52
BLAKE2b-256 5febc4a08954cb3e02832e8a3d6e6cd1eaa17d8aec89bd25c42e0e981aa23439

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2dbb634ef8a4e7b44a6c0d82eea6246416a3aa9e1a2f3dada622b9b21faf3356
MD5 00d9145f8d5b4d9bef11c548fe78d89f
BLAKE2b-256 f043a780207fe6ebe26db705f5db904798c5bd4b5c5415110d3cbf67244bc59a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.28-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.28-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9fbd2d0b280b5505440b7b7e2efadc8d20b73a0f28e6fa724a40f7ac2dde7b75
MD5 df2987e29f4d7acc5d4350f811557e83
BLAKE2b-256 87115bd05389cc963ee6a89d6cde377bc127c2ec9f24e40b36dc94c8e79720e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 efc27582c1d5e660df9b46e45dd48f11cc8c74278090ea5dde149c57d306a474
MD5 a24469877361cda5e9ecf0eecc685ece
BLAKE2b-256 951fefbbbfe1a0bd2e3caf4c821d2535cf205d92c3ec1294c27cdb307de92f9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2de90279561e37e8906d51b9857b58d1c70022ca352bea936b1b0de7e6cc340
MD5 dd06feb3045e759f3200f46d0c02c69f
BLAKE2b-256 4c6470e6adc1cd605b353e20e26ba4ad34c6fc8711513f65fb241af66341ab48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1db02d208c8af9d13d374f5ab8e8ead6b1b4820872e45af08d5a2c8b6e97faa3
MD5 575431bea1ccc1e121366ff72cd2c9bb
BLAKE2b-256 710ff82bd8ff99e386cd5e0966c5eafd3b3d8c21a22e7c15e24463d30141a908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ec6de06983761539dddb497cf836aa729ee2121772f99e771a0204c30701ecd1
MD5 4c9bcee833effcbfc1b194d2179589e5
BLAKE2b-256 4beb52bed0b69d9aa0bfb0a87767d88a6136850bbd0adf675e4452a698a9178e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4f138b3b3278748f07e2cd3da2819eb96bd1865534e87ac64f9b2eb7e1e3c9d1
MD5 ff4fb084a8b4a161f1fa85860d4c9a99
BLAKE2b-256 f8951c28df6d452a4993d425581ddaa01886fc331c881c6f6df1fb9d57b0a31f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.28-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.28-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b913e63aa34aed38c59b00d411b6b06a80c629edb65628eee0a8e91b7a270e7
MD5 b721e23ec1b813e669df310c9b452c5c
BLAKE2b-256 4d46c4cbfd6ca2cbef4a921bfac74f953c5758b75a22ea19aab2d9bce18e392d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 fbbc5bcdd0edd450b4dae5b6a1e2b425e101857669a4c74f661619d892a9e178
MD5 56ff73c5171ed2ba1a2ed09a4f4594ee
BLAKE2b-256 8a3e70a8f10fd073042f64e418af83f5b27f8f29a1a97d22f0c37d8b5e1278bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d96108a26ea0f5b935df58cc5334a9f54870dcf7297a74764b2239bdbfefbe3a
MD5 0c561beaadcb3fb5775ad7fb353ac5b2
BLAKE2b-256 d8f626b1afbf84fe3962cd6d26cd87e16c8a3d232cc1548d26009f661f7e292b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f3fc7129acdcb578d308956f750b2362877c3cc618372bb0efbb92bb8850fc5d
MD5 8a36e90c40a88c39f049695285a37540
BLAKE2b-256 e07a1f1a8fa3477e41efdee931be9b697ad9404eb13c30f38dca469ab28d75a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 995cb9b20614490db74086aa327d06e174226624d4dbc4ed4d785a280705042c
MD5 ac23c72ff8430440a6c24435910bdade
BLAKE2b-256 7d48187bb1f541b7291bc667bbe92040d0e18359792235d010ab7a6aef0bb8ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7e5976c6513e31e7d35e07b9a93d8c5d76e4505feb9157b4d8492a86b90d567
MD5 a83bfc392718d5f85d3100213c90d9de
BLAKE2b-256 6d9bf578eb096534435690412a887d86ec6a21187b5b50ba1a286e5127747153

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.28-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.28-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cfdb448dbb093c26a87f324eaf8d8f504fb0afec2c19198a1c81cf2ca137f2d6
MD5 d0d1940d8a079c257df90270508b4208
BLAKE2b-256 9aa6923ee0ca5f486f4792b19e64abea3fbc00c66b70738e0056ae8388cf9c93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 9e23b41be6f30031da77ddfc3c7861f0055a32b4e4c797c20e723444722fc448
MD5 0c3300cb93c513699088b49e9302ca40
BLAKE2b-256 b122a26edc1c59905eab11edc2be95f09294c5fc0b6e0928130c69ad5e501998

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.28-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c09e8ac5054a97eae4914a2eaa9852338653b29d75842ffdb3da987a458bec81
MD5 77c52630fd6a2b68ce51385cf52bd95c
BLAKE2b-256 a9d2d4b2f2177cfd67aba06cba9a77731633d758eebe2c2aa09304b173861576

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