This is an example DApp to interact with the exchange contracts.
npm install
-
Make copy of
.env.example
file and rename to.env
. -
Populate
USER_ADDRESS
andUSER_ADDRESS_PRIVATE_KEY
in.env
. This is the account where the transactions will be made from.USER_ADDRESS_PRIVATE_KEY
need to be provided without '0x' prefix. -
Use provided scripts for making transactions:
- Buy CLC with ETH:
node scripts/BuyCLCWithETH.js
- Sell CLC for ETH:
node scripts/SellCLCWithETH.js
- Cancel Order:
node scripts/CancelOrder.js
. Need to modifyorderId
variable in script.
- Buy CLC with ETH: