0.1.22 • Published 2 years ago

@gyrostable/core v0.1.22

Weekly downloads
17
License
MIT
Repository
-
Last release
2 years ago

Gyroscope core

This repository contains the core contracts and logic for Gyro reserves: https://gyro.finance

The documentation here is intended for contributors to this repository. For the general Gyro documentation, please visit https://docs.gyro.finance

Initial setup

First, install the dependencies and compile using

yarn install
yarn build

and for development purposes, link the package using

yarn link

Running a node

Start a node

yarn run-node

This will print the accounts, including their private keys. The first account holds many different tokens so we recommend importing this account to MetaMask using its private key.

Then, in another terminal, deploy the contracts, export information and compile everything using

yarn build:full

At this stage, the SDK should work properly, try running the tests following the instructions at: https://github.com/stablecoin-labs/gyro-sdk

Deploying to Kovan

yarn hardhat --network kovan deploy
yarn hardhat --network kovan run scripts/bind-pools.ts # bind balancer pools
yarn hardhat --network kovan run scripts/sync-prices.ts # set oracle prices
yarn hardhat --network kovan run scripts/setup-fund.ts # setup Gyro Fund

Running tests

The tests are written using Brownie.

Brownie needs to be installed first, using pip install eth-brownie

Tests can then be ran using

brownie test

Verifying source code

Run the following command

npx hardhat --network kovan etherscan-verify --api-key API_KEY --force-license --license MIT

The API_KEY can be generated from Etherscan: https://etherscan.io/myapikey

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.19

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago