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.7.tar.gz (62.6 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.7-cp312-cp312-win_amd64.whl (486.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.7-cp312-cp312-win32.whl (444.6 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.7-cp312-cp312-musllinux_1_2_x86_64.whl (722.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.8 kB view details)

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

yearn_treasury-0.1.7-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (751.1 kB view details)

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

yearn_treasury-0.1.7-cp312-cp312-macosx_11_0_arm64.whl (464.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.7-cp311-cp311-win_amd64.whl (484.7 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.7-cp311-cp311-win32.whl (441.3 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.7-cp311-cp311-musllinux_1_2_x86_64.whl (703.6 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.4 kB view details)

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

yearn_treasury-0.1.7-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.8 kB view details)

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

yearn_treasury-0.1.7-cp311-cp311-macosx_11_0_arm64.whl (464.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.7-cp310-cp310-win_amd64.whl (485.3 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.7-cp310-cp310-win32.whl (442.5 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.7-cp310-cp310-musllinux_1_2_x86_64.whl (723.0 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.2 kB view details)

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

yearn_treasury-0.1.7-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.5 kB view details)

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

yearn_treasury-0.1.7-cp310-cp310-macosx_11_0_arm64.whl (471.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.7.tar.gz
  • Upload date:
  • Size: 62.6 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.1.7.tar.gz
Algorithm Hash digest
SHA256 bf3ae992b2332f5d01446912eebbd51f4b2df180e8eacdfeb6a9366117854709
MD5 ee376249bb28acd2528586cb9357e907
BLAKE2b-256 9cde8262b6a8d48adac273c8fb20ea30fa5fb55e44021d0772db44b9d765daef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dbeda84fffad6d8153092f58978072dfd6b2b428961dce9421608d8b0c18a65c
MD5 a0d60d46bf5e46371be475e30b0f099b
BLAKE2b-256 7beaf3f5935c78d9809763476339be63f0e141da3b8bdff6af4c05c875beb11c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.7-cp312-cp312-win32.whl
  • Upload date:
  • Size: 444.6 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.1.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ee9899150c4ede7177b0e4fed213728b6c5d827f30922187b814c3fbe4575dd2
MD5 ce729a43c6070d2020a343a5bca5e665
BLAKE2b-256 7b610e933c1f5e30da928f376e145baefb0cd4bc36f50c3e098885140fa1a141

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4931e158268f742a5c6a364400e3b7cabed1b962748a4a556c78ee1a82e0c27a
MD5 a93d5adc6f97c9072432568205668499
BLAKE2b-256 bbf1b73657a11aa94f176b59cce5a92a1b4ac699a07708b4f69c95fd4a9b583a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.7-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.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 699a499b3a6c75e161c06591dad0f1a99759710b1dd9ed8885a7e2afe777a751
MD5 bd54c7b6f12007c9040a43785087fcc3
BLAKE2b-256 0924de84ab183cb80ca998035c48bf594af889de850ad787e2445c572359f3b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 32dd90842db0e8cbba36ed45bfa5cf0c35c4ace49850dc0f05a553a6134be378
MD5 677d34520a01e4e0f19ec68e8af89185
BLAKE2b-256 4ca47b329a84370038d9b502e795d18d84168ca5d441c8275492c2b4fe44e601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d2a3eb96263590481cd4417e1b6c83226e93f89fbf860a3be26b6e441fca25a
MD5 6cbc34535cb64e09aae6232c410c1e8b
BLAKE2b-256 caf531508cfc5530b93ed39c13bc49d57cc2697b92e05d12f3252fd8a0630e0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50cae59b745c311033d70a42325bc9b4f18f8c22974c560349d20364a00f584e
MD5 74f88989cd182fef5b407463db7f7408
BLAKE2b-256 c4ba55a122a020f8c108b2398a8d4880512d4c77eeb3bf9eb0b9011c411a6944

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.7-cp311-cp311-win32.whl
  • Upload date:
  • Size: 441.3 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.1.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f0bd3362846e20fcaccc8f6597e9343e7c1cea483a26926332467e933765a0b3
MD5 7cf840ca244e96716950353be16e9d22
BLAKE2b-256 b25ad546ade1d1057546535c505e109101b251232233d3b59ba030ee37069a8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b294809c557edd1e7ccdf287bfba8ec73b2be6cf91377ed9b16fac7263be8696
MD5 44f2f31186e64f25182b7653780325fb
BLAKE2b-256 01b21baa614f30f8b7318d5f63d50506450a4c9e58ddf82941fd44515ccddeeb

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.7-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.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 674a5f284370db9e36fc914cc8a7a766efd043800db09053b9d61029c565a1dc
MD5 245106ebc2d831209c62e896e1cc2e39
BLAKE2b-256 6933ba7de5c3dd2f999017491be32c7bfe2583fe4b7ef952745d658d4bd923b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f9c7b31d1f16be7cad1fff6b888fefb4699868c547a10403aaafd968637e03c8
MD5 194ede6e1d2f7f7732caa1d608728aeb
BLAKE2b-256 e1ff410e9aa1fe16c26d2a0add1a7b20e823f38a54efa33a040ce7e88d4c17af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3917c9d29b084b342d750b7cfb13ce0f6535c9eb7c181bcf6476e784bbe5ffb
MD5 f0bfc475a66af089f5e6ac1dc362d491
BLAKE2b-256 b98d72c00c709f4104f5ae4414e2332b4db5a153802b0a21176a269eab0e01c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1cd360df16a29a2914c3e6d17cace1a6e4bca8ecff637cc1690c5407f3d5916
MD5 9e8405a0330f2a4504a386acd9d4070c
BLAKE2b-256 2c147b3e953ffbf82f1546f55e95f2438fee8d3ffc01d0f88a3245d97f758649

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.7-cp310-cp310-win32.whl
  • Upload date:
  • Size: 442.5 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.1.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a02b0c2627943f7313f0715a525e94e45d97fe4e2ded8c8c44eec4ecfb39d19a
MD5 a85f43e495b95a265229e4b7847ef293
BLAKE2b-256 cd2f2486dd2c5bc287901ec2003c2c8554fca0e9d30a20a3b418851951b748cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fefaed61864227814d412a4172edf5c0cea0dcc59ddcb5e933e1a0377751fe2c
MD5 9a49f90494f094cae1f39d5678440b98
BLAKE2b-256 b7500602d85c80fdbbb18ee77a56ff444f633da2630081db6b6de693aec766a7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.7-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.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d7e9d135ce0b3beea9c587602f194266fb2df95d69b025df5bdcb99982fd11fc
MD5 44f14e330971de6a360fc9d30d353f0b
BLAKE2b-256 b15814e5dbbc94c60253c81e2cb6d6b53ac189d4a114efd3102d001b62da2c51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 54efa73ea566143567448bebeab8ddad9a25f043533520615428d87325db3226
MD5 926b84ff8288ece096ce6da09a75e845
BLAKE2b-256 46f0b163d204a442ecb741fb8d429bb5c0cdf14248f05dfa58c1ce74fcebe0df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c66fc7eb6d469da5502ba5a55d81344210fd8e8ceb7f34c9d8b4a483a91b6d2
MD5 efba5fc6b0c0514ec0afd4dc7e42631e
BLAKE2b-256 8b4d999ecfa26c974971cd49fd718a8eb3b2ad6110989b690819f94cb1cec55e

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