/core

GYSR and core contracts

Primary LanguageJavaScriptMIT LicenseMIT

GYSR core

This repository contains the Solidity contracts for Geyser core, Geyser factory, and GYSR token.

For more information on the project and access to the whitepaper:
gysr.io

Setup

Both Node.js and npm are required for package management and testing. See instructions for installation here. This codebase has been tested with Node.js: v10.16.0 and npm: 6.9.0.

This project uses OpenZeppelin libraries and tools. To install these packages along with other dependencies:

npm install

Test

To run all unit tests

npm test

To run some subset of tests

npx mocha --exit --grep withdraw

Deploy

To deploy GYSR token to Ropsten

npx truffle migrate --network ropsten --f 1 --to 1

Once GYSR token is deployed, set the GYSR_ADDRESS constant at the top of migrations/2_deploy_factory.js.

To deploy the Geyser factory contract to Ropsten

npx truffle migrate --network ropsten --f 2 --to 2