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.38.tar.gz (58.1 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.38-cp312-cp312-win_amd64.whl (450.4 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.38-cp312-cp312-musllinux_1_2_x86_64.whl (668.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.38-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.38-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.38-cp312-cp312-macosx_11_0_arm64.whl (430.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.38-cp311-cp311-win32.whl (409.4 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.38-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.38-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (642.9 kB view details)

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

yearn_treasury-0.0.38-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (647.3 kB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.38-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.38-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (657.3 kB view details)

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

yearn_treasury-0.0.38-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.38-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.38.tar.gz.

File metadata

  • Download URL: yearn_treasury-0.0.38.tar.gz
  • Upload date:
  • Size: 58.1 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.38.tar.gz
Algorithm Hash digest
SHA256 98f99d770c8f5454771bbdf153e7bd87179eccd36c0fe6646a064466b9d9c716
MD5 8432b953859672ee8bd3924255cbb7ff
BLAKE2b-256 00518c4f685a6d94f3a420a9ae3ec323927ec76ace68dcc73e809cd99514f90f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d1c1b7547dbbf8ca373edc3912ce880dd759fb83c579c446c332a6a371f582c
MD5 7019f27f379370a305aad49b42c15586
BLAKE2b-256 96543522c81fd8a4c2217d82f6bf2f6e2b90fcc251fc4d007f227e97954ae12c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0a5dadb6ed5fcc38e54a9dc5c3c621e9326fe2225d614146fe881d60bcce57e6
MD5 29251252a00d10da3d1577b8fe66c5ad
BLAKE2b-256 2594f66111fabbeada3f26477f68954638a1cdebf2a813d88f3fcff4f63f3e0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 48f71724b5c6f7d6484a4c315bda32432788da724ba313001ece7f4913c99fd8
MD5 af08349823168bb0b4e01ac850172128
BLAKE2b-256 55f092363a977aef83f3a04a17ce4cb68ca395e6fdbee69e502bec2183c608a0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.38-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.38-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7b1ff6d5373f2f78d2c70128487aa9345424d55225a38e06c65f87840a4f656
MD5 5ea10118f9a54a73cfb60120ee3d62b7
BLAKE2b-256 dd9097fe7647c099c1153e44e2ceaef3b7374174138bd2855963821d0de95cb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 4e386093ef74bd26bd148ac76dd995edfe9334aab03a5f578d5d3557d4c00393
MD5 2dab5f7fb5d08a99429559f0fc446ba4
BLAKE2b-256 829993f0d6a7df450a944dde80f710f835138feec071f0201f6451d68cb55bba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16d229279e90739dcc30a86fdc6fdd90e4bfbee4697c950a1af4799e1a3dec7a
MD5 698ae66a73ab5431a77509d20f7f3eee
BLAKE2b-256 c232aaa9d106ce68a1d96793f41feb9183eb4e95b6d393ab1586a965cdb5794f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 71b6e82bb30b655760e4d456fc7a43dc850a1b5b0a81f2f57e148c4f6a96e74f
MD5 497b22af5692759f7e42a13b51c0fd01
BLAKE2b-256 b71c199758f8f66e0571262f8dfaa6b93fea302469054a222daf7ac1be0aa739

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 229674225c68ca2a663954297a2ed617b67da080c892f2e0339b5905263c8db0
MD5 7b4fe7a5522de5fef381ecee56fd66d9
BLAKE2b-256 ca89c43270c173b34c40dc9c60fc3c50d53a10c24269432bea3ba44832f5d8e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3ba652ec5612fad4cb5789b651b135437681481f06d56fb351bb256c743602a3
MD5 9778d12af020dca37d16cc125eb95a50
BLAKE2b-256 2b9cdf51469dd7377d3e7ae99c9c7a5ae9eae8803ddb5d6ccbd40b8ea37d4af2

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.38-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.38-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c46f37833219b92c66896512843c65f44159156ade4e1291682c9b3a64a3c7d8
MD5 0e7ba89974e93cc003d40b4450fa3e0c
BLAKE2b-256 ccc42e091cf92f0e23903528af3c0fde06e33779450cf7c5b8fe1dd6088828f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 dfb3aeb105b856b666717743a472f804398725713b01877776f7b9c527372d9a
MD5 99ad2b21121e8f3955d69e0ac15c97e1
BLAKE2b-256 f6821f97940dff9e746bbf1a8ce9c294358d7c4540b27226953a14245480c576

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 811442806a346d34462c395d1b6f54c1711b12e308c0f8860f9ca19ba3521972
MD5 7482adcdbaa2d1341b779fd6e3e6f608
BLAKE2b-256 485ee65bbc9328e35e0d624a00b68ddb3c6a54f26e74e92e7f0ff86045c5c515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7782087154c6019a60d6f0538350d513a67536bc1c251407e923010285c090f8
MD5 c5a602523c865ecec9143e1cb3af6197
BLAKE2b-256 9e0c5ec617b5435c0e193631b4187241c33498e95664f026b629d5595b2424d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 242a75ab970a8cc50fe69e29f810caafa78dab7ccfdce38e351030a83a539bdf
MD5 b1a024b83d75a8eaf1f814bfee454e9d
BLAKE2b-256 59dddb4f1d379001c2c2d4053748d7dbae67e15ab9d3bdbc46fb6d99561f3aa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2a3da4325a2777a12971bc0f9a944dd5f93e34a8a8eda368a58d4f0ebe3fa28f
MD5 4d3b47c86534e01c2ac90afbbebe3ae6
BLAKE2b-256 4f888705bedd51d42a7c4ffd9bdf945a5c4778ce651126675dad719ea50cc50a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.38-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.38-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65a57b72996497fad678f16a5780713167b6377700a479f0a0ffd0eb7d9f7466
MD5 1b27cce9370df5374891738b169ad5c2
BLAKE2b-256 b33d45691e1980ee6cec65f5122cb44b7f8fcbada6c2cc09d863f2aa206459a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 5b911e25c8c08ba4e1695355e01c341bf438ac15abb487d5cab774c2b30f702c
MD5 4ad9ae2a35a57d5073ab4653c1dd80af
BLAKE2b-256 93c75d97d8e7e2acfe9e391802a41bd0003633152c89b3af4dfadc96711170fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.38-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 045e7786a1ad193e18e93989d8332e3e22b6323efc3e2af52ca182a650e298d1
MD5 9677557bc178c5212dbe187f99797905
BLAKE2b-256 e04cbbb77f21d965385ad38f5e57ce29ce6e471e27373dc605eff4a7c157b1ed

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