{"repo":"Folks-Finance/xchain-contracts","free":true,"listed":false,"github":"https://github.com/Folks-Finance/xchain-contracts","clone":"git clone https://github.com/Folks-Finance/xchain-contracts.git","description":"The smart contracts for the Folks Finance Cross-Chain Lending Protocol.","language":"TypeScript","stars":24,"topics":["blockchain","cross-chain","defi","smart-contracts"],"license":null,"category":"blockchain-web3","readme_excerpt":"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 6 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/hub-rewards contains the smart contracts relating to the core business logic of the on-chain rewards. 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). - contracts/spoke-rewards contains the smart contracts relating to the user entry point into the on-chain rewards. 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","default_branch":null,"files":null,"tree":[],"storefront":"/r/Folks-Finance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Folks-Finance/xchain-contracts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}