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

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.39-cp312-cp312-win32.whl (411.7 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.39-cp312-cp312-musllinux_1_2_x86_64.whl (668.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.39-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.39-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (693.6 kB view details)

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

yearn_treasury-0.0.39-cp312-cp312-macosx_11_0_arm64.whl (430.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.39-cp311-cp311-win_amd64.whl (449.4 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.39-cp311-cp311-win32.whl (409.5 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.39-cp311-cp311-musllinux_1_2_x86_64.whl (655.0 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.39-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (643.0 kB view details)

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

yearn_treasury-0.0.39-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (647.4 kB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.39-cp310-cp310-win32.whl (410.7 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.39-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.39-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.39-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (665.6 kB view details)

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

yearn_treasury-0.0.39-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.39.tar.gz.

File metadata

  • Download URL: yearn_treasury-0.0.39.tar.gz
  • Upload date:
  • Size: 58.2 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.39.tar.gz
Algorithm Hash digest
SHA256 0e0610a0b7a7a905670547bc5a3f4a2e81ce3eb1ea0e06ab1d937c83b542ff7b
MD5 63e6507f220ecb18e54048fdad86f3c8
BLAKE2b-256 710e72a1bd583a250e4aad97403e8c10e10f5d71da3ba623bb021803ab74c35c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da15f5af5d954e6e1656e47646d084584a9261eec6619c292836a6f184c4de32
MD5 715fc4d0b85e850ab3d08389695f5d34
BLAKE2b-256 1cd592d12fece84ca2ab4511880b02cbab691985cb091e92bf71a4b733425e51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2fbcaf07d342281d27e11b3a52c3a7c2220b7dc10874262333617f02d9457512
MD5 8d7d40d5782b9d128c9ebfcfa15289b3
BLAKE2b-256 e26f28c6b90d0c4c79d93e67d1f1c2aa52dec74318156e284b910254a9e1cabf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0ea4d0f6934f9ac7ca031b92159ed7d70760e6aafab061a86e59071cc9a22557
MD5 81d47a8ebfc96d598e1c18fda3b40f97
BLAKE2b-256 b606cc8bb0f28883b96b613fd421a6369a3a59fa0fa36f99f767c70a3fc20ddb

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.39-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.39-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 054c0c59bde91b6c0525c3c6e548f32721ffb87a7e541773b67dc2dbc2c84ee5
MD5 75c2330323ff7852fc8353c786e1aba9
BLAKE2b-256 eba3fbddf5f39ee7b8aefe150709902fa63f59be2beda255e688e55c53be4903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 45f9d5f0b5530b9ac38f36cfdc082c06ff0fcec980ea74e8c016a29d850b2742
MD5 0da689773cca0163b8ae0a74dc19267b
BLAKE2b-256 e04ac61eaacec16d1281eb1931397cd06974a41f033a93b24779a87899ee1a58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd876cf8064e030684d3f6d8b89372eb811776d012ac6a459a4f1d41a14a1c36
MD5 8bd1a8a18f3ffebc7c6ad9d1495fcbf0
BLAKE2b-256 b96a7e09727ce000c6770e00bf61040130e7b9d1e7ea32667b141dc47e461b09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0d4bc3bcf6dc3af1a7732fad88a32863b162f04a9f55068a1c2f9802994ad9c3
MD5 73ece32d464fa059107717a846c1f3e9
BLAKE2b-256 9e7dc3860f8f58b6a052528c6ac710e9260c602515b172b3543b0803debbd875

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 900842a796a0824fc8c89b58b7e32e18557a5b3960611febc8597c50447abe8d
MD5 454eaea8ea734d5c8164123e684d3e08
BLAKE2b-256 82aaa729edb6967032b215489abdafa91abf61c9e85c97185a123e070ee86e5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8558f919d288328b0578e7015eeea7be0f56c2a75ab4b24ea2af820e6079bbc7
MD5 cb84504cd252f4c41cfa853c5acc1847
BLAKE2b-256 49ed3571d882beedcbf1790c43e4758370e721706ec24a071dbc17c0960d9e3a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.39-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.39-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bb0fea94bd5102d923594c38643890d3af98e3aeae5709e63a01c8703c7fd49
MD5 2edc5f2481e12b9d0bd9921ebc8bc816
BLAKE2b-256 6ab0fb50c082a594e892a9ac57dd6f3ad80534fee0abbe821d9625cd1e0d4561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 32ae8f265c999971f24d5740e15f19feb93a95fc1e2fb01b8cef92e349f1b320
MD5 5af7bf02b6034cbe70a59b3c1d42e8b8
BLAKE2b-256 f9e22422eff18a182bfdb46aea7acb6210683b99f7706020f7e4a093daed2bb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb60a87513e6709e8cfba8a5827b444162ce0de9350eaba426fecd41c5495683
MD5 92edc62486366f4a6a209de1e154c1f5
BLAKE2b-256 277b2b8628a2f4e06a784ff90741294823a69ba12456cf69e4ae61d3313e5e55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 719dce13b9510b75d85508353bb89e03d887d62bded0a28b927620c213cb0f92
MD5 981ade97a0c2adcd4936fd1f816b55eb
BLAKE2b-256 a8dfb75eade7dd47529240f28324167932eabf3900e1d0870be2b11e85b53c46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed8e5ac5d7f1220d7610bd35eea480837696624671efc107e1d1b7d80337f592
MD5 72e3865560b507af3aa4071d8a7ce104
BLAKE2b-256 8dbcb5b2137b888cb53d0a5c070c855201febca2d52fd7263ebfdde14fd4f789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c428e7d96927e26dbabfd01719705c89ab5ea82b28680da10a4b7307e5d8744a
MD5 c055b62165c9e4b1818526a64c02839f
BLAKE2b-256 49dda43469e81be81057803c11108d32c2e91bfb6c70c0feed0de2ebfcef98a3

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.39-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.39-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a4fe03d383cf3a39fc134517a3609fc42d0ad706e795e82a4421087d47bcf41b
MD5 5fed0a80f752630f5382f683a06437f9
BLAKE2b-256 ed6bba354f02a51e7ff87526f662f3d98d4f6209b7a16ee7be46ce8f4289d0c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 187181f1966b64a52e97a53587b93cfb454cbda914be89c7c00c8a52c223f800
MD5 f5a8912e7562b0b1eb20c196fe07a3d2
BLAKE2b-256 b1702fe0fe5cb4852c00aa59d5475d8c447d44965636a25fd920ae62a0765ecb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.39-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 854417edf21042c9bbbe4c841389c9b70a8aea14b55abfe267ebcc89f3b1b058
MD5 ef88fdf10a70f9ec7800d08b079a6256
BLAKE2b-256 97f5756794115fd1a0a53a8358cef4e09b1b115eb79cfcd891baee8dfbf8ae6c

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