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.41.tar.gz (58.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.41-cp312-cp312-win_amd64.whl (450.5 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.41-cp312-cp312-win32.whl (411.9 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.41-cp312-cp312-musllinux_1_2_x86_64.whl (668.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.41-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (667.2 kB view details)

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

yearn_treasury-0.0.41-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (694.1 kB view details)

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

yearn_treasury-0.0.41-cp312-cp312-macosx_11_0_arm64.whl (430.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.41-cp311-cp311-win_amd64.whl (449.5 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.41-cp311-cp311-win32.whl (409.7 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.41-cp311-cp311-musllinux_1_2_x86_64.whl (655.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.41-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (643.1 kB view details)

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

yearn_treasury-0.0.41-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (648.0 kB view details)

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

yearn_treasury-0.0.41-cp311-cp311-macosx_11_0_arm64.whl (430.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.41-cp310-cp310-win_amd64.whl (450.0 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.41-cp310-cp310-win32.whl (411.0 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.41-cp310-cp310-musllinux_1_2_x86_64.whl (670.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.41-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (657.4 kB view details)

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

yearn_treasury-0.0.41-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (666.2 kB view details)

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

yearn_treasury-0.0.41-cp310-cp310-macosx_11_0_arm64.whl (435.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.41.tar.gz
  • Upload date:
  • Size: 58.7 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.41.tar.gz
Algorithm Hash digest
SHA256 91c98c4cc7f6c4adbbc355d52ad71541c44c6a807dda8d8fb1c8cce7c338fbc4
MD5 7df4b9f7a9cb61ba420ecc44d774ab45
BLAKE2b-256 91a860d3bfc4ce6ab45d0f5b40c76440c8559ffea8b9e02dd55bfd712828ffb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4792c8ec0e2a952b2022a9bf76d184a48e1f62f1ba8182ed8ac7301b1e4c398d
MD5 f6153a9a139dcaff931755b22ea72fa9
BLAKE2b-256 623bfb9f635c93a253d02f48397a27bad5a2871bb3c120073fe0446c0454247d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1805d3b008023fa455469372f0cecc4d470fdfd31eb5d698d17c7066d48d0fcb
MD5 0170f9c56c412a6e412e11a9acf96d6d
BLAKE2b-256 be922ea9639b8a80da416d906a8011410689a0d1a65080ebe6a4b9448ab0c022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 941b3362b7d0d69d3482168c3f297f01ee98e3e9a46b70c31e609f16bc2445b5
MD5 0e5726b6ec1665caf5de373567239b10
BLAKE2b-256 b21969df4f5c46958c5f67e45ca6c9b8644df3b6f7931ee4507e7fb8a76576a3

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.41-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.41-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a388edf9870ceb501a4f7ec47d9833bae622907ecffd460809593560d28ac43f
MD5 28f4fa0e3b9ae3fb0f4a1ba508d39b10
BLAKE2b-256 193142ffe9f0bbdd958295b612de98c8c099a642b0ef13e93a945eae94ae22b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 ce46c09732e77d10c8b87100ddd1027c04e645f9235a2a61f74b9d3f37fd0b75
MD5 93bc71be78fd8bcd8ba6dfc9f5804d04
BLAKE2b-256 ed1e73b421fc34d26b41b3fbbbc5c7fe56e93262a77143120124f3e2f4b1bb40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6deab1b3c25c2cf151c7183b84c2948ffbbecbac2005e4a9d32cc6dc2c92556b
MD5 19b686967ad0ca0df4b8970efdde0fe9
BLAKE2b-256 f54e962967044b631da5d7c0c57b373d8a4ae49bd66031e42b3bfc795e463197

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ba5553142c256a7229493a86d7717dd7653c9bdbdebcdca7418871ae2cddb37a
MD5 af965bfc4a41ece5905ccb205e89cb31
BLAKE2b-256 1abf4f68a30cf1ac38e29da73d32e9df7b442a6c5fd50441a8f61a245e27f733

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c944c558dbd18f0a13d9009f1bba66030642628e67b238c8d4c42643efa83c66
MD5 589c4e70bd78bf568b97e14dbd384c94
BLAKE2b-256 460b5dd9fbc23d6f1c01a1ef9ab05db97a0a5b8cd16d82fd84aaf557fccb389e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b091374dbbd3e6d4fbdc587bb918ecfd0062cf2ec854533ddab852e149f51fb6
MD5 76368ca0f15c1a0b2e41402c866ec420
BLAKE2b-256 dfecc89a3f0bf6635043329e2863a44af04ab7060df94299f7acbc9a5aa7ffd1

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.41-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.41-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 590d981c3b048cc2e5030df41fc00cf9a7955fb9abdc87a10cd0dbf6bcbb1aac
MD5 9356e6e3fc505cccd74aa733c267e7e8
BLAKE2b-256 7549dd414979d5e75172aa147bb9425ba08256fa73b7824cd4453b1db4fd55aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 4a36fc47d786c1b39f611f9f241e2fac39745618cf002c778e57316c1dc99263
MD5 ad811a4390d5ceeb17be45c133c633ab
BLAKE2b-256 5143331cf5187a74d32f8ef51bd3b6a2b2e9397d7a6d3bea1c55866bd4b6bbbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 043c6788cd5ce478f416929405d5915088840bb19a72a865ba85f7d5b1de044f
MD5 04c55b77078cbd5f0f1b35aa8e0f1a63
BLAKE2b-256 33dbac19ef275b3dc2e5bc4c33a027f53523242f7a63f80a99b514b4dbd50414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1dec28224e8c9a1e503c5beed443024b63dd55e1cf3d28410aa5a76642769bc0
MD5 e1c8f7ec1857756cead03f3ca50ec773
BLAKE2b-256 280bb29b9f6bf380d934281793d228c212b6db9f8eae80dea2f27a6e33b7f237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6601c4e9cb9542d310a85fc82098bd9f91cf42c39445986bf54de4d731aeae08
MD5 adf2ee79ff4d207b795b6775d1c5702b
BLAKE2b-256 dc571ebeb9d342866467649dc69a7c7f1dbfd62a7fda9f146ee3a554578ff801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 457fcbbfe6ee51a263571bc6f463d722b82ccce36729a5a76d0735c85dfc1a17
MD5 4036e0bbd95b1bc9d637277c86527c77
BLAKE2b-256 f49c4e2ecad5f43f303f667bf58780d0021b7569a7b1d78c697e071aa6152dac

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.41-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.41-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 31c90a0b6eb586210de120f3c85192d7eda0ebd0e18fb988300f9954925d3a8e
MD5 4d52d5bf857403bd4f866760c4d04a0b
BLAKE2b-256 1ac46a42e48826e50e1560d072fa323197bc3e2bd1f7020607fa72af684eca6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7d2361d617dec4b5a730ddc17725429a35856785e19c24f424e591aca0a70e6e
MD5 bce062204801dc910c1ea31d2b7cf8e5
BLAKE2b-256 a7528a491119c182244cc2bc50bc34a2f105774b2def1e2758d261f2f80c7376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.41-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc64a63ed818458af4178714c7accdd1ea618a9912c0043f8cfd90cec4ac579c
MD5 10052dc85cb17d4bf151119bd589fee3
BLAKE2b-256 dfe01969b31bf2c927e5ed5754b36ead1aed420d6466f80c2018b9ca61b50a23

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