# hft

> Hashflow token smart contracts

Latest version **1.0.7** (published 2020-08-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install hft
pnpm add hft
yarn add hft
bun add hft
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-08-18 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 424.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | gandalfthebrown |

## Links

- npm: https://www.npmjs.com/package/hft
- npm.io page: https://npm.io/package/hft

## Dependencies (12)

- [web3](https://npm.io/package/web3.md) 1.2.1
- [merkle](https://npm.io/package/merkle.md) 0.6.0
- [cross-env](https://npm.io/package/cross-env.md) ^7.0.2
- [keccak256](https://npm.io/package/keccak256.md) 1.0.0
- [@types/web3](https://npm.io/package/@types/web3.md) 1.0.18
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.0
- [merkletreejs](https://npm.io/package/merkletreejs.md) 0.0.18
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^6.0.1
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^6.0.0
- [merkle-tree-solidity](https://npm.io/package/merkle-tree-solidity.md) 1.0.8
- [@types/ethereum-protocol](https://npm.io/package/@types/ethereum-protocol.md) ^1.0.1
- [@truffle/hdwallet-provider](https://npm.io/package/@truffle/hdwallet-provider.md) ^1.0.42

## Recent versions

- 1.0.7 (latest) — 2020-08-18
- 1.0.6 — 2020-08-18
- 1.0.5 — 2020-08-18
- 1.0.4 — 2020-08-18
- 1.0.3 — 2020-08-18
- 1.0.2 — 2020-08-18
- 1.0.1 — 2020-08-17

## README

## Install

## Usage
### Initialize
```javascript
const hashflow = new hashflow(provider, networkID)
```
### Standard Actions
#### Mint
```javascript
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](https://www.docker.com) engine.
```
yarn build
```
### Compile TypeScript
```
yarn build:js
```
### Test
Requires a running [docker](https://www.docker.com) 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.

---
_Source: https://npm.io/package/hft · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
