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

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.5-cp312-cp312-win32.whl (444.8 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.5-cp312-cp312-musllinux_1_2_x86_64.whl (725.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (724.2 kB view details)

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

yearn_treasury-0.1.5-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (751.1 kB view details)

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

yearn_treasury-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (464.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.5-cp311-cp311-win_amd64.whl (485.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.5-cp311-cp311-win32.whl (441.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.5-cp311-cp311-musllinux_1_2_x86_64.whl (705.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (692.1 kB view details)

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

yearn_treasury-0.1.5-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (702.5 kB view details)

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

yearn_treasury-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (465.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.5-cp310-cp310-win_amd64.whl (485.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.5-cp310-cp310-win32.whl (442.8 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.5-cp310-cp310-musllinux_1_2_x86_64.whl (724.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (710.5 kB view details)

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

yearn_treasury-0.1.5-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (721.1 kB view details)

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

yearn_treasury-0.1.5-cp310-cp310-macosx_11_0_arm64.whl (472.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 7011e37605c2ee9cabfc3a8b078c2c384731250ebf9f85408256c7a0544daff8
MD5 11062c442a7ae611d9236394ab8550a9
BLAKE2b-256 3aec33848fffb040d9a64d71594048abc60b827fcef4cb4fc878bd76563215bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f46c0d8bc370e4fe45daf5cd5d838d14a48f5f8f46bd2146e6673f9ab2b487e
MD5 6a0289434353e2402dc5904781b44930
BLAKE2b-256 a48a09c999b1cc9c85546997071bf4d054a602bf383c9d5c20488dc91bf72dc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fea8488a7ae0ef319f8f87cab0ab4a15d6603d64b19d26487b68a6886e835b60
MD5 8f028f2df8990f0b29116e150daecfe5
BLAKE2b-256 f8d45f077205eb6c53799c2df988edf9f58a09bee641b4d07b38f6c18fbd7cd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dbaf2f4cfa0b0c8185ed2e0ad1197ca7a649bafd81d5568b1ba90710786379be
MD5 ae8c18bbb1be3675f88cc3c12481041c
BLAKE2b-256 232902774f337b843568811db7f4053b95369e6a3c3342a170116c752cb01880

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.5-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.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 739b3106ee6269820a98160c6e57157a7e1186fcc6541c924c73aa96039d7db0
MD5 6943cb4d281b32f06d628aae57969626
BLAKE2b-256 556288336a6b8a5c1c621d18031af76be98cbb19c85a447c1f13c41f4be61e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 dc46e463cad0cd928d3e8e078445f03e9c37ffb28f0bbe32a01e82c103b16403
MD5 0ddbb15473da7130821ccdf867c1e687
BLAKE2b-256 b0a15c5e710f2289e7be2af1441c608176a775e8c1ad17b7cd6c0dd0e9218fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de5bc66300efa54622caf0cb12f041f2fe31dd2cb0b857ca5e535b04a7f6ff35
MD5 39fca52f1e34df8e1c7a57ea7ef8f7ce
BLAKE2b-256 793c14d7f78fe4712829114d6a4bf94415b2ce131197660c2e28d0a1d88808f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 29244b61764aaf06e1e9a525720089fa1b76927e2676afc098c19a389fcd621e
MD5 e914c9b7b12bd34975bb2a639c9e1acc
BLAKE2b-256 7be5e928c08be0de7c83e76e56e511baeba9bee2790cac96ed06036f14ecb72a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 54efc0280157255a73fc768e974a73b4fe1f031c576b742f33188d2f8ffd76e8
MD5 cf2b27c47701909aa52e2b8ecceaa860
BLAKE2b-256 024838c2c9ef946a007c4dbed919b5c53cb6917d0c8ddc23d36e3d776fb6c839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa915c9e0bf6f73743ed421ff3cd668d32882c44430058e535917fff2878ecc0
MD5 e0f99f92035bfd31bef998c0a89ebf7e
BLAKE2b-256 2e28c3124744c6fef6314225d8c89a045c3ed2ad1528aa2cebb6fd9e467eb776

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.5-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.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1e1ba6fe4e1f268496894dd2f4c5dfdf6d3205b6dc28a0b22563921f6863745
MD5 ec2e96de443337147f7534b8b7d7fe2d
BLAKE2b-256 e13a3a8f5e39df6c7d6a88dfc274da213eb91a55170183fd9f60b6b0242cc9e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f1703040a4c8f48372a5dde193758602f60a69eb93673ad3da56040a5fe755c3
MD5 c6a2398bac1c9452282824a9c896840a
BLAKE2b-256 1933433596185df00a73c455391615c70f89200d6b963b8f412d0083a0509dd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66ea2c367384279a73fcb7f765678efd0e63e3f5810725d8732531d87cd21758
MD5 aa3d2ad0639f58a3123ce51ef342524f
BLAKE2b-256 45e07858b1864fb6966753b2de4c5bdf8b018987e7f973041ecfdcb7b4d20f74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 39be786586c41b6bf9b442f56d33cad73cf128b380d67a1a2ce52c13633b4b4f
MD5 68f0a442ccf07e6be4911a151f2164d8
BLAKE2b-256 7608e2101b02cbb9f85d15c9adf8fd76099b5181edd9c3da6decba940ff60ccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8c3648d1bcf6b36629dd23aba02b8d14e9278bd52fec13c12251d867dd271bd6
MD5 30ef43a35c94e1678a68b963b51814ee
BLAKE2b-256 0eef9f011ef6bcbfc74b2e7d095be9f0049719e2cb0c8e3b4b49f9387bc1b629

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cff144ecb7b334daea6e20bb2a70a293203703951bdf2091252c90589c777e60
MD5 0084eeb6ce0e47f3864f7da9183617c1
BLAKE2b-256 cc872fd1050b6ff0490b02b93d4bb6d87fe8935e6017d8b7fa8139b228048d40

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.5-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.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ca9bf34d19c77938f85191f828c283122781409eb6895f30e2f75758af19bfa9
MD5 3b4dcce8766d6254d94df143b3ca9ab3
BLAKE2b-256 bb2cf3ab04feff221ff7dfdc17126cd6591fa39edb85064dbcd160fed0003c1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 628d3532336c34479c0c13fea51fbe651a471f099fef7cdafd15a023ba1f9d85
MD5 95e3aef792b3176e64475523eca44a69
BLAKE2b-256 24d0cc2d0b9183c3e7f9fe025ca2e5c7e54a1442754e23b689ea08821b35d9b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dabfba24771f0f71b2cfccf7d79d24c49e8ab85f539ee30289829e0dd61e21e6
MD5 c8529228935b491857d82967d03dde98
BLAKE2b-256 55171f06b83d2849bce065140d583376807cd074c50c9481ae1500885d4f8b39

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