Skip to content

Remora-FilecoinHackathon/smart-contracts

Repository files navigation

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

About

Remora is a collateral-free $FIL lending and borrowing protocol to facilitate network storage providing on Filecoin blockchain. The project was built for the SpaceWarp hackathon. https://ethglobal.com/showcase/remora-y5o9m

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published