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.46.tar.gz (62.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.46-cp312-cp312-win_amd64.whl (484.3 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.46-cp312-cp312-win32.whl (443.4 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.46-cp312-cp312-musllinux_1_2_x86_64.whl (723.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.46-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.7 kB view details)

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

yearn_treasury-0.0.46-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.3 kB view details)

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

yearn_treasury-0.0.46-cp312-cp312-macosx_11_0_arm64.whl (462.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.46-cp311-cp311-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.46-cp311-cp311-win32.whl (440.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.46-cp311-cp311-musllinux_1_2_x86_64.whl (703.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.46-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (689.9 kB view details)

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

yearn_treasury-0.0.46-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.6 kB view details)

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

yearn_treasury-0.0.46-cp311-cp311-macosx_11_0_arm64.whl (463.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.46-cp310-cp310-win_amd64.whl (483.5 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.46-cp310-cp310-win32.whl (441.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.46-cp310-cp310-musllinux_1_2_x86_64.whl (722.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.46-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.5 kB view details)

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

yearn_treasury-0.0.46-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.2 kB view details)

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

yearn_treasury-0.0.46-cp310-cp310-macosx_11_0_arm64.whl (470.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.0.46.tar.gz
Algorithm Hash digest
SHA256 59d310d474f6bd83d7942d2d9b60ec82105be99659044a53afce29aecd2237f8
MD5 c8d87ddb143a141650dbe7aa39f9a092
BLAKE2b-256 dfe197ea3e4ffd827c1cc11cf4249e420bc7e100a6e071f3ca6d35f04d7c92ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 548fdd1883095fea4c2437d67ffb9f845d4ad3184318fcba686c75f41bb5d027
MD5 39e3f3a4f0b954cab41986e11df98e87
BLAKE2b-256 634722dc6d38d8484ab5f1d5ad085f0609b9517c5e8a3e56ae0d740c28357598

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b211d0d0aa4fd3fab559cc976df708dec234ad1ec402b18915735a2171978626
MD5 188843d4e7d49e5e4139e2b31eceabd2
BLAKE2b-256 22b21f844998eed6585dcdf53975e6b75c4a4a94efcc0b059d662f316574c574

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6a57f9667381777b2752a10a4f95ea3b2c5be7ea1892f9bee6ef71a59732dc33
MD5 266f91466dc92d387752798ce5232e51
BLAKE2b-256 98c07698fae5e481cf4853ae1699a129b0819d09eb174be99a7530f7c62a1c15

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.46-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.46-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f979147f2ad9b19a1e02bf7c20a7828603921320f3b9c378fc5a5f3d3e5133f3
MD5 cda5e95a617e948c74ff608e998d89bd
BLAKE2b-256 58b8cc215b89499886acf5ad4689663ade615610eb5fe2869d4471191727f9ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a23b92dc2379f7e98980d09b913ed705669883a197d72380cf60baa14ab74766
MD5 2b0a5c086eeead07a129a5bad469dbe5
BLAKE2b-256 df7ba62c92897279dea4cdf8bb1a5f9bac8ea8adb9f034c806e704b52a3dcde0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5b8fbdd547403e37079668523c4d60422e445fb60c22272a354dbaf53ba2f92
MD5 35fada28d58ed915cff19b98b6dd4c58
BLAKE2b-256 0e833c05c2df5cef293e3ba7065e2d2cfb618aab6f6c88d8040d3a9a2b7301ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 71ddaced7b9957011d73b559ce5b6223f1a8bfc2c27d809d7c71115673dc6e32
MD5 4c51e2deb8c1341426372a9a763cde45
BLAKE2b-256 bc6d123080fb99dafaec6dee1f11616c5e8665a717c04bb95ca4e1f64f26221b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 41f203b86c0d87bca7538fa1202253766c2c2f2ae07155f103ca1062549d24d1
MD5 41e55a1f28cafe7d615435fff7b738dd
BLAKE2b-256 a10c3d4e468dd80291205711d1d3d074a4d0c6be939ca3f6617eb3b7def939c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a4db043ac6f24e63ce29b7a1cc11866a2279ec68c2951c1d9aabecb8da5f09dd
MD5 e0427edf6b34edf90d3470b50c2454d1
BLAKE2b-256 fd66b8cfd2b0acebdd18f8da2a0f25d3a427d7abf931beda5bfaa1ce23906eae

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.46-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.46-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f5598eaf2dae68757bf5d35cc9d8f5518c5a5b1419f0a92af112e2ca814944d
MD5 31fe25ee9ede5a4dada0c5b90a40ac2c
BLAKE2b-256 3247a3eeeb3e6b27325dd440026d0563ae88fa0fc4a08910262a7fb5fa4b9c67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d1bf67a17ff7d78c1edbb940849e682d8e513c656ce33ac6401d0f1b20c0b9f6
MD5 df1ca755606fcfb2afd6237d94e833b0
BLAKE2b-256 59a9f853a509e5f6db15c7540926c35f50c6c7b444683ba5dddbc8980e94ad2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4130b7bed53b471cfe2a6737f71be7fa759bd531ffebd9d20e0ad507956f865
MD5 6f1d31d7280b0ec070438bb51a846b62
BLAKE2b-256 e4db9e36e0c6e1221f00fe0a7db09f053368c690eeb1ae8b639b699e2c7ebc3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b603185e0ccdee164bbc7acd03bb8f2ae07f8bf21b88cd2d36ce2902bd13251e
MD5 2d3aff278fe03cf9d2ae3f976a36047c
BLAKE2b-256 d0ab4f3368a76344e2885769a5e50bd9e18289d398f1afe650e3bf02080c9a09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0428af609cde5248a6938a41686fe7b92a40db78b791df2baf692ef28ac26e73
MD5 7ba7c0f52cb595cb5f728fb802ccbc33
BLAKE2b-256 09b8f2ac496dd02725d2c2d9017403682b4b07c6fb4327cd8ac894460f9a7aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5e8ae3b4f79d9b5ee13cf72a4d90af53bf238111456e38aca9d08b5b3086678b
MD5 9136820b16bf75b9537b90b4e792eb7c
BLAKE2b-256 9551049755f8c3cfc5a1a9c8abfa6c90f4998c9342c7730a215482ef870d261f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.46-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.46-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 076719e7526065f7fd584263017ed8ea1273573e440de5fa8e28a2645c055fe0
MD5 4ed942c6968712b8b7ace416b3377559
BLAKE2b-256 735f70e635373bfc335de5b51adad32415d6c95c7de0b9fa8937f20ec0158681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 fceeea060072da5e3ba1af068cd360690b67a8ff67e7696c5729cc827477c4b8
MD5 26e46f4df900afe7e35ab7396d6c824b
BLAKE2b-256 6c454ffdb13859312a7dea9c360185acd44b55756cf1ef6d86f9e977a9d01507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.46-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d83ef89a762a005b9e74c1965d922408ff6e62d6a1f2785c7996bc67508dccf8
MD5 7fccd5e04637cbacafe9c1cf44c842bf
BLAKE2b-256 5e35e064010d32bb1d342ca79e782dd83c8fad621c91618dad8afaf0ffc39512

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