1.0.7 • Published 4 years ago
hft v1.0.7
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.git
Install Packages
Requires node v11.0.0 or lower.
sudo yarn install
Compile Contracts
Requires a running docker engine.
yarn build
Compile TypeScript
yarn build:js
Test
Requires a running docker engine.
Start test node:
docker-compose up
Deploy contracts to test node & run tests:
yarn test
Just run tests (contracts must already be deployed to test node):
yarn test_only
Just deploy contracts to test node:
yarn deploy_test
Token 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.