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.27.tar.gz (55.8 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.27-cp312-cp312-win_amd64.whl (405.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.27-cp312-cp312-win32.whl (371.6 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.27-cp312-cp312-musllinux_1_2_x86_64.whl (558.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.27-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (555.2 kB view details)

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

yearn_treasury-0.0.27-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (574.3 kB view details)

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

yearn_treasury-0.0.27-cp312-cp312-macosx_11_0_arm64.whl (313.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.27-cp311-cp311-win_amd64.whl (404.3 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.27-cp311-cp311-win32.whl (369.5 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.27-cp311-cp311-musllinux_1_2_x86_64.whl (547.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.27-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (535.3 kB view details)

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

yearn_treasury-0.0.27-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (540.4 kB view details)

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

yearn_treasury-0.0.27-cp311-cp311-macosx_11_0_arm64.whl (313.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.27-cp310-cp310-win_amd64.whl (404.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.27-cp310-cp310-win32.whl (370.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.27-cp310-cp310-musllinux_1_2_x86_64.whl (561.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.27-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (549.3 kB view details)

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

yearn_treasury-0.0.27-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (555.9 kB view details)

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

yearn_treasury-0.0.27-cp310-cp310-macosx_11_0_arm64.whl (319.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.27.tar.gz
  • Upload date:
  • Size: 55.8 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.27.tar.gz
Algorithm Hash digest
SHA256 dd4e0ef980733761ce8babf6cbedfce5540c96a6393b391273fb8bc9960214a6
MD5 8dcd71db465e1231da0da3a8bbb24147
BLAKE2b-256 15250854ce9f79a471cbb1cc20cc7d88ef2959940ddaa172b5c4ee372ec081a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd65817973d8befb136b7eb93f2d4213c43efcc67622dcf749ec947ec3252afb
MD5 692d42a1eb11b439946549bc1a016737
BLAKE2b-256 cb5f9a2db53db83c973ef7f3c24c0a86f144077417e855f09c886a98ba70e59f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3e05629ebdce0a8676f6fd5a7fbdc61acf4c4244248b46802c685e66a7fb9e23
MD5 876d09e18456931e193b1468536ae277
BLAKE2b-256 7a53169cd0b01ad0d79c8ff6e29b60a1bfd468a44d941ade80f41a03ed348a02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5ebdbb4ffbe0fe920dc33a3d6cbc86ed9585f2f1a9214455a5783a2afcc3f704
MD5 6f7257a7dc86b6c259ac30c82921ba43
BLAKE2b-256 a8a8e468bc90c6b8baaea37a0e486e3a5913b4a5ce31184842f22a41d5180243

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.27-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.27-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26c4cdd065db6fd76ce1e5c39edc3a3e1fcde289a446392bd718aca078e18185
MD5 4f33a9dbcd6236ac656080251d383b35
BLAKE2b-256 868dfcf99ff3b62f12824df7e2b66055df8df410cf4d5871ddffc86ecadc23a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 dc76cccfb2e65beeb4d1d179d35c471c631882d595f47701753c1c9b5621d7f9
MD5 c63b2e76d68a729ed9075f8a070c15af
BLAKE2b-256 7f216c1867f2855a77fc3efe2b8c57cf1d922928bd5e3b68e39787c1d2bd92d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4d40efda588ff0b2841232aa121febe2cae47e6c17b943a01c473a66aab26ba
MD5 d6e31dc1a23e6b7919595c77402b80d6
BLAKE2b-256 4ca5f78658f2ad7db9b2b5035d085ab7f37efed95167afd6c81081280c2210c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 89a190fda8c2b70ab2a3e9146719e028bf48b335d3fa7332d1b582a938a5b3c5
MD5 674102b37a48851d31d083b6baa3afc5
BLAKE2b-256 678f965f11f3506df77ea157e50796d992061d43728f4f26b9e4a2f86d352be2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eaaa79ba338491dc4441bf0746603276858d39426852334a12ea1b5c9be5b027
MD5 45c353f95e70ce5bedac4a7dc4da5622
BLAKE2b-256 d6d41b8a0400f75ef7220320e9fc10d2572d3e0fb67bbdd80f283c675316c41e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 08b49cfe0f99117479dbd27e930275d1ff764a69274fe932c2c53b614384a22c
MD5 55d687ae2449b1d7add5e3f11e86816f
BLAKE2b-256 b08289281702130d5eb5900f5cabd2f582f9e8a619f9387fb21c34f3609c656f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.27-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.27-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c30adcffc635fec33607c0ba25d82bf65858bf660fa6e30d85635a66cafa582c
MD5 8e3ef0c9f5c43dc5b83c789545d6641c
BLAKE2b-256 61ddcbb48ea8967790986e501d365bef2b4b5c2d3dae0727b8ac588e7eb651c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 132613f9883d356978e535202bc1011db2937b201c1f90ea3c820429c2387ff1
MD5 3337b184018a6555096bd0a53566af25
BLAKE2b-256 796d1a761a04594091619b21dd86b33c5ab3f1101785d7c5716df315633f0e14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7340e865914e520d334f5d96e911e05350de463cdb1145ab4dd6964ac3342f4
MD5 4f9239aa4b84b2341ea02374ca4697ea
BLAKE2b-256 07eb1f1e239c09e6f1be03917f2edbe13fab5ac3a42a82a47324ebb29c7d4173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f8ab3e9855e192daf3b0a785474f8230fed925d837bd98d4359b3003d12b3ca
MD5 2fe685cb790aea2e14fb36694d5246b5
BLAKE2b-256 3ba6eadd5c438063fff2b34b63b0e252be15851476826383574cd7bc42f016b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1e73edf1d447eaba04bbb729b15075696c84d4ed86f95c346b50ea63fe8d4261
MD5 6530149d7ee1a74cffee2c99d13c4121
BLAKE2b-256 a61ba533e8ffc5e4de4e68fc6caf72f8b066d68a97d9aa0fcedcd5e8a317f4ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1a730f1762442b0c3669b5b0de654a9aadd62b45b21a6ef99517db347ef004b3
MD5 db61f66482a9973fefbb86ed9c1ba006
BLAKE2b-256 ca720aff81b7bd7eb62b1f2b6bb8d25957308d2c0ec07a5a8f9f98a813c04796

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.27-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.27-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c64a039feac215520a14dce7ba8b8c6baea985265039e9b2c948cd3189357a2e
MD5 4eb226a7a144744c506ed4f85c7228b2
BLAKE2b-256 7118714558540d16d63901e8fbe7a9a984aa97d6ba1db21e96fef64f40cc936b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 36f26cf133594ac92d9ed32bf70c436dafb3a158c4af793b3ddc040c86e35197
MD5 4feb1a1490f99bd3188fd21edf79470f
BLAKE2b-256 662805f7a02e257b42ad85bae39e966c87f04f4c6f43f0af559a48d878144062

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.27-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cd3d487d5e99634696a48b986ec7c399cca6df5c57626cb720ecfc641c6c442
MD5 256ec842f6d089446504fec61b8c2352
BLAKE2b-256 f41e98f9f0fe7b8ae59801efac42d8a144b6bd083271d1c9eeb309bebe330398

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