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.33.tar.gz (57.3 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.33-cp312-cp312-win_amd64.whl (413.5 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.33-cp312-cp312-win32.whl (380.6 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.33-cp312-cp312-musllinux_1_2_x86_64.whl (574.1 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.33-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (570.9 kB view details)

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

yearn_treasury-0.0.33-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (590.2 kB view details)

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

yearn_treasury-0.0.33-cp312-cp312-macosx_11_0_arm64.whl (377.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.33-cp311-cp311-win_amd64.whl (412.5 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.33-cp311-cp311-win32.whl (378.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.33-cp311-cp311-musllinux_1_2_x86_64.whl (562.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.33-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (550.0 kB view details)

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

yearn_treasury-0.0.33-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (554.2 kB view details)

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

yearn_treasury-0.0.33-cp311-cp311-macosx_11_0_arm64.whl (377.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.33-cp310-cp310-win_amd64.whl (413.0 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.33-cp310-cp310-win32.whl (379.0 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.33-cp310-cp310-musllinux_1_2_x86_64.whl (576.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.33-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (564.9 kB view details)

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

yearn_treasury-0.0.33-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (568.9 kB view details)

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

yearn_treasury-0.0.33-cp310-cp310-macosx_11_0_arm64.whl (383.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.33.tar.gz
  • Upload date:
  • Size: 57.3 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.33.tar.gz
Algorithm Hash digest
SHA256 bca90f92566e49eaec32ae53636e45ade8ea4f4429c7fe445378880aff34b433
MD5 c74035bfa6dd61e27d6f029ca755195b
BLAKE2b-256 d35a807169d35f5d6fbdedcb1070cd5883a6a4eb030a7691b9a31985deb89da2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2b66d53961bfdd43429852254bcb85f68f6a1be9f82f678976b5f2b762571caf
MD5 66e0ee9b950dc70a3858665be257f970
BLAKE2b-256 6150c3205009f91a689f1102141abe4bb5f9da267a44d3cb8a872b50e80959b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7a0b165576c3e68d21bb2fbd11d2c9944316b3f863210edf815cad2c93d0046b
MD5 469ea1569da7080ceb11bb94db3b972e
BLAKE2b-256 6c0c10314923b44ee5bcd608de593342cc48a9e3ceb951457a27406619dd653e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f5666d69a6bee750ca11155ffad4f389ae26bcd6333024a5faf65a009729be5b
MD5 20366ee1365f547e9d043e24fda135fb
BLAKE2b-256 4824a7a5933f0523535396696de09b2820ea5540e3a9fb172914b4686a2a060b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.33-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.33-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 caf3e04c7a20b262ea07faef6a668a67f4768fb3e83ea7ec1c4b13a96c8f72fa
MD5 e645cc5ac438bd84f204df2231bc1460
BLAKE2b-256 42f5291fbe4d1a69e6a088316acf0beff30554b5f1fb154e7f56d463cb42cf4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 0368e2ea76a132263a60ef629e8e04ed76552a93c7254eb8f0a5933991fb62ca
MD5 b6f3c43e82e3abcaaf3829b4d15f8529
BLAKE2b-256 96c8345a432c84bfc8271750d4601ca91d703e448013b5ced14e0fc0de87547c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d17f3e20aec3d29d38672263260244bcb4b5ca7cba07c8513683df93b0731d6d
MD5 87bbb1d96c8739c9d2ff8e9a0d751b58
BLAKE2b-256 6d77a77f4079fc46bb158d05f6b68370b74df246af2eeaaa28df1ef0be9ed908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c1e647ef0be90e1c24deb205841a6705ce2dbd16c89ff9f3ddc6e68f20693b62
MD5 d7f15b11d6bc5d69b4fe0bb1884132ce
BLAKE2b-256 458083d72a31180c0eb941032481a3050f39e0675f69e03f63e347305bf47feb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bfb24accae34dfbf361c058a7a6d26229b0abf1380613c100e2f3416bf04e1db
MD5 955fdbf4a03c77b2f462cbdebb275cf6
BLAKE2b-256 f9a067f14cef255a707c41ffb2c89fb6c860f182282dabc76989b9dcc9b844ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5c4ccdefbed3752acad0446f784a67c6d687e8c9c379f920c1c46a53216ff431
MD5 e75853aaa41563ad46cecb41c54c7c5b
BLAKE2b-256 c7788cf84f4b65efb9e18a78a97ae8d73ab9808b61453e180609aae819bbbd5d

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.33-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.33-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17fa1ed5c133cacd6d69b7022136689182a8ac36ccdf9b8a0c2488371e53182d
MD5 ef0ee7f50dba2cd63c2daca3b56baa0d
BLAKE2b-256 6e7ad6baa2935b84bea8ef293c46118dc362cc91ab6a26ded4db8a81e2950b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 6e26564c9402cba9ad800069215016f35138b84d89b1828bbee4b5339291abe8
MD5 dfe528397e5852f57d88f68b2e27d4b8
BLAKE2b-256 4d4489181346c216b83f9cea1096544c417d3b687be5fd3750ac58d5c9a23761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94b11c41250b93e0915cf3f3e1d3a3a2ecc62e35033e6af1c6e85fab0832625b
MD5 3f941bb9ca72a9270a847530b69d9406
BLAKE2b-256 d8c6e9a98f16561583a6b25e871c8f324227256b6eea3c72f087f6131a49c921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 25bb853cf5ec9b94f4f88a0357f1018891659191d26fc74960e962dea7fc0e68
MD5 8c3534d9720f11c3c07f962c40c47f1a
BLAKE2b-256 fe1b17d2ac69edfd7ef6db2640cc75c704aaa6a32dc46d5caee1c8c832bf936d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4605d124a7d6a34f6beec81725f6e49f1c33fb737d672605225bf90a19110dfe
MD5 afa67a20abbccdcc816b73392b751784
BLAKE2b-256 e74b03646c03a284b11fda85a76998e561ede542f2519ec680b7fb163cf8c8a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc3168b49836812136d0608eaabb7676fc69fbedf8774e7f8ac1ff82393b48bc
MD5 5a24ade5c28839459675a4d04ce72924
BLAKE2b-256 80d5531896bb9fcd2a45e9d43f3b3ec2fda9c4e302d3554d23fb32fbba0912f7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.33-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.33-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fde13532c493fc4e3af403b6e6467d662413a544c45cb6957958d1e4cee55394
MD5 a62c9ffdd1dc475f25cdc479a8001cba
BLAKE2b-256 b77bfef860a2f43cbdba01827ee7a8c838c83c86e4af190bd673fd61c16ca2df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 e6da97c51f7850d1f199a57eb6afeab93261b9d215ded0c8bd4795c16f369e24
MD5 e8a33570720c67f04a6c76257e6144c5
BLAKE2b-256 bcda5bd5b76f2669c61002280cef4ae62b0abe882d92a129174c1b892ea9fefd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.33-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5ac8187b135057a182ab5474bd51f16e2a10f5cad350275dccabb40f8bda148
MD5 80b8c90540e5a1f5aecffcc8b64518eb
BLAKE2b-256 c52d08e32235693bad38982042a80a580283d8ff0134721ad94f0496515ca12e

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