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

@yfi/yearn-protocol-nodejs

v0.3.0

Published

Reference version of the Yearn Protocol in NodeJS/Truffle

Downloads

4

Readme

yearn-nodejs specific

;

wrapper-ci.sh
revert_trace.sh
nodejs_install.sh
npm-wrapper.bash
truffle-config.js
package.json

Overview

Changes between this refernce and the offical yearn-protocol

@openzeppelin/contracts 3.1.0
@openzeppelin/contracts 2.5.1

Solidity Versions:
0.5.17
0.6.12

npm package.json

{
    "name": "yearn-protocol-ci-env-only",
    "description": "yearn protocol CI - NOT FOR PRODUCTION USAGE",
    "main": "truffle-config.js",
    "directories": {
        "test": "test"
    },
    "devDependencies": {
        "@commitlint/cli": "^11.0.0",
        "@commitlint/config-conventional": "^11.0.0",
        "apollo-ethereum": "0.1.1",
        "ethlint": "^1.2.5",
        "husky": "^4.3.0",
        "prettier": "^2.1.2",
        "prettier-plugin-solidity": "^1.0.0-alpha.59",
        "pretty-quick": "^3.0.2",
        "truffle": "^5.1.21",
        "@openzeppelin/test-environment": "^0.1.4",
        "@truffle/debug-utils": "^4.1.5",
        "@truffle/hdwallet-provider": "^1.0.35",
        "chai": "^4.2.0",
        "ganache-cli": "^6.9.1",
        "mocha": "^7.2.0",
        "solidity-coverage": "^0.7.5",
        "truffle-flattener": "^1.4.4"
    },
    "scripts": {
        "ganache": "ganache-cli",
        "coverage": "node --max-old-space-size=4096 ./node_modules/.bin/truffle run coverage --network development",
        "test": "truffle test",
        "lint:sol": "prettier --write \"contracts/**/*.sol\"  \"interfaces/**/*.sol\" --loglevel debug --plugin prettier-plugin-solidity",
        "lint": "pretty-quick --pattern '**/*.*(sol|json|md)' --verbose",
        "lint:check": "prettier --check **/*.sol **/*.json **/*.md",
        "lint:fix": "pretty-quick --pattern '**/*.*(sol|json|md)' --staged --verbose"
    },
    "husky": {
        "hooks": {
            "pre-commit": "yarn lint:fix",
            "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
        }
    },
    "dependencies": {
        "@openzeppelin/contracts": "^2.5.1"
    }
}

Yearn Protocol

GitHub license Lint Test

Yearn Protocol is a set of Ethereum Smart Contracts focused on creating a simple way to generate high risk-adjusted returns for depositors of various assets via best-in-class lending protocols, liquidity pools, and community-made yield farming strategies on Ethereum.

Before getting started with this repo, please read:

Requirements

To run the project you need:

  • Python 3.8 local development environment and Node.js 10.x development environment for Ganache.
  • Brownie local environment setup. See instructions: ETH Brownie.
  • Local env variables for Etherscan API and Infura (ETHERSCAN_TOKEN, WEB3_INFURA_PROJECT_ID).
  • Local Ganache environment installed with npm install -g [email protected].

Installation

To run the yearn protocol, pull the repository from GitHub and install its dependencies. You will need yarn installed.

git clone https://github.com/iearn-finance/yearn-protocol
cd yearn-protocol
yarn install --lock-file

Compile the Smart Contracts:

brownie compile

Tests

Run tests:

brownie test -s

Run tests with coverage:

brownie test -s --coverage

Formatting

Check linter rules for *.json and *.sol files:

yarn lint:check

Fix linter errors for *.json and *.sol files:

yarn lint:fix

Check linter rules for *.py files:

black . --check --config black-config.toml

Fix linter errors for *.py files:

black . --config black-config.toml

Security

For security concerns, please visit Bug Bounty.

Documentation

You can read more about yearn finance on our documentation webpage.

Discussion

For questions not covered in the docs, please visit our Discord server.