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

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.6-cp312-cp312-win32.whl (444.9 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.6-cp312-cp312-musllinux_1_2_x86_64.whl (723.0 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (722.1 kB view details)

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

yearn_treasury-0.1.6-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (751.2 kB view details)

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

yearn_treasury-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (464.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.6-cp311-cp311-win_amd64.whl (485.0 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.6-cp311-cp311-win32.whl (441.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.6-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.1.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.6 kB view details)

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

yearn_treasury-0.1.6-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (702.2 kB view details)

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

yearn_treasury-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (465.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.6-cp310-cp310-win_amd64.whl (485.6 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.6-cp310-cp310-win32.whl (442.9 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.6-cp310-cp310-musllinux_1_2_x86_64.whl (723.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.4 kB view details)

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

yearn_treasury-0.1.6-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.9 kB view details)

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

yearn_treasury-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (472.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4ea62a3c7488f8867ebe6f5eea39430f116015868c338abb91a1bf045f6235b5
MD5 a1851ddb190e32eba15cc5d3ad94ee47
BLAKE2b-256 9fe2660069fc121834ce99245aeaba5f47f50ee6523e20f0cfdeb4a671e0f1fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b049fee619237986e092b017994366878076aaeceee7f1b504c3bb72cad889ac
MD5 45665d621d3109718c9cb88ac850c895
BLAKE2b-256 dbcc6eaf0b5b74167a5c6b21ae5f2967948cd086be0c8fd66ea193e9fdf4289e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 444.9 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yearn_treasury-0.1.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 70ce0886516ef242f6f2c91805a4a961a90836bbde64d67ac3c4cc16333ed549
MD5 03ec9e1b87f957dea02995e91ac1e8c1
BLAKE2b-256 23a44af1f656da1bb62e4d8c3ea8ce94779f9126dfc0b008c2e0b1329bcdbb67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a81d07f80e474a93a605e9171266ab824332538218130067e2c7a01ba51f1bf8
MD5 82a5a98430600496595732a2afbf4a25
BLAKE2b-256 2c370c13323831a5654b0ebfd31d5e9d13d71c16c5783654fec4559051deb7bf

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.6-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.1.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ac5eeb3105ecdd7a7adb0f05b83be5c0a5e6f058640a0a90d485ce7febb1ca52
MD5 a895f5a49be02c88a5c60c91e6328ac8
BLAKE2b-256 12e2e2abca5e09d7ddcf8dadd7764f9571c854b9ce7223d1465a76fc1c355b04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 28bbbf6f16dcce6eb9d6c4c0e9e569e8f496a5cb4c3e83313b23af7ded79485b
MD5 a9d5f35909d0e5ec11c2d66488c1fe68
BLAKE2b-256 9c32ef534bf418af56dceb0d3a769261c1de500849cf109542d59481419d0824

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 903ddaf1404e3ed862bdbc319202d9436ff57fb4a2878f1f540e29fa3fcc50bd
MD5 9bf2463784d8c6c4ed515bbb89053f7d
BLAKE2b-256 e0b9cf8f847c04abf9ee77e6e5f359450e77f70e957ccb7c2ce3a4d373b6389b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 628fa3c519b5b27624e75e5d595d638cc2d8c520511b70e265bbc931f8a78bfb
MD5 58d651f38cf21713fa19b7e95cd30edc
BLAKE2b-256 fe87dda978e38c6837e4a90785b85fcc8485ce8cdb2791f8c969b39d3911f9d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 441.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yearn_treasury-0.1.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c758a91152604c71c8c103bfdc740ff0be939de357db5074d642117c35f54f6d
MD5 836150b13e3323ad92f50546b98d56e2
BLAKE2b-256 e384efedfa837d3e6b7c615f047d21991bf74f6fc3e2438ce46a94db8caa1fed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc136c553ec03a3700b69dfe669c0339a01fa80cdbf10b49d12a8cc505d1a740
MD5 d5794c4ae977e0c291b98fc6443153dd
BLAKE2b-256 41d2042e0dfc66d28c36ef95b7c8c623377cf060737142b741e4e88c35ef3c5b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.6-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.1.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 38e919b080db309029382e227f40a8f22bba50d54958b40a83756658d2310cfc
MD5 812868a3ab901c79cb28921f282f7fa7
BLAKE2b-256 577f11d4a86f06e6f79221bb7eb878b520d3d0d6c83eb35dfc9381bdbb3e0c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a43e1e71a85bfedce03538b85649bfd985364cc200bb44aa01814a4f0e2a7701
MD5 d4ca050fff4c63cb61be2635f5b0ed27
BLAKE2b-256 b2044ffde8b47423ba7ab7d2a4fb74106577975881fec222fe654bdb367cb44f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da5e0fc27666edfd647c5ec9a192c4f1675a3d6285cd8e0820e85cdeeaed9862
MD5 15cf6ccd47faee204ad6db4398eac97a
BLAKE2b-256 0812a2ee88fd4c6bbdbded0106ac50c767f4332f17700ef09a607747cee21ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 886ca5ef8e233c682d0d2ef869ae41983e713bca6e94b6bbc42f4d95b18e0ac0
MD5 73f76ca9190acd31d30e3d192b35091c
BLAKE2b-256 bfb84a89b4f8e52f8bcd45592db1bba678d043d61bbc48f124f22bf71f5978c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.6-cp310-cp310-win32.whl
  • Upload date:
  • Size: 442.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yearn_treasury-0.1.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d6bb9732ece4712fab6edf5e38ac8e2421c3c5079fe494297db36e631a1e3b15
MD5 4f1f8f8ea408d241b358ca2ab44a7962
BLAKE2b-256 92cb20c08606ff5090fc8dd588ebf13ffd99db71ad95fa7f3616e1b463261702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4f2ec1e5982bda88929cb68e59d387a53ec9d2a6ea4d59d69a36e73d1a71bc5
MD5 613794ef192518d959c4dac48d0f2700
BLAKE2b-256 06c2c71de05cd788154451c69720c4000803292ad667d8045f124772cbf3c189

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.6-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.1.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 09e36475e996d3cde3b373f9b7e44fa6955ee75123bd034e45311af41e51d931
MD5 d752b952cc93c77c7e70b8b94303d0c1
BLAKE2b-256 9d141e018326d189369df7c1c4989fbe13e67becabe9d35b2987e89fe84d105b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 19636cd4b27f2705148e5141c38f964b7bdf76f2cb56636b2c89903fc5f5ef1d
MD5 65c0620a3f7a1f7b97a3a37059cf1d7d
BLAKE2b-256 f6748e411249bdae7835fe0223af2383e7232550fb2b0cbd7ee6196708812b5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c90726bbe2f95b75dfb792c26fbe8fd175d08095be225b9abf2a12550aa58db6
MD5 478de5a42d7c3106473dc3d51875880e
BLAKE2b-256 880c6de1ecfb22197d61d38b1779d77ed9d9baef27dfc3229ca38c985ce05ba1

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