This is front-end repository of the basis.cash.
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',
adf After it, you can launch the development server with following command.
$ yarn start
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 are welcome! Since we don't have any contribution guide / issue templates yet, please feel free to send PRs to the basiscash-frontend.