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.19.tar.gz (41.8 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.19-cp312-cp312-win_amd64.whl (359.8 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.19-cp312-cp312-win32.whl (329.1 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.19-cp312-cp312-musllinux_1_2_x86_64.whl (527.8 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.19-cp312-cp312-musllinux_1_2_i686.whl (551.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (525.9 kB view details)

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

yearn_treasury-0.0.19-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (550.6 kB view details)

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

yearn_treasury-0.0.19-cp312-cp312-macosx_11_0_arm64.whl (286.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.19-cp311-cp311-win_amd64.whl (358.2 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.19-cp311-cp311-win32.whl (326.9 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.19-cp311-cp311-musllinux_1_2_x86_64.whl (517.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.19-cp311-cp311-musllinux_1_2_i686.whl (528.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.19-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (506.6 kB view details)

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

yearn_treasury-0.0.19-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (515.6 kB view details)

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

yearn_treasury-0.0.19-cp311-cp311-macosx_11_0_arm64.whl (286.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.19-cp310-cp310-win_amd64.whl (358.4 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.19-cp310-cp310-win32.whl (327.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.19-cp310-cp310-musllinux_1_2_x86_64.whl (528.8 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.19-cp310-cp310-musllinux_1_2_i686.whl (541.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.19-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (518.6 kB view details)

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

yearn_treasury-0.0.19-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (528.3 kB view details)

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

yearn_treasury-0.0.19-cp310-cp310-macosx_11_0_arm64.whl (291.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.19.tar.gz
  • Upload date:
  • Size: 41.8 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.19.tar.gz
Algorithm Hash digest
SHA256 bf80af6e23e8e0855fd9b90d95a1842a23c80772d5746887cb85d5647aa829f9
MD5 070b14568d0d5d80c3db38fb323c06d0
BLAKE2b-256 a8b0ebbe41f7d693a0becba639ff9c7ce2cdf7c3ace2a0599260cc12f973ed6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b87472240179450bfc6f5c36369279c9d2f3d2982320a139d18eea373e343ee
MD5 ce7ee4dde762bbe5a6aeac4b772f0930
BLAKE2b-256 b98988cb1ffabf9077051725f2a24bf133cb5776674b3080f235d2cb45bf6f91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0ed6ce1ad61be1428ca0bec564791e0c23a5a4de8cf24ae488b397ea568693c8
MD5 fe375a8e724e1abaaa0da18756810ab6
BLAKE2b-256 f052c63f4a8f2085cc2952f050c061d65bdc4d5723eb82f624c8bde039eab67a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 21ed434a89eceecf505fba4cec774b0f783dc2727097936a04f310cc510f70ca
MD5 0e74286afdce8fdc66f47d1a3ec2a917
BLAKE2b-256 6132efe820d790a849c0bbec42ffb6515982156eae9c666b900c089888a41863

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 2ef3e39d8ea718f133a5b316f46e62fe3e8fe7aa2fb0ba365ad599fa95aa43b0
MD5 d94b20df601eddbd9a32926827cf65ea
BLAKE2b-256 dde73be1addc463187fb84878d2f76e98096f9d7fe55a4b68600f0409cea253c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1222dae0a13f74fc801aa5f39004128f70f6fd03e7f407c61c2ab693f27f7b41
MD5 178a9263b7304b45e94908e9bfda2fda
BLAKE2b-256 62147875e30530c130144e22971122a183c3de7b1444afa1743b996e4a19d02c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 18471a8fb2a5fe585560dfe2be72dbcd141bbe1cc470ed5ea9d1ecb2f84cf551
MD5 27e9ecef3c6ab1e9c9bcfe0734aac03d
BLAKE2b-256 f04e2463dc689bc8f785858997b0089739100f09aa7e55e01c9a19c51dbec329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7b9150e01eacd72166b5e57f1f367b2f34266138fab0bfc083d5103101abe68
MD5 4ebb3c9ad3981f79936dd99a1695dfa8
BLAKE2b-256 4ad8ccc94d9c72adec32082871c75200d7bc2b449484205cc88e9625a8b8fc61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 73daba4a30d4a2cdd580e56d03646b57153532d2c0003e864ff503f898af3390
MD5 e584e2b08724b54ef988953dad0d687e
BLAKE2b-256 306b4be097ea1b332b1238a741dc0a7b3e6423b0c8d42bfb287d0e040a2f3dd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b9e0eb8baa718795d94e382823081999601987e96164cdf1fe9fbbd2adb6a6fa
MD5 eb7f18b3be9cd6f2661edec039a57d16
BLAKE2b-256 2900a23560ffb491a0859d5832af2e20bf584dda1b1f454dbee0e13cbc36da66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 084133cb64d27c03a7ed668cbfafc6b58c37984a2e76eeafb2746effc4a1ca82
MD5 15874df35e26ec47203434793d9431b7
BLAKE2b-256 f3f1d646325a8673b50e35d8d9f490d31d9269967ed87c9fa1fdfcb21b57cb04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 9e7d8ff0e39d5b7cac44ab6ad0a66938bfe0091a62b30bb69a3e0956fa538d71
MD5 b053fa2a2ee1c5efcf83478ae88d316f
BLAKE2b-256 fb9ed9c5ca975a0c5d7ecb607a6f2b83891baa9ea81547666029631c9ea5554b

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50f5b11ba8c987b9cfa443cf5fa84c4db7479faf90e354bdf08a394eb3d8d6eb
MD5 e15f3148236de37f5bdd85010be356b9
BLAKE2b-256 229c3c6ddf935a0bf8eb59cd0495706b3873eac6e6b22154b4ce4334673a383c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f54b52fe216eb89f8ff5a835980010507b97dcea9297e4fc3430da558254e634
MD5 7d053d8820fd0bb8027ea4cd5497c09a
BLAKE2b-256 656d78a6a3dbc5e23735f36da704e880e4f461fc90ac5c918e4b9377abf21df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 443e403ef0eba9f66a9737c93ca09abcc703591fbc2f7f193861003b887090d1
MD5 7832d9b13f80ac8dc78e3d9451034bd5
BLAKE2b-256 f6dcb02c282fa7236e5a48b32bb2c05617b0dd4a136212778c078524ebb353f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8790bc7b43a6df482b094444483f4970afc0caf71df2bc744474047693a93756
MD5 87d9399c5f0b13969c4b3ff522d055e9
BLAKE2b-256 76d7d6567429761adf196590529773e19bac5068295d7ff5904a6d25a9867d8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 97527438612c00acc22f84f9df4f9d034febedbee396be154c7be86f0ee2c320
MD5 c84fa8f2bd7c17a6d4b0831d18a415f2
BLAKE2b-256 b58361c46c3e4c61f2e6b18e568eec8c77e8e0085b20bdb9dcf5d6f7c5634c4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a02905824c66148f21106325e56d668c71c7caf5c141a80e576f1167c41a4483
MD5 004ab6f0ac36e46ae3e46b09b9d58d3f
BLAKE2b-256 f4dc43a1bfc90e779957ed8ca869149d99a39bc1f6ba504d937faaa6874724ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c774a7acea84987acf6258e4567b1e724a39e16f54fd6f889ddd8b56b8db5f77
MD5 99d873f5d9822dd6f80ffddeb9d93ca2
BLAKE2b-256 ebe18b7dd9a7e9d0a39f6561638514084f0155a6ec1a0a4709a2d82daebef8bd

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd3bea77b2fe339270b8b3e906bbc5141db011782a1ac4b6a54a86fe3e542302
MD5 4ba98ed9d5a3f7c94a96d68a248e5d5b
BLAKE2b-256 15da4733af190f7fdf2dc5e1db19878652b0697dbd1e63bc86c0fadd4caa5ef6

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.19-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.19-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 b8e150013f0179231439ddbbc776056ae5079bed05dfebb0ef1f2615344ee15d
MD5 2e602fa51bf9c5a0d979268574cfd13b
BLAKE2b-256 9bdc4767dd8936d1ab7a96bf14800bde22ed25535d69e86da11c11c2b55ae507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e83de80cfa75b6c9228b7b348ce35a62e6240b32230359d3b5d9d26e9b25deee
MD5 f728c4318811af2e4a8ecec077a38b7f
BLAKE2b-256 93e1edace5e1a2421a6be685c6bf34e1addc0187501f043e821c59619910c8e2

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