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.35.tar.gz (57.8 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.35-cp312-cp312-win_amd64.whl (414.0 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.35-cp312-cp312-win32.whl (381.2 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.35-cp312-cp312-musllinux_1_2_x86_64.whl (574.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.35-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (571.4 kB view details)

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

yearn_treasury-0.0.35-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (590.7 kB view details)

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

yearn_treasury-0.0.35-cp312-cp312-macosx_11_0_arm64.whl (377.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.35-cp311-cp311-win_amd64.whl (413.0 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.35-cp311-cp311-win32.whl (378.7 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.35-cp311-cp311-musllinux_1_2_x86_64.whl (562.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.35-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (550.7 kB view details)

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

yearn_treasury-0.0.35-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (554.8 kB view details)

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

yearn_treasury-0.0.35-cp311-cp311-macosx_11_0_arm64.whl (378.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.35-cp310-cp310-win_amd64.whl (413.5 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.35-cp310-cp310-win32.whl (379.6 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.35-cp310-cp310-musllinux_1_2_x86_64.whl (576.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.35-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (565.5 kB view details)

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

yearn_treasury-0.0.35-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (569.5 kB view details)

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

yearn_treasury-0.0.35-cp310-cp310-macosx_11_0_arm64.whl (383.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.35.tar.gz
  • Upload date:
  • Size: 57.8 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.35.tar.gz
Algorithm Hash digest
SHA256 0b024065ae1fb358d190a79974fde77a56277051755f4e68dd05c57cecbacfab
MD5 20ccae7287a1a924b53f816e1b4e8abc
BLAKE2b-256 abe165f1cc1c5c66b3ef001c3db4aa3e8e02b87539fdfd50159b765117a099a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51d2ff9de09a5bd81099cc938f6b43d21710f96b0edb3d1569a098ff7d8023a3
MD5 dd763eba37372e345e5bfcc82939c250
BLAKE2b-256 b6fb0964d238577f25e0bfaf3284634abeaa0a17478bb5afa01ab9b6884212d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de8a93cb67b9eda799edea6318f33df0b99284a2777c2b45a071cb07e771d493
MD5 f92d014a75ff77d31f36aef86e13a443
BLAKE2b-256 9b3f7c7148d81f553f311b23369acfd61e26f3943e3265aec5c828944ea996f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f57d4ea6e9cddc362fb400f6d6689d0657c02369a4aa3beb00b2549cb3f537d2
MD5 d9c19a7e60eb67482a286a9986c4f1cd
BLAKE2b-256 d1f2d98715166741b8eaf4bbfaf3f9526140b1e16600f2979e98999e01836ae2

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.35-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.35-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db86cc103b468c1469a03b1af97a20ab47393aae24af2215f92044317580ced2
MD5 99ba66ddffa28c24eb2f9f591f2d9650
BLAKE2b-256 c3484fe6658b46aea70f4a4524561765ffeae96bcede1d6f1849e6b86fe7260b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 81b22035a18fcadb0d1048974ca367a6637bc7a1b425e053a4db00011570fc3c
MD5 0483d3f0d4f6f43a29876dce0c69f045
BLAKE2b-256 294c22a1f82998498ad46e658943849190a9520c08ea0d62947cc666310be7c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6fd17536c45bf87cf63ab3f10686bb664193673a117482cbaf10ccd22678a12
MD5 f1f799793c97a61f87404fd3b063f776
BLAKE2b-256 d0d7004c5f3ad6834ea045500a3e0cd482479f7aa4b758739d0c5d097d6e11ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67d6632430e9e0e164f1a9dc543d62be52195e7f08c4d32d256c71fb067a4a97
MD5 79c2f9945c59478f774863a04c1ed5a7
BLAKE2b-256 82859a46c1ec944a5452434dcdce4b47703777922e118f822d5f9ecbfad6f5ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 747823bd9d4f777c40b895851da4b20406bff34ebdcfdc9d5de2b355af09c1f8
MD5 993af2a8d2f55970c71a963a1e2391bb
BLAKE2b-256 60e2d5d921ddb6e1b890df2f9203e8808f27be0d0c254791595e0199a803e196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc3e6a28305f4699961eb54071bf6e8555f6fa1702c01ddb1297f215d8c918a7
MD5 ca9bb32557f44e3ea256a446381fdba8
BLAKE2b-256 093a596d00c2a8e5991138bdf0ffc3bd94ed20ccd1dd066ca970b29f740a46f8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.35-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.35-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1a874d0d3702eaad7caae1cbec3175f903984dae8df00776cafacd7a6230765
MD5 cfebb694ef58c27cb6a6cacb65eb2539
BLAKE2b-256 77c4b23c6fc054e69c8f0c2bb20316b3a0ce5cabd1280118cda12dbc491fce10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 b4144d027b406d0095655da34d69c51c396a2be515b60d9a474a86445516ef61
MD5 debf60c0fa97fad9fbe17b97f7d3a09a
BLAKE2b-256 b5a4f7c4d45558347ec74cdca5aab90e1b7489a9b7e657aa4bc9f64f7a3c45de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7071a0bd6cedce0426f831bb225d706f2a45d07dfe78911149d72161f545738
MD5 93ce545c8c4133e73b782ca4ff1f3dc7
BLAKE2b-256 d832a16bdacb5bbebec947188c40a368f0a4990a7b6e900affb098f21e5cb72f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d8c08955a661f86e4883bf844328ffb63b0ecc3e537cbef33aeabf29cc879b40
MD5 b03e50b3d3573b38869006741168c281
BLAKE2b-256 026ad0786a77d58e16c149706ba56c09e2e48eb1ee07e203d90a79e74ad3a503

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 391e0d23fc2414d636f09036da21c979a89a1955fddcfb613fb20db1afd1f6ad
MD5 72078eef63526c90d0e115424f6709f7
BLAKE2b-256 6d6b1f20250f3a7b13a436fab18db6151936f1e4f7fff9211604ffc2aae5c2f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 13fdcddd169afc17d0d330c66b2f06c6e47b1bfd7bcb21ce1a584daf7382293a
MD5 1975b65d3eb4caa604bd4cd5b7f98407
BLAKE2b-256 32506cce78d4f9d4be8d0fc538d5cfa0243ce86fd95923de4717125b5c1a375e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.35-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.35-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0481d10bab5be72337eae9a5eb700d26a7334315ad34b5b2591d3a43dee0a40c
MD5 0ad1a01e766610677e7eb0bbadace87e
BLAKE2b-256 008123af97d4e0cd9455c2bafb86a52ccf10249056d62573d08f1b098f8802f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 91c749904bbb35a429031338c15676e5abfa1c28ba885d4aee6db9c5f43cd462
MD5 0923cf9fce00af85ff27118a34f0aced
BLAKE2b-256 f20bb68c06ece62a159dbf991af193ef5135840278eca04809a2bba54ccfe7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.35-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0439538ef5dcbeb7e78848353e4cbd767dfd48ce2f9f66773b945b357e97284b
MD5 1cf917fc5aace07ecf0ef5f585509731
BLAKE2b-256 6463c2cae448fbaaafd648e50868e160cb61aba8f9c23528ab371175fafa6fc5

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