Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashtech15/credit-capital
rewards v2 & vault contracts for the credit capital ecosystem
https://github.com/ashtech15/credit-capital
chai ethereum ethers fantom hardhat solidity typescript unit-testing vue3 vuex
Last synced: 3 months ago
JSON representation
rewards v2 & vault contracts for the credit capital ecosystem
- Host: GitHub
- URL: https://github.com/ashtech15/credit-capital
- Owner: ashtech15
- Created: 2024-09-05T04:10:30.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-05T04:49:08.000Z (4 months ago)
- Last Synced: 2024-10-01T02:22:13.653Z (3 months ago)
- Topics: chai, ethereum, ethers, fantom, hardhat, solidity, typescript, unit-testing, vue3, vuex
- Language: CSS
- Homepage: http://credit-capital-docs.vercel.app/
- Size: 93.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Credit Capital
The frontend can be found here: ``packages/app``
The backend can be found here ``packages/sol``### Development
- first, bootstrap the repository``yarn bootstrap``
- then, if you want to run the web app, first copy the contents of``.env.example`` file located in the ``app`` package into a new file called ``.env``, then
``yarn start``
The app will then be available at ``http://localhost:8080/``
## Smart contracts
- If you want to compile contracts, run``yarn compile``
- If you want to run backend tests, run
``yarn test``
## Deployment
- first, replace the properties in the ``packages/sol/.env`` file with the proper values.```
CAPL_CAP=[CAPL CAP limit(probably 100000000000000000000000000)]
LP_TOKEN_ADDRESS=[TreasuryShare token address(USDC-CAPL Token Pool)]
PRIVATE_KEY=[Metamask PrivateKey]
INFURA_ID=[Infura Project ID]
```
**In order to deploy the account (private key) used for deployment must have admin access to the CAPL token.**
**In order to deploy the contracts, CAPL must have already been deployed**There are three chains currently supported:
**kovan**
``yarn deploy-testnet-kovan``**fantom testnet**
``yarn deploy-testnet-fantom``**fantom**
``yarn deploy-fantom``- last, copy the contract addresses from the ``.config.js`` file located in the ``sol`` package into ``packages/app/src/constants``