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.23.tar.gz (54.0 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.23-cp312-cp312-win_amd64.whl (480.1 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.23-cp312-cp312-win32.whl (434.7 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.23-cp312-cp312-musllinux_1_2_x86_64.whl (718.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.23-cp312-cp312-musllinux_1_2_i686.whl (756.0 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.23-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (717.9 kB view details)

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

yearn_treasury-0.0.23-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (755.6 kB view details)

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

yearn_treasury-0.0.23-cp312-cp312-macosx_11_0_arm64.whl (385.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.23-cp311-cp311-win_amd64.whl (479.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.23-cp311-cp311-win32.whl (431.9 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.23-cp311-cp311-musllinux_1_2_x86_64.whl (709.6 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.23-cp311-cp311-musllinux_1_2_i686.whl (722.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.23-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (695.9 kB view details)

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

yearn_treasury-0.0.23-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (705.3 kB view details)

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

yearn_treasury-0.0.23-cp311-cp311-macosx_11_0_arm64.whl (385.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.23-cp310-cp310-win_amd64.whl (479.5 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.23-cp310-cp310-win32.whl (432.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.23-cp310-cp310-musllinux_1_2_x86_64.whl (723.4 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.23-cp310-cp310-musllinux_1_2_i686.whl (740.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.23-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (711.0 kB view details)

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

yearn_treasury-0.0.23-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (721.2 kB view details)

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

yearn_treasury-0.0.23-cp310-cp310-macosx_11_0_arm64.whl (389.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.23.tar.gz
  • Upload date:
  • Size: 54.0 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.23.tar.gz
Algorithm Hash digest
SHA256 f6c1c22510af6df32f11519b2726f4b83fa3dc463fa6844b9dc1ea7cd9fe9360
MD5 2ff63c396e925011b6a55bd24421774f
BLAKE2b-256 9336deab8026aa124984b32096c719b145b3d7286eb373555307b6ff59481ebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ac01666345b828d3eca3948d91dcca77fc1ca8bcec55833e141d4f5e49b169e6
MD5 cbcd9ee6f00e567068b1971e98f89d84
BLAKE2b-256 f89c3dc5c6702ed8359c7430925b5f76fa0c34e268522d2288d6a58a3451ea40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 370da953130b9fbbc2888f9a1fcebb8a0de412037b2809d2e2aeb378b760b38b
MD5 bba388914edfce3a51b2275afa005b0f
BLAKE2b-256 55cca9c9b57604bc3561bd3d172be02017297d37527a9b7e91c5f43f24dee93a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dae3989e9f4fe07909610d56679d8ebf914bb0ab0130c98a834213bb20b396e2
MD5 da7368444241f16a998948e0c8981668
BLAKE2b-256 334d03ccbc9ddce0b625c3937cc078fa68472c24bb33b058c8423ef5b7dbd105

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 21da54ed64c201bdf3896acc7c27d6ed95398a886ed1c2ba3810c5af4646c417
MD5 3239f39ccc61e5b46de3feb2bea6a414
BLAKE2b-256 6bbb2aec0743733bf0cbd6800be6530eddb6f7de738ecc14af2d87f191bc49e5

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-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.23-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d4b6c38acbcaeed4a3e3681a58411da9006813a0767c1f364faab8e298b41136
MD5 be4ce47a47d223b62c61e803f04a3347
BLAKE2b-256 d091999d08013d741132a633965444b042c1d3d5ec3382a39f9fdbba3a7435cf

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 da676c8f3c4aa9cac026004def587c9e9c12a49f32b083bdf828cf7ddce3d57d
MD5 cc8e269dd79ef37edd81211ca1634f1c
BLAKE2b-256 a6df93bac62a9c03c05c27fabd5e39ace88a05478b00e268f78dbec8f5773b73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe3ae2e7fb3f18520bca8e1d0d03e00df56b672328d26de252b48f3a8ef6aa11
MD5 abed4405bd00731cc2e2e281df55cf08
BLAKE2b-256 4db8595dd369db17160a95cc41951d3c69b3294197a50d2961b76a1efa29bd68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 340e1a9c332a6e1a31f8e4b33a1124a8926ab08e37e04c5b52a8ac22b440301f
MD5 74fe55d126d3116772715f8cdb6dcbc9
BLAKE2b-256 441350ee26b44e79c72e6d5f76af9017feed523223333a375f2e8acdef5f988b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d3f5cec83678f25c0d6c1b350b461b6202c6305cd15a2c9a0796d2e00b1313b2
MD5 16d20aa895492e887c072895072afd49
BLAKE2b-256 066ecd61f330d28f1d40fd190db203b4106ed0fa8e6a9f0aacb2e34d98464182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8c56f9d01599fc536a04093a438093785c28498b0617692c03a35770d074cbc3
MD5 12b58727ddfc9015b3024ce8f365cec0
BLAKE2b-256 6b7d1aac9d28fba9e1ca5c323e5d73c4cc46552bc6ab09bef527ea18c3f0f1d6

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c294bd018d915ef46a559d6b1ce1eb408efde96f7de8764677917f74e73f9e5d
MD5 cae8172ff589187db3957b0d58ca77a3
BLAKE2b-256 0235baa3f597f3b258d8ee64fa33c5b9e3089c9b0df4e6ad95c338bcad3d5933

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-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.23-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f29f28853684cc962937ed81c4843726ffeff97d28a309023dff696a9671351f
MD5 8cd2e82e5a8077db539788ca96dddecf
BLAKE2b-256 fe28893ef7ef81f1bf72825d4d6c1f8e2e17e80dc5e3afb2eeee24b4d40e7eff

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 1c576e24a6d074ba48340f8f6e7bf1033a4438107c4d822271ad80f008cfff1f
MD5 4f5ac93caaa7172290f75b5d7a62ad63
BLAKE2b-256 c87d49fb1577d8cbe181a5b921ff2c838c185a593636e112c30da769fc08eb91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ffddbc3c307f63d2d6ccfb23002fa524dc8df055732d28e104ee1fa2140923b
MD5 02c2f4d18db8146aec82fd98a3e2a1b0
BLAKE2b-256 3770c7526875f76f58be1c1495c8b8cdac4c5669f45558363f3aa486b734133f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 60b371cc3a442afc17c56028e33517edbc4861324bf54c3ee836c4ab1ee7c266
MD5 4924ec632660c083fca44935914a4361
BLAKE2b-256 cb1c312b607dc6bc6dfd03bbdc1366e12625884703094d2239bcd3176a66b1e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b5f687dc95d4db7f62036b092217f3b44abc4290287473da4737cf9e8cea1e9
MD5 3a0776eda50b3425a9ccf2cf19388a11
BLAKE2b-256 19fddf52dce5bb8ebb2049ace1ef8ea22b2f7c7fd46e9685380b45bc241c9fff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e0312a791b2d2ce37713ae3a86987537e1bafe87bf8ec9984068b3cc08a14ef1
MD5 78369c224fd9ed59b01be4f3ece723e8
BLAKE2b-256 37a7b593ca68fcfbf6eb78669c7bd09de5dc861aa4e47c24641557a03595851c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp310-cp310-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 f8890809f83d82d1d04347bfa809e0baf4eb316e21aac3fc9a94f43d2e534e93
MD5 18cb5054b1557689c2b9e1a195907676
BLAKE2b-256 237f6c28451aa479ff7d2f5bfead58b930395f347c96d8e611670f166ff12c17

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-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.23-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 31cf91fe60f5f55442abcdf2fea622814890b41ea3fd04fa183e4a47a73577b5
MD5 7830bbab2b47a6870981c913530f7128
BLAKE2b-256 7d28486530211a5c245ce04ca812181df1071b9430e949cb7352398a180fd44b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.23-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f58745e1a5d864b02158534cefe0e66a1b764eea7ee907b7e53ebf431f2cc1cb
MD5 38aac74520db0927e8ea809b283eb8d6
BLAKE2b-256 89a92e325655aaea6fbebc4b4f1c9fd76e9c622c96d5076aac6093c483408cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.23-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cb36670977e3a7b02c9b6dcb8d86e2274d3edd4a279dee9265aeac3bb02a856
MD5 7ec7ef4d73436e4d82c7c2975afd7726
BLAKE2b-256 77597e9b1ee5da60b07d56a28f565c75e3b6d6c18e519b282bef3cae39bc031f

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