This repository consists of two subreposotories related to the nusd stable coin.
- nusd-dapp
- nusd-smart-contracts
##nusd-smart-contracts This is a truffle based smart contracts repository for nusd stable coin.
It contains the smart contract for nusd coin and its respective test cases.
To run the test cases for nusd.sol :
- we need to configure the ganache with this repository's config file named truffle-config.js.
- Then we need to locate this directory in terminal and simply hit
-
- truffle test
- Test cases will start running.
This is a basic react implementation for the smart contract interaction for deposit and withdraw.
To run this dapp in your local environment:
- npm i
- npm start