📁
filecoin.loans
  • Introduction
  • Protocol
    • Lend FIL - ERC20 Tokens as Collateral
    • Lend ERC20 Tokens - FIL as Collateral
  • Develop
    • Requirements
    • Quickstart Guide
      • Setting up the Hardhat node
      • Running the server
      • Running the app
      • Setting up Metamask
  • Reference guide
    • Filecoin Loans Contracts
      • Interfaces
        • IBLAKE2b
        • IERC20
        • IPriceAggregator
      • Contracts
        • ERC20CollateralLock
        • ERC20Loans
    • API Reference
      • operation
        • FIL - ERC20 loan operations
        • ERC20 - FIL loan operations
      • loanAssets
      • protocolContracts
      • orders
      • loan
      • loans
      • notification
      • activity
  • Tools
    • filecoin-js-signer
      • API Reference
        • FilecoinSigner
          • msig
          • paych
          • tx
          • wallet
        • FilecoinClient
          • msig
          • paych
          • tx
          • wallet
      • Develop Guide
      • Credits and references
Powered by GitBook
On this page
  • Installing dependencies
  • Running the Hardhat Node
  • Deploying the contracts

Was this helpful?

  1. Develop
  2. Quickstart Guide

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.

PreviousQuickstart GuideNextRunning the server

Last updated 4 years ago

Was this helpful?