npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@yield-protocol/environments-v2

v0.0.1

Published

Yield Environments v2

Downloads

1

Readme

External contract links:


Start a local environment: npx hardhat node

OPTIONAL: Start a mainnet forked env: npx hardhat node --fork https://eth-mainnet.alchemyapi.io/v2/1Ywbr_Hku2pWR5BTgV9hxyoGaDWX0AoF *currently a bit tempramental, use cautiously

then run the environment of choice, eg. npx hardhat run ./environments/development.ts --network localhost

then run the unit tests of choice, eg. npx hardhat test test/011_oracle.ts --network localhost

to add an asset as an ilk to an already deployed protocol (say, for instance, add WBTC as an ilk where DAI and USDC are already bases): npx hardhat --show-stack-traces --network localhost add --ilk 0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E 0xC9a43158891282A2B1475592D5719c001986Aaec DAI 0x1c85638e118b37167e9298c2268758e058DdfDA0 USDC where:

0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E is WBTC's address 0xC9a43158891282A2B1475592D5719c001986Aaec is the spot source for WBTC/DAI 0x1c85638e118b37167e9298c2268758e058DdfDA0 is the spot source for WBTC/USDC

to add an asset as a base to an already deployed protocol (say, for instance, add USDT as a base where DAI, USDC, ETH and TST are already assets): npx hardhat --show-stack-traces --network localhost add --base 0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E 1630919140 0xC9a43158891282A2B1475592D5719c001986Aaec 0x1c85638e118b37167e9298c2268758e058DdfDA0 0x367761085BF3C12e5DA2Df99AC6E1a824612b8fb DAI 0x4C2F7092C2aE51D986bEFEe378e50BD4dB99C901 USDC 0x7A9Ec1d04904907De0ED7b6839CcdD59c3716AC9 ETH 0x49fd2BE640DB2910c2fAb69bB8531Ab6E76127ff TST where:

0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E is USDT's address 1630919140 is the maturity for the series that will be created for USDT 0xC9a43158891282A2B1475592D5719c001986Aaec is the rate source for USDT 0x1c85638e118b37167e9298c2268758e058DdfDA0 is the chi source for USDT 0x367761085BF3C12e5DA2Df99AC6E1a824612b8fb is the spot source for USDT/DAI 0x4C2F7092C2aE51D986bEFEe378e50BD4dB99C901 is the spot source for USDT/USDC 0x7A9Ec1d04904907De0ED7b6839CcdD59c3716AC9 is the spot source for USDT/ETH