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.48.tar.gz (62.4 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.48-cp312-cp312-win_amd64.whl (484.5 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.48-cp312-cp312-win32.whl (443.5 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.48-cp312-cp312-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.48-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.8 kB view details)

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

yearn_treasury-0.0.48-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.4 kB view details)

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

yearn_treasury-0.0.48-cp312-cp312-macosx_11_0_arm64.whl (462.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.48-cp311-cp311-win_amd64.whl (483.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.48-cp311-cp311-win32.whl (440.2 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.48-cp311-cp311-musllinux_1_2_x86_64.whl (703.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.48-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.0 kB view details)

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

yearn_treasury-0.0.48-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.7 kB view details)

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

yearn_treasury-0.0.48-cp311-cp311-macosx_11_0_arm64.whl (463.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.48-cp310-cp310-win_amd64.whl (483.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.48-cp310-cp310-win32.whl (441.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.48-cp310-cp310-musllinux_1_2_x86_64.whl (722.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.48-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.6 kB view details)

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

yearn_treasury-0.0.48-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.3 kB view details)

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

yearn_treasury-0.0.48-cp310-cp310-macosx_11_0_arm64.whl (471.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.48.tar.gz
  • Upload date:
  • Size: 62.4 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.48.tar.gz
Algorithm Hash digest
SHA256 734518c8e33abfe426c569e13c78c5b7dd334f552b279929b18cb3b310deeea2
MD5 9f08aedafc539ab3cc43ff25cfda33d2
BLAKE2b-256 700e53576adaf0cf11b63422e5576c38b9ed2e3157525fd89e18727804bf8bd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5289c9c9f77cb796fc0461c7c58d0dfa3a59cb10de723747770b3ab318dd2ae3
MD5 a507dbb9eb1999a76f6ceb50826ad06d
BLAKE2b-256 e81c714620d634c60e9c69796224146edf3d20b41821a6eba256a75186eed532

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0a05db1ea7c5f672ac687ce952ccb65767994e955d5e665701addd673f40b333
MD5 6550a36b60d0be737eb3d546db149568
BLAKE2b-256 df378b61eae604d76d253720ac91b165fe74dc18dd5955d114c72222a6573d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 af9532890507495d670dfd77ec101aeee29e9a88e2c5d9504f730088deee8976
MD5 1f1cc6c790a6dbf891e8f0fd496edb63
BLAKE2b-256 0f6734d979c5dafd1a161320150d411734483ebb8ca86cff19f1d513c54a64d8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.48-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.48-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d00fb15685eb999ca53a0f46b7a65abb7dc3a80ed9e9373cb2c409e4be8eac4f
MD5 95de7296885ec5712a40174dbfed50fb
BLAKE2b-256 d0e06e2481120ce70c64231e09d760319c5cfa9a40a63bd2f31aefa91399ba79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 26aa39def507cff35eaa3dcc33e393b93f432197abacdab137c6ed29bb290737
MD5 18cec515f8be275a4525795058a2053e
BLAKE2b-256 49c0014220cd5113a9f020e25a9a0c9eecb3c01180388cf86454e4d7b3685e79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92bb6ed4a3c521eb6a75bb1b6761f17214c8c2b0b3f3e4c90d6a4e744599da60
MD5 0868deea17ba2d93df16ef170349b21f
BLAKE2b-256 2ea27823632810f1ab02d1c24019db82c50044c481dc7b2a64f01c277ee91147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e80bbe7279979407d2cc72c69d7e6764cb69937e9201c234743fa540bee967e2
MD5 456a053d59a8564cc62c642dbe126167
BLAKE2b-256 437ea2e039e25f7c89fb4e44a968ce27730c2da8a91d4bdad2a6776dc425bf11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 35fe7f606d08ae28c9d0a50c6d6b28757455866a2053c1189c535c4cc8b1728d
MD5 5ec5e7a8a62c8d0ef40f946a455bcecd
BLAKE2b-256 1b663985b54e7258415414f346ee5f60008447e6c33cdb77df040b5937bb05c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e177df9ff065831b04e41a35c3e0dfabe6d7981c5ee19a4b97b7c92c2d65a2b3
MD5 d9cf140f468db32e39bb2b3cff32a9ad
BLAKE2b-256 5d0be250b44025375cb22456a09ab785d939a9d1fee62f04d6b0db9a4e0361d0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.48-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.48-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d72d39fd20e2483be06ec708a219a069417d892939dbe374b166ec414849039d
MD5 94831cbab19fe734a29d6f9b8f864c7e
BLAKE2b-256 e028d37748a545506c83eacfba7c81aef5b36055790bcbf4b93f37225590d3f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7b9f30ae39614b13758cdd33f0a17d666cb2c13c7efba6de06376551c4b58d30
MD5 63bcbfac14ff837b438b28f5695d5aa3
BLAKE2b-256 b5483d645d006ab10c8ecdd195596f133b9d124f5bcd71e303473f29e2245db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a97b410fc25609559b9bec21148525dbdad5b96437d0cf2a128d7feef51ee422
MD5 944c19fb036d5523e67b574438414538
BLAKE2b-256 7d1e036fe6fe12a6a853e8a32166cf715d227a8202b102800f76444510f05de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36d32a02fc140f26aca964321854e260880fab2bd88f06de8bc70c2deb02dac8
MD5 595481b124f333d4d55cca036c2369a0
BLAKE2b-256 8fd303722e1a750c75d7113b39bb1faacc316f5ccacb0bc0d8a1c6fa36a6b1dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 969ffa131238878649c951cf65983b9877a3dd1a83409e6fc65902938795a8d8
MD5 1ce48776797b9cbf0d42892b76c126dc
BLAKE2b-256 4bcae34d2c5136b4dcda33ecc5ab83d006d74adf6737378d07755607f2ee198c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8494147b0d249822eb45566d6c370d6540347291076aac25ffa4558d94693ec7
MD5 27ed848a7d2c66b82c600b1183baa66d
BLAKE2b-256 a6ab814d98c8f369cebd07f4b1036b4795a872aa309f35da41ace2697eafa006

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.48-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.48-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a0d00af3c7ff77a1842c5675fd4b29bf798a8f8e67f40864a8b06257f2410f4
MD5 1f482c52a2e83fac5366c7d000ef3780
BLAKE2b-256 387bf95fd7b414c2464222338697633c35882e224284052c904a699ab1037a49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 69037e3972269422bd42e4d1224878cb6533e26896e97d1faa60abee9e55d878
MD5 163acad4262867a0f1dff02a8caf969e
BLAKE2b-256 e3bf02b48ba3f0a280cff06b0b0d7c6f7b2a96ab576c0c88bd42a809a106c8bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.48-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 471f13e270f0ee9a38a24c171d6f98f2a0f0a7be799b2369ad219c25bf013594
MD5 2fd9b7e26b26399b4a7cdc79b1a409c0
BLAKE2b-256 ccfb44103319feb60ba4c1128fe15cafc4fe8d5476bd0fd31f961386a0f7356a

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