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.26.tar.gz (55.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.26-cp312-cp312-win_amd64.whl (439.2 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.26-cp312-cp312-win32.whl (399.3 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.26-cp312-cp312-musllinux_1_2_x86_64.whl (642.0 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.26-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (639.5 kB view details)

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

yearn_treasury-0.0.26-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (664.6 kB view details)

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

yearn_treasury-0.0.26-cp312-cp312-macosx_11_0_arm64.whl (346.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.26-cp311-cp311-win_amd64.whl (437.4 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.26-cp311-cp311-win32.whl (397.5 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.26-cp311-cp311-musllinux_1_2_x86_64.whl (630.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.26-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (617.1 kB view details)

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

yearn_treasury-0.0.26-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (622.6 kB view details)

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

yearn_treasury-0.0.26-cp311-cp311-macosx_11_0_arm64.whl (346.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.26-cp310-cp310-win_amd64.whl (437.8 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.26-cp310-cp310-win32.whl (398.4 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.26-cp310-cp310-musllinux_1_2_x86_64.whl (645.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.26-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (632.7 kB view details)

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

yearn_treasury-0.0.26-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (638.2 kB view details)

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

yearn_treasury-0.0.26-cp310-cp310-macosx_11_0_arm64.whl (351.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.26.tar.gz
  • Upload date:
  • Size: 55.4 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.26.tar.gz
Algorithm Hash digest
SHA256 38ff91051f54e812e6dd0d0e2b687a5b3ddd95e9aa5fcfe867fc2885d6a8a681
MD5 6c1815074babf37e3277dcfbb0a9c1bd
BLAKE2b-256 74ec15675e4e446814cb47220cc4603b0d5d1215543d2d97593059b60d8f5b2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 37e741ed4f1942ff1600dd33a6f1eed699b8a1a8e7c8083300ee38cfab077a10
MD5 b3e2c606c075a911c63ee49ba0f26c54
BLAKE2b-256 26e4ae3e15828da4ad96c34eb3e324821d3a0e015e4e7280230d4aa3080cd33c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 778d5b1623afe291559191147a1892958069e8d79d8f8212465a4bd14b84f03c
MD5 21fd15455e4c7baf02697d59f98a0848
BLAKE2b-256 62fee5eda6bd5ba57b252aa15618837fa572ac97a9871ad6f6e04bdaa46dbfaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5b3c8f10f04d79882d99368ea58b7e7795ab17bff86ab5fd2e5898473b9e4203
MD5 2831acae44e5372431c4678e75f54c47
BLAKE2b-256 79b51e3cc37be15c2f829146cc871f08d63b2179ae347fa29bb2b99993d6ddb0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.26-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.26-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd66b3ff8bd327d1f47be882d447497d88e52ef029dfd69a67a92f1d5f7107dc
MD5 a851a6568b901a8381661e80efcc2843
BLAKE2b-256 ebfd9f8027350a9a09184a5b49e3f8fc378d1c733b7294fd5c5b9a5730fd17b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 3ad52a21861a0f1ceb8871f80b233910806280aecaab26d2b2b5eec18e272736
MD5 b33b4022cb2ffbe4cef243c66fb043f6
BLAKE2b-256 224f7a02ec628cb61b3feff89277660cf6b852938bba26372cdc023da6aaf780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65fb284a4a5249fbd5727426c35efcedf310fd9eca133a1b55d505301d8e27ad
MD5 541221ffc9f7ea1e9509eb2c807d5654
BLAKE2b-256 bd69baf9a973330587ca2d9db467a422328b029d72e219af9a251dabc36359f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00d8c2f47e0eeb092a955957eab723a137e09b7086dcae1e8ac3c74da6ce53e1
MD5 dfa2a530a14a506065459d4bdbb5ab30
BLAKE2b-256 cc31741a5e8ed93b216932b9f7a482a2bde776f1621603dcd5d72c428aace6c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a385974400bd29b9ed95c57b42876bcbac29f6e1cf1d8fdd14dcb0ceae0be928
MD5 374f0eee70bb4db899c81815c349d8ad
BLAKE2b-256 1ea5a4521fe5c8b695b7f5c7caa54e86050913a6b6aaf70df3fa1a4f914201c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cb2c0606e9b05863496f9041e31e97127b090b2858c69ccf2cf59c841e736a2e
MD5 51d2a6dddcf2945d8c5e8586b2c5039f
BLAKE2b-256 e42d58253e099458c733ab1d957d00b3c4a7fbfb1d42c92692c2d7e963f234e8

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.26-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.26-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 925c71d8c33ddc8803e726c743dc1a5d16a071fc28444c4181fde1c7ed962255
MD5 7af1c5614086770a985d0a5297d2fe05
BLAKE2b-256 ea5bce7997649a90da296eacce38fbd34fff7a523a727dfbc866c4bd7b409396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 51efcc5b2775dddb37c62558f3c1092fdf31b3d8816e477a78ba50fb4c3ef7d6
MD5 4747bf1971ef59e0dca3d91fd38e073f
BLAKE2b-256 22107ada9b55ddf944a004dad4cb26a78cb59af22bc6d82b2c0dd552b9e547ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7d21f5885507e8ac17be686c220f104750b5f3cd06fc0dc9fb610179b125087
MD5 1afa09d0d3523ed56c8f16a098a8b7da
BLAKE2b-256 a5505572b3720b6727e88bba228772221a4cdd387c8c6277aae9413bef561543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa4bc471d5cd506dafd330f12091e5563a7207ef42aa185e5aacc17e65e1319d
MD5 687c5624221a67bf99f865ff11d448c9
BLAKE2b-256 0bda02bfd2894964d6101c4fcb3392bf01ba8b63c9f237246cdc58e1caa75dce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6b4e8e0ea04bd9c040c1517d4edbbbdce1bf440f49a6e33e62c4228337ff6a55
MD5 865175d2f54c4fefb091f1e2a1ff078f
BLAKE2b-256 eee6dd2ccf69b34c12e8ab5ee143bc59ac1ef0f538510e3c2c1d691cdef6e1e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a751663a57c9ab8b97923fa30b91f04e50f8bfe2dfbea0ed03c243bb76ec930
MD5 75836af50f1a36ec48c8273690875e13
BLAKE2b-256 d58faf579a4755530499080a05035fe29f0fe962cdb9c8dc2c047105788a9ec9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.26-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.26-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c30ca51a52503cf4132e959a5e4f7eece1b1fc8fe91381746f6a9dc004b103d0
MD5 e41535629d44accee113b446f2195ac3
BLAKE2b-256 08ea175b6ab6aa8f00edd6fa13d0297664eef9d9e996263dc687ee062a70fde5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 3c79dd6c03ea97cd8308bb879b0d5b8add22c8175fc6960c5ba3df4ffd01adc9
MD5 e3ce8fbf0e14f11b4a53916339e5694b
BLAKE2b-256 6a06c0bb4d9942542a76c35fa7bc4f292bd5c9d61cac10fbd788cd9587a9ffe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.26-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 913a9caf7f80b9d002517c6c43de16467c3dad5d24419e466281753e09ed9d9b
MD5 cb406d1f72db25b338ab685c1b255e57
BLAKE2b-256 c5b91c8e4f94cda255c9af17eca6aa900d706f23c02a923468c77901569fca78

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