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.25.tar.gz (55.4 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.25-cp312-cp312-win_amd64.whl (446.8 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.25-cp312-cp312-win32.whl (406.2 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.25-cp312-cp312-musllinux_1_2_x86_64.whl (653.9 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.25-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (650.5 kB view details)

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

yearn_treasury-0.0.25-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (676.4 kB view details)

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

yearn_treasury-0.0.25-cp312-cp312-macosx_11_0_arm64.whl (350.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.25-cp311-cp311-win_amd64.whl (445.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.25-cp311-cp311-win32.whl (404.3 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.25-cp311-cp311-musllinux_1_2_x86_64.whl (642.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.25-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (628.6 kB view details)

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

yearn_treasury-0.0.25-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (633.7 kB view details)

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

yearn_treasury-0.0.25-cp311-cp311-macosx_11_0_arm64.whl (351.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.25-cp310-cp310-win_amd64.whl (445.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.25-cp310-cp310-win32.whl (405.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.25-cp310-cp310-musllinux_1_2_x86_64.whl (655.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.25-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (643.1 kB view details)

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

yearn_treasury-0.0.25-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (650.1 kB view details)

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

yearn_treasury-0.0.25-cp310-cp310-macosx_11_0_arm64.whl (356.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.25.tar.gz
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for yearn_treasury-0.0.25.tar.gz
Algorithm Hash digest
SHA256 1576145ed2b615df53531b0b7ded687e4c72d4b8d55aa436358c5aeb15470a38
MD5 ae440d88f2402d1e7533cd16a99b9887
BLAKE2b-256 13cba12717f8c638fb979ba5f2b3da0b67002f255adfc792e83344e6f75b119f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9304b2fb93280e91e50962773f63d27072701372538974cb92dab7f1f48d6faa
MD5 062182f2d38fe1224b37e998620e5352
BLAKE2b-256 369a888181f3eb1e5f9538a030c87023d3b7bdd476e872b0db437e82ea7b6fda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8ffd6cf3b3935766ea8983ac20389aed43fefce23bd395ec0013cf4de654fd93
MD5 3ca4149a3518baf2cba900250e4c2cfe
BLAKE2b-256 840fa30dc27fa42f7fc5d4638d35bc87bb7184b9aacb0cc64b564d62eb828267

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c54d3ca94026166c1287a652706366e5ef8cf074efb7faf9f92d90756238b73c
MD5 6f7cb6431f7907542734615d22a57ffd
BLAKE2b-256 7a9f2fae46725aec273a339546f3958f8971283eefa4eaa1a478cb57e48c812e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.25-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.25-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32f51c085d10c0408943c4e61724cad86daeaeae37c70f5596397afe0fd9bdb8
MD5 5b229df6f76c252b9506ac246d305d47
BLAKE2b-256 766175fa609e0165263767bd49e8398697ad405bfa71f59ec5e872021d277993

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d840ee44f17f5da6520a21e2d49e117b5e07eefa68d6bb48b0bf5f17a641d97a
MD5 a7d533eb58a867357b471aaac8dade47
BLAKE2b-256 b0c1a6f023e3ea68111464bc6b75306c9d62acc12afa81317f2cb981e4a84823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9eee9468ebee6c8d187dd8408f459679f769cee5ebd8a0d220c5c8b50b9f1444
MD5 64e5ea11d85a9596f11ce0465ec6fdeb
BLAKE2b-256 bbef95f7a9474e4c23dab3b8f8299e2a9f5667a7fb47644953ae184eaabfc82b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f387dcdcb9b0c3f45fe3e7476541d514a79d8faa2a66f5e5c72581813ff4aa05
MD5 01346c36968606453ee2f811566e0cee
BLAKE2b-256 4cfdb14c89d5addf79093fbdafc1317e8949aec8e7d7c4e6243ad823458aea6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 11c3b3f084e889432cb854b979d57bf41ae196efa0ff244fe04286cfce7c6d97
MD5 840cde295a575e613e9002335e9b6d5b
BLAKE2b-256 d3a6d044ea3d79738d9d07a7667d3d7620649b168a546451cfd5cbeb76450913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3c21dadb8daac6702ffc5521455023c92f8024fe1c0f5e38aebddf412dfafbb8
MD5 ac2f60af76623346c6090456d017c2a7
BLAKE2b-256 b64110e6d815251b77bcbb25ea668f7e9d5acb1fdad277a6030999de3b5a6d8e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.25-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.25-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbd9fd59ae90022ff37178c86db010f07ad712dc804b7b288415cc3b93e9154e
MD5 42652a9f23f3273b140d3e8dde8bd601
BLAKE2b-256 c358b921c9d83c77021e2cc9a262c17acf0b54a49c7166dfa10be0940c7b765a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 512938156fa021dea9b4d33a8379bd481a8772bdbeaafc3fe327a9e507fb78c2
MD5 c543945cb75bb434e00805f0ef4fcef2
BLAKE2b-256 fce429a212775f222c14518db44243a87a553c92e3faf0d1c3166107926ba1ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41dbb4cc2885d72cc3e2ad2e99832d52e27fa3cd78f15b48ae108f09211d28ae
MD5 57328304f5a31ee3e45e39cdd788b17e
BLAKE2b-256 a5f85792df080bb289ac1a55fac9d97e6e3d944fe66119f9bde4f0e837f7a242

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a3343d4309a2ac37d35e05f8be1e79ecf62cc656de704b9ead8cdc7363abf6ac
MD5 2c8bec1f5879c50b17e2f7e64a9a89ee
BLAKE2b-256 0a768354bf01c3f404b1f568372048a8cc2a71a4b335b853c26ec92ab32521fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dfce22e18b444d6de8f3d1c00248e661f3129dbbc4f86573103ad820d505eef7
MD5 0d08f91e1c109e1c309076ac47ff53dc
BLAKE2b-256 534828b8f807a37bf3281dc9678d04a91ea730912dda87ed92559bc65b2505ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2c026d164aa6bacdebdce0d3216acc0e4e07175ca774b676ff14c0e82babe356
MD5 05339cdce29dd27c0d8706096e0023dd
BLAKE2b-256 e32a86eabf0d6f356acddd8e815b6bdd53116ac484626bfb00b2e860b331fe86

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.25-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.25-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1a2b329f1bcac1f5dd3ddc4369eb6b1cb26cb4f3ce989b5a95402979f50a2fc1
MD5 e83ef006ebff61e8a8aecd87ec17e34b
BLAKE2b-256 101f14f39d2215d4e7793720d88552d9da761792c29695a5a39eb6aaae2a1b5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7c5f94d8b55b7e898474864b361923f19ec1151f3878d2f2a2cf05fbb3c625bc
MD5 4250f101e6299a03a99a961a2738b001
BLAKE2b-256 f5d52d07b93bb342d5ded9eba95b03f31e56c94427ca0c7197903d131996a61c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 715430fa51bd8596388454ed2b436df5e2f3c9eb852d2bb427c2d7ffa30861b2
MD5 ac81ac3fe86a3c15be568cd22d7ae2a5
BLAKE2b-256 865ab233d72a3a7c28a7e9c07e27258c07b43b5435d2e1b539fe1fd298d3b88f

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