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.44.tar.gz (62.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.44-cp312-cp312-win_amd64.whl (484.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.44-cp312-cp312-win32.whl (443.3 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.44-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.44-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.9 kB view details)

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

yearn_treasury-0.0.44-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.6 kB view details)

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

yearn_treasury-0.0.44-cp312-cp312-macosx_11_0_arm64.whl (462.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.44-cp311-cp311-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.44-cp311-cp311-win32.whl (440.0 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.44-cp311-cp311-musllinux_1_2_x86_64.whl (704.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.44-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.3 kB view details)

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

yearn_treasury-0.0.44-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (702.3 kB view details)

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

yearn_treasury-0.0.44-cp311-cp311-macosx_11_0_arm64.whl (463.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.44-cp310-cp310-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.44-cp310-cp310-win32.whl (441.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.44-cp310-cp310-musllinux_1_2_x86_64.whl (723.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.44-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.7 kB view details)

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

yearn_treasury-0.0.44-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.5 kB view details)

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

yearn_treasury-0.0.44-cp310-cp310-macosx_11_0_arm64.whl (470.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.44.tar.gz
  • Upload date:
  • Size: 62.3 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.44.tar.gz
Algorithm Hash digest
SHA256 64f3580d72941a335f98ede55c0a3d8d7946b56ee02d338dc3c663a341209d30
MD5 62ef50270c68e05953a33af3a3be3b3d
BLAKE2b-256 54cae2251cd3458a65a838c782423bd0825ecf01b20c27f6c9504b245034b0b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 578ae345d32f5805c4545049f2bf7d01a382d8f58e7c0e97cb43776e9eef2022
MD5 e94307baa54492af7c3089df5fa9f5ee
BLAKE2b-256 0a04f81bc87e6e162d224604da4be5093b062290aef1d07ec7ab90525415fcb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ce4501c1524fec9dafc3a7ab6cbfd6e0a42107fefb836e1b0ca180652f5915b2
MD5 79d42a853288b6d16bb2a417e7361808
BLAKE2b-256 996b9c623141120d2e161fd776eb7cb67a83532293e48e3c02b27030075f70a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e6d5d680a30856c8dfd3269e5f27aae3d1213e8b39ae598f32fdcde83fa6d9f3
MD5 8e14fb7c65277d4b69c0240bfdb108bd
BLAKE2b-256 39da72c351d95e424a590c79fb2a009b11c263dbfb3224e42b165b8e12dbe3cb

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.44-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.44-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4213d9be54b85a4cb027ebc970915f308796f1b3e6a0182291b44be33ced5d3f
MD5 ee58858dde7c7198d923f60b8e281fdd
BLAKE2b-256 4baca28c9f1415e8263e5a2889143f7b534e4a4378d296a730a4addf47068bbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 b06b21c01811b0e74f60e51a662ab3b4caefa4ef3891a9231d7b0b1e8ecac8c9
MD5 720a7329ba9fb1aa36232276424825ce
BLAKE2b-256 5250dec1c197863c4254dbfb2cc86baf6db1794f9ba7c7f5e4a908fae4e9d2e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c19ad43a8d06c976d576ecc92fe314612bb59c0b1023ffd5580589a555716da2
MD5 00b69df722619541e2b6d160b15089e6
BLAKE2b-256 d84509406eee0fd7804f2dae2f174d2452dacb9813ec7be36de7955d1914dbbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 36d99163648b8a5af101792fd8afa4493a386cb80fe1c5e79dc083a8d7853c75
MD5 588dfc9f36f644dbf1703e8d6bfd5449
BLAKE2b-256 b804c324ff494d55a879734c83897fa0d5d5ed7c8bef0461a074b17f589a1c5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7f0e3ad4a79baebf0f9792f2c8ab7f59eaca1304804864180547cd24fde8aa31
MD5 9ad17b1f06562b626e64065a8810b934
BLAKE2b-256 ffe2c2abea3b5b37939da58b82cb9df4e35a652f764842375d454d747bbe0f5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8bf79ccd20c717aaff5d127a6b9fe94318ae1ef1f8b2649d8bd2f980212dc2f3
MD5 9d9a31875015225780043318a8b28b3d
BLAKE2b-256 45553d68c01cb1678c7b7a70990ab006b6229d0fbee81bf31d053474e9961794

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.44-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.44-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d67a4ec4a28b4705672033b8fbbc4189f93ae2becd9413b25182f06de4217ec1
MD5 0b38483718cf7c2d4da980cc6f95cfeb
BLAKE2b-256 3545d0fa4b62fa55e5fbe436aff483aebeee744de642cbbbda5cf96e3a5d67cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 2355f64b7b0e754ef40ae79d4426c561ddaddbf65b9abdc57646d758f2b254fa
MD5 34f782111dbeadabc9b75c0a3cc4273b
BLAKE2b-256 fe03640bdd48e39cc72360893041257a3282fec40f7dd16a3eae72503c56426e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3a72a1c315e07d74174b97dc8c8f6318d9229695b3e0c7bdfe7494e8d59a5c7
MD5 ccbb38e2b7641e8b4dc6a4bfd6908bca
BLAKE2b-256 af4c71d48a89c4ce45c58380b05a3dab9cd0dbbb3a0f9ea25ddc75925402b281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0ef276dba93bf4ae480ed68900130e97331af610f64d46fe672edde43bdcf2f
MD5 113133e9f64739bef2b7733f27fb3161
BLAKE2b-256 fa5455cca07332e1a8cb3c6534013490e6c300a154e8ced0f0c61781d4c2599e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 464d9321550c3c060f7714c11cfcad005f881ba15b6899a198ea5fe73638691b
MD5 7920df227c1a8fbf58cf94b9ea7f8438
BLAKE2b-256 11626d10054a530ec311741ea992f8cb3238ad314721b3b0bcc6b1130c95d4e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7daefb80293587c48754c877e25e0b5ef44cabf0120957d760cc7e614a49edb8
MD5 a6a28d8eaa349a1703b010b4dccaf1b1
BLAKE2b-256 bba0e80d7909257e1cdbe48c72da5466998659a86797e1b7ad535b5dc4841ea7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.44-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.44-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ecd1b1df5aff9a28c3a21749d0270700128aae6c6ac54465ce84c8d5596f42f0
MD5 9da404608f0731149701ad1d48f4456c
BLAKE2b-256 d4c4a58833527c2f54d8393aed45577ce1e76c9c3c5e15b10911ec53a0c43f1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 09c52d2e36b87203e31adec97996a02626b2c9a78d2d66e3bf5e637dd733e097
MD5 feb6531c6aa3394b5b57a6911bafe572
BLAKE2b-256 321661b89114c5932dfde7c1a4a4d70629f31bb79fdf688cae1811ef0b61bf8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.44-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34f7a20c8c1213df71cd35c02843f0a516de6d665ad23d3c5269ece6355fd9a1
MD5 b04545192747e2c7523c6ca576929eb3
BLAKE2b-256 82dd8947c6ef9030ac52fc664de55672832db74d10ead22ac5883c76d2dd70ee

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