1.0.1 • Published 2 years ago

@elysianfinance/elysian-contracts v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

elysian-contracts

This is the code for Elysian Finance smart contracts.

Features Implemented:

  • Treasury
  • Staking
  • Rebase mechanism
  • OTC (Inital token sale)
  • Bonds
  • Governance

Requirements

  • Node v12 or higher
  • Truffle

1. Setup

To setup and install dependencies please run:

# setup (install all dependencies)
npm install

2. Build

Will compile bytecode and ABIs for all .sol files found in node_modules and the contracts folder. It will output them in the build folder.

# build (compile all .sol sources)
node publish build 

3. Deploy

Will attempt to deploy (or reuse) all of the contracts listed in the given config.json input file, as well as perform initial connections between the contracts.

:warning: This step requires the build step having been run to compile the sources into ABIs and bytecode.

Note: this action will update the deployment files for the associated network in "deployed/". For example, here's the "deployment.json" file for ganache.

# deploy (deploy compiled .sol sources)
npm run deploy-ganache

To deploy the code on multiple networks the truffle-config.js file needs to be adjusted, see instructions here.