@gyrostable/core v0.1.22
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 buildand for development purposes, link the package using
yarn linkRunning a node
Start a node
yarn run-nodeThis 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:fullAt 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 FundRunning 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 testVerifying source code
Run the following command
npx hardhat --network kovan etherscan-verify --api-key API_KEY --force-license --license MITThe API_KEY can be generated from Etherscan: https://etherscan.io/myapikey
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago