Git Product home page Git Product logo

folks-finance-xchain-contracts's Introduction

folks-finance-xchain-contracts

The smart contracts for the Folks Finance Cross-Chain Lending Protocol.

Getting Started

The repository uses both Hardhat and Foundry.

To setup:

  1. Clone the repo
  2. Run npm install
  3. Run forge install

To build:

  1. (Optional) run npm run clean
  2. Run npm run build

Smart Contracts

The smart contracts are split into 4 distinct folders:

  • contracts/bridge contains all the smart contracts relating to sending messages (data and token) between the spoke chains and hub chain. Unless named specifically, they are deployed both in the spoke chains and hub chain.
  • contracts/hub contains the smart contracts relating to the core business logic of the protocol. They are deployed only in the hub chain.
  • contracts/oracle contains the smart contracts relating to the oracle for token price information. They are deployed only in the hub chain.
  • contracts/spoke contains the smart contracts relating to the user entry point into the protocol. They are deployed only in the spoke chains (the hub chain may also be a spoke chain).

Within each you can also find test folder which contains smart contracts used for testing. These are not part of the protocol and won't be deployed.

Testing

To run all tests npm run test.

To run specific tests npm run test ${PATH_TO_FILE}.

License

If there is a license in a sub folder e.g. at /contracts/oracle then that applies for all files under it, otherwise refer to the license in the root folder.

folks-finance-xchain-contracts's People

Contributors

gidonkatten avatar palace22 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.