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.22.tar.gz (53.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.22-cp312-cp312-win_amd64.whl (490.3 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.22-cp312-cp312-win32.whl (443.7 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.22-cp312-cp312-musllinux_1_2_x86_64.whl (747.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.22-cp312-cp312-musllinux_1_2_i686.whl (781.9 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.22-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (747.2 kB view details)

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

yearn_treasury-0.0.22-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (785.3 kB view details)

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

yearn_treasury-0.0.22-cp312-cp312-macosx_11_0_arm64.whl (393.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.22-cp311-cp311-win_amd64.whl (485.6 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.22-cp311-cp311-win32.whl (438.0 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.22-cp311-cp311-musllinux_1_2_x86_64.whl (731.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.22-cp311-cp311-musllinux_1_2_i686.whl (745.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.22-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (717.1 kB view details)

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

yearn_treasury-0.0.22-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (730.7 kB view details)

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

yearn_treasury-0.0.22-cp311-cp311-macosx_11_0_arm64.whl (392.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.22-cp310-cp310-win_amd64.whl (486.1 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.22-cp310-cp310-win32.whl (438.6 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.22-cp310-cp310-musllinux_1_2_x86_64.whl (745.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.22-cp310-cp310-musllinux_1_2_i686.whl (763.4 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.22-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (732.6 kB view details)

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

yearn_treasury-0.0.22-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (745.5 kB view details)

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

yearn_treasury-0.0.22-cp310-cp310-macosx_11_0_arm64.whl (399.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.22.tar.gz
  • Upload date:
  • Size: 53.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.22.tar.gz
Algorithm Hash digest
SHA256 879a5941ca388beb446cecd4e4fe1f314f0a9f1fd07921ee2d5f21237b97cb6c
MD5 b1ce4dabf50ecb016da541a95e06365c
BLAKE2b-256 efe21fb9a5da77356ef682de3a8f5d695c44ed38ee624eaca7117c647bfdd694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0b0b41555e9e6672183ff42c08a0bbdd28281103d6bd0110f87b59f5688e560b
MD5 783041870ab5972a71791c2b4a2ca0a5
BLAKE2b-256 215313833a34add752b7774ee7de14f3b28a56e72b6515c1aa5e0a3700531b08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 27c17471e8c37b2e81f0954ff82ec2bab5a7e95085df827d4a33f69ad4ba11dd
MD5 01b267f283efd9b4455de105ed8074f0
BLAKE2b-256 1c09bda0097f9951f00e9336e4d20b2caf467d50ea9b0164db2e11144c5f1f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 583723593d4c4fb4bacc00950ecf0c6d7e262d166038b0bad2a749c826c78258
MD5 41608c732500fb95dd88059f759de76b
BLAKE2b-256 5b0a7233932550aed754a697cc69fb779a99c6d22020d3841776e056782bc6bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e004ce847202bafd23fa4225b0629b0182125d1b26a2fadd9c5f3d650e38df58
MD5 e8c31a2347ce65682c128db304539741
BLAKE2b-256 62d2dfbf0c13295a9672fa869b3282fedc371897e6b209267353b2b1d5cda218

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 95158c4d6a136933a346bec902760f6f0a68a0b9bd7b5ad9a9927274d697720f
MD5 3f721706e3941ee56a8535183016945e
BLAKE2b-256 55d54ef478fb8b5f14a01f087640dc4ae45b308687da962154f25c88525e7936

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 36ca3f2a1a5347acbbf12fc01c0a543a44239fea8143c2f044f845061624a395
MD5 6089a983367f79ecba619e4fbbe6b651
BLAKE2b-256 8f6d9b73b2255840c73537d849a745be4f99b72f5f88d4b84e150e664855c8ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51888f3bd0f935f3ac4eb8d03cdccc817c2d36a6c2ad76c4bf3353d80cac953d
MD5 2d201f3634adaa744713e8e9e506742b
BLAKE2b-256 7474a246fc93f8aa547fa194f6867189b35b2dbc93c6a6cecb7de529efc91749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd2799cbedaf2bd5c37bd55f7005e7311e2ffb25c15161a73cd40acf9a7bb9e0
MD5 61a839102f462fc2f9da87ef378992bc
BLAKE2b-256 410f9af0facf48cd66a233cc22625cca17c53aa8f83e4dfc814c3211f571069a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 950b73c181789cd9885ee9a7a95f46f7fcbca4318868a7a0715eb67cc8174484
MD5 f02f18e1fcea6c1fbdf612a502dc096d
BLAKE2b-256 926c8d5b6dfa5fb6f851b23503403e12c2bc63b1aa8ea890bb1c98d1ef3d515c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4e2cdba10fe13925b85ef026efc4860af251c62ea40f1b5543ace3cc1f09a18d
MD5 6fab3830abbb46ebbb9e5df8bc39dd53
BLAKE2b-256 9ff0771b3ee9770b3b92a173f163713dadead698ad138b382ca7b5d1fe97b6e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 aaf4046ff0dd3659c810bca25805bd7059b97677fdf5864d09bbf0f866e851df
MD5 02d99262edaa8abcf204b692b3e306fa
BLAKE2b-256 362ad7a5edb1c586cf6be4942b3509bb535242388a3a12fe3404db0a60595e34

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c85f6937d08f8edeb368071a278a1194c9c1764c5c06727ae1db0124eb0872cf
MD5 b8324126d6fb9bc044345311085906a1
BLAKE2b-256 8fb9d8511067f19e7a27ee946b7363ba18bb32c731487fe9ea97a1b2f94709a9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a9c1c2789ab6f724e4783cb1b433d117912e1d7ce6c7aac2852e292aa89e66ce
MD5 0f321cec696fa14a7c6ea39ca64fe4d7
BLAKE2b-256 0693120d2c7f7417c6f73cf4bb5f53423ecfe55f7c863d20915b85b0071d7041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b52c9cf985a98a3c481f1fb56b379bf2fb1a11da887da342a00a2e697212134c
MD5 b811e2a6c323743934ff762db9d90899
BLAKE2b-256 2e86768caaaee154ee0ab9f0aba273175d66c850dc36a13fbbb91ff1cc74c88d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 699a9d2ed876b864eea30aef183a72da9cad5af19375d83101dd62496e0de6f2
MD5 bb16030636d65a93c75d708408074bb6
BLAKE2b-256 cf947405d0d7ee9f440ebb335cf8fb6498e113a453a166fe1f53ead541fb7c6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cc123c4c39f9b572d8a22cdd6ffbf775fa7f77d1b9aca7a6c6b74e47520600d0
MD5 ad4d2c33af5b4b520ab20a7dd9e4022f
BLAKE2b-256 2510c5943a797ae9666825fdc8de83a91545d94c933b32b9c5d25f8b7cc07c2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a1028a1d80ea168f3ce3920a4e4ebd1ce4fc9e554fc42fcdccc4911828a2248b
MD5 e3532ba28f4787240f9920137ba9b237
BLAKE2b-256 779fad59bf6aaf9f2dbef684ef6c8dfc1d4369a7d3bb2ee177ec91098d041d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 4e95fd581dec231eb61b87489730c7887217ab8bf2558314602c44686b7f9541
MD5 9c59f68766082959843a517fa0746f96
BLAKE2b-256 45edd5a33e1aea4b1ed1897e020ddb5d13db5159651e5c7d2f8d0761338052b2

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3c0fb16ca90a3fb1396cb0d4ead63c078f4e72f94797414ec91d67818e1aae2
MD5 3c5ac96cf85b2d914623f00df1fb4d35
BLAKE2b-256 5594ce830300399a66bfab78f77604447a11faab1b4c4c5c0fa058be71c8875d

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.22-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.22-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 944e197f13e8af1d327107fb82d36110bca3f7318586b400c321fe37e284b3d1
MD5 c5a2b7f33471f0249fda2513eb8e0169
BLAKE2b-256 657b9963b8ff8a63bba9965dac9bb240173e94745a5bb68f83e1ec01f4eb5b46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.22-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfddb7d5a92e4e82d7e440df85ee986cd0ab81bad9e22154e05f1026fae95ea6
MD5 78cb154c76fbaf821a9596f5b8b2b20b
BLAKE2b-256 99217179f1feed4b92ce18171637555253e430e370caf0801b20aa7c334ac446

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