Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opz/refi-core
ReFi Smart Contracts
https://github.com/opz/refi-core
defi erc20 ethereum flash-loans smart-contracts
Last synced: about 1 month ago
JSON representation
ReFi Smart Contracts
- Host: GitHub
- URL: https://github.com/opz/refi-core
- Owner: opz
- Created: 2020-05-26T21:16:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-14T00:33:31.000Z (over 2 years ago)
- Last Synced: 2023-04-16T09:36:44.516Z (over 1 year ago)
- Topics: defi, erc20, ethereum, flash-loans, smart-contracts
- Language: JavaScript
- Homepage:
- Size: 558 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReFi Smart Contracts
[![Actions Status](https://github.com/opz/refi-core/workflows/CI/badge.svg)](https://github.com/opz/refi-core/actions)
## Install Dependencies
```
npm install
git submodule update --init --recursive
```## Compile Contracts
`npx buidler compile`
## Run Tests
`npx buidler test`
## Run Solhint
`npm run lint`
## Run Code Coverage
`npx buidler coverage`
## Using ReFi smart contracts
To use ReFi smart contracts in a project, follow these steps:
```
git clone [email protected]:opz/refi-core.git
cd refi-core
npm install
git submodule update --init --recursive
npx buidler compile
npm link
cd
npm link refi-core
```You can now import the smart contract artifacts in your project:
```
import ReFi from "refi-core/artifacts/ReFi.json";
```## Contributors
* [@opz](https://github.com/opz) 💻