RonieLiu / basiscash-frontend

Official Front-end Interface of the Basis Cash Protocol

Home Page:https://app.basis.cash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basis Cash Title Image

Basis Cash Interface

This is front-end repository of the basis.cash.

πŸ’» Set Up Environment

To begin, you need to install dependencies with Yarn.

 $ yarn

You should update default provider URL because our production provider URL is limited by CORS for security. On src/config.ts, please replace it:

- defaultProvider: 'https://mainnet.infura.io/v3/OLD_PROVIDER_URL',
+ defaultProvider: 'https://mainnet.infura.io/v3/YOUR_PROVIDER_URL',

After it, you can launch the development server with following command.

 $ yarn start

πŸ‘©β€πŸŒΎ If You Want to Bring Your Own Contract...

If you want to use different contract deployment on development, please build basiscash-protocol and copy-n-paste the deployment information generated on build/deployment.<network>.json into this project's deployment directory, which is src/basis-cash/deployments.

Then, you need to change the deployment reference into yours. Suppose that the new deployment file is named deployments.local.json:

- deployments: require('./basis-cash/deployments/deployments.mainnet.json'),
+ deployments: require('./basis-cash/deployments/deployments.local.json'),

βš’ Contributions

Contributions are welcome! Since we don't have any contribution guide / issue templates yet, please feel free to send PRs to the basiscash-frontend.

LICENSE: MIT

About

Official Front-end Interface of the Basis Cash Protocol

https://app.basis.cash

License:MIT License


Languages

Language:TypeScript 96.1%Language:JavaScript 2.8%Language:HTML 1.0%Language:CSS 0.1%