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.40.tar.gz (58.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.40-cp312-cp312-win_amd64.whl (450.6 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.40-cp312-cp312-win32.whl (411.8 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.40-cp312-cp312-musllinux_1_2_x86_64.whl (668.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.40-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (667.3 kB view details)

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

yearn_treasury-0.0.40-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (693.7 kB view details)

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

yearn_treasury-0.0.40-cp312-cp312-macosx_11_0_arm64.whl (430.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.40-cp311-cp311-win_amd64.whl (449.5 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.40-cp311-cp311-win32.whl (409.5 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.40-cp311-cp311-musllinux_1_2_x86_64.whl (655.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.40-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (643.1 kB view details)

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

yearn_treasury-0.0.40-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (647.5 kB view details)

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

yearn_treasury-0.0.40-cp311-cp311-macosx_11_0_arm64.whl (430.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.40-cp310-cp310-win_amd64.whl (450.1 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.40-cp310-cp310-win32.whl (410.8 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.40-cp310-cp310-musllinux_1_2_x86_64.whl (671.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.40-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (657.5 kB view details)

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

yearn_treasury-0.0.40-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (665.7 kB view details)

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

yearn_treasury-0.0.40-cp310-cp310-macosx_11_0_arm64.whl (435.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.40.tar.gz
  • Upload date:
  • Size: 58.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.40.tar.gz
Algorithm Hash digest
SHA256 9f4581d1ed313fee70de8c1cccc8a068e481e2915516c1fe5df8384c77e04138
MD5 0115117ad1144d94c9b5cc751e1c1560
BLAKE2b-256 83a579b35c10419ecca13b85905c5c9b7180893b08be2663212bcfc3a5b577ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 725e7f5c85a8d337d510559a721c1c042c68e515ba81b5d5f81b8c77770d6e5e
MD5 ed3faf0c326ab66d61e2fb732edeb5ff
BLAKE2b-256 8b48f983f3634e941e8d8c45c174f2f3b8c97f591555c52c3a306ff39873919a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 01df957bcce3e2a8eaf516e39303931c7334199a91023afd340593768c35ae5b
MD5 1a2dd6fee5624d86668e5b2c7de6fbee
BLAKE2b-256 9d6dc2af445f7ae93f79097c5ff4e972503b509652d05af6a7e3ac91e9508dc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ed765cf0d0a385470129312b79e9f633fec60a053a42b3474ecb9557f1418ffb
MD5 c6759c619be1a8becec96eedad839e60
BLAKE2b-256 b56e65ab57a701db63b3370d4aa63fce181d986fd4a4dcccfe9999ca6d3fc59e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.40-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.40-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f75f5aec7715b9c02e37e8846c2735bcc063592d07a0d233c296bf634074e7f3
MD5 7497fa282c0bb5b519f40fa1c37a7149
BLAKE2b-256 3331f5ac47024e4d7604f5fab9d1c5ad568b4bafc2ccb9cb582e3cfe0025d6fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 8ccb55aadbcf0fb199a17a8457dd853e9f6d6e1f14a0a8379a5a6052cbe973d2
MD5 5f4122030515b13b63d7bc76afce5522
BLAKE2b-256 719ee77e8baecf8184f78a6d7c3f84ae9bd6bddf4feac2f9d415b5520e7b1d80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 208a3015d74e0e3987ecac4a06d6bc5bce963f1e26c96d8c4cad9d67eda0dc90
MD5 8f82753bb8880a9229220b5b7a3a8580
BLAKE2b-256 7b2d0756b38fd33c31aa60ded1c8fdbc7e86e55da7bfed571d4f09c2ef8ab050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86df62994a0ec313095d9673ced71f73bea5df886897ece2ff5881cb4a2e3657
MD5 2e80cb0053d3820f77b3b8102e868af7
BLAKE2b-256 51491389bf971af230e8f8110c3b377af98f1670e0f5d4616e665310550261b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9478d871ee0e19742e09e242582c7c9bee489bfbb40aee2b6fb8a49ba214b406
MD5 0226374a4b096247b87fc995f21378f6
BLAKE2b-256 eb9055b7e38bf8dea767b78d4a47b376f08479764e0bb2d5f7629945783a3f14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7a0720f114e46edd42fa3c2f59461c29ba22bb030ed98165d19276b2a7c401e4
MD5 c5143ea1b7f41c2f6d30c93db3905fab
BLAKE2b-256 e1516cf0605d8aa906e6f20641671a9e29c0dc645d4ee8977d14da98c172122c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.40-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.40-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 05ada183c1225707d052caaac3b773fe80efd581b4d19f111f1d423403216981
MD5 aa3038cd62d0b33bdbb94778f2ace1fb
BLAKE2b-256 ca417ffb89d4b82ea00839ca21b59e0dc43396916c995836bca11c0967f65611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 9d7e3f084dbef08abed91794ec069cbbb43d184cbfd279c917fc0e5e56766de8
MD5 55d0becdc2e92537b289060a3b8e4416
BLAKE2b-256 8d39a8030465d50f0698eed3bbd9a890c84eb8470751ba2c8663e2e6bbddfbb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b638392717b41fe3c38be7822cf17a942cb29a084f237cb333646e71c77eff3
MD5 276f3809736a9ac0b12fdc92cf58cfa5
BLAKE2b-256 58bee5a35ccefb7731e82499d4f4ed87bd5409b44ae8e88b6f8b313038a9e610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 abe6bbb8072e3793db213c90b39a3e17c791bfee5701430dbe514abe4ab13cbe
MD5 47d22c203b09391bc4cf660e077c25a2
BLAKE2b-256 c02781ac22ddb4178f5e6218f64e72bf3c5b796ef50ecb4783060c4ba8d13b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d1f2bbde8fd6bde530e0288f5cf0fed9d91bc506926ce0f2a6c0a41734e5902
MD5 b885f5e62cb914e9c03f6f1e1b971bad
BLAKE2b-256 feff518747c8f490c7e3c11cc03b7b37abf8dc863489a63c059d8874fa10c472

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e33ece9eb5cd42a9d808b68faa59591289519449a1df25ec8f822f72fe73073a
MD5 2d324b3b9aebb03b7a3a647750b61d26
BLAKE2b-256 93b660a2ca0e114daf41c4c4b1fd4cd39832e52c491ee32a6a8192faaac15df1

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.40-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.40-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 804749eee47c5f0ac61438467a692c786b67599d26f128fff6b3744b39fc63f3
MD5 70dd708f89f2f530510f3928fb4190d0
BLAKE2b-256 d430470ccc8309deab0b8a1d306bc776086dc2df68666d1aa39ab84a1bbcb6ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 e6387df91c07128d7369fa505ca89e96dfe4e659c2d5ce3ac28faccc46e54901
MD5 28bb477e1c54051c3d1d02333c1f92f6
BLAKE2b-256 5182856c192df670694fb1402778e09f38bcb5e1f099f71272f73b243a137847

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.40-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c2c15ba5b6f341675c5bd323166e395babfeda3672cb7398f294f4c742e40d5
MD5 8215231b186e3e810030647ffa121191
BLAKE2b-256 90603a26daea272d0535c6a6e37fa1429e24fc4cb1ac9779faac991b236486be

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