# build code:
cwtools build ../furyswap/contracts/* ../furydex-listing-contract ../co-harvest-contracts/contracts/* ../cw20-staking/contracts/* -o packages/contracts-build/data
# gen code:
cwtools gents ../furyswap/contracts/* ../furydex-listing-contract ../co-harvest-contracts/contracts/* ../cw20-staking/contracts/* -o packages/contracts-sdk/src
# gen doc:
yarn docs
# update comments:
git apply patches/contracts-sdk.patch
# edit contracts-sdk
git diff packages/contracts-sdk > patches/contracts-sdk.patch
# rollback
git checkout packages/contracts-sdk
NODE_ENV=test yarn --cwd packages/market-maker start
Furydex backend is a nodejs server that provides a REST API for aggreated events from a furydex contracts.
Features:
- Syncronize events from a furydex smart contract on-chain to a database
- Provide a REST API to query events from the database
cp .env.example .env
yarn && yarn build
cd packages/furydex-server
node dist/index.js
docker build . -t furya/defi_furydex-backend
docker run -it --rm \
-v $(pwd)/.env:/app/.env \
-v your-db-file.db:/app/your-db-file.db \
furya/defi_furydex-backend
yarn test