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.1.4.tar.gz (62.6 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.1.4-cp312-cp312-win_amd64.whl (485.0 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.4-cp312-cp312-win32.whl (443.9 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.4-cp312-cp312-musllinux_1_2_x86_64.whl (724.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (722.5 kB view details)

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

yearn_treasury-0.1.4-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (750.3 kB view details)

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

yearn_treasury-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (463.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.4-cp311-cp311-win_amd64.whl (483.7 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.4-cp311-cp311-win32.whl (440.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.4-cp311-cp311-musllinux_1_2_x86_64.whl (704.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.9 kB view details)

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

yearn_treasury-0.1.4-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.1.4-cp311-cp311-macosx_11_0_arm64.whl (464.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.4-cp310-cp310-win_amd64.whl (484.2 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.4-cp310-cp310-win32.whl (441.8 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.4-cp310-cp310-musllinux_1_2_x86_64.whl (723.7 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.4 kB view details)

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

yearn_treasury-0.1.4-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.0 kB view details)

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

yearn_treasury-0.1.4-cp310-cp310-macosx_11_0_arm64.whl (471.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.4.tar.gz
  • Upload date:
  • Size: 62.6 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.1.4.tar.gz
Algorithm Hash digest
SHA256 5c37c75b99ece00ebcbec388d16f00f698a132b6683038429804c6ebc719a8be
MD5 ac6d2515a3aa9931b50988c17d0203fb
BLAKE2b-256 49555de9c7ab0ac975e1be47ef65b7c44a1ef4cb125c9cc1de2462baa5f93a7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33bc1c47e17b368dc6cc63467092a45418c02b345cb20f96bf0d952bf98192a9
MD5 5b592a9c597228797213372eca77fc0f
BLAKE2b-256 24c454f8009f73caf2793b9699133875f1c8d65b7c03d4c41aef88c9e5fdf945

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.4-cp312-cp312-win32.whl
  • Upload date:
  • Size: 443.9 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a2266fb1fa2c119187400a22adb66f8600a8b6642f01330eb4c4d9f06e1017d1
MD5 6bc2cccb0822e0842676cbfed9b3a233
BLAKE2b-256 33e88c4b8e8fe383c4a08d0c977635618d582431642b8cf0704d6f3fc3f53bdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 af682fee79bbce73521523f7dc1f13d16015591a482975e39e2e1d29f93d00a0
MD5 75555576592bbeb767909f6866f70d42
BLAKE2b-256 ad124024c458f911591e6f24ff8cfb521b10fd02bab9e30a9f4eba605ee6fc71

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.4-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.1.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58d215a6ebfeb542c28aff45d7101aad761d488b5ce65458814a32559f9feeb0
MD5 ea2ecd2e0432788cf73a5fa62c2759d2
BLAKE2b-256 09902751b20dcc37adcf7951fd1ba53890a316bac6aea3d3a270a902e5a03027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 fef025865d47a7b318092c6a88b950479d9eadccf0965c226ba341076ecc86b4
MD5 ab3393033f4d552919b4fc6552095ac6
BLAKE2b-256 1dcc61468f692e23d1314a552a9dc5668ab3f43408b1bf147fcad4885b863805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4b710f312cda3782fd286b708539198b40cbc3d4af3994d9c7cb5b192c8af04
MD5 bbad4a056fab57a23e47c0f244d3a158
BLAKE2b-256 193ba0fabe7792b9522a17c51780103052bfcf836f5484c12430aec479f00d9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6afa78e6deae342c0d605d6fd8851621baa9e000b8ca43e90f2d0cc72da0276f
MD5 c459c198ca4371cccddef3d903bbd563
BLAKE2b-256 cdc87e9d0d997507deb0b58ca046fe9e80f0aa3158a1c5db9f1ae03bd99a7ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 440.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fb2fcf047bd453383b1937df21fcd48125534d4c3b4e821cf34c4d78248c8e6d
MD5 710921d019b1d055298a7500af64e7db
BLAKE2b-256 b838c9bbd1cb68c3c3f105949d49b1ba67ecc432d06b9145b0a11fa6b8874ea9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 59ab3e616e9cf673e8e0db10efa61b4894af17b81f85e9d521b6a844b9115b16
MD5 07390846422aa1d493b79fa115f965ba
BLAKE2b-256 74784206ca5385429833d7dab0dff34aa4e3b3a0119b1103c0ca682497feb664

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.4-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.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e40ac3bfa1366a4f3f00ed538ce35b896eb6186ae630f18c587dbd5109414324
MD5 d327b3b836bc47dc4acd590714ea1f62
BLAKE2b-256 1f6cb0862cc743793999b5d53f84897ab460b7b4fb266d2731786ebe98435333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 b2290e90c82f92f072cb3bb2eeed5bf2e49513e65152159e89ece8456bd05e18
MD5 42959efd9193d2e1a68c868e54b0fd54
BLAKE2b-256 26b7aa547b4f0b683b64b77797147fec49a19b4f8a63584eb1c4696e85d65230

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57b7d9b486da23cbc91d4fa5ad098863e512f5c4373d1c4a42258b6d7409cb2a
MD5 4876bdfa806c99e880b1bb01018db612
BLAKE2b-256 24f617e0e3c4837bd297a5142ee7105b9b6fab0db49ee776f121102524343f31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 41ff59946a57528c14440d3ce75cf05c3e77a564ffa5c616caec468d6ede6e87
MD5 46f1a45cc287fd7d6f31ee7e8ea647ac
BLAKE2b-256 0b4aa574eb5fdfdbd4aaafe08771c0c92ca58c74aaea4033c513a61451e3cefa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.4-cp310-cp310-win32.whl
  • Upload date:
  • Size: 441.8 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf1b2191f138dfe6b331d63dcd1d29a7cb72f99c6bb123f266d2e6e710086b25
MD5 1cecca63b4a10df9e1e7bb39c3f83691
BLAKE2b-256 15a808e4355deef294fc51ffd078120f4a667929043e7cf4b11064bfefb01c03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 04e7c0b371c5df0e32d1dbff1602e0e8d61adb509716902beab6e01d93c46f36
MD5 bad19220e4abd635e8b590bfca1307f8
BLAKE2b-256 0d99a0f987ca3699f4b4c51adfc2463cf32db6de5cff85aebd7e411ed33bb2d6

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.4-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.1.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c0f7874049fb73cb8611bee139b1ebdae0138e0457f6e5952db0525813049031
MD5 454ecde01b1770d89b32c739b28ee60d
BLAKE2b-256 0f5270f68fcbcfe02771b15473ac7937a911aa72a2e03306c7116a2f0d2236b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 3f72ec2146adcfccbff715bbfa7ec5f4eba37202baac09aa6f940211917d7bce
MD5 ddbb46c78a92583dadfa75733c77ee6f
BLAKE2b-256 43d81491e6e22e4e51df08c384d1ff66318e6cf74a828d02ecb9d6a0998681ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96435d985bf020448a64c391c59ca5006618a851b2d4273b0af9d83568eab02c
MD5 d111855ffc625e08ac98fc1159e3060c
BLAKE2b-256 c00886357f6c7f2af13b9ec61d2c4c06c17dbde9dda5dc5325d3eb7c5bb93aa0

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