Setting up the Hardhat node

Actions described here are executed in the filecoin.loans-contracts module.

Installing dependencies

$ npm install

Running the Hardhat Node

$ npm run start-node

A server should be started at http://127.0.0.1:8545/

Deploying the contracts

With the Hardhat node running:

$ npm run test-scripts

It should return two result blocks with addresses.

If this is the first time that you are running the project, copy the addresses to save them at the database that will be generated later.

Last updated