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.31.tar.gz (57.2 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.31-cp312-cp312-win_amd64.whl (414.6 kB view details)

Uploaded CPython 3.12Windows x86-64

yearn_treasury-0.0.31-cp312-cp312-win32.whl (380.3 kB view details)

Uploaded CPython 3.12Windows x86

yearn_treasury-0.0.31-cp312-cp312-musllinux_1_2_x86_64.whl (570.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.31-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (566.6 kB view details)

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

yearn_treasury-0.0.31-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (587.0 kB view details)

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

yearn_treasury-0.0.31-cp312-cp312-macosx_11_0_arm64.whl (371.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

yearn_treasury-0.0.31-cp311-cp311-win_amd64.whl (413.8 kB view details)

Uploaded CPython 3.11Windows x86-64

yearn_treasury-0.0.31-cp311-cp311-win32.whl (378.1 kB view details)

Uploaded CPython 3.11Windows x86

yearn_treasury-0.0.31-cp311-cp311-musllinux_1_2_x86_64.whl (558.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.31-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (546.0 kB view details)

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

yearn_treasury-0.0.31-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (552.4 kB view details)

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

yearn_treasury-0.0.31-cp311-cp311-macosx_11_0_arm64.whl (372.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

yearn_treasury-0.0.31-cp310-cp310-win_amd64.whl (414.3 kB view details)

Uploaded CPython 3.10Windows x86-64

yearn_treasury-0.0.31-cp310-cp310-win32.whl (379.2 kB view details)

Uploaded CPython 3.10Windows x86

yearn_treasury-0.0.31-cp310-cp310-musllinux_1_2_x86_64.whl (572.2 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

yearn_treasury-0.0.31-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (561.1 kB view details)

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

yearn_treasury-0.0.31-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (567.0 kB view details)

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

yearn_treasury-0.0.31-cp310-cp310-macosx_11_0_arm64.whl (378.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: yearn_treasury-0.0.31.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for yearn_treasury-0.0.31.tar.gz
Algorithm Hash digest
SHA256 92ad698ead61f607e147b10b5656f8f6382f92849e06ea3ed666b8e20feb2654
MD5 6c26f7c64558fcf2113035d919dfbe50
BLAKE2b-256 f641a5a079bb99c48e6eb0e6ca31a455a800d04c548839e36d05d8e353ee4590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 07acdb44c3b62d8678f97355012e7edadbdec0b582ce6799788717d22d29bba9
MD5 0023f829fee1a42c5776decccb2e9795
BLAKE2b-256 d15a2e7067d45b2224d92f8dbf580bed68b5eef3f15c2f62b7d08dec7d35b9ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eb098661f307d1bd6b554978ab5e94ce2129480a879bfe4aa0f1f439619e8333
MD5 6212783c54e9f3d874138bb13064fae9
BLAKE2b-256 206fc944beb7c29cb556ceece81c3a511564db12fb3f354303630ce3ed8eb134

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 92c8f1fc8ba702bf33283efbdff9087f2516733e4bea8a65c1567d27825277c5
MD5 0ce096c7f117b67109cc266744abf485
BLAKE2b-256 ed31ce8e09a9f3d559692d4d32ee2b46371a8d9095df37abd59f10322017dbca

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.31-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.31-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4bf07996762dde88f923e8dce76655434d6ee8074ba960d8c90f59f2570953e
MD5 c57e853b613540bd96896a7de2768eff
BLAKE2b-256 2d26e94c86f00a1ccf2b32de2c820afe46b07dc28858e84d542daef3e8da9980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 75456a3fd4e375e2caf3ce63ce33a7354dedfc67369bc604936318527b703964
MD5 aceb925c83933c1b4dd6d541d50fe72e
BLAKE2b-256 8d420587ee0e568d65abe2fd4452d8a9a08919d41c0531db0cb968fecbb57973

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4ea2479829ce96dbfdd9e8535c8c339f0bdf879509717792cd872a92a080efa
MD5 4575a07d23a676e11fda6f5cc26ec2b5
BLAKE2b-256 e9cf2eba8cc5a4d0a81b0f337c5739b80078e4aaa9d9ab45d5c4b951e172ffa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a11a0a10e7d527c8d0cf0abcbcf303c8404334bfb9582ba198fd26a22b7d28d
MD5 68676d5693feb6fc3f057c43a025abfa
BLAKE2b-256 f5b20b541b3a455307226b9a2068b5111075c813dbfdcec828e3a8080b67efa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cb65f49bf6120a60c9cbe6f0501648bf37c4932831e0694c14be30aab3cade0d
MD5 b11143dae1bab028ae399bc885263d90
BLAKE2b-256 f6776675e51dcc7f4ad727dd8193126fae1963bd614ea9e51bffdbc2d55e1130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b25ba466bee1a5d53d461cadb63546006875bb0cf1e9f69d30d159edd7f2e5c3
MD5 84d85c609a8dfda74dbe5423266b56ad
BLAKE2b-256 0dfc1927dfa3dc8d711296aeb9e20253e7b590d21469c1c520b8cbfdb9140b62

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.31-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.31-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 174ac27935e308acda5362d522de2fa34d05c49bbcf647ca73a8afe3584dada4
MD5 e9df9dd1ec8967f0231d5f314861155d
BLAKE2b-256 9bedbbc11d0af1d4407094f8c2ade8590c50f55c92e94b740dbfcfc1225dc2d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f867a1d33adf45fedf2bf4184e5c25bfe7afe95ac438a8e8cb5bb7f83968e7d2
MD5 82ba46ce2e13931a5a26769bbe1171d6
BLAKE2b-256 acc876cfe1e37c951a0bf0c37ec43db84dc7dedffd5477a995c8c5979806cadd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14efb459be10340913b7e8587295cb236c87bb895465675304a6b2a9b853e383
MD5 57b712158e5620588fc791feed82575c
BLAKE2b-256 f6d8518c7ee267bbf843ff491286efc2fe0cbdf7a27758cccc61ede470d118ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dc99d1ef3f7626eae1a0544f3c8e4791b9d41067f8ca45bb31518cdd609b3df4
MD5 14035fc538887c2ff95dfe914a73eccb
BLAKE2b-256 7e161750ea0a9bdf06e546563b6053babd43bdc5e639261bd3d864f47dca1b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1e781b7873a1d291b9a7c511829e2e7fdab5c2865a641cf98f96fa848cce316f
MD5 18572226efea03a26805eb780633d36f
BLAKE2b-256 a734a6beac30a6d4720004dbe86c80f3fc3fc9d3d9d0b40c7e478b7caaa8fa79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2063283f4bdce6a36732d98e6c2e3db061a268444c9ff9a33068e426142c5828
MD5 976caa15c17550136882e3eb5f6d828e
BLAKE2b-256 4b6d228d8a68eb0474a22ce4209b4eefaf6881bf31feaf54ab6999057e2095f9

See more details on using hashes here.

File details

Details for the file yearn_treasury-0.0.31-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.31-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6b72045687cb87c207d6982415bdfea8c38078b46f972dfc8ea2e8f835fb50b9
MD5 67912a6f0091f4204b4bb883001adfe6
BLAKE2b-256 dd5a5b9144026a820d41f768253abf438c06f78d26e85cc7b074a26a0a639845

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 654b0ce5fc7aefd62f07b01389b637c01eb477e603b53fb9b61bff3725c41c28
MD5 60465510d7c6e6b05eaa9dfe6680e739
BLAKE2b-256 5660cd77d46d68814149436f0458866c6bc9b671a568705b02b2da585c96a93c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yearn_treasury-0.0.31-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a69c0980c6b178135bb1d48a8a2ae48b32b882c9099298c73b55290bba40565d
MD5 463acfb3049e87974d05cc48d90a7f9d
BLAKE2b-256 6c2f6fd368e60830cfa306c73a49e90a720772d53ca9beecf1a536b2b4dca693

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