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.)
  • You must configure a brownie network to use your RPC.
  • 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 run --network mainnet --interval 12h

For local development (from source installation), use:

poetry run yearn-treasury run --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.17.tar.gz (38.7 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.17-cp312-cp312-win_amd64.whl (303.9 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.17-cp312-cp312-win32.whl (277.4 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.17-cp312-cp312-musllinux_1_2_x86_64.whl (442.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.17-cp312-cp312-musllinux_1_2_i686.whl (461.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

yearn_treasury-0.0.17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

yearn_treasury-0.0.17-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (459.2 kB view details)

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

yearn_treasury-0.0.17-cp312-cp312-macosx_11_0_arm64.whl (244.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.17-cp311-cp311-win_amd64.whl (302.8 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.17-cp311-cp311-win32.whl (276.0 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.17-cp311-cp311-musllinux_1_2_x86_64.whl (434.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.17-cp311-cp311-musllinux_1_2_i686.whl (443.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

yearn_treasury-0.0.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (429.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

yearn_treasury-0.0.17-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (432.1 kB view details)

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

yearn_treasury-0.0.17-cp311-cp311-macosx_11_0_arm64.whl (244.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.17-cp310-cp310-win_amd64.whl (303.2 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.17-cp310-cp310-win32.whl (276.3 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.17-cp310-cp310-musllinux_1_2_x86_64.whl (443.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.17-cp310-cp310-musllinux_1_2_i686.whl (454.7 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

yearn_treasury-0.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

yearn_treasury-0.0.17-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (443.7 kB view details)

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

yearn_treasury-0.0.17-cp310-cp310-macosx_11_0_arm64.whl (248.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.17.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for yearn_treasury-0.0.17.tar.gz
Algorithm Hash digest
SHA256 f4a7cae686b13ba4c9242eab3a140bb91bbd643fc980b25013273111814b02c1
MD5 b085239e89d36fc75268d99691839d41
BLAKE2b-256 4270b5f42e10fe33465cc75421fbca5bc2c5bbc13afa41122ec85a25ef2b0ae7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 59f124bb057981f79226d54a55f369951e01221a675e5b19b3ab0a68e3256838
MD5 5ef8a909f8a271cd931ba51ddb87d9c9
BLAKE2b-256 506db6c4ccb11d06f5e0c60a7030a8919079eeb1654f81ccec982a70e86ba29d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6dbe4deff7c21671ab3745eaf609fedc56eab4416656993f2e7202f168f252ed
MD5 6a814dcf043f3980eeb07d24ac490a2e
BLAKE2b-256 7219ca41f884c97c916432bcc532f9cf3950c007db8812e49f190c4637e3497d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97693327055b25e837f6a11532a5daed5465db47b14aeff6ea23bd8ea276a1df
MD5 b38ec224d9233c383cd3b7065ad5a6c0
BLAKE2b-256 c65431b73a9d75b1ba61a413dd73d8e77e9fedc4f9d048aa44ee2498b8f4f549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 b198a6cd881609a93fbf2882a8bd85bbc8bb7ddb57e3f0a6cdaef9e002fdbc88
MD5 35c4e7810eb494e912d14796ee5e86e6
BLAKE2b-256 559c4982d03910703b87f82cbab5b1706c677b7cc2739f970afe44e34f219e4f

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc5cc34ee4aaaa8bec3835236bc5a5a4276e37e140fe93af43fc93764c62607f
MD5 cac6b5ed8aee9b6b7e3f7f4581dbb570
BLAKE2b-256 dcf6de7be9e037c3fbb8862667b87ae30303ff315746edbe20b0f317e7b23bb0

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5de86fed44a97b6c8016b137538f439bb02f4afd3548b12f333ad8501825efa3
MD5 920c474fc86f0b3ab3889dbc5ae8b671
BLAKE2b-256 467fc00ccbb67ed69c1748750ea8d2d5d9f03846220ccfc7f8a205f428a66888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cc0626c595b69510e37c418014e9c10f3578444c2e77ea2cb01867b712d0827
MD5 fe8ca787d0870312c3fb6643107a35a9
BLAKE2b-256 3ef14be47abff3c1fe94e9325906aa49ded56b4d1ed788056958794604a8790a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 73d26c9ba8f3540e44aa9a6fefcb9b95802a5fbe94166d780af0e984bad067c8
MD5 f113087b2aeb20254261df8d43553a33
BLAKE2b-256 60af02686eb6cfb41f4264c0f972428879f428aa99be268095da61dec35e9e05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1f9e647de8927190c47c9dbabf7aef1191f460d6287539b53b52b35837508fa1
MD5 16e6717aab5c34d603b6714f22da4678
BLAKE2b-256 ccb6e96b148fd0980236bf7abb9d7ce3d4974b07bb085d8e51a19582eef165c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f55dfe787e4299fca8a088872fe645f283f78d2783f1a89ebbb4ec00da04181c
MD5 42f8ee6436579824cbb682a71dc6dc01
BLAKE2b-256 b73edb0bd5578af423c2aa3255fd47e9ec19e50b2b2bb60efb847d6071f3d738

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d6e11082a28b5f20695cf770ea3f033e62b3703b0c4a733aae9ccdee7d1a1054
MD5 d1a6974dc193bf49b2eb776f9bb43bca
BLAKE2b-256 455fb90c7dbf19c7f4f121c8a6edcea946eee03e792d80676064666bccd305ee

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cee0d3494d4a3674b16a749f2ef6d5d802a13865ad3675ec3918277efb12f9ea
MD5 b4af3c78948a9639d541090f138f0cdd
BLAKE2b-256 ae6337623ce682a497cb9da571b2e2e358b22f3bcb6d33597eec553e4dd9145c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 a8379f1d8c8acf836b7840ffb3939021fb5acba458c24e48769e38a5c63d6593
MD5 eab3dc035784a484cef9043fab267f5e
BLAKE2b-256 9b75b91de1708e13c66519d181930660ab65b76738e949c307c7f4b16b31d14c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db4bb1366108d08d358ec1c73466578f4b0684942799029ab5c0afec62e3ad5c
MD5 4f198c6ab35c83f8a715bf6e7808d063
BLAKE2b-256 5524f4eb14e828dc7a72916e779be0c0052221764d62f86a03ac5d6dbbb8182c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d0bc9f5e3f77aa435067c3a270355aa782ff2e7605d358407a87a74854f3b93
MD5 35d93fe62d64e5dd2ed544b03fa14d67
BLAKE2b-256 47ad57b4a26569622d7211d62d1ead179c86fa2ef97421e24a9f5ce5913cd485

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 778b050543b500d5f8a3520d65e3c58dfaf2ae6fa34432157d2f7ab99ef62d28
MD5 e17fcac91d1bced06ceaae98837a1608
BLAKE2b-256 b994eb9fe66822af6f2dd158b73253c8a12ac9ebc60aaf6001a3983946bcf562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4e8dda5887f2e5d66f7ab4881676a8b4858afb6e6e8f909143d4f6ea6a75c598
MD5 88bc49dc5353d95e2e5bde01f08898ba
BLAKE2b-256 704626995beeb47ecaa9c99e0fe62928bbab9f7b82da2f04114a7dd165de8373

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 6e0360195c08ebcdc6720a40520855db2d7f22738963b93e2617286ec3ece50b
MD5 ccb4f726f96f4d67cd884fd7c1d6b44c
BLAKE2b-256 3bf778807d55a5b01576d0e9612d1b5cf1660f32f2edb9d2ea2e053514e4f131

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cab1ca1eb41f86c8e23b55576937a259a6e54e89d3874860e1d4a664d231206
MD5 bf731e2e35f4c3c0d39fd4a2281b5d62
BLAKE2b-256 0faa6d9d24505e9b670a4b7824b1522ae29a10295cebb047e162455476f6978e

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.17-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 634df9344fa4bfcbaddc41aa2f993ee442cdc6d8248b6bda55266fe97ec91bb6
MD5 5a9a071d5f908cd8d9f4f69d2656078e
BLAKE2b-256 4ef5d0e21618d1054d659d2f6a447a66ff8c634157d1e05cc09fded8e6a58e01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 289070853ffaa348cea361954bec969ed7ddb3e14ca195ac1c270fb2c4ba7e95
MD5 cfd90057ebff6bde1c1cf520f8b6d6ba
BLAKE2b-256 7c6d73e706502611d3e0f2f8babb8a98ec338898d2049ddfa55f48bf7d35b945

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