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.36.tar.gz (58.0 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.36-cp312-cp312-win_amd64.whl (450.3 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.36-cp312-cp312-win32.whl (411.5 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.36-cp312-cp312-musllinux_1_2_x86_64.whl (668.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.36-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (667.0 kB view details)

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

yearn_treasury-0.0.36-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (693.4 kB view details)

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

yearn_treasury-0.0.36-cp312-cp312-macosx_11_0_arm64.whl (430.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.36-cp311-cp311-win_amd64.whl (449.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.36-cp311-cp311-win32.whl (409.3 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.36-cp311-cp311-musllinux_1_2_x86_64.whl (654.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.36-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (642.8 kB view details)

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

yearn_treasury-0.0.36-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (647.2 kB view details)

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

yearn_treasury-0.0.36-cp311-cp311-macosx_11_0_arm64.whl (430.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.36-cp310-cp310-win_amd64.whl (449.8 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.36-cp310-cp310-win32.whl (410.5 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.36-cp310-cp310-musllinux_1_2_x86_64.whl (670.7 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.36-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (657.2 kB view details)

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

yearn_treasury-0.0.36-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (665.4 kB view details)

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

yearn_treasury-0.0.36-cp310-cp310-macosx_11_0_arm64.whl (435.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.36.tar.gz
  • Upload date:
  • Size: 58.0 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.36.tar.gz
Algorithm Hash digest
SHA256 5a1bf226d66128a4ffd43bc9f591ca8064443b7d09495e0581dfa3fedb9e668a
MD5 d6eb8e2316529ef2f8fc42a623dfd848
BLAKE2b-256 ac8a00d082768b4244568e6671c047b0587c63a013eadf3538f08b0f434efc9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3152b139087b4bfa2a6d9ad4178d129f89a7d7a811bbacd170fb234f9a41bed6
MD5 509fbd4ea4a0fab73f8ee6c63d396731
BLAKE2b-256 cd2b219232ffe5007af1981f09c942717dd77f4d26f90efd7f25ff888e3836a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 704f8b72cd4cd0419762cab43e01e7a843ced364840faf52627b5bfeef8bb71a
MD5 ea2a7be7d24f19521a0c0f91d0295579
BLAKE2b-256 3cc3b9af3bf6bbd8e7c28d604a2163e0befdd69fae109f72a9bd170089bbd39d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dbd54aa815d381871818cfc8acf14ceb962a2ff0f38333a93b938f9e3e1d8427
MD5 31d9813f123aa5e9381ba10ed5842984
BLAKE2b-256 89bc5873ffa2d9a52d87cb8d12f7a1812ffeb28c4a7bf18bfe9d140721644f26

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.36-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.36-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5c2ea5d82920963f3eef984bdf81a54f6ac30700d5c682ef5fefda98aa8cf8a2
MD5 fa74fd290602580d93b55a3c193127a4
BLAKE2b-256 a134c2ad6c133e595ad64eda73adf8997f172363270106fc742ed30b593e7479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a829e5e04e8d9eae4c25feb5d6ec22aa4da3e50cd0a769a418f4bf748ae251f0
MD5 bf73b9566713c9885671cc61e1005f79
BLAKE2b-256 e30dd32787c7d4f06f5b6e4054af8eb392f23f569eadf803af4b4569a7f9429d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a43e3cedead002246bcf6fd1d6eac8fa503d8f0efa8ade07293c083b5eb18f97
MD5 1919216875a9e83ef8c5093cb8332674
BLAKE2b-256 5011f0ee3ada89222a24979ebeca5bce288d47f1bc55b863155369ad2cd1bbeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea46fa925a3e16e191e160a08e7e10133e392d8dbd65a1f03006385d5729156e
MD5 89deae418a5ee01a8215795edb2f90ce
BLAKE2b-256 5797351f0bad5f4d486f2f8748db3065adfe1de1238212aaef0ecd6828388a6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9fa401b9233bb74c8ae433fccc4c67c59f449badba24d8586cd51c306fbef6d0
MD5 70f44ec1f953ac881355938ff26abb26
BLAKE2b-256 2eee4c11bda67cc97cc3caadb52c87a8a865ff0e8b47d9eb6d9b59fe5ec7cb75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0fdf7fcfb7b79c178a3e47a703846208d145cb3e9c494db452e0a141b377f529
MD5 bd980d36150611003c5110429524e7ca
BLAKE2b-256 8c222578096ca2d16d34ed7ebb71743fb64ce27cb7c6f5a94e6f7af2bd547100

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.36-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.36-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 451bc079ba4ad63af6b6cabaf2611de4520517363cbb13cd8d3e5ceace9c7567
MD5 cbbf9dfd1a2f970623105b2ec9290b8e
BLAKE2b-256 cfd84022c18983b2c526dd23e096d1e8498155840033e8f2fa257bbe07bd0c23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 17e503c501c473ade063d081ef77bc9cbd1fa7bff23b5213c1a2554b82510e8e
MD5 bb319fa752bc617a3a605165e5af7e08
BLAKE2b-256 4ffa3fb23a3a47b756f4797dba827f6d3522aad067f05b2aea50dd57192fb07f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0307cddb3d2f055f7bf97947f818aad54bfaf5b93b6d40f4b672831a5b4717be
MD5 64eef3ef3573a9883429433444246960
BLAKE2b-256 e22ed75834d5a1201482f539f89c75443fd53380e3142b02534015326d63f5ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 25babcb0b2f0b9ec9c07cf2e834d1b90ca659fbe35b8901873c1a0e626132630
MD5 e748ed1d5cf497d51b9587665224be59
BLAKE2b-256 c36c5da84f2fdfc2fb5f1763d25ef0c997a74213bf98ffd42a6d1234fc17d340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d295cdb3cbed71775c1575d3e284b64d8469b37b432f93d451b7df22e727a97f
MD5 75ebb7562f6dd35ece5fffb5a429dc14
BLAKE2b-256 9f406681381656842da657bd9df8caa6f42780230b748751fa22828bdea5d6b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 445b7cbbdc54d422a077963e8fd67379b0c9821b331e422fdbbd3375b4a2a174
MD5 1b2e64600e988898e2e7c5123967d954
BLAKE2b-256 da3e6a7aad19c3e118bf62d278988c09cf26f0e1dcf78418cd10a721e8c17ea8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.36-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.36-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c87fb9429c19b043607f6d1705a3a39132527e2c42c01bca22ca24a981af950
MD5 5bcb48aca4262b57087fcfe72a49ad5c
BLAKE2b-256 feb58d54bab07cc7813db0d4fe025f1b25312731f54448658f4cb09d61c5043f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 997f17fab7dc4a056889d26b7ed3467bcc183a76c118711f9ba745ded9a4998d
MD5 c356d8d4a4ce22a501ed810dac12ed4a
BLAKE2b-256 76cdc7e2401a9dace6b7ad5a4b3f6c9abb0bd4dbc3f4dc421166c03015305283

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.36-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dca7086c593194996b70827d925d78878cd6a2e6a1b48bb72881207fa59df79
MD5 65d5c24f1d5718deaedd81a5cc1c0bfa
BLAKE2b-256 01c5106ce569c66e3517bfde0f72b836b8a0042b1034408e3066d94eeb7cabeb

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