1.0.1 • Published 3 years ago

hifi-protocol v1.0.1

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
3 years ago

Hifi Protocol Coverage Status Commitizen Friendly License: LGPL3.0

An implementation of zero-coupon bonds on the Ethereum blockchain. In-depth documentation on Hifi is available at docs.hifi.finance.

The built contract artifacts can be browsed via unpkg.com.

Developers

Our contracts are written in Solidity and our tests in TypeScript.

If you want to contribute, familiarity with Hardhat, Ethers, Waffle and TypeChain is needed.

Pre Requisites

Before running any command, make sure to install dependencies:

$ yarn install

Compile

Compile the smart contracts with Hardhat:

$ yarn compile

TypeChain

Compile the smart contracts and generate TypeChain artifacts:

$ yarn typechain

Lint Solidity

Lint the Solidity code:

$ yarn lint:sol

Lint TypeScript

Lint the TypeScript code:

$ yarn lint:ts

Format Code

Run the Prettier formatter:

$ yarn prettier

Test Unit

Run the unit tests:

$ yarn test:unit

Test Integration

Run the integration tests:

$ yarn test:integration

Coverage

Generate the code coverage report:

$ yarn coverage

Clean

Delete the smart contract artifacts, the coverage reports and the Hardhat cache:

$ yarn clean

Acknowledgements

Discussion

For any concerns or feedback, open an issue or visit us on Discord to discuss.

License

Everything is released under the LGPL3.0 license.

1.0.1

3 years ago

1.0.0

3 years ago