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.29.tar.gz (56.7 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.29-cp312-cp312-win_amd64.whl (407.3 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.29-cp312-cp312-win32.whl (373.6 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.29-cp312-cp312-musllinux_1_2_x86_64.whl (562.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.29-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (558.7 kB view details)

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

yearn_treasury-0.0.29-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (578.6 kB view details)

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

yearn_treasury-0.0.29-cp312-cp312-macosx_11_0_arm64.whl (365.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.29-cp311-cp311-win_amd64.whl (406.5 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.29-cp311-cp311-win32.whl (371.4 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.29-cp311-cp311-musllinux_1_2_x86_64.whl (550.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.29-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (539.0 kB view details)

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

yearn_treasury-0.0.29-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (544.0 kB view details)

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

yearn_treasury-0.0.29-cp311-cp311-macosx_11_0_arm64.whl (367.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.29-cp310-cp310-win_amd64.whl (407.0 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.29-cp310-cp310-win32.whl (372.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.29-cp310-cp310-musllinux_1_2_x86_64.whl (565.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.29-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (553.0 kB view details)

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

yearn_treasury-0.0.29-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (559.7 kB view details)

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

yearn_treasury-0.0.29-cp310-cp310-macosx_11_0_arm64.whl (373.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.29.tar.gz
  • Upload date:
  • Size: 56.7 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.29.tar.gz
Algorithm Hash digest
SHA256 0d3d89d037425a1c7f55cfde7a3d4fea91776967f435d60bcf01d4485e0837b7
MD5 5c5a425a650974ef8da5c1519db73a4c
BLAKE2b-256 177af2c32aefbb8cd7e42440cadf80ac34f99f496bd597a1bcada31258a9ff60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 785577c6522a0d06c803c565e1381ecf2ada38fa5455351c212d7abdd4b33042
MD5 c9e62868917b12af3deb123d363c02dd
BLAKE2b-256 bdb944723c946fef0b0f3478bc5c021bb431ab3c4fe728f6683091c56278978f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f7ab52f53e1ac958311286009cf7532e2c0757dcfd4ec1b7f2c2ba2cfb4ef45e
MD5 5972b8a300bfee43197cb1b522f076c8
BLAKE2b-256 c24b12fcb2681874b1541475298e2f18911769fe364238d2cc1845fe443f1ea5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e590b508740133c4300683751f90f591a5a3a95bff4d9e2542e00ff905ffa1bf
MD5 8adfc0bcade79c2e23d802321aded29c
BLAKE2b-256 312f15f81cda32eda5ee82e8cc901d448ff0717ae06da956001e9f39bd7db721

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.29-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.29-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b143c0be70bd35b9cdb901d5e42bd49057db77e43ca652db85318550d3b2fa51
MD5 70806a39f30c911f3667b5d028373d99
BLAKE2b-256 323d3691f88cdd88fe0100f43acc4354ae0de19cde240ab577069807738e4f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 9c52fb3d4d12dab064c9552ef5fa9edb4b54ac4d8b656bc5c2138ee6f269a1ee
MD5 539aaebd30aa9cdd4106a5d442b4ca24
BLAKE2b-256 93ccdef7887e77339b3b54ff01a02d4aefff5fc874fdb4f29cbe40d3130223df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83ffd18241f7fc41e3d308c00e2be1391971efbbd99c2bd6c4a54d101014baec
MD5 f491b1fb5a6dacba31f07f5adf7df5e4
BLAKE2b-256 41a3da3086b442cebc2faacfe555d3af03f7d775ed760c2124ab3175a0be0073

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1097c34b4f555ec73050858e8adc116e983b81e9cb7d718396f4fc2876107e52
MD5 b379925355bf0b3a6478cdc4d936d940
BLAKE2b-256 df8de4a20211b308d17e1bb544b9a313f04a4e5f63a90156396ecc65747cb4b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ed60b2509818d5871896f9b0017d1daf91efdc928644b3f02c2328c013fc1011
MD5 42ec1c3845dcb6691c1d929b2cefed55
BLAKE2b-256 699156c02d70fe964ee95d2a028af12dd665c9a38fd9a11afa2bb9a938ab7f14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 19f6b269eb8218c88f66b94c64ee02b09cac4c014341d334f9a4c7c0f7f535da
MD5 947fcace80a4717d9e379ce732f5cf81
BLAKE2b-256 61f33f5543f547ebe1ee6d3191b4ec3ac96ab68b4309574ada907fbb72126e0e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.29-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.29-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e31c4d801aa370642bb7d736251712d3a53047f9109f607a5586b6a05d3b2163
MD5 04a6e6c39a0cf04aaf27afeaea42366b
BLAKE2b-256 761fa4169f353ca921ca06ac07d7a8c2a1875000e713fad938a519e39feb52a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 99999de6432c475cb7b6cd82544411a77a902ddc3ad1779f893ab7f66b4a9143
MD5 c44ffdafda7a07f5c3b6a8731297c22b
BLAKE2b-256 c167f43d1f9e6987106d5e9c583dd432d24bfd9874bca96a1cecb9ec33a628ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2be4a6f6b3496c3007bdfe6b2e8e06c325f6acd31e6ac12af5bbf1c7f007fc54
MD5 1e12628f9f8a57f21ec0b08ef5adb94a
BLAKE2b-256 2900ed1d8578a90e89da4130060781963245c95cefdf1590b43f38b83280cba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3c5815ca25036ea8cc6e9c52094a4eb9f1b96d23913b18ab5f9bfe6ff9f91b13
MD5 e2edcbef72b467a5bcc0e39b0774be9c
BLAKE2b-256 d62346873c5720e45d52da3aa5b4a99e44f366239b3986ad3e9909c24d1b9558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b3286b674ac9a43b233e2e0d55483660c45bcdf3211f18686608e0399b481132
MD5 4bbc9633adc6784d219a4a340aea6bfe
BLAKE2b-256 77e97cf2bbbc6418d9d6af29a18121da51dc5c2f17e254ab2cddc7faa42d9a2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c5f7084636981a8a110fe0d32ad79a98184494f9a1ad2cd84364c7ccb26d3dd
MD5 e9ff34b7334ac0507de0a8496e4ad282
BLAKE2b-256 e4f7175b2a70217d8658281955a7ec2b3cc31f2f72e5a306567bba2a735feb35

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.29-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.29-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d968678bd6af2f67773ca42f488b5e494b2dd8dba73b7251bdd21126bab6fee4
MD5 a6f5abdb9b35a32a23c5dd389fc283fc
BLAKE2b-256 89fd845cfbf49a3106dd8ab34b82fd578799ec09149ba8dfd2860f7b8267346f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 af5ef7842763ef56fa4e4b463aab7f129c6631c0094cddabeea12ef7785e1c94
MD5 961c00bd4cae7928bc869348b30633b9
BLAKE2b-256 a9db7c5f066fd925444aaa3212471274e23694fee83b97b40281efbc3c9b4868

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.29-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc2b410f230afcc684f7d288115e935bf353246af3abaa5b3a03688260170b89
MD5 ec0528cd4b54beed58991b280888bb51
BLAKE2b-256 000558839b915c9c885f7f410779f627f77c895402c63844e0fa22cb44acae09

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