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:
GF_SECURITY_ADMIN_USER=admin GF_SECURITY_ADMIN_PASSWORD=... yearn-treasury --network mainnet --interval 12h

For local development (from source installation), use:

GF_SECURITY_ADMIN_USER=admin GF_SECURITY_ADMIN_PASSWORD=... 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)

Grafana Auth:

  • Requires GF_SECURITY_ADMIN_USER and GF_SECURITY_ADMIN_PASSWORD.
  • Optional anonymous access via DAO_TREASURY_GRAFANA_ANON_ENABLED=true.

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 and log in with your Grafana admin credentials.

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.2.0.tar.gz (63.7 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.2.0-cp312-cp312-win_amd64.whl (488.5 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.2.0-cp312-cp312-win32.whl (446.4 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl (726.0 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (725.3 kB view details)

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

yearn_treasury-0.2.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (754.7 kB view details)

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

yearn_treasury-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (466.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.2.0-cp311-cp311-win_amd64.whl (486.8 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.2.0-cp311-cp311-win32.whl (443.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl (706.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (694.1 kB view details)

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

yearn_treasury-0.2.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (705.1 kB view details)

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

yearn_treasury-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (467.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.2.0-cp310-cp310-win_amd64.whl (487.3 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.2.0-cp310-cp310-win32.whl (444.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl (727.1 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (713.8 kB view details)

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

yearn_treasury-0.2.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (724.4 kB view details)

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

yearn_treasury-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (474.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.2.0.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yearn_treasury-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b72d64070771ad6726bd6607b53adfc6624a0cd84638c4bee78cd4db84288187
MD5 79b0e134f84bcb0ccd86b76fe3c1cf5c
BLAKE2b-256 56423e87485d1848ed9bf69a2e17e2d28b8c466be3d781ca23a15e32d759ac0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a1081cd0f138c992f86335920d2e11f61b81a69ed43d387ad9b4e1ce6f444ce
MD5 a7b7726d1476e0478afd5fedc8374fce
BLAKE2b-256 05aac0a05776b4a001c69b7cd4230e2e3e06af33b7ab17f2b7c441293930f5e4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.2.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4ab1d86dc8b1c869e05b0ad373b752e3487a78648a7fa65170626ce37e74f34e
MD5 d63a0050874c3501535e822b4796cc10
BLAKE2b-256 d95af7e7e2168c651a93e7ef695f53d18f13413ee1edc30961d2d0f63ecd1dad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cb3b7e794651b1f845d947094ff6fd0a23dd13e28018a766e60c591e5c719581
MD5 746dd421627966a9eb007b2552cb7b45
BLAKE2b-256 be56a20baf46148e2dd02e90bd7880157260ec7f4521eee50bcf2d9ac8c8a21c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.2.0-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.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 61c33ebf6db05916f9e66605c710312a43c4d62acd1e045181205e541d42f89c
MD5 b9d2315b65812aceabbad60385c57991
BLAKE2b-256 e4205659d5578436a23cd745ecd8d83d68fcc62307dfccce3f02902edbf69c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7110f907fead8928d5ab8e4b2298635daa718bf9dd3a34b03263328754bb688d
MD5 e55aba167111ca928979a9bf458e088d
BLAKE2b-256 df4c4a415e0856fe18cc96fdbbb409767d4b9baddd47ebbdc96d542c216cd65f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0ea74aa5145c99cf31789d0670def103eff350988e2a4193b62c2529f8441c4
MD5 5ae3bf936d3b30bafec36408bb43777a
BLAKE2b-256 dc9576c61263ae2b43b5f7dfbb11d4d3de11d4c5029dddd18056a6b4682577eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9e5f2bc892e456181cd2e372258d9d904ec9af8875f83e24d012380aefd59ed6
MD5 51282f1d3744dbc50cc341a4706bd0ca
BLAKE2b-256 0c4578a6e255f01fc574fac02f9b98687f9f4c800d29b36c6592c4b7dffeadf8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.2.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17ed180836263f6759b78a4059c252a93ef0319c12578a195f52ded12ad302db
MD5 766e4b869fcfb7b8ce736b74a5301d06
BLAKE2b-256 9f8b91b0b9f18057981ceb1b547e922d65ee192b681605742f3f4759fda94d97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bc4d01e4fbf0d12b2b31c76f3160a861de52e68fa3acb83c36c5be2018f3260b
MD5 7eae49a774c8d1d8175882b810cbfcbb
BLAKE2b-256 5ace65f92465209faf56c7277c8d1d47f23075ce49edee64f41524ed047d5552

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.2.0-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.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e74d731862cdafbc487396bb2d8a34c5aaf6cb5c0355bf2394ca50113279bbd
MD5 ac255bfd1f0eb1ff2ba15403ddca7f4f
BLAKE2b-256 f97f77f9e4b1ca8a7a89001808c2a7590e9a89585a1a60d054a8015aee06bf41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 cbeb17490e100f24e266f3f2921aa7f0db169205210c054eea933083feebb385
MD5 60e6da2726bcc82aacd6e198d24d8189
BLAKE2b-256 cb613094bad3189e584f827903b2382ac67ff56aaad37a7910f78c31b58c0b62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84e2946a031cffe94d3651cf196d7a4c180c4b5c616451538120023ebf4a56b8
MD5 c24b6896b45c6d7781aae609eebd64f1
BLAKE2b-256 090f0d5433857d6e0ab2a48d59050d5ab19c1d9b551aadae2a3535abf077b3a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 678250dcaf5ee3063dad7a4d9430bc687a9da62f731f0e899f471e4b07564f87
MD5 b305f65381ff89ac69874f839b6a376b
BLAKE2b-256 27813273d58a4047aa9569f4a99841095f76f0e542ea9e19c47bb12f41803b7f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.2.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d3623dd99c776d4dc255ea3e08bcf6acf87ed9e3fc4b13af164770c64c7215a
MD5 316b7a43d395fce4647baad0da5bc693
BLAKE2b-256 32fa382b78472ba1beb9b0db615079714fe508fa2d69131eb34aaaabe2199823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 55bc74123b51c3a1b2275372a83d0374366f9c6eae1ee17571ce49cb89b6c502
MD5 94a3412bf0150414be0ea689c092818f
BLAKE2b-256 f302c019181e0963386e890b02126b6543e6a1c13f6fef23733d0a568420bb56

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.2.0-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.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 46caf599b7ce4846aa50ab982a0ed009a602f7b7ecf1af9396ed0b3fc541d288
MD5 5fc248f6ce10437b660cbe9da1317060
BLAKE2b-256 732a205555a7f13338e21abcee3b63d482ebcb6024c0babc06a9e10e1072d68d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 923ee54c9ab2ecc28fe4cbb2b7bf9894116e0eff7de91610b89709f2537a93c1
MD5 d74038cb78bfaae9422a6de91ea6a3b1
BLAKE2b-256 1ae36b3ca283eea47db31786478b305c590146e2d96db830aed88c1175532f9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9eb8bbbefcaf58eacc6ab3db0ae6a39f0482d9a9cec61934b06ce325e07cb871
MD5 a79a0ed5855424e3cc7d9fe6b2ceb2b9
BLAKE2b-256 423f7c62872bdf027777996be6f54b8d2b975ec25e0182df08249fd84dca7fd9

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