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

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.50-cp312-cp312-win32.whl (443.5 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.50-cp312-cp312-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.50-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.8 kB view details)

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

yearn_treasury-0.0.50-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.4 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.50-cp311-cp311-win_amd64.whl (483.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.50-cp311-cp311-win32.whl (440.2 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.50-cp311-cp311-musllinux_1_2_x86_64.whl (703.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.50-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.1 kB view details)

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

yearn_treasury-0.0.50-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.7 kB view details)

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

yearn_treasury-0.0.50-cp311-cp311-macosx_11_0_arm64.whl (463.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.50-cp310-cp310-win_amd64.whl (483.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.50-cp310-cp310-win32.whl (441.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.50-cp310-cp310-musllinux_1_2_x86_64.whl (722.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.50-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.6 kB view details)

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

yearn_treasury-0.0.50-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.3 kB view details)

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

yearn_treasury-0.0.50-cp310-cp310-macosx_11_0_arm64.whl (471.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.50.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.50.tar.gz
Algorithm Hash digest
SHA256 4db3e78162a6662cc444b7eaae509da77c936424920ac10029ab1276e2868cd1
MD5 3b21cfb1816f32d1e99f090c1d645fa4
BLAKE2b-256 3603a99b5a979ed8ce9d17178ffd56b00d69d82c64a4a1a7cc5580c9283941c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fa837d0d3975bf3811e87da0ffe332e8f042a6cf77bc4e476a33d4c5c78c041f
MD5 595f6ec99bd680ab7b5c82af61ab5f90
BLAKE2b-256 30647cc3df3652ce830f9b2cf8f9015b1ad9c299212892e1c3ec450be1849e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 36dffbac219aaa2ecd1c901cc62e55380a98a3d6fa285064f77ab19073db9f6a
MD5 0e0a1cddacddfef27e1994e7ac3dff67
BLAKE2b-256 6432ee51b46c2ec953b264552053258b60bd3b0da22a8990946b9ff9016aede3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d50047c72a3a54aa574be96bc31196f2a2c9866c00d0cc903ede32a02ccc0124
MD5 e180c0b463f7c07301b1c5cdee2d61f7
BLAKE2b-256 33e0a126a987488f37dd37175ddefe0ff96dc0ed08968f5cdd36c5e37b083aa7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.50-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.50-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7700bad6e1a34c2e6dd5893cf3b6d681a426a6bef68710f29b912aafced264fb
MD5 b23bdd7b87b4fb2a4ef078fadd69c29c
BLAKE2b-256 a6e079aa65ffae0bc6b3f96a464c5082823c2bbc22a12537296fb17f02cba022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 4e2787c28cb10b95e179e66de3aeaa27446531b6eeebdc582148dc36ec3a1a14
MD5 52593ea62c484aa6823c8f31c866ed9e
BLAKE2b-256 b03813b266adb489dd9410d09bb881482ee1280b02284ada8bf813c23774a3c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a3c7588119960d3e840f09b20e8b8311d166b821d450d5f2a403e31cc5f554f
MD5 c8897bbc33bc5c4063dd2264779fcfc3
BLAKE2b-256 a2b55fdb6add4fa944bdf966c764707e819811ce0ce8a7666c835cbd01023820

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0787a033e4c850356aecd66273354585d13fac330e46ee4aa821e233a37de3a2
MD5 a5fd534f4592abc16c242e18092dd41d
BLAKE2b-256 2dad2e1197b283bd1f0f4e8a847179bc026003867fcefa900a298e1532b463c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 15e681031a92c22d81c431019a53178d13836bd420cca8089a3baec4e68d0839
MD5 f7f7f3e456c3c41de9bfd51a2dc778bf
BLAKE2b-256 fc1f209972acdbdb095961fddd4d5ca3306d773046f50833727161fe9c64cf04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a449b240cb3ff968d0f314fa8112394f2df238c8f20adf0f4be1719f170d2439
MD5 eaaf12fd32ee29b0a52c093f6d1e284f
BLAKE2b-256 e04183af22085d3bda3fd5b20fcf5aaf4421250bb2e9216b2bd05d55b7f59516

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.50-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.50-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6947dadcd8f50ea187110f665e4fc33809c52f74ba4a35116ebed5ed457165b
MD5 348c281b6e6966419bafe4b0b94009b2
BLAKE2b-256 2b69c5b439735b158132ee1f7cac5dccb44752aebad09180260994ef44d77cde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f03bd4f296a6a7fdf48b023737a37315f6a6becb459c9852b2c8fa91b5d2b06f
MD5 12b999faee00e71cbd5bc5a0ea18e7d0
BLAKE2b-256 da4b7e0629883a9fd71fb2b28ecabfefd07ae6166a4e1c005c20e07674cacb9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 840aca5fdd6a60cb2a54d31110914ea5599f826bf68ce039bbf2074eb3152631
MD5 988556a6e027c04adb3036dcf07c1b13
BLAKE2b-256 3b0f0e32a1e0aa2be88fd9a8825ee7f34e09038fdebe4b9414fc044f0c0e5e5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3cf0f2614ed7af9dbb6c7339c0a6bf52342f6604211a7d44e2c7a1589d150728
MD5 e7208e99c43f80e26a507565a0533186
BLAKE2b-256 b494c645622f46a73fbc9c7fcb7fe8c0c554a7e4a315a78a5c2609d562256e0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1f6d0da18cdb130183c8eb115e274c2324e221a11cbd751ebbb031ee2be8ae75
MD5 7861d99a8100685c64231876db5abd7c
BLAKE2b-256 d434cdd4d6277da065eefce3165188ca087c63e2507c0d7bd9f4eb5e6b08f0cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 90f54ce389cb172a4cb6dcfd69e2ba73c91b2270e5f37882b06385c208077c8c
MD5 6a3b39944613bdd259b1f91ff590c436
BLAKE2b-256 fa4662f1fef14b837f7553a1133837a90321f344af143bece028e5d4d9832d82

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.50-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.50-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ad6392a8887b394374462fcd2143bc2ccb92a4ab448ea04d239ebc60647d430e
MD5 406561b437f8435f61fefc013e1338e7
BLAKE2b-256 5125e6fa07043016cddac5c129f4fc6462b22acbbe9e3b65b0cffff7867847de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 61ffb30c8a9a9190520fe7f38b21c3832e4f9e1c74aabc4955b013de24617036
MD5 e2f3a3372776a744c356a5e144e07cc3
BLAKE2b-256 f8fe6e2f07420bd24444bbc98078f0390e8f222a51bb0958e4e2249558b9b591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.50-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e79bff38033e58a0db7426ecc3e6cec6400d5f33623eeede5bb5f60dec837c4
MD5 e4c4802c72f950c0da5167e7ce04fc81
BLAKE2b-256 871fbce5a078e74215e8304f747c9cf53fde83d9545828effe0abc17de6dc52d

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