npm.io
1.0.1 • Published 3 years ago

@hopelend/deploy

Licence
LGPL-3.0
Version
1.0.1
Deps
1
Size
49.1 MB
Vulns
0
Weekly
0

HopeLend Deployments

npm (scoped)

This Node.js repository contains the configuration and deployment scripts for the HopeLend protocol core and periphery contracts. The repository makes use of hardhat and hardhat-deploy tools to facilitate the deployment of HopeLend protocol.

Requirements

Getting Started

  1. Install Node.JS dependencies:

    npm i
  2. Compile contracts before running any other command, to generate Typechain TS typings:

    npm run compile

Project Structure

Path Description
deploy/ Main deployment scripts dir location
├─ 00-core/ Core deployment, only needed to run once per network.
├─ 01-periphery_pre/ Periphery contracts deployment, only need to run once per network.
├─ 02-market/ Market deployment scripts, depends of Core and Periphery deployment.
├─ 03-periphery_post/ Periphery contracts deployment after market is deployed.
├─ 04-upgrade/ Upgrade contracts.
deployments/ Artifacts location of the deployments, contains the addresses, the abi, solidity input metadata and the constructor parameters.
markets/ Directory to configure HopeLend markets
tasks/ Hardhat tasks to setup and review market configs
helpers/ Utility helpers to manage configs and deployments