Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.53 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.53 KB

NOTE: This repository does not contain updated code. See the smart-contracts-mock repository for the updated code.

Project Setup

Run the following command to setup the project:

git clone https://github.com/Remora-FilecoinHackathon/smart-contracts
cd smart-contracts
npm i
touch .env

Insert your private keys inside the .env file, in a variable called PRIVATE_KEY_LENDER and a variable called PRIVATE_KEY_BORROWER (must be 2 different private keys) (See here for tutorial on how to export private key from metamask: https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key)

PRIVATE_KEY_LENDER=<private_key_exported>
PRIVATE_KEY_BORROWER=<private_key_exported>

Fund the address related with the private key here: https://hyperspace.yoga/#faucet

Inside the root directory, run the following command:

npx hardhat run scripts/deploy.ts

You should see the following output

Screenshot 2023-01-26 alle 17 47 59

Test

To run the tests run the following command. Add tests to the test directory.

npx hardhat test --network hardhat

TODO