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.0.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.0-cp312-cp312-win_amd64.whl (484.9 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

yearn_treasury-0.1.0-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.0-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.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (463.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

yearn_treasury-0.1.0-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.0-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.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (464.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

yearn_treasury-0.1.0-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.0-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.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: yearn_treasury-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3f5774cc8041498280efa75dcf2a7498d0bc7088c8f245557b3bb0e50706c028
MD5 8559e500fb6d5e3923667dfdb1b96917
BLAKE2b-256 8c39354d6cb9743d329bc8e58ffcbc2bc3cd84d9512c62ccacf52d71b224b46c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6acb30a7a8301188a10646252e3e25184b264e00c39d86c036e36e5c58b6a788
MD5 aa423187ed2f7c20d015412ac1e688e1
BLAKE2b-256 a2032f4a10a959692b9001d45e8ac6a49256df3438f7962abc1dfc6b2bf325ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.0-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.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0949354583024f111196591e4f7a5cefbe1900cf14e4fecbfd328e48ad9d6f6f
MD5 c93ce0443d0e71cc8aeb956eb2ab9cf7
BLAKE2b-256 b1733a5787c19146201fc64ac0cb90c1e577ae9442bd314e5c61ec8c4bd7d695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 046b1ef01df93954315f203bdb32bbaec3891485e8146cde438a280fb903a9be
MD5 c45344292606e9ec78c98ad6856e1d91
BLAKE2b-256 b6adacd33ff77082f178cfabdceadda4285628b644403455fefec174e6573d2a

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.0-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.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 38fcc850d5d6ee7940a4330193f80bc54249c566a395be130008d4df8a8a404f
MD5 a9d5018dbad348b4d1b0b1ff9d2d4f96
BLAKE2b-256 54acb83fafca6321c359fec0f5c45d49f007a433b06bcf165002feb4623c5aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 65eae1e347b4647ea1d8b9d5852685974ae1e4f3b2f6c9d30fc3b4140a4004bf
MD5 49a9112e13326aea0f2ed1a34c0d48bb
BLAKE2b-256 bdbefb74f87613cbfdea93d2904501ced455b48b109268c9dceb73f96b8699b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cd892757730fce451018f79fa532a207b913341371b2c6ff2def418169ec5f6
MD5 6b487a71f0da9174b946663765ff1c56
BLAKE2b-256 b953e05d9909361d68cfc2798383b94ac157a2c41e29608fb47eb04399d3843a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db09fc8d337515ba85ad22bb2b865867d2aea5fcaa810f988db3252891db06a4
MD5 19ce5ae3d8916568aa9f5eeca94f72dc
BLAKE2b-256 5a1ce649ccc87fc30f775138294597c8dd0dad094d980b0f777af15acc80719d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.0-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.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5fc1f6f23369fb9c6ff27329c43bf487b1489cf53695a48bb93c3965a7307251
MD5 186706214e26b51da2ef6ebd1031df9d
BLAKE2b-256 40d427d82232581b7bfd0daf54be0160179a119931a4dc6a4d56fae74546971c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d8e11e9945c2a3c62b494183033c7922e82dcc3d7fe4727125c6e066757df87b
MD5 a35c8c3b96e07060879004cfb1169a74
BLAKE2b-256 afb47d5d11049b34d70bd8bea2e5cea51c4ea51951147824aaf9e34a308bb9b7

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.0-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.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a8546249a9e14cd6889d2662493332e3faafa0ebd5125c896d10828f2e14b60
MD5 0204f670fff92ce54b69e6ec843f94fc
BLAKE2b-256 fa82c1368a6102ece41ae624316d650e4e7d8638fb9acc70f814f81bda017a3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 dd7906a34b056dc2094ef7c65398ed938340add1e0daa9faf3803a9b9a54370c
MD5 310dd16aa82902f2eee0c7987c11eab2
BLAKE2b-256 59bbfdaefdd8a3c131baefad1c6c9be6782f7069417995a7c29419f9a0e87394

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59b526777f8f8387bdd6a65e96ea25d3e2494f239cb1a084bfb0ae2820bafda0
MD5 4fa24b0bafdbecc8f4a9144709ddb07f
BLAKE2b-256 d9fb9e75d664bb16092972d5ca0c7841db3ddd5a5a4c9026efcd1d0cb008cfcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 54a30f48c046cdab8195610ad8df08ea33e7a92814d086715fc59f35f2b119f4
MD5 362bb6657bd784b3fb7facddeaeb8262
BLAKE2b-256 08f00d79cc84e64a13bd19df3dc141450884fde01d462e3f17cb536a578e1c53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yearn_treasury-0.1.0-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.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 25a96b3daa6c8e078a563b5d55c86654484137a2b80c81c93b501b787bc73c70
MD5 ae4d86d00375496c108629d498642727
BLAKE2b-256 dae4ac19b3e77d7f3e1afb1ef744af466cf31679f63e15d3f170b2f5bfad9f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4e104fee046c8505bccb15edbe00eed1b8585a923dbd4fb392865890c6f418b3
MD5 1daa1ef57f766ef40bc39cbff7fb4745
BLAKE2b-256 95390ffd9b8748082c7e603090b1384a507983635f586c62bb89f8b5c2992454

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.1.0-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.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcc5f1a7505bcc9b6e3f02548004c255b977778c5cfcde8aa4e91bb8bcc0ba30
MD5 cb9df18aa8658742c8cff88a8d95b8a6
BLAKE2b-256 2612926280be3067df7cf9fbb5c0a898d6199201a1a9bd5723e9509188958117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 956b400137dd4bcd7b5710d01c901be6068e20794080928a2dfe5253d08cce36
MD5 7fc077084585db7327432d364b5ffe89
BLAKE2b-256 c5c8eadca45b8217a3af83752e7281f52e52aab4ce8f3a714ed99259e6a06fc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7abd72a87537a5e0981c9225fa5e937c83234c90a5565334760467b91992e5a
MD5 af5ec13258cae11040b6f581ab01424a
BLAKE2b-256 b5c6df3d5a5d99b685580ba69f892d06b79e1a2cecd001e1b8a82a14e24e2776

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