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.1.3.tar.gz (62.5 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.1.3-cp312-cp312-win_amd64.whl (484.9 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.3-cp312-cp312-win32.whl (443.8 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.3-cp312-cp312-musllinux_1_2_x86_64.whl (724.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (722.4 kB view details)

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

yearn_treasury-0.1.3-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (750.3 kB view details)

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

yearn_treasury-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (463.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.3-cp311-cp311-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.3-cp311-cp311-win32.whl (440.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.3-cp311-cp311-musllinux_1_2_x86_64.whl (704.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.8 kB view details)

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

yearn_treasury-0.1.3-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.6 kB view details)

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

yearn_treasury-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (464.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.3-cp310-cp310-win_amd64.whl (484.1 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.3-cp310-cp310-win32.whl (441.7 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.3-cp310-cp310-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.3 kB view details)

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

yearn_treasury-0.1.3-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (719.9 kB view details)

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

yearn_treasury-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (471.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2d128dcbc5f937f6368b9e8804416b355df1dc475c1f047a744f5a085d8d1439
MD5 fc6c510399b38f2b9c2c9e0861ecdff9
BLAKE2b-256 fffe7b9ec010bc74fbb8729194214c181a8a88f8b7a7a24413e6723958bb7c96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c2df074fea8902921d411c33dd88a27ebc1a3a3794bf41e3dad0ab2bdc4d7af1
MD5 c1948b2fd45cd54141548660d441b440
BLAKE2b-256 33f7b36a5a1e58333148b224fe0b2248aab14c4e38406da4269833d3daf75c3a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c339b94d0bdaa87df7f167598060be94560d985ea8b1a6cb1e678d180be312a2
MD5 4a081c37178cda05ab98752246c93e30
BLAKE2b-256 059dad82ab97a08affa8e6694322fcf4aea7149d8f0d7ebc59fd13f853283241

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d02f9d5638f3a8d67b4e843738bb1687774bcd604fcc2d94d9b964ce5469adcb
MD5 88a8e7358e88372c164ed814b7c88042
BLAKE2b-256 2c1255364e1999af34fd807bda75ef7373d02013cf9713bc014718a3f0e0aa9d

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.3-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.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00433e6406cf991816ec58f99929a023d0ddab523da2d01cc4dbc8c7459983d8
MD5 52873462ba789fb1d38d189866ffd207
BLAKE2b-256 32e29333ffd001f2477ffe63a26c3babc76e756361694dc5332ed2d40420c47b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 17e01985961cf49c78b03db2d7ae5b9f92347018b136f3157a46e9defb0c315d
MD5 54d1990a37765bf205e677b101555f11
BLAKE2b-256 dd16067c31f247573d664cd6dd77ad9dca2e94ce1318b001d738a23b41663b51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ba2c4620f2a735b593669396b8dca0f96a4302fb9ce689880ff162d36d9dd17
MD5 9f018542fff810358b4705f8e9eb9cb4
BLAKE2b-256 de1263bad92ac51a9a979981fa3599346a7849be22584181ca0e29e91c299a75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 646b3dd0a16f6b706f54a9f27001438fe5febe8919c85ddf617bc3019002060d
MD5 a39bb8f15b84531d52c8fa0fe79c3ddf
BLAKE2b-256 a40bda2fe949325c8eb25bea87bc197fbddef4bb78173d0972f6ae2ba004898b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 561538187b91c07b8b7b13fe6dad37d48a2868a7a0b06b8a0e6f5fcbdb00ffde
MD5 5ec2052289785bee675523262e424c9c
BLAKE2b-256 75131f2a6630102e223010686c887fe388dcd1133f829b8e2d8e462430c486c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dbd664f81806567070fae7eb95d8d1c4bcd4587e2a04435c573e5e60db307e64
MD5 37b6c62c180ea01514cf8051afe72397
BLAKE2b-256 964590b273e03ff8a11b1ca7c8548cbdd1759d1ef784ad3c726753aa1535c59e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.3-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.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dbeef3630e8fd21592532320a0f56b4eed0d442177a15e6c4012e9a077f0add2
MD5 2f80c77dee8cda5e27005c895db1606c
BLAKE2b-256 85d79c70134deb452482954254a5fcda09095301e5152bca7ca5eb9930872df0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d8da024cd8e174af5eaa9423aab4ef9fd51faf113844de58a21976df69f60a8d
MD5 4e9dafdae03ffdb99eaa12f78e353c65
BLAKE2b-256 0afb1fde678b550d3eacc1a96ab38e524a484fa00844ee85ccee9474ecd1e893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1401ca6086d51ae2da14cb3b9d269ccfcfb106a6a5233e1506db8ac9d5ead1be
MD5 bbf36c53651d74fb4b79395bf275ef41
BLAKE2b-256 977549360ad94241d0d6d07d06be54b3c6a163446b332146a5c3158785c9a9e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16746de743f91fee7d22d3aff76078fe0a965b3b28e5be7a897bbe904867ec67
MD5 cff2ae6bfaecfc4d9df28eae29eb633e
BLAKE2b-256 031082b064d830ce2af049f785e939d8bfc83c1c1a65359ef7ef45a0aeaa75dc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yearn_treasury-0.1.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 44940249098dcc8474db020af56ea7416197d265b13196b7d7e3cbd8e8a204e0
MD5 90559808594fd562ad2552b89d2512f1
BLAKE2b-256 3733f8d7f404702c0507a578d9b3756e20bd1f663e95a6c3a915e80b3df34958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ff4c6dd6e5af7e0e7e380375a7a3e769d96d6af63e4a01e13fae5b602ededaa4
MD5 52c35c61636cefa1664b149baa2473e2
BLAKE2b-256 12b3cf841212819b4a9b7e6e4d64812831ab931d6f1fbef820a9cc0e95c17573

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.3-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.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7595868cdb17f06d49df8c460b3610dcb58912f2a525aff844f93503ae9c766b
MD5 c4b89bf286b085aadfcbca9bf9d232b9
BLAKE2b-256 e7f3cd1ea885257e32f5a9c8c8122f7640619cab722b0df33da896550cfedfe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 0894c561c6a433d80e08e4eafae9c85bd4a28c86b0cd9f569d1464ff06a39818
MD5 3908e525032a94e2ddf4ac30d4a5e8f5
BLAKE2b-256 e1bf17ed5fb57c7963d9a64bdc73f26354ada53eb72a65651aff5bc32e37d81c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1ad6b2fed67c7d3e32fb3d13c47b83c00448e0b5384c404bf89ed18f8c41640
MD5 3a4ffd6eea7f513e93fec9b1606e1eb3
BLAKE2b-256 3876c08f25137843e2d036fd6624d2a02530c73085da2946b0bef690d0a02a96

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