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.1.tar.gz (62.5 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.1-cp312-cp312-win_amd64.whl (484.9 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.1-cp312-cp312-win32.whl (443.8 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl (724.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (722.4 kB view details)

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

yearn_treasury-0.1.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (750.2 kB view details)

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

yearn_treasury-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (463.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.1-cp311-cp311-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.1-cp311-cp311-win32.whl (440.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (704.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.8 kB view details)

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

yearn_treasury-0.1.1-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.1.1-cp311-cp311-macosx_11_0_arm64.whl (464.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.1-cp310-cp310-win_amd64.whl (484.1 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.1-cp310-cp310-win32.whl (441.7 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.3 kB view details)

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

yearn_treasury-0.1.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (719.9 kB view details)

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

yearn_treasury-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (471.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.1.tar.gz
  • Upload date:
  • Size: 62.5 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.1.1.tar.gz
Algorithm Hash digest
SHA256 4926ba308af9d7e5a5600b0a388422a1a598eea6237b4eb4a4e6f95cc50da4b6
MD5 4f1362956b8f3b93d8f479b0e19ade78
BLAKE2b-256 758abc5c870e5ee083e7758c160028ebd0ec39df9cbca6ca490066feddeb83a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cbfece48935faea5c602ea8e55f607603c8374bbe372272e47d8b1b66e0b4b3d
MD5 35ba9dd19997cbbe58a8aacbb429ac0d
BLAKE2b-256 1af77f424523d6693b6a21dead2eb819ec31f17cea9577b97fe73b73603abdde

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e487edaab1cc4d9b163ca3acb48322665b5cf0938a3db250d8de59a125017819
MD5 dd49e5eaa44bbc7092b6c9d94deda7d1
BLAKE2b-256 60f0421993277592a229ad5486ba946fb573ae25430725fb741b70487d0b3562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 03f74d1659729a86abf2277172dd6efaedbcba0768fdc954f8cd6db20a441f98
MD5 d79c1adb65455c36300498dca7c618e6
BLAKE2b-256 f1c02c1e3fc89a52d38ca8b513a870f8a2a7433d57e5e0036ce3d1eae9d13258

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.1-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.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e9d71410fd303674dbae5e5e7d9c07ba82fc2739087bb3b861eeb44b2497495
MD5 e9e40afda290b81fed08583ca0b9f80d
BLAKE2b-256 a9416a450a2f36535a6d600eb3719a06b4c8850748f95ed43222e180d58256dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 775a2db51c7e3ea37f33d83f8b7c41368d2856802c6d288c5176d1a5cc0eac48
MD5 7c2e01d9038a904874320fd08a2a50c4
BLAKE2b-256 2ff0336ec99d22dffcac49f32667be02154b317ba57346e125e2b1d0a34125a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95f323c7c10cb42eab7bd03ddaef16c42afef188aff6d3a19bbfa444ca4f3a90
MD5 22f789ce25abe3eaa888e238d00f0657
BLAKE2b-256 b94db53a496bca85d020906c4954dcad31edfaf0838276a3acd573afd33ddb6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62b68595c94997d5fc972a2647d1137d289bb7559e838f127ea845174bd802d1
MD5 b4bf9ccb7299135f06102c50f8e0b275
BLAKE2b-256 5b19f575c071aeae43069afe2d0aa275a2b4d5ccad236fbc778fb09a837414b7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2cb8f9536bcc4ae5708b4694c0f67d0b139bdd5b2bd4ae95d47e4361447d3496
MD5 98c745c91b8ea040544b429339258fb0
BLAKE2b-256 eaea4bb02f62467e0e6a9ea481b54c18824ca1784bf33900bf173bff5184bacf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f9553ee2ddc6c20359a138290372eb4a77444aa523271040cac24f9ec69b8160
MD5 69562403d1551dfc2f64b91bd01a7059
BLAKE2b-256 1ec7bef50b62a0001dc8afa590fb7adfb4dca2e9421835365da2a9e2fc7991f9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.1-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.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 662c33b7029da2250782e1f83e4f427ac06ef1582ae0c0b577febf29b342dbc1
MD5 7b01c13d199bd7281f10e05489c6fb71
BLAKE2b-256 b72f65f1c35d87dd5cc3f9aae8b072b1acd672ec344f8bcd3f49b24b5a30efea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 5ce0eb4023e100f4d206512b8fe8fe40ae7221aba747f9b6e52fb2d0948bb7b8
MD5 1c1da27c10c9c3f259e7c93f2a239019
BLAKE2b-256 5250f94bb07c996d5491de6a3fc6d6346fbbf4a363b96b7b3a1843e32d30af1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 512d7617098856608187a09c48f76d8ccbed221883574ca4ae88d22a6d620a9d
MD5 a1296bf7f8e0c90330d90fd279140750
BLAKE2b-256 b8331f4e6591b1e8509583479a164e6b660f468861dc3c0be39edeea9e64a658

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 359702862c298a832d961bb9f4ed7a2af2484e3c84338782a3f814b99ac2d695
MD5 27aa3e733f7385311ae32a27315881c9
BLAKE2b-256 69cbf13257e5e13338e5358de79f64390a31d2e8d4c8b6fb66bcabd0e34af984

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6fddf3ac4855f2d082781aa5af20a999aedc64e57a406c79b9e99fe35ba52a82
MD5 1bf503cf24e4fc9efb439253e621ef88
BLAKE2b-256 1180b26d8d5b5b6034ca3c4811e07006f29e9494d324bc71ce183e8176aede32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ddacb65fa770940e17794c0266661f3a13a8f18f4733349578cacfbfec797d16
MD5 5ca363482a5b57ab7b2b62468886c693
BLAKE2b-256 b947f93c8c7bf7c96141a843fd01556c930e99eddea915bb6379418d8af2fc16

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.1-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.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f3f0384ef2f43e56cd2789a73e85ea3ee7e0ecd2030412e8345e692e52fa7a65
MD5 3e081bfcf1ed2b9d326b71a6d1943e2b
BLAKE2b-256 041414c8e08dbbc7c38953a51cdd41d8c1e48865c8b3b8c3fa543179f9da7feb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 75e790eb352560766e3df89d3d80430327d574fac11841d96916d744af154499
MD5 4d4fddf564e0dfccdd874a0df2b5a9f2
BLAKE2b-256 2e81d696383b6d265008834082cb5b2e9732cf9fb78bf098f9ef21e8627fd09f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fedeec50f3ba5bb3e75ff8d685e38b3bde51b7dd4bf4d7b3948272634f1f149d
MD5 891fd4da303e2ef5b84e4849a5a5001b
BLAKE2b-256 0372a66e79731a94dc852f911e9d302dd4dabe4fc14cac4ec3d475212349d069

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