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.45.tar.gz (62.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.45-cp312-cp312-win_amd64.whl (484.4 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.45-cp312-cp312-win32.whl (443.3 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.45-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.45-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (721.9 kB view details)

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

yearn_treasury-0.0.45-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (752.6 kB view details)

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

yearn_treasury-0.0.45-cp312-cp312-macosx_11_0_arm64.whl (462.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.45-cp311-cp311-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.45-cp311-cp311-win32.whl (439.9 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.45-cp311-cp311-musllinux_1_2_x86_64.whl (704.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.45-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.3 kB view details)

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

yearn_treasury-0.0.45-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (702.3 kB view details)

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

yearn_treasury-0.0.45-cp311-cp311-macosx_11_0_arm64.whl (463.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.45-cp310-cp310-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.45-cp310-cp310-win32.whl (441.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.45-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.0.45-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (708.7 kB view details)

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

yearn_treasury-0.0.45-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.0.45-cp310-cp310-macosx_11_0_arm64.whl (470.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.45.tar.gz
  • Upload date:
  • Size: 62.3 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.45.tar.gz
Algorithm Hash digest
SHA256 8a35a48c247fbd1f461983ac4043ffedd8e4be7c103f70b0e03f577cad211c43
MD5 b60815025af3c9696b55163cd29fc5ea
BLAKE2b-256 15ef04063e56230e9109221f828a41b9ff23fad2095a58bac45c95f7040150af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c06f1a8c05447aa6a698bcc571d1d7aa73ae5e75f75779dc8983e7575817d874
MD5 a7311c5533145f1fd4166a3a3dc6ebc6
BLAKE2b-256 dfcb0c54833dc0ff4336107c2bca01418748829eeefc43c34425cb2177536d0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 33b106a9293a049fe4f0ccb3fc6fdaa79b9f3d8bd72f4a09551aa6047ed3862c
MD5 8bae3d9f93533e163493f63446fa97d9
BLAKE2b-256 2bad008684406bda13bf5c9f2d38cc4e60c1996b4e324ed4afd22bac98dcc487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e14f8a79f8707bec194e917ad05bb6c86beca3f47f384beb020439214c93bed4
MD5 a966a48d9b448e8879e6afeb7e2476af
BLAKE2b-256 e5496c67ef7d0e0b89a45a99bcd962673c3876820a4d729cf728dec469b4244f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.45-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.45-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 baef0beed642470e98f70611ae0b4a892da8802e2e7786040f8f16b1b7b4f5cd
MD5 9cc66f5bea36851f9e7ee6ddc4d8cd82
BLAKE2b-256 98dc93a904a3343c305b0658adbce6d4df4336457ced622953cae5411ac134c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 bfe9b9e574b6c259b86aac04e979349b251386fd83509db819591e97e0c931fe
MD5 e004ead57fa6556d65ba6415485a9472
BLAKE2b-256 6e8b2b8f48427d236aa33ef35bfeeeedee767756bfba6573f3e05feef969c955

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c61938a4f1adff6f91aa7ce34c664cf9684868728b8123d7388763961166159
MD5 91a6e594dcc802aaccfc352e76dd2a01
BLAKE2b-256 620de6a07802495abba951af8fde8d2cb200939c48a2e7e2f25ada12443210d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c2623c2e00a9186173055e6a9e21b7ec06d0cc7999eb1ec493c560fe542bdf92
MD5 849d435fb9c5a1442ff2a9a9ec8640e7
BLAKE2b-256 ce8547bd8e7df00ed825b68616659adda21982ec0dd4bb24d223dcaa1a4dec30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 234ab0ed22f2782d7d588d5edb61d2824c90b10eb230865e966a2d477756fe13
MD5 9587843001cc6e2105d841f5f8bb54a4
BLAKE2b-256 a61a410db24eb301c476df46cf82f92496d9b2af1c621ee0711904a2fd3d1551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1085f63e0570995c5beac78fd23dcae40cbdb52dae970b6455bd085a82e284bc
MD5 eaee91ed9f8e53fbd28821ef219093dc
BLAKE2b-256 e670fb2aab3056426077050e1090b62eabfdb3d037ba816c90bead3c3e568be3

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.45-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.45-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 04c67808f6ceb8c88e26e0ce420e6a00ffb953b1acb218adeb980fcc92062344
MD5 4ea01a5b242bf4ec5817c7b3e61f06e0
BLAKE2b-256 c7be4de546a9482b3125c5c45ca43dbbb7e1cef3da2928c018b0514478eeb5bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 58077d017cdb28e2232ace0ce9f2351daeed825c1aff6082df1901589be8a8f4
MD5 bda24291baff2385fc2a2faddea47cd3
BLAKE2b-256 d4e6b15e23adefd94b28299c76d4293eaa96a71428beec8869ea75113a8c270e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e7a40d992be70860ae9da88b7397dcc6e69816a91ae3fd37eea13cb6247a04f
MD5 5f4a9720d05ed9278b64114ecfea825b
BLAKE2b-256 96bd01a4ad8d04012276b3a3791f22f9751643aee509b72a247b7951f91ef8de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59f35bd48e495f4fb7985327790474bb9cf968e834ffd04c1ecacf65f2a7937e
MD5 06a63ecb0a3e3decb95fec7b22b44561
BLAKE2b-256 cd91efcbc480a9d2779a8d408ea9873eaf0819dae5942d5501574826bf7993c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 66e0f556ef3e33c131ac2c03bb4e798c1cbefe2be31c6f44f2374417259509cc
MD5 7191abf65cb83f80290c9f2e60334735
BLAKE2b-256 dd7cea18ff5942c3f479766278937e7ad0eb87b9b80f13b8e96a93ab220553fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dfd9de9530c3865b377bc7ce162f2ea25075550201436b641345f6c12a674a0a
MD5 72465205c32de2bfa9f5dad8e9bf78af
BLAKE2b-256 e407da6ccd4f5c75e49cc224553f2b0ff834aa522eee283c2f163d3c242c89df

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.45-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.45-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b59eca4473d538ea92c0836bd9cf9f5cffcbe6fefe45fdbdcbf1d302c0bd384
MD5 bd1505f5d22e6b1bf98f1669dcede51b
BLAKE2b-256 cb6848274adc6cbf7537c09083af00b024ea0cc2b8d596f014b4c014cbea290f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 71986c135d63008325e4493c06cf55b2a0828e6c92a80ac33f6d217e9c2d329d
MD5 16bce721f3e89e6d0c102f450471c92b
BLAKE2b-256 19bac00c19cc6f3efb15700041234448d60fa807bf1fd7c212a3786448863f74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.45-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 111e223c5137c7cfd062a5a891e877493128fff39416bf0c745804b337c8f94e
MD5 35dedff3866f4df36bd6733377143efc
BLAKE2b-256 9665d267428d7db9e8774f5a78af34b311324fea53b8a1873fbec99364edf458

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