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.20.tar.gz (48.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.20-cp312-cp312-win_amd64.whl (444.7 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.20-cp312-cp312-win32.whl (402.2 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.20-cp312-cp312-musllinux_1_2_x86_64.whl (692.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.20-cp312-cp312-musllinux_1_2_i686.whl (723.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.20-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (692.2 kB view details)

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

yearn_treasury-0.0.20-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (727.8 kB view details)

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

yearn_treasury-0.0.20-cp312-cp312-macosx_11_0_arm64.whl (364.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.20-cp311-cp311-win_amd64.whl (440.9 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.20-cp311-cp311-win32.whl (397.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.20-cp311-cp311-musllinux_1_2_x86_64.whl (677.0 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.20-cp311-cp311-musllinux_1_2_i686.whl (690.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.20-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (664.0 kB view details)

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

yearn_treasury-0.0.20-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (677.9 kB view details)

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

yearn_treasury-0.0.20-cp311-cp311-macosx_11_0_arm64.whl (363.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.20-cp310-cp310-win_amd64.whl (441.2 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.20-cp310-cp310-win32.whl (397.1 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.20-cp310-cp310-musllinux_1_2_x86_64.whl (692.4 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.20-cp310-cp310-musllinux_1_2_i686.whl (708.4 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.20-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (679.8 kB view details)

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

yearn_treasury-0.0.20-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (691.7 kB view details)

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

yearn_treasury-0.0.20-cp310-cp310-macosx_11_0_arm64.whl (369.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.20.tar.gz
  • Upload date:
  • Size: 48.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.20.tar.gz
Algorithm Hash digest
SHA256 b96ad927a890f275ffa277774442091614c3bbd036cff30fe7162009ebc7a1f4
MD5 a5aea63fb7a78ef5a7cf403ca1967dc7
BLAKE2b-256 f325bc50ad1bd288f22990ce241df018898bcc0dca299ed04ce70f690a4f13f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 18654961e173930e3ecd261b3c6cdda27d5587c92f4c53088e9b30eb0a7e14b1
MD5 4fed0ae29d6b4b14387faa22c510f94c
BLAKE2b-256 b579cb9ce9db76aa82ab676ce7fe9281e2681692756f03a386fe060fdfd5bbb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ae81bb408ec0378e9545ed84a5eb80f8ef2ff47f674706d71b1e76bc11f6931e
MD5 0bce0d302216553c72fd9da3781765ec
BLAKE2b-256 9beae0088b611238a794f9d67e57080ce25ca0b35c3324f86c1d0a9d7de04954

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 961c2f0067f8c937430325873356a70224a15480aa26ca389474a08cb6e5ccc8
MD5 068d9ba4b9bd0f677ef6fbd05f9f6c63
BLAKE2b-256 b98c44a68d5b056069a0a31826998e82c6cb0debd21f3955ae752134f9a7bf47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d460822e0759dbe6710400c88139d7909a2fdbb3737c92149df21e87d02988b0
MD5 906ec8db07448f9ac39642000055db90
BLAKE2b-256 3ef67129b434b32be607be3940c99091f4c1ff156d7df4880d9ab61c7fb26e9e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 91f05a4d301f134f8c75ccc658053c6db2973901a8801ba39382ec03ab16425f
MD5 441389b281e9d154492b07652e391c19
BLAKE2b-256 05c1dbd52c3bb5eb95322542f160d971f003d9b56f33c71ab33995fd8237b389

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 9d009da4da47b5f72a22c69af9b30668774fe88500f84f05f54462fbdfc70579
MD5 5d695e1b18092109af380769c7c54197
BLAKE2b-256 58c07954a9c61b1c3833bf95abca1bbf4a0dfcbf27aa182a1d2eacb02cd53e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72b69debf563ed2a58ba31f0431194e64bf56cb6e3d1b4fc6bfce8512b617100
MD5 0f22612008e66af771e2cf51ba874adf
BLAKE2b-256 6aaeebcf0206e3b23c4dcfb2a27a4c17abdb67a686ea2624aae1009b515b0586

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db8d4398b7a97db7c90cfeac65dac4a5ceebb7f762e45b2ff8d19395962803e0
MD5 1977b7fa45f912dede74c717f733f982
BLAKE2b-256 9d9977fa43b9c64afd17aa4a73b4d5db84eec08053a123517244f9df6ba2a66b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7b59ab17e76f30b132def3abab70a47d17be0b489af05aa5c9819d3025ce2478
MD5 f6a30d355fe35723e307b8aabc1258e5
BLAKE2b-256 9c89d07513c358b9e23b738f662513b33641ed318c4483fd0d1837058381df2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41168b44d9cb2525aa3e96b5634f373ce8ca8b74bbce5be2f593d4834a8ba083
MD5 807e9e4806de22155b33664a3203cc92
BLAKE2b-256 74f970d96faa49a911f3fd56280f5b2aece02b050bfabfd1a949082c1217c515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 6f32bb9788808c11c1185354ad7235e3a532fa8b70a4a3601f0a133e150febd1
MD5 840f377d25b868fd2094b0ba150e33a7
BLAKE2b-256 6ec8c961cb49a67387fe637ad2f6bc1eb71e8db4b94832d7c7391fca6dd4e62b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a4037f215104f9c86570d70fbabd12ca63f7d3e763c48406f068145bf2044e22
MD5 3f0ac7e1bdfb0abdbff67f523e01c190
BLAKE2b-256 822e113e8715255770672d42cb0764801f019172eb24ea02f7e658ddff6855e7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 2804b32f03f2c4715f90a59c9bf0901328a1ae173f8678884ca306e3105ed1d9
MD5 e91b0d93d9af886cf87ac75c698594b4
BLAKE2b-256 114af81f4b2462c8ab2e6423c033fa3e99fb456c4bc9d813a31d329c35b63085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7249d2c050ed6a318fbda5ef9b24c5fa8f2231abd7ed8b8af9319fb4b8181c69
MD5 688d09a16335c57b12b0c3e49b964503
BLAKE2b-256 b7e507809289387cdae1224986a8dc8d0224420d5ae97655253710e1031d56b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c90d3923b578ba782f3bc9e8f4da4dddd77beb80d7bd3bb0a3ccf9ddbead7a4
MD5 01e94551bb19724e6817b00986260b96
BLAKE2b-256 1e8786d0ade4e18b58ee7fd98bc496bf375283de941ffeeaccfa6b47a0b92e6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8cdbeae337c8c0319e7cc985c3b9832438b823d335a3f82057fc33db0bb8ce6f
MD5 9e3a89893c55bc5d19b4b5a03e0afd6b
BLAKE2b-256 079706dfd0d4a046967863b5ec816530421bfc35f1e47eec0c4c662e18628c94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ecbfc5daec34bf8f808346952d8bf5a164c21bf1906f584ba1c4315ba302d0f2
MD5 c77c5c7b4db4e7279c88b5f0fe6bfb40
BLAKE2b-256 a5cf13b2cc4bf061d862b22e083276d46ec60a5acd000c3653886e63d685cd59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 a554ba81709c47fbe214bb3d7ce514d0918d9be5f38410d934fc8879cd2dd837
MD5 8d5b21a2b6e46e063ad9754a10f1214b
BLAKE2b-256 27c0d5ee303e731388ebf83bf612f150316905fbd9078245998009c48f483440

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f1af53c230ec617b1c340770e494f0de132c7e381206111a187c68a850cbc448
MD5 954d528b5d4e91c510ca714c3a2f78fa
BLAKE2b-256 9fb6c1b25446cef0da58e43ad0bd9a200860983169bf9127dc9ccd5245f2426e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.20-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.20-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 46f925597422e101bc411a155aefee7dc2dcd8fccc88e53d101d4a4fdaa70b77
MD5 ea970322cd6c55f8cc5d59cc64f3418a
BLAKE2b-256 585454d52a4e2c6014f08616033800ac20851db617ae91de26ca584470e29298

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.20-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eedaf697b22fcf779bcc480fe08312e688ea9234004b8db3ea0cc84e49cc71b3
MD5 dd18da4871271598ddf7ca444499dc2a
BLAKE2b-256 7308a455c444d599d25b3b927a1dfd3ee88a07e2c75d6e98a13f8520c6508c36

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