Skip to content

octocat512/bend-lending-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Setup

Follow the next steps to setup the repository:

  • Install node and yarn
  • Create an enviroment file named .env and fill the next enviroment variables
  • Install dependencies
# Mnemonic, only first address will be used
MNEMONIC=""

# Add Alchemy or Infura provider keys, alchemy takes preference at the config level
ALCHEMY_KEY=""
INFURA_KEY=""

# Optional Etherscan key, for automatize the verification of the contracts at Etherscan
ETHERSCAN_KEY=""

Test

You can run the full test suite with the following commands:

npm run test

Deployments

For deploying contracts, you can use the available scripts located at package.json. For a complete list, run npm run to see all the tasks.

Rinkeby full deployment

# In one terminal
npm run hardhat:rinkeby deploy:bridge-integration

ArbRinkeby full deployment

# In one terminal
npm run hardhat:arbRinkeby deploy:custom-router-eth

Etherscan verification

To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.

In this project, copy the .env.template file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract:

hardhat run --network ropsten scripts/deploy.js

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

About

Bend Lending Protocol for Web3 Data Liquidity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 51.0%
  • Solidity 41.5%
  • HTML 3.9%
  • JavaScript 2.5%
  • Other 1.1%