1.0.1 • Published 5 years ago
hashflowtoken v1.0.1
Install
Usage
Initialize
const hashflow = new hashflow(provider, networkID)Standard Actions
Mint
const result = await hashflow.hashflowToken.mint(ownerAddress);Development
Clone Repo
git clone https://github.com/hashflownetwork/hashflowToken.gitInstall Packages
Requires node v11.0.0 or lower.
sudo yarn installCompile Contracts
Requires a running docker engine.
yarn buildCompile TypeScript
yarn build:jsTest
Requires a running docker engine.
Start test node:
docker-compose upDeploy contracts to test node & run tests:
yarn testJust run tests (contracts must already be deployed to test node):
yarn test_onlyJust deploy contracts to test node:
yarn deploy_testToken Specification
- The initial total supply must be 0.
- The max cap must be set to 10 billion.
- Only the owner can mint new tokens.
- The newly minted tokens get added to the total supply.
- The total supply should never exceed the cap.
- the tokens cannot be burnt.