notsegfault / clend-www

Core Lending Protocol Web Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clend-www

Development

yarn
yarn dev

Open http://localhost:8080 with your browser to see the result.

Web3 integration

Clone the cLend repo and run yarn && yarn start. It should start a local hardhat node with the required deployed contracts.

Then one need to connect to it with metamask on http://localhost:8545 and work on the website using the local contracts.

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/pages/index.js. The page auto-updates as you edit the file.

Advance time and block for interests testing

npx hardhat console

once in the hardat console:

const provider = new ethers.providers.JsonRpcProvider();
(await provider.send("evm_increaseTime", [60*60*24])) && (await provider.send("evm_mine", []))

This should advance the timestamp by 1 day and mine a block.

Static Build

yarn static:build

Considerations

The website should be deployable on IPFS and rely on no centralized backend server.

Once in a while, it's a good idea to verify it's still working properly in offline mode using

yarn static:start

Fleek Deployment

Base directory: Not set

Build command:

yarn install && yarn static:build

Publish directory:

out

About

Core Lending Protocol Web Interface

License:MIT License


Languages

Language:TypeScript 98.4%Language:JavaScript 1.5%Language:Shell 0.1%Language:CSS 0.0%