Soar Skymap token - ethereum smart contract
Preminted pauseable ERC20 token.
The token smart contract was implemented using OpenZeppelin library.
- Symbol: SKYM
- Name: Skymap
- Decimals: 18
- Supply: 350,000,000 SKYM
Implementation with imported contract is in SkymapToken.sol and there is also flattend version SkymapToken.flat.sol.
In order to run the Skymap, you will need Node.js (tested with version 8.x.x). This will include npm, needed to install dependencies.
Installation and Building
npm install -g truffle
Download and install ethereum client for local development - Ganache Client. This client is recomended because migration script is customised for this setup to compile smart contracts, deploye them to network and in the end to udpate smart contracts defifinition abi and config file in react-app-typescript.
## MacOS brew install yarn ## Windows https://yarnpkg.com/en/docs/install#windows-tab
Download or clone repository.
Install the node dependencies.
Launch Ganache client
Compile and migrate the contracts. This command compile all smart contracts and redeploy them on the network
truffle migrate --compile-all --reset
Truffle's own suite is included for smart contracts. Be sure you've compile your contracts before running jest, or you'll receive some file not found errors.
// Runs Truffle's test suite for smart contract tests. truffle test
Generating flat version of contract
npm install -g truffle-flattener -g
Delete old version of SkymapToken.flat.sol
truffle-flattener contracts/SkymapToken.sol >> contracts/SkymapToken.flat.sol