/avrorus-test-task

Test task for Avrorus, Loan Applications Smart Contract

Primary LanguageJavaScript

Loan Applications Contract

Build Status

Loan applications contract based on Zeppelin Contracts

Requirements

To run tests you need to install the following software:

  • Truffle v5.0.35 (core: 5.0.35)
  • Solidity v0.5.8 (solc-js)
  • Node v12.5.0
  • Web3.js v1.2.1

Deployment

To deploy smart contracts to local network do the following steps:

  1. Go to the smart contract folder and run truffle console:
$ cd avrorus-test-task
$ npm install
$ truffle develop
  1. Inside truffle console, invoke "migrate" command to deploy contracts:
truffle> migrate

How to test

Open the terminal and run the following commands:

$ cd avrorus-test-task
$ npm install
$ truffle test