Skip to main content

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

Metadata

Release files for yearn-treasury 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yearn-treasury 0.2.2
File Size Uploaded Provenance Actions
yearn_treasury-0.2.2.tar.gz 63.7 kB Without provenance Details for yearn_treasury-0.2.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for yearn-treasury 0.2.2
File Actions
yearn_treasury-0.2.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for yearn_treasury-0.2.2-cp312-cp312-win_amd64.whl
yearn_treasury-0.2.2-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for yearn_treasury-0.2.2-cp312-cp312-win32.whl
yearn_treasury-0.2.2-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for yearn_treasury-0.2.2-cp312-cp312-musllinux_1_2_x86_64.whl
yearn_treasury-0.2.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for yearn_treasury-0.2.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
yearn_treasury-0.2.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-32, Linux glibc 2.5+ x86-32 Details for yearn_treasury-0.2.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
yearn_treasury-0.2.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for yearn_treasury-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
yearn_treasury-0.2.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for yearn_treasury-0.2.2-cp311-cp311-win_amd64.whl
yearn_treasury-0.2.2-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for yearn_treasury-0.2.2-cp311-cp311-win32.whl
yearn_treasury-0.2.2-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details for yearn_treasury-0.2.2-cp311-cp311-musllinux_1_2_x86_64.whl
yearn_treasury-0.2.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for yearn_treasury-0.2.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
yearn_treasury-0.2.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-32, Linux glibc 2.28+ x86-32 Details for yearn_treasury-0.2.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
yearn_treasury-0.2.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for yearn_treasury-0.2.2-cp311-cp311-macosx_11_0_arm64.whl
yearn_treasury-0.2.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for yearn_treasury-0.2.2-cp310-cp310-win_amd64.whl
yearn_treasury-0.2.2-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for yearn_treasury-0.2.2-cp310-cp310-win32.whl
yearn_treasury-0.2.2-cp310-cp310-musllinux_1_2_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.2+ x86-64 Details for yearn_treasury-0.2.2-cp310-cp310-musllinux_1_2_x86_64.whl
yearn_treasury-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for yearn_treasury-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
yearn_treasury-0.2.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-32, Linux glibc 2.5+ x86-32 Details for yearn_treasury-0.2.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
yearn_treasury-0.2.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for yearn_treasury-0.2.2-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 10.7 MB

Release files / yearn_treasury-0.2.2.tar.gz

