This repository contains nimble network smart contracts. For more details, please visit our developer portal
Public facing interfaces for nimble network (folder: contracts/sol6):
- INimbleNetworkProxy.sol - Get rate and trade APIs. Hint handler address.
- ISimpleNimbleProxy.sol - Simple trade functions.
- INimbleHintHandler.sol - Build hints for advanced trade functionality.
- INimbleDao - Interact with NimbleDao.
- Dao/INimbleStaking - interact with NimbleStaking.
- Clone this repo
npm ci
./cmp.sh
to compile contracts for all solidity versions../cmpSol6.sh
to compile only sol6 contracts
- If contracts have not been compiled, run
./cmp.sh
. This step can be skipped subsequently. - Run
./tst.sh
- Use
-f
for running a specific test file. - Use
-a
to run tests for all solidity versions. Runs only sol6 tests by default.
./tst.sh
(Run only sol6 tests)
./tst.sh -f ./test/sol4/nimbleReserve.js
(Test only nimbleReserve.js)
./tst.sh -a
(Run sol4, sol5, sol6 tests)
npx hardhat test --no-compile ./test/sol6/nimbleNetwork.js
- Run
./coverage.sh
- Use
-f
for running a specific test file.
./coverage.sh -f ./test/sol6/nimbleNetwork.js
(Coverage for only nimbleNetwork.js)