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.21.tar.gz (51.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.21-cp312-cp312-win_amd64.whl (459.2 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.21-cp312-cp312-win32.whl (415.4 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.21-cp312-cp312-musllinux_1_2_x86_64.whl (714.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.21-cp312-cp312-musllinux_1_2_i686.whl (746.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.21-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (714.9 kB view details)

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

yearn_treasury-0.0.21-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (750.5 kB view details)

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

yearn_treasury-0.0.21-cp312-cp312-macosx_11_0_arm64.whl (375.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.21-cp311-cp311-win_amd64.whl (455.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.21-cp311-cp311-win32.whl (410.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.21-cp311-cp311-musllinux_1_2_x86_64.whl (698.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.21-cp311-cp311-musllinux_1_2_i686.whl (713.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.21-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (686.1 kB view details)

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

yearn_treasury-0.0.21-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (698.4 kB view details)

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

yearn_treasury-0.0.21-cp311-cp311-macosx_11_0_arm64.whl (375.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.21-cp310-cp310-win_amd64.whl (455.6 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.21-cp310-cp310-win32.whl (410.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.21-cp310-cp310-musllinux_1_2_x86_64.whl (713.8 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.21-cp310-cp310-musllinux_1_2_i686.whl (729.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.21-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (700.0 kB view details)

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

yearn_treasury-0.0.21-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (714.4 kB view details)

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

yearn_treasury-0.0.21-cp310-cp310-macosx_11_0_arm64.whl (380.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.21.tar.gz
  • Upload date:
  • Size: 51.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.21.tar.gz
Algorithm Hash digest
SHA256 20e719b3200fbdafcc19c2033442a75ebd999a33fe90b1050b8d43f84d879a54
MD5 1527ee70d0758b48d18673eed626ff54
BLAKE2b-256 95aa515fcb6e7e09e6f6c266fc1dea8b601b6257d51a11ab04700b03e0df048c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bff98a2267ac14dc20dbc76cf09acb1e7aa9adb8f9279da09d6f462538e436f6
MD5 5fab9bcc5eb78121b4bee8a27f32efe1
BLAKE2b-256 74abf6b5c6821d081549a13612f541e8a8828c7eebe9df8bafb4a61ed0b53bda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4f62e4a95be209b10c7dbbcd3a8c11e45d11e9a04fe58fee50253502d21fb27a
MD5 4f91b1e32a4a4b06f0254c6c21f0a718
BLAKE2b-256 547f90b962751c99f7d54caedf054d8eafdf58cec4e004fe12c42633ad9669e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dccbc3b56d445e3d7e5a3b63838ebf2b0a6851d6f9dd8f9e104d8c2acd8be4bb
MD5 fd5ab3c6894b6f77e39fefce6d1e10ec
BLAKE2b-256 107d086bd4a39163e66a92c007283c7a1a3ae42d9da1fe36342d68b6fa9124eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c5d441db1754a523410d6680abb456971b9f492a0e9a0254ecebc157be2b5c80
MD5 42b8853822cc86938cc895cb213d6e8c
BLAKE2b-256 084e23b228827054eb9dfea9d21e3eaf4e314322fdb948951742740a73a852ca

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4112d18fb74f085cfa15a2c60596a33b221caa1aac43bcad1953f08e9c06f770
MD5 1337e2f035ce2bec9617b2e0bef63c68
BLAKE2b-256 9278a1489b3c6d33c9494c7c9587cc24739fea50f2fe3791f6ae69ae5d3fcd6f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 572ebc0624f320533dca2bd331e55d96a1a13d795f2710dd8aaab8259f99ee42
MD5 f4dd54d915793d028bf9d56089955c66
BLAKE2b-256 2ef6018841c07601222b38be068be8fbc0836bc32cffc66e17f3dea4b8309c85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1e5d88e4fefbcbc13e52d673690107f68a6b2a05c83ab2f078153bf9125f832
MD5 ea51163f2054fb03324abe74f0fcd725
BLAKE2b-256 f244e4768364ba41771bccd40602e7cb7b49309f5bdf980858b45c66ebc6c50a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4a8a48dd73ba3d4815e8729dfa74e7f64a1c046733c7560a940b18b0240ff28
MD5 85713ff41b2b6953ccfe7111e6b23cbb
BLAKE2b-256 3478776b394897a432cb980b9909ebdb4818666ae2bf79bf05d2883da3edec57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 58d4d7bf1dec1f9e9e68cfdf564f2141bee78f959ee6aa1e78546fb2342db5c8
MD5 daf314c3601fa05908bb2a2835960564
BLAKE2b-256 8e20110f484bf2bcc54bdb87d6de2db7bae72f31da1bfc18792fcdbfd76f8613

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 84a705aef4c9d02635c1dedd8cd703163b7781c9ad6a5780cdaf67af94f1716b
MD5 44bea6aca67e17a56402ff0ceaf67b1b
BLAKE2b-256 87f7dbf5e2eedfaaee700924b79af5b95d861cd3f1253f3676bc4d9e6c1ddf6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 77024a7b22006afb0c80eca9642d6c4552d0fd7ca345a1e0527ff0aeaea10680
MD5 e4949b5bb236feda913c40df4c680cf1
BLAKE2b-256 34dd000ce9374ebd909f2ce20783fb9b3e0a0c97f621862831054c076c809e2c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8c32bffd3c93578166441d20841815344bc36e1f063c9cfb8af0dac9c0b24496
MD5 081b048f0e16ffa6f1c84cbc293dc601
BLAKE2b-256 d6be6be87e6787d626ef8b4888ac69dd9cf7fb6ff2f263be96009645c355729c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 80f1f3681d119b2b6d230037bd4f147a61dff5dd4702148d64be51dae0a7337c
MD5 1d5c226d58c77009fc602390206bb16f
BLAKE2b-256 558fbc9602d67b33407d20f7fc1df6734d267f3237d25cf2923d578e1c500e33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 279524aab594d97e6b5b763b3236b85408119ff2e06a49abcb11ed62315b00ae
MD5 c652fa3d00bf548069f785cdccc93cb6
BLAKE2b-256 2119540ee16ff9ab11b6f7ba48d17258ddb712b430741b294ba7e33308650a38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 552f9222e36c5f1d0a7329fb4c5b3a9f0bce6c5cdd4887579a80ad36f0f4cca5
MD5 727f29619d1c8096807f504c6d5e295b
BLAKE2b-256 d47249a904610b6dd05d33f542a5ccb970c8eec195661bde098d3d80b73fdc37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 661a6aa085a0f997a2653edb61b9c099e8f23f25a503b0a7b8f8e86a6213dc5b
MD5 449b4f5cf6da5ed805cd0a16b1218766
BLAKE2b-256 5cb46a8fc0fa78f49493648889b0a1691272245b25df71d664f134816729be76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 54fa57618122dc447705d659e7650fd440006215ff03148139aefa780d7e6c8f
MD5 434ce718b685a0c48bb6a5f44bed7173
BLAKE2b-256 f91a26a579a69a1a688342442d2e91724cf1486ba92e8d01b4b23c10bc1ebe0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 776e1ff60b90dc332306df7c2dd3b8c210cbb8555df3d5f82c09a1f38094f915
MD5 7d86e66015ea84ed637f19e18bce8bf5
BLAKE2b-256 c7ac539363ea8d23c3bef14de21c9d4eecc2d34f334286d4d8e77a2d39dfb28a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d2b906319560afcba25dcb053197667b6303c76818f04afd14484bfaf0f1f9a6
MD5 9b246d198596b7febeefa88c58385ffd
BLAKE2b-256 9271d0cc74b1b6612725f8221c4ef4617f52ffefdef9dbc13c31b3753e2ce1fe

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.21-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.21-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7cf5d8a94c241f926c51919223718d0093f787a5aae9475e28102a44f73f768e
MD5 e40c00c147723e1c70d398db678b43b4
BLAKE2b-256 4b30a4dfbe218a23a2cb378733b78f46842fa4b0e05b3023b94d9675a5cc7479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.21-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db71bae17f2533cb26a7fec7e114dd911397d97c2457d5462cc66584b67897b9
MD5 f280e6e3ed0d2b5c39ff6d9d941449f1
BLAKE2b-256 bf240582cb7f6644bb8a479723879b7de2884cf3b3a67b98c365fb1671c7d5b3

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