Download URL yearn_treasury-0.2.2.tar.gz
Size 63.7 kB
Tags Source
SHA-256 checksum
How to use checksums
adea9dcd8bb68abcef189600fae82cb5f67019f9e6c77c49eee719d5cac3248c
BLAKE2b-256 checksum
How to use checksums
cfdc988da61d5feb0389f090b6a176845d32bde969fd27abe79a25368ad6226b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-win_amd64.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-win_amd64.whl
Size 488.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a0552adc5c0f251436f1413ca437cc684916bf819c46a43a0e36bcfee3f43ca2
BLAKE2b-256 checksum
How to use checksums
44495667cf06e24b17b5c89a852d5da9cd3db4d13fe8a93f30df7895184c185e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-win32.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-win32.whl
Size 446.5 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
fc4adfbd8356af355ddaabf7c8225447735ef61e5b12115a066a4cc285e86e61
BLAKE2b-256 checksum
How to use checksums
bacf56dad36e65d7481222a28ce818febc35b5621b90e154c97295820c19178a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-musllinux_1_2_x86_64.whl
Size 726.1 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
d6268d472847c7fa37dd0eea4d9e258087ab02dfebcab1b4a02411f7bb0647fc
BLAKE2b-256 checksum
How to use checksums
4ed6446dca1a5740e0b787d3ad8af126bb9db1863b79e268c1b342470bf58c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 725.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
04bd4a7b4d9aed05c006deead8cc760624fe7bb06774f2d868a40366f1acc508
BLAKE2b-256 checksum
How to use checksums
f173d370226e67277f68e8e966e49ae4f7213317960e4ba78bab4193ddc5b74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 754.7 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-32 Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
349fb8c19a08144623fe3a9b893e79d053ab660f2bca7c1f95a523b2269ae213
BLAKE2b-256 checksum
How to use checksums
b752ebdd1079e4f1130752e0ace4c8d599c934b20cfec2a48177f97e5a6003a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL yearn_treasury-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
Size 466.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fc6900224f0c073ad3e198b6dc1dc7ce392c9e1d666c45d154e335324d2b7ced
BLAKE2b-256 checksum
How to use checksums
42aba76f6b8b11b0ca25bc94009888373537a1c2f14c92f327fe7931eb04505f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-win_amd64.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-win_amd64.whl
Size 486.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0429284b9ce38fdca4a2ba1b55717dd13871fa4c62733e90293b85c27656798a
BLAKE2b-256 checksum
How to use checksums
722fc5035108cad72bc1170429abfd5fbc74b3005220859b5417ac6a72f65ede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-win32.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-win32.whl
Size 443.5 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
62690b64a8503377d5c7c8f316454bb6703a859711e57a1396326d1ab4a76449
BLAKE2b-256 checksum
How to use checksums
b4f1f710f51501592404316ba6b2c39b8365f6b39533264d6fdae15307d4fd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-musllinux_1_2_x86_64.whl
Size 706.8 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
e1861fb5ef682a386d0cbaec0992574b5c6c01d8c6b37968edfd2c28426ee765
BLAKE2b-256 checksum
How to use checksums
a3dd697f13c6dda54e09a28898b5eefe6386a1f58d0cff6ebcd695cf9a7f9be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 694.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
774e1102faf1db268d2fc8573157923ef8f35bbe864e4f888216650436840fbb
BLAKE2b-256 checksum
How to use checksums
85e7c769605de06373ebfd0c737f85c00c86227a59775b2c323b423e5631b993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 705.1 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-32 Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
6409ce8cee5f835d537d655605d3f46a0072f8d1ffe81d715ad94a063ffabf32
BLAKE2b-256 checksum
How to use checksums
becd5ee4e784291bea8e298e8ed323be7b9a6090077095edd8eaf4e6753aebf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL yearn_treasury-0.2.2-cp311-cp311-macosx_11_0_arm64.whl
Size 467.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec2e91e73a4ec2394cfb2dda6ee83f699eb5fc3265dc355dca3034a6854f72e3
BLAKE2b-256 checksum
How to use checksums
f74a82daa7326591c36d25ffdab4418606e4fd01d218204bfe146b5a2d1df5f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-win_amd64.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-win_amd64.whl
Size 487.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9963599eab2c4b3d66889c9df8136647419a9ffdaea1298181677a32f0b8db5a
BLAKE2b-256 checksum
How to use checksums
60bbf12bf11fd437ef2cb1b2c89420afc3b5392533b10ab35077ca5d0f88c610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-win32.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-win32.whl
Size 444.2 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
034536bd173060d2fc638ecc5732b4b9224a0080822aa83364fdfc6f14e260a5
BLAKE2b-256 checksum
How to use checksums
7315207f8d8b912bd5105d1c9c9e429c1c5c2418feb9e2aa1c12567d05dbd0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-musllinux_1_2_x86_64.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-musllinux_1_2_x86_64.whl
Size 727.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
0720ac662163a0ca29cb6d508acdbe34bf4241b757c4111ccaba96997159891e
BLAKE2b-256 checksum
How to use checksums
7958f0ec3a7c4d78a0a442da6e6934359b71e6a98a6466777d1819887dd8b356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 713.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
070cdf026bbe628c9b48edc78a158a9685011b5e75d83de59d5bfaedb7d4b670
BLAKE2b-256 checksum
How to use checksums
3b993eeb62b47fce1e5fcaa7a9d9355146683211cac616a090f7bbde035b2702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 724.4 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-32 Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
e1762e445ac0ce9fa1f7b7d7f1755d3d7cf708f2aa1aec5cddc88aa83998107b
BLAKE2b-256 checksum
How to use checksums
c5de334b627c27f392170acd9b94f337acd98c42c37e9cd150e6236f6e8cc2c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / yearn_treasury-0.2.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL yearn_treasury-0.2.2-cp310-cp310-macosx_11_0_arm64.whl
Size 474.4 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1484cc2876d775c82db2cfae5fe83df5c60cd0b58fba74189767a39e99b40a36
BLAKE2b-256 checksum
How to use checksums
c43d472e0247674fb247699bb4a72060a4915efbfaf1aed045b83ba975aaa15a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for yearn-treasury 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

19 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page