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

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.34-cp312-cp312-win32.whl (381.1 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.34-cp312-cp312-musllinux_1_2_x86_64.whl (574.6 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.34-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (571.5 kB view details)

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

yearn_treasury-0.0.34-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (590.8 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.34-cp311-cp311-win32.whl (378.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.34-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.34-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (550.6 kB view details)

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

yearn_treasury-0.0.34-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (554.7 kB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.34-cp310-cp310-win_amd64.whl (413.6 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.34-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.34-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (565.4 kB view details)

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

yearn_treasury-0.0.34-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (569.4 kB view details)

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

yearn_treasury-0.0.34-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.34.tar.gz.

File metadata

  • Download URL: yearn_treasury-0.0.34.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.34.tar.gz
Algorithm Hash digest
SHA256 0cdfaf01a82d5bfc2e121fa41e9625065bf6efba738129e7c72c804c3f680099
MD5 f9f18b8a7d0ea747116f6a0055804e8b
BLAKE2b-256 5e2f48911e14e747b938176689317a0b4597569c04e986c75c1b3c52323213a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4a8ca50a030940567456fc4155475f0256601b6b6716bc692401b9fee2e7265f
MD5 94500cb91bba07ded370dd84dbf3199a
BLAKE2b-256 90098dad157caebd3f04d8184b56b890f103fbfffd37d27c84dcd32936b0a579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fb8ac89e5fceb909184b519c1be031c66b6aa49ee828acd89a280999218d1c13
MD5 3fb4829a6b2642748f8986492a1b6e14
BLAKE2b-256 4bc7d83f4fd7570e41c0ebcb30ea26c4a42d20a8be5b660e3b564d92f0f44cd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5a46976a51d6b7ef23c72b48a30bac194ad771af6a5d7b144f703e43f520b896
MD5 0c00c00233dad6a0daf6936202fea097
BLAKE2b-256 72cd5d763da2a40d5d9daa3a1e9d34a3b3655244607ddc4b64204025182ac207

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.34-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.34-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4c23c2bb182f50caa873e24c7970ebbd679ecd20cd4807174be9431e3aa317d8
MD5 f85df1bd4b6ac83dc068d051b602487e
BLAKE2b-256 aab6efcc618f37fd6f4f333bbd71b46c6be8b582b05c7f77518e2c31495187f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 03ab7f1fabac40842b06e380a8fc6e2acbafe26b1cc8a396dda0a76981afaae8
MD5 9ed66203a1508547caaf074315a8fe9c
BLAKE2b-256 917948998b46bf5de3805aaf00bc5bec21a4bdce151ba3a95b5477c1481de638

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15748d9cb7e6390205220ab9a2176dbe8129977b564d7334d87dac2e938fc94d
MD5 44f8e0deed077ecab6799d3fad73b46f
BLAKE2b-256 68a66d5b5e58b05854540e766c1b943ad53c420ffef0950ae6c7fed262f016a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a7652a286a44ac32ffca0c62c82cf35598498abd27837779674b5e58363c1226
MD5 a1dce128976da2f574a76eb854a9cd42
BLAKE2b-256 08a481d1245e2b1d4210398fcd08b84e37f3f2eb04bfad041a679fb853db74bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2aa6fdcd0984942f0c1fe9dc4b1e41e9bb0d6f9d562bd75871c1ba7a7e897e06
MD5 dc9a4b2b7777f8df0e61deb2654777c2
BLAKE2b-256 e7ced5787ac00b65739627c4789b2297211efa859b69a3e961935a0c732ed334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ccd88ae3ed3106f0aec4720c9f6fffad48be5bdb454bbcb44ecce18a575ac93
MD5 d178ea50f9131ae4f425dcae27d78445
BLAKE2b-256 85b8325a9a9fd14f8d72e75f021aeff5c41bf037cf7de40b05ce1fda60d392af

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.34-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.34-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 01d616ce37e9ea39130f3abb32801b5b9d57f499c02d4c06aa907c4155f5f700
MD5 8ed58d1ca847bb3acbbe04692601e518
BLAKE2b-256 288074f37cafd66f62985187de124ea6973f14fa716e64d564194d469bc4291e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 2da2c9f14229139895f34196267c710ee6b1758d1ceace77bd6ccf22335d419a
MD5 246bdf1fe77882880cf292d73e94ea8e
BLAKE2b-256 a8db57159eed11d8082721a4e33fdfdef27a3449d42632eb104342ba3409f4c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4aba2f5502dfcd2b33b1d1f9337699b353d7bbc4ef56b42d3ef57a7143b757ef
MD5 4b20a3b394beb521118f7355bfc0946a
BLAKE2b-256 aad304a93abc871efbeaa942ad73776367d1778e962a6a3669e8beb505643c8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 928825cd2e3806c6dd711d54ee5275704f2081b8a074849daeb208a678d42d32
MD5 004d158f905de9f7689586ad3ecad905
BLAKE2b-256 5c5299232f7cd52e5ac1012b2e38a1221b235e9660b1301cf8d73a18cb60dc95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 895e4d28bd36cbbd41d1b4b03b68392b118795d3710d87edd5cdb6f3ac504cdb
MD5 6e900b31393ca6ec667765d55d8b99ae
BLAKE2b-256 6e1f8e00ec42ab44c04776d14be7e1417a25ac38eeb000432adb789e44a302d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8f4ca103064d247cb2ce58da6c07c1272f887adefa65c2431f82b5d417806a2a
MD5 8be038ce9d738bb614930b1b1ef4785d
BLAKE2b-256 8b50500b308c0fea4480309879f3352f85a8c32cb72c9179ad0dd878faf2fb7c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.34-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.34-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b012402ceb802349c940ee1107b37cec761896908a1eb1ea590672b3edc5c34a
MD5 afe8c47b92db4ab61b13e87ef53bbf84
BLAKE2b-256 b386814c8c472daa648a020f6b40b38e070d1132375d4e92a45fed072002b264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 2b05f56b91c7f70e840bb39898a0b32a00c1b8b3991bc061b43480af86635406
MD5 a4926634bce3e05ed608b95536d9ed47
BLAKE2b-256 4d96a23c5fea79be9cb94cbd24a7798335de13399874b0918c6c32bdf8e77461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.34-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3581f9045e523e1c30fe760ddc343fbbd9c0f84c5be8bdb9c6d4f842535fc12
MD5 d0d1974d945904470f3a438188d90cbf
BLAKE2b-256 b2a3bffde5cae7630b4e426a70be55eb911f8ee61182e84c8495776fa554f9f7

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