1.0.7 • Published 4 years ago

hft v1.0.7

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

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

  1. The initial total supply must be 0.
  2. The max cap must be set to 10 billion.
  3. Only the owner can mint new tokens.
  4. The newly minted tokens get added to the total supply.
  5. The total supply should never exceed the cap.
  6. the tokens cannot be burnt.