Skip to content

Yearn Strategy Smart Contract for interact with Yearn Vaults using NodeJs and Truffle.

License

Notifications You must be signed in to change notification settings

freitasgouvea/yearn-strategy-js

 
 

Repository files navigation

Yearn Strategy JS (Truffle and Javascript)

!!! UNDER DEVELOPMENT !!!!

Yearn Strategy Smart Contract for interact with Yearn Vaults using NodeJs and Truffle.

This project was forked from https://github.com/yearn/brownie-strategy-mix (brownie-python)

What's new?

Now you can run, edit and deploy your yearn strategy with Truffle and NodeJs.

Requeriments to run this repositorie with Truffle

Usage

Clone or donwload this repositorie.

Go to path and run on terminal:

npm install

After running, all dependecies will be downloaded.

Compile contracts

truffle compile

After running, contract information — including ABI — will be available at the build/contracts/ directory.

Run tests on Truffle

You can run tests which can be found in the test directory /test runing on terminal:

truffle test

Or run tests within a specific file:

truffle test <file_path>

Run migration and deploy contracts

Create .env file on root with:

MNENOMIC = // Your metamask's recovery words
INFURA_API_KEY = // Your Infura API Key after its registration
VAULT = "Yearn Vault Address"

Run migrate command, you can see the networks names and cingurations at truffle-config.js

truffle migrate --network <network_name>

Contract address and transaction ID will be shown on screen.

Original Repository

  • Yearn Brownie Strategy Mix Github

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 79.3%
  • Python 16.9%
  • JavaScript 3.8%