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.49.tar.gz (62.4 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.49-cp312-cp312-win_amd64.whl (484.5 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.49-cp312-cp312-win32.whl (443.5 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.49-cp312-cp312-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.49-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.0.49-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.4 kB view details)

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

yearn_treasury-0.0.49-cp312-cp312-macosx_11_0_arm64.whl (462.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.49-cp311-cp311-win_amd64.whl (483.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.49-cp311-cp311-win32.whl (440.2 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.49-cp311-cp311-musllinux_1_2_x86_64.whl (703.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.49-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.1 kB view details)

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

yearn_treasury-0.0.49-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.7 kB view details)

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

yearn_treasury-0.0.49-cp311-cp311-macosx_11_0_arm64.whl (463.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.49-cp310-cp310-win_amd64.whl (483.7 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.49-cp310-cp310-win32.whl (441.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.49-cp310-cp310-musllinux_1_2_x86_64.whl (722.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.49-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.6 kB view details)

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

yearn_treasury-0.0.49-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (720.3 kB view details)

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

yearn_treasury-0.0.49-cp310-cp310-macosx_11_0_arm64.whl (471.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.49.tar.gz
  • Upload date:
  • Size: 62.4 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.0.49.tar.gz
Algorithm Hash digest
SHA256 81e57c3dc75be6d2922f1d019a77c3c5f8d3b317aeb52376a0d24778698c548c
MD5 2b263dc15a92f18be1274fe3ba714925
BLAKE2b-256 d9688b966bece872ccf2acf9e58921f409b8ce2b856838431661f7511ef9cc31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1876a17203fe27dee6b2decafd74c753882557ca92acd78d06b0d97b596f1d1f
MD5 791c99ce2224e2ce1d4217caf0d96fd1
BLAKE2b-256 d7f58395bd6160587760c4224e61de1e4eafb127a7b317757eddc04d90f42d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6a060f3900ace766e38cef9e28b033dd63e60b894fc76446f006dbf87ed9452e
MD5 1f884bf7ed48d31c1b6c5a6b9b38a477
BLAKE2b-256 22b788631430703c316de9d881c937baf14d69db721fa38ff0b8f0b13b1374ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 49e7fa3e51341ea67367f379b570124876ef95ee8587405aaac317d137b3b592
MD5 0ad70bfd9288b21193234ca657280774
BLAKE2b-256 596a9c1b57fe3bbc000b0ef43fed81984972bf164f5b8fbd4a13252a31b48c5b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.49-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.49-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 562f6dd21e30ec184733c0242fe51781cd2cfc5079d4c35d9efb2277f6591341
MD5 33fdea7cd09a607b787f269b364c4ba0
BLAKE2b-256 1221ed1c5aa9c0cca38a9fc3854a4701a7b28becd309cbb4a528290cdc88469d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 ec86f2f27b026d19dd65629174c4098cf918d90d6cb0926bae3f02f526a5d742
MD5 ba6ebdbcd711a6b1819ea6e51257c564
BLAKE2b-256 6c01f652c37edaf253be9479bdcc3e70873cd41453349a6a2b2c3b1c9f2fc05a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f16bb7c44151d070c76a7f8d049ac45d448a7c1e11db2965524039c622f558df
MD5 2b688e09edbb7a536db2e3fe5035ab74
BLAKE2b-256 ceb457da0f5d918d74e54a749c14bd8798b483bbc954f6cd8d7b1c1befd17fe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3d12c56c6161965ba949ad7a96c604d0d84f0a39c5ecf0ea3f457e377721a20f
MD5 a60bb814c017770443e539bb1d85957b
BLAKE2b-256 0911c52bf698810b97d2cc96146649255ec416dcf534dc50931d35f7d7835ece

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 563f62a93e2e35373cf5a65bf448218e6aa82bd2fc797a0895c0d67cbabde9ec
MD5 0d6ba17bc3aee74231e210322d018936
BLAKE2b-256 8c4c15af7d84e764c8df6a9a695c88282ca809bf6a24e3173dd5958d9a40a75e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 818ede58e8abe127e9d027a5c2b11a2ade0e28c4a7cf8aea8a0ab22f775a16bf
MD5 d57297e0bcd50e6fe65a3471434b095b
BLAKE2b-256 37ff64071652eadb72dd315b9a1a05660255e6e6363cb88faf1c1b8fa772bab0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.49-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.49-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 56e435e639df8e15af40b8583d29f156c09dd6d6f241469200dab7cca7a7d5eb
MD5 4e809972f902600ca4d82dec4ec023a7
BLAKE2b-256 353f20f9fbcf18663fcb70ced2dc1362d9462105289a2fa09be028f84b735d30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 391256aa0f9710458480e803c357f5c09fe66af0845b3f77421d5aa6165fcce4
MD5 b160dde6ebb51dc6003173fec6d1cceb
BLAKE2b-256 ada3def6e95018488693db728b42300be2df50aead834f6b8e3f2ae7d4111120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f73418ae504946b676b512b7011fa36f13c4ef6d7950f3cb4946dcf92ed21eb8
MD5 d418f069bebc8161f4398cb6e3a71f90
BLAKE2b-256 759c8cc154ff9b4553a7d4d2cb810b14ae672b45bccb5fb068d9f28bf9f809ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e95b42a9d0bcf8045c85ba45d00aa5b8eb01629a227a12cd613bacadef3057b6
MD5 8164a9deae5bbb62540e7467db47762b
BLAKE2b-256 d3d54d4798760a21dfd9f55e6359142b894e88e3bee97ababaaa929a54aeaea0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 10d6541cc904b0c580b9f43d33392105a487cb131f6b1aa449bcdf11ca741a93
MD5 95b0a71dca361fb015ad5c18b0a1716f
BLAKE2b-256 83d182e66cb366f8e03b25b2b2bdf527867f8b9af22d79967d563b89d3921c6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 be1b313a40f9761aea22cdc214a2cc4abca4d1693b6865c8868e84e0a06b9d35
MD5 45193bea867b741583abe59adff3ee61
BLAKE2b-256 0657b8a6209c497eb50a09ec58b0ee0ff6070c6ddd09ddd68482933ecb96373a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.49-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.49-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e31ab73bf16b51b4be6b7513b883bcace54d7026ebd4da33b47bf43765368174
MD5 e70f31d9bee3dce4286ee6174f53d54e
BLAKE2b-256 c699672ee71dd52e6c3aa632a0030b64af5570e1f6a2b1f7de76542a506e1349

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 ebac22c8ed68ded689f98ca5068bbe959b6b642184a9c87f4078e5bb20f6e99d
MD5 2c8f649920c5f49f5fc502254080c791
BLAKE2b-256 728fa46389a7bcf0eeaeda13e7fde16d2c95625869718e58b1c5732cf371c842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.49-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 806f5b65d54c2928e0e14d06a41b25159a0eba89b02fe51293d32a1813123a67
MD5 f7f47054ea3b73dcbc83a960fb20cb6e
BLAKE2b-256 f1a209b5ef3dda53e607f00881a778fa851e2bc15c2cbe3909540cf4684e7e86

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