Cashflow Relay Testnet
For frontend (in root folder)
Install all dependencies
npm i
install frontend and contracts dependencies
Compile c2fc contracts
npm run compile-contract
for compile c2fc contract
To start locally
npm run dev
for development environment in watch modenpm run prod
for production environment in watch mode
To build locally (see build folder)
npm run build:dev
for development environment without watch modenpm run build:prod
for production environment without watch mode
To start bundle analyzer
npm run analyze:dev
for development environmentnpm run analyze:prod
for production environment
For contracts (in ethereum-contracts folder)
Install all dependencies
npm i
install contracts dependencies
To start ethereum network locally
npm run ganache-cli
for start networknpm run ganache-cli -- -b 3
for start network with arguments
To build and deploy contracts
npm run compile-contracts
for build contractsnpm run deploy-contracts
for deploy contractsnpm run compile-deploy-contracts
for build and deploy contracts
To start test
npm test
ornpm t
for start test, before that you need start network (npm run ganache-cli
)
We use
- Drizzle For handles instantiating web3 and contracts, fetching accounts, and keeping all of this data in sync with the blockchain.
- Ox protocol - that enables the peer-to-peer exchange of assets on the Ethereum blockchain.
- Typescript
- React
- Redux
- Redux-saga for side-effects
- Material-UI