New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gyrostable/core

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gyrostable/core

The Gyroscope Dollar core contracts

  • 0.1.22
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc