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.1.2.tar.gz (62.5 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.1.2-cp312-cp312-win_amd64.whl (484.9 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.1.2-cp312-cp312-win32.whl (443.8 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl (724.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (722.4 kB view details)

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

yearn_treasury-0.1.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (750.2 kB view details)

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

yearn_treasury-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (463.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.1.2-cp311-cp311-win_amd64.whl (483.6 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.1.2-cp311-cp311-win32.whl (440.6 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.2-cp311-cp311-musllinux_1_2_x86_64.whl (704.7 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (690.8 kB view details)

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

yearn_treasury-0.1.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (701.6 kB view details)

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

yearn_treasury-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (464.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.1.2-cp310-cp310-win_amd64.whl (484.1 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.1.2-cp310-cp310-win32.whl (441.7 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.2-cp310-cp310-musllinux_1_2_x86_64.whl (723.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (709.3 kB view details)

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

yearn_treasury-0.1.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (719.9 kB view details)

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

yearn_treasury-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (471.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.2.tar.gz
  • Upload date:
  • Size: 62.5 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.1.2.tar.gz
Algorithm Hash digest
SHA256 739dac1e058bbcd79afc01a47c7b3a62159fe68e1c88bd091246a46bcbdc424e
MD5 92c6d3a7070393b5f42688efadcaccb4
BLAKE2b-256 86d4071967c182fc0d8ae6b9568ba718e41702e8868ab257b6394ea4cfa41d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b32049a74620174f94a909e5698d49cfbf5f97b0cc7bb084c6676dda593a720
MD5 6b5df1da5d73b71859b8b39716565f5e
BLAKE2b-256 2988d664a453f74e15265867341d4925b184335a8b538e48be2f4628b57febd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.2-cp312-cp312-win32.whl
  • Upload date:
  • Size: 443.8 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d2c55505fe1abb26da561e9ec8819f380d977b9463e3a9128c2d73996e7f8ba4
MD5 349d46c91b624162a6447a88cc0144d4
BLAKE2b-256 afce88a799c0f7efb1033cb33adb39219ff00d2847437612f1812061d2fa9988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 684643df88cd1b61347efd56ee31110b31cbad6e2f129cdbcc645e0373129bd9
MD5 5d5034e36b919c89b8fb54cd78738aec
BLAKE2b-256 f0dbb80ebf01f4bf80a2397b025a69fe62221bcc5d7bea0f909ab8f2c31a1fec

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.2-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.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ede0c03534c19912d5a37e215864851ae0655fb27f96bdc3bc9052a808c17dd1
MD5 ef8f47e1efc00eebcdc086415546c5b7
BLAKE2b-256 5c7afe3b770b845fa9c9e122b2984df1849a0dc9c4cd7664f6fdb0bf4003be03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 c62485f6ac300b9241d9e1bbcce85c075acfe5d0ee37bd52370b3a0be5584571
MD5 f55bc4ce49bf0aa913aa8df6118ad65d
BLAKE2b-256 9e4504af7c510299676fb0df8d0da731d4b14a39a42a7ab80ce7ae01cd31ce8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2e5c79d67befd4ef44509933b0b932bd0d73e748ee9a979158046153a83cdb5
MD5 dd799a1b4ef1002382be08f5ee10c7a6
BLAKE2b-256 c608d1fdbf28a7452e8d6a8a1a44ce3507a6d44a6867a06247e63305188432a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 76cbe5e9f6f8fa552006d27d82f26e561437cfa0dd686416d04176468fb5a7c8
MD5 c5abf7856e5790782a882936386abf61
BLAKE2b-256 6228ea188e067dd3e279849d8ea2e6cf3f11855a14081f23bdda9d34dfe1f220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.2-cp311-cp311-win32.whl
  • Upload date:
  • Size: 440.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 426da71aae4e117f8684f6d21905da21a87180cd253de012a067a6451dacaf62
MD5 68536cfd9557583fce8dcefdc459f7f1
BLAKE2b-256 5a4b3567af8795f8f6fe539ec8500980423a026bf4be23ad81a40ed056fb1a06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c91729778a29532b338635ffa3d3403e4f980a9d63c4ae615e033c9d49f70357
MD5 00690bef9cd211d871c2ee7a1c99cdf2
BLAKE2b-256 602d2a448c29dc4ff6896fa42969a7d2b7b1b8e44126ed0c17488f4555018dd3

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.2-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.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97d1203bc45305f8ee81df5208bcbe543a4a1604b11573df2bfd68c1a24b38b6
MD5 bed70525ce1bb240b9f4a7efcdb5a492
BLAKE2b-256 5fd830f2f680da595541157d1a753865d076cc4b4b9b871aad2288ed623e0f28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7ae8f75fbe81fe715fe56b1f078ae5d0843cce5825f73a1302ac0b18325aae12
MD5 7e1ee551cf73fe6bd222db24fc0d03b9
BLAKE2b-256 e64de390983f9a1fa6cc65f2904aef6d5c4ae37f51ff17f0926fb268cd076c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89fa348e95a7ade8a5cbeebbde6b8c30a2e60caa79730c0c4f6528586d8d2487
MD5 2d1c4a0b898895528e3681d186b1ade9
BLAKE2b-256 c21cf8e60a6c6e0a6881e27cd29e03ea3c4ac2d561d6355a448ceb949d696204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35d77ec034617d8225fd601a09dd07096c0f3f1c1a24e0316a2c93a5b960aaa6
MD5 54216ae41a3f2d5afb4b09e99a53155d
BLAKE2b-256 6a0c79c07fd62498559032653e72556b2fbed81d15f637c636989ab46aeea3a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.2-cp310-cp310-win32.whl
  • Upload date:
  • Size: 441.7 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for yearn_treasury-0.1.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4fc109d0026847cd365192315458b3c2eb5124800f9c53d546bdd7e169f2c01f
MD5 28ea5f808ac353d28560aa1656beb559
BLAKE2b-256 ce769f1d1bad63435d38428aedd6f565e58bbb3ed2f70273b311720e3ce8bdf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 07afa92a497bf5e695cffc1b4d0cc7f92d3e4d302596cecb833ad59399e52325
MD5 a8dc41038ea71cce02eb4ed83e6c7789
BLAKE2b-256 dc0131e673b071ec72e7c7528302eb590ecd0c805924ee2451ff0e4c3155a96c

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.2-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.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 656b606887ac22b8e5e4b0562296fed0f429bf9c28f7289130d607ca5e25f6cb
MD5 4ee4bbf2aa341bdb89b017137f4406cb
BLAKE2b-256 6080ba7e51d043143b1dd78edba7d481aa5ce243a95dd83729ae887749b03e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 76fc028c1e5c6d6e6f08a1d87b4da9d54ec471e77a76753ca611c9b08e4c8663
MD5 e8f06b669f0efc8cebd0ffd21f5158cd
BLAKE2b-256 c273720efbd362de32adf91de964328a79c35f0bd50fff177fe42d6356162f2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b66cb5c073aeca8081bfd22d0a3233dca254c1f8757a82d203d77e4069125af
MD5 8f78fcb1f50672dd5370b4b7d0fc0fe8
BLAKE2b-256 d29113ca6267ac39a6d361d7429b8b3b81491cd1a030b7bfdbc4fa8487cca256

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