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.47.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.47-cp312-cp312-win_amd64.whl (484.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.47-cp312-cp312-win32.whl (443.4 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.47-cp312-cp312-musllinux_1_2_x86_64.whl (723.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.47-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.7 kB view details)

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

yearn_treasury-0.0.47-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.3 kB view details)

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

yearn_treasury-0.0.47-cp312-cp312-macosx_11_0_arm64.whl (462.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.47-cp311-cp311-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.47-cp311-cp311-win32.whl (440.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.47-cp311-cp311-musllinux_1_2_x86_64.whl (703.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.47-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.47-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.0.47-cp311-cp311-macosx_11_0_arm64.whl (463.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.47-cp310-cp310-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.47-cp310-cp310-win32.whl (441.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.47-cp310-cp310-musllinux_1_2_x86_64.whl (722.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.47-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.5 kB view details)

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

yearn_treasury-0.0.47-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.2 kB view details)

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

yearn_treasury-0.0.47-cp310-cp310-macosx_11_0_arm64.whl (470.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.47.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.47.tar.gz
Algorithm Hash digest
SHA256 a18623e27b9bda430630d414c83585db2760a3e953466d101e8673ceb2669e46
MD5 94fcfaeab19e52cccd6fbd55b72c4905
BLAKE2b-256 50915ff303639127789367957325d47050f70b0823bb3f3525fd198ed6153a39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 01386d53c8262aa7ea32a3c155e604f02bc63b9f2218403f9f5a95df4a458cd8
MD5 765526439fef2727fa899535a218d8cd
BLAKE2b-256 5b4062a096cc65620ceae70ec45032df6c06c9da5f6bca045e93499caff7dfa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8224bc16fd76491fa29095ba326e8464867c363ffb6fa3bf15a1bd10343a7cf
MD5 b76175f09b8dd8e89b02c697f19e0bd1
BLAKE2b-256 e53d1c6e3d7880c8f751cd2a1d8bf8ba01884ad3f508cd34cfe0570bebde002c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c2b3bbf47c50649b53204ac9f0d4b40b871e174b1733f8bc5dfdd0741bdcaa7d
MD5 44507fb492bc83300dc22f1515c7f0b1
BLAKE2b-256 83846897ef2abd49c7b0598dd1b4e00e80cb9d3991a312a6c493630fae4bb42f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.47-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.47-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50819694cbc5cb2d82337f468de2ffb299ecfd9182bacc799a66213611800432
MD5 8117ee5a409d14b3990768477c0b7c04
BLAKE2b-256 167b97885bec8e9faeab8e2bc073af084145a838ff053f4ca048e0ee70838a35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d7281b5eeae1f29c79c2139d969b95d4c10e62d7d64c8a2226d9f21e0a2fd1c0
MD5 7c78adef1124565d9e1db73e974c303f
BLAKE2b-256 665c833e288326d94513afc857007bc03786728d87b1dedbf58b10c886360693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30b9ef19a2ddac3e93cf6293703570a8f5b4aec92a9957a307c1e335068006e1
MD5 3c6a4f9c0c1a543c5785b63f4fabfcec
BLAKE2b-256 42184f159088a01b580b29111a292c152688156440e57f90281a5ee8ee64db47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 454b3128dd12d1d3953c03a7e0041f478063950bab877741f2db9732885f815f
MD5 ffadf09d586e4eb8063bdd776532f185
BLAKE2b-256 f064ace4eea20f53bc7c9abf625a475ce109a5789d373be27bd2a27bc296ef9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7ab363760725bef11677ada9b04e7f7a9f74e6bfef06269e7d875c4f19d46517
MD5 07b602054265704cc53cabd5ff5ffd04
BLAKE2b-256 82dc3a81c3335246b846160adcae78cca22c9094b229fa5dda576c93d3f171f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 93b07aacdf184c0454d50ccb4d8573b2b9f448d76d254def71514111fe63da07
MD5 fb2bd54966263c34b921e2c48f157dfb
BLAKE2b-256 e161b3c4dc071dc51583944be81d0bf511485af128658eea0d6d874d7e7fe186

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.47-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.47-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6e3456e38397a2f8add74c5537220d083e2ac4353c833389091d7cf695eec01
MD5 878e5d0b6c969abfb08b35759bf165c1
BLAKE2b-256 569c535cbdef832a54b43d94f4823aea2bc807cc4879d40a954facb8b09b69ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 002d2c6e63703495822f089b1e15afe8b8c32d5052691fbb9fd02e1a956ea9d1
MD5 4d6e75f3d891ac6c775c54dc2a1072d0
BLAKE2b-256 423e2b8ce5449569040c258d72f1886bbb6788f47264be96c2cbd38f85bc764f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a4b9e1b6c1c98cedb6e4c1a32f9c45500660248cef0267b71c4f638ec4b2849
MD5 7aba5cb2b2d0c2dcaad086a6e59b02a4
BLAKE2b-256 c405738d5de0b16545a9211ea54b89abfaefbc36ef935610d82d6f15ba0cfe5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b70af4e46b1d51041fd67911dd33914a35883ee5a0a77c829a5531720d20b7e
MD5 dd38bc1a830d5428cfb3b1adf3c9c2ab
BLAKE2b-256 ba691a39e0fec47c71f15cb274eef00aef575b4cc1c2d085ba15aa0beddffb6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1f70d6fe8c5be6803bf7818d6cb867dcdf2c3b8bcedec7ff551b3159b566507f
MD5 e3336676635299727159935eab55736d
BLAKE2b-256 67b41903ae088185f3d194bfe51af8128bf29f4b7fcb6e054f6279fafcd244ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1f549c1f3c77f1971ee2676a8d094d29c22e31538cb57b677978229660629a7b
MD5 ba564761d9e76f3215c5a5090e61bbdd
BLAKE2b-256 dc81b2f7e2f7060f0d8e950c792940b812864629076412a330c5cb1597ce264e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.47-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.47-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a35ca53fd391296124c52d1bd35578524cee49c7d46dcc63b8ab63dc9239e988
MD5 b5ec17eb513dfa4be0955835e1e41a99
BLAKE2b-256 1a836dd18381cd19b03d8c62286c1793d5a3193f766140f831713252acb289b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 aee62a8280e21c1d0e53d7707da8a19269636e0855e2e174a80f05582672a894
MD5 d0b443d3a4aee1d1674c7da5a3f571bf
BLAKE2b-256 a30470d3b9abadf10bc7ff14194336689a100b82872e4cbb58b1a5939546a946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.47-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34db848c867be4d3ec8617a9770ca4cca467ee0a557ab79cd842d847fe88c02a
MD5 e76fbc097f0dee7b4c1f07f9c55f5986
BLAKE2b-256 f10d304261fa5a00d20efa60ec025e06c4fa337506648a4c1091e74b1bd3b816

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