alpha-testnet
所属分类:区块链开发
开发工具:Solidity
文件大小:1232KB
下载次数:0
上传日期:2021-12-30 16:03:14
上 传 者:
sh-1993
说明: 阿尔法测试网,陀螺仪,一个完全支持的稳定币,具有算法价格边界和全天候储备。测试网核心。
(alpha-testnet,Gyroscope, a fully-backed stablecoin with algorithmic price bounding and all- weather reserves. Testnet core.)
文件列表:
brownie-config.yaml (85, 2021-12-31)
config (0, 2021-12-31)
config\deployments.yml (2944, 2021-12-31)
config\errors.json (264, 2021-12-31)
contracts (0, 2021-12-31)
contracts\BalancerGyroRouter.sol (9898, 2021-12-31)
contracts\ExtendedMath.sol (3317, 2021-12-31)
contracts\GyroFund.sol (38652, 2021-12-31)
contracts\GyroLib.sol (10940, 2021-12-31)
contracts\GyroPriceOracle.sol (7154, 2021-12-31)
contracts\GyroProxy.sol (3008, 2021-12-31)
contracts\GyroRouter.sol (474, 2021-12-31)
contracts\Ownable.sol (2077, 2021-12-31)
contracts\SimpleERC20.sol (575, 2021-12-31)
contracts\TokenFaucet.sol (6645, 2021-12-31)
contracts\abdk (0, 2021-12-31)
contracts\abdk\ABDKMath64x64.md (5792, 2021-12-31)
contracts\abdk\ABDKMath64x64.sol (28376, 2021-12-31)
contracts\abdk\ABDKMathQuad.md (6654, 2021-12-31)
contracts\abdk\ABDKMathQuad.sol (50521, 2021-12-31)
contracts\abdk\LICENSE.md (1664, 2021-12-31)
contracts\balancer (0, 2021-12-31)
contracts\balancer\BColor.sol (940, 2021-12-31)
contracts\balancer\BConst.sol (1619, 2021-12-31)
contracts\balancer\BFactory.sol (2002, 2021-12-31)
contracts\balancer\BMath.sol (14686, 2021-12-31)
contracts\balancer\BNum.sol (4336, 2021-12-31)
contracts\balancer\BPool.sol (22708, 2021-12-31)
contracts\balancer\BToken.sol (5209, 2021-12-31)
contracts\compound (0, 2021-12-31)
contracts\compound\CToken.sol (264, 2021-12-31)
contracts\compound\CTokenInterfaces.sol (9394, 2021-12-31)
contracts\compound\CarefulMath.sol (2432, 2021-12-31)
... ...
# Gyroscope core
This repository contains the core contracts and logic for the Gyroscope alpha testnet 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](https://eth-brownie.readthedocs.io/).
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
近期下载者:
相关文件:
收藏者: