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.18.tar.gz (39.3 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.18-cp312-cp312-win_amd64.whl (304.7 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.18-cp312-cp312-win32.whl (278.1 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.18-cp312-cp312-musllinux_1_2_x86_64.whl (443.1 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.18-cp312-cp312-musllinux_1_2_i686.whl (462.6 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.18-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (441.0 kB view details)

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

yearn_treasury-0.0.18-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (460.2 kB view details)

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

yearn_treasury-0.0.18-cp312-cp312-macosx_11_0_arm64.whl (245.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.18-cp311-cp311-win_amd64.whl (303.7 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.18-cp311-cp311-win32.whl (276.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.18-cp311-cp311-musllinux_1_2_x86_64.whl (435.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.18-cp311-cp311-musllinux_1_2_i686.whl (444.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.18-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (426.0 kB view details)

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

yearn_treasury-0.0.18-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (433.2 kB view details)

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

yearn_treasury-0.0.18-cp311-cp311-macosx_11_0_arm64.whl (245.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.18-cp310-cp310-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.18-cp310-cp310-win32.whl (277.1 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.18-cp310-cp310-musllinux_1_2_x86_64.whl (444.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.18-cp310-cp310-musllinux_1_2_i686.whl (455.7 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.18-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (435.1 kB view details)

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

yearn_treasury-0.0.18-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (444.7 kB view details)

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

yearn_treasury-0.0.18-cp310-cp310-macosx_11_0_arm64.whl (249.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.18.tar.gz
  • Upload date:
  • Size: 39.3 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.18.tar.gz
Algorithm Hash digest
SHA256 162e8f112cf34776ef0364dc434065364b87969604da862a84207cfab609453d
MD5 e4378d9fd2871af0bc4a4adf2a795932
BLAKE2b-256 5a1087c36a7d6e51e8c3aba249a82c72e044dbd4b985239bf3fb455b7cc5f39a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d513021aebf903966b594ac8d6a2a48d683775b5a8aca2cd087f2ac62ee5d555
MD5 520c8c458f9245436be4a69489d05614
BLAKE2b-256 caa8c57b9a1cd87b205985f530877a47605113cb9f7986fbbe6e8c3bceccc117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7dd2377815a61fdee00463079c2d01b3adfe6a5ac7fc9815defd583f5d1d6a60
MD5 0690e4345a6fdef8ff6b246cd4f4d72d
BLAKE2b-256 46e68224ae589726421230c84739517fddf73113ca4310e1fd5ecb3ef13b09bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 afdeed9dcd6f88ebb4c0ea1c8665b4704f938cb2080bd1193bfe01fdc21d8314
MD5 4d39dd08d75e4fbeed79bc6a2f28ed1a
BLAKE2b-256 bbaf4561b2f0ef9578286fc13d921f1a53c07f80e414b7b15d03a947edba7142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 93f667dc91cc1722c7eb116a700fa99e7b1705d2bbcf3759bc8ba5a3fe13fa65
MD5 13336c1fe72f72508e9faf9d127bc787
BLAKE2b-256 56434ffe51c54bad5d0df9beaddd7f08006116ca47c7c4fb4aeb9cb5be8b4a9d

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 127cd1d4439cb0499da79367fbe92f5fcbfe47c7da5e8bd2018ef69ed3c08a3a
MD5 22a7a784a49ab4c86c51528bedd2d26b
BLAKE2b-256 dce83fe9e9552b1504d55b7c37b90c5893a525438a2d6a18ea74e435a3fbe277

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 98dcb57d87adcad9cecb3772e690f72c3f89e9d50b465d41841046769ec0a22f
MD5 5849a8f6575f2469f356d4198f2ddb96
BLAKE2b-256 1250578a2694a16fb1ef22e925ae052e54e1a931eb58db6f55d7a0108247647a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 732b72d67c5b7c7e65619109a2317c574ea62a136f94700f13a210a932703fdd
MD5 6454e298120b16fad46c795a778a0955
BLAKE2b-256 974e41ecb15305f3dbb4d696e9c981e3e001c2802a7bfc6963e04290e2601347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6aa8382d0a694a387d32e12d9688dcb4e8ae1f1de5b455b0b5bd47cefae392e
MD5 5640f6f90fd506627a467cfe8c566896
BLAKE2b-256 c90db201721d4f5b9de419f80c92faf9f1a496c888801505e0141a9e3431ace8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 da6d74a179859be5ee38f9a35939998c12bcaaaa1610fd18c67b99286ca69cba
MD5 ca17354341ced3c35bbb4470b7c693de
BLAKE2b-256 b0c533b2f92df8c32bd7a5318d70480c34c53234f26343e36a5a42bbb43c9156

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dbca7e9862044be916a931b5416c7abe08ed6256f6ac7f1b0126b2e158c44389
MD5 553fe59c9fd328de75a78a07cf178acb
BLAKE2b-256 0cbb90ee2d519e08a93e62b49d8684aa30d44819d51f0d276392802a3a5849a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 99c39c5240fd033a47f67d659e788be566baa7a0eaaf8906553276dcf42b84fa
MD5 d16f4a09cb573fda1a9579a5579422d2
BLAKE2b-256 8e8f01e76b4b10b535fde27f23e4bd8601d0b2dd88cb8cc965f3881808d76bf4

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ac2b6b07df397a50defe00cd497a9a2563fc5caab64af64908cbedace4277b1d
MD5 7a2f6dfe6d6ace33cdd857e5dbad95b5
BLAKE2b-256 3d041ecb17e5ac0f282a09086ba14e22dc844455ae08a72772d2221bee696b55

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 c655a6b079d6d8e8f75e8ae75fa168d1c366c2e299d81f44a1c55e2024ef11db
MD5 db84642dfe343de5f7ff11e7f94f0bf8
BLAKE2b-256 e31189b7b6567811de51a5fe967d2ebd1b23a94a7e69d352be895488e37ad456

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41298ea8c104a0458480ee642bcc1d4d92a9623dc501202407bf2e2052e7d3e0
MD5 3ef037dae58867b89aa5e31010e41f72
BLAKE2b-256 cb4035283c3ca444d701d070c1f8617303a2f51643bbcfef179f970ece6d54c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5734596f52856334dc86f0df5647d3c83b47892655a7f0df1fbbb7cc74485b4a
MD5 9ed42f25cb8def15669c2b170836c904
BLAKE2b-256 d05dd83978db2e641d68179dd63e2fa5d2e401d28f304629aa67978ed7fa8feb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 110cded172f2ec51490f4539baff723a071afb2e942c14b7357d6c674c222faf
MD5 426a9fd827ecab169e3e957d24c89022
BLAKE2b-256 32ea3e496f140489635edb13ac1a5c7f57f765809f4ac29ded661269119e1998

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3c6e0c1c487163fdb3581432887752d4f4d45e31920a8380b930c669c72ca880
MD5 8f207d0714967eda3ce75f75d223d581
BLAKE2b-256 8b0c91a3d09e186b0e2838fca7f8a638bfbc039bb605b565be1d450fdb5701ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 aebc48a57b4eed34704aeabbee4c1f6e4913f2ca3eef43d2f778485eeaff6697
MD5 9e3148fd4481aa6bcf4587d33ef457a6
BLAKE2b-256 8dfc61c39c390babf5afd51e41b9ee905e235272866ec5c658490544e15adc6a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d5475e116220dedc5d23809fa5ecabacd6d228827e0c9f1c088522e973cf1e93
MD5 52f61753cbc7aa2ce4b433fa66b666e7
BLAKE2b-256 6c2172d186a203a7b18a1e181e50ca2d5bc90e94168c246f667d898bf3f4ccb0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.18-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.18-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 3c6a4b4f2ad7aa7c3d92a308fb4f4e319a295da76d8afe5552b66a7f0eae792b
MD5 6311c57039bac3540a90b7eb57d5ee3a
BLAKE2b-256 bacac2f3cdc99cf57899e6e6fe05fe02b912da4028a62370d7460adfc60de307

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e0bbd5164928b80c21381cfeda0010a7e8d4c9582e893b447e1637dec6fea86
MD5 8623817b3ea3494c162d11a3b08990a4
BLAKE2b-256 8698cbe5ca44230159a29757270bda71d394ef83eb8d49d349cb1b7b2e2a53e1

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