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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.37-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.37-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (667.1 kB view details)

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

yearn_treasury-0.0.37-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (693.5 kB view details)

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

yearn_treasury-0.0.37-cp312-cp312-macosx_11_0_arm64.whl (430.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.37-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.37-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.37-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (647.4 kB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.37-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.37-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (657.4 kB view details)

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

yearn_treasury-0.0.37-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.37-cp310-cp310-macosx_11_0_arm64.whl (435.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.37.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.37.tar.gz
Algorithm Hash digest
SHA256 20ada2b955bfa59d502e4ec53ce01ad5cb5f744c4dbe93622a19871bd8f3c899
MD5 1ceac0333dc4f0a60bbdff326be63d09
BLAKE2b-256 0ecffe43731c110f351d8fa1725bb84fccbeb481e8a889500932d79781074fa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f3877d2ea4e058ec7b5b6cd2c11bf4163f4bf850615b3b7c3837c967310b012
MD5 ed0f9db5deb555c22a221836485d10a8
BLAKE2b-256 2352ed14e4efe9f37c3e64885a8cb277b3b7cf9ef1b4671ce0ce1ddda603a2c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cd361c589529138bf7324fe81e310ea72289348dab0a990e98d73e3ebdebcf0d
MD5 bfdc1f127acceb752a1ec1efe4b5df6a
BLAKE2b-256 d20f8631f690c9c498b00d10809576c72754bc9b3bb215d3e33f721e7b964ab4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ecd4455c14b907a8b1dba0198d13937b3b4b23de39afda9131aa55fbbe488c04
MD5 c9889651769763170897f427270a0570
BLAKE2b-256 d80031fbdc092d47363f14bd16e7b3b122ae94d43d8c903abf3c293c495f6231

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.37-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.37-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e562047719297a8ada946b9408c2a84689e27f5edf5d2d093323ae7c69355563
MD5 4fe374c2c7b798d7928b9da7a97b45ff
BLAKE2b-256 2b2ba28c149dda274fbcee75d31eddf8a3b921e30e775f79ceb840ab59338680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 8b8fe055990556cd88f00bfa27912873f4052f78f9d2c1904e2883373aa253d1
MD5 4db5d8053f3170ea724f4dda1bba2b77
BLAKE2b-256 7bcacecceec181eb5a4c0854fed40ca33c4f865e7760b33bff7f34dc49a2c7a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26fa2b08f57129c57e6ae3f698e75d292eb2f935f9442fad0448c74548d0b75a
MD5 cb767d7401598714b1e0748bd83e48cd
BLAKE2b-256 8161556f3ce485e4138637d391d9867faadd0e0d8f2803f03700ee8196815284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de560ebec8b28fcaec02049564f2920a24b9e799b2b52c396e6534a296e8e55e
MD5 2110609b6fca21852a7b8a23b2ac25f4
BLAKE2b-256 7bed3b179ea00b5732cd47711ea8f0e4244577cc1df5f54acc501959ed34f734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9616fe9c7e7575df78ce3b15bb36933e08f4c20f8bbda88dbffb04a303b5bd44
MD5 94a3e9741707e8695eecb92b9855765a
BLAKE2b-256 de23cf431b04c43065df66b696cd3489d6158446a0cdb414704759dbbf21af20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c2be9c0dc366a8aeb1d6da759c0260fc9b5dc36999d3d025d655432bf865875
MD5 e548dd0f358f6e260f3ec9f2a2ee64ac
BLAKE2b-256 c570ea92fd2daecb32c0d15f46d5f54951b5bbfb91cd4e52c235226991d177c8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.37-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.37-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d23d29535acd59bc8e26cd1a2d5be75560c708f6bca0d2aea5ef01871c04fee
MD5 d66e733eeda067fbd37e14b81e022f11
BLAKE2b-256 0af31dc079200cce7f577d848a838152d06972763b5e1020971cdc535170a9c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 2e12f910774b8b860d0bc8e94f4a5458a1b9d0ec1c0c887265a3a9accba20a67
MD5 237d04b02fb4507c72c7680a6048f392
BLAKE2b-256 585e158dea9706cfc992820fa3ac393ae3c779602286525d77d045026e2df0fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcda3a5ae6004734fba2f95f4495a354c14d8892094719a143a1000088b3acfd
MD5 a289e2375528e59b40bd048dddae6773
BLAKE2b-256 2a898490cc659e6cb536611192e82eb95e15321bf6e29f7577cfe8808a257cee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a34a49aafdcd9ee7cdc4c77e280501496c0cab134789f7d45257dfaff5d66466
MD5 66f08d0a7b9881514cda7332d52efa72
BLAKE2b-256 194affe1f547fe6349354a28761b76debdd93b00266a94a5dd6bc383e7a70417

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d6ba21a71ee046ce0d0697029fa7b379b12b6ffe02efe87ef76fb08436e2313
MD5 59f131a865377b265da9011b14219444
BLAKE2b-256 87ebca1c6d8b6a69293e09fc751a4be66d39cd72964ced0e18a599205768ea0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4a4d289d6a944971aad0b6fb1c9a8c052fc8ae18b9d777883621d6904feccc9c
MD5 17d419c9836d13a44ebfc42ada0e5d2e
BLAKE2b-256 d356a8034566629d6670fab21a42431b590830590247faba84ee3f17409d54af

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.37-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.37-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e5fd1c95f1c2f6ea331fb1ef8fec9ddc8fdff0eb564a0d3a5fc8318c4384df6
MD5 ab93ada2b2c305a607405961ae6f76b0
BLAKE2b-256 1859ebdeb55c405fb8ec83e06c2e103d7036df291257bf6c5c7ada88b4ab74d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a8cd0d4e08c5889271c3866e134dacffb3e352f1900f15c302d523123b484d45
MD5 e53593c05af2cf34f0f5e35c8d6ff90c
BLAKE2b-256 f02c6ebc4a732f2feb63353fb38fd0daf7761ec9ac361c2763de67ac0a0c04b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.37-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76c3dd3bcb4eb484f2886256c22c65ab20d6252aa2a0fb6723a2a0cca5650614
MD5 4d6e0efd508a3e633fb2fd9daf98fa32
BLAKE2b-256 afc06c368ef15cd3cfb7b0f5c74d0a0b44f6aa32cb66414bf9d1f22bf314bee1

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