Skip to content

Pnkjgot01/NimbleDAO

Repository files navigation

Introduction

This repository contains nimble network smart contracts. For more details, please visit our developer portal

API

Public facing interfaces for nimble network (folder: contracts/sol6):

  1. INimbleNetworkProxy.sol - Get rate and trade APIs. Hint handler address.
  2. ISimpleNimbleProxy.sol - Simple trade functions.
  3. INimbleHintHandler.sol - Build hints for advanced trade functionality.
  4. INimbleDao - Interact with NimbleDao.
  5. Dao/INimbleStaking - interact with NimbleStaking.

Setup

  1. Clone this repo
  2. npm ci

Compilation with Buidler

  1. ./cmp.sh to compile contracts for all solidity versions.
  2. ./cmpSol6.sh to compile only sol6 contracts

Testing with Buidler

  1. If contracts have not been compiled, run ./cmp.sh. This step can be skipped subsequently.
  2. Run ./tst.sh
  3. Use -f for running a specific test file.
  4. Use -a to run tests for all solidity versions. Runs only sol6 tests by default.

Example Commands

./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)

Example

npx hardhat test --no-compile ./test/sol6/nimbleNetwork.js

Coverage with hardhat-coverage

  1. Run ./coverage.sh
  2. Use -f for running a specific test file.

Example Commands

./coverage.sh -f ./test/sol6/nimbleNetwork.js (Coverage for only nimbleNetwork.js)

About

Repository for Nimble DAO smart-contract

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages