@furyanetwork/root
v1.0.2
Published
## Generate code and docs
Downloads
4
Readme
Furya Orderbook SDK
Generate code and docs
# 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
Run sample with CosmwasmSimulate
NODE_ENV=test yarn --cwd packages/market-maker start
FURYDEX BACKEND
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
HOW TO RUN
Local
cp .env.example .env
yarn && yarn build
cd packages/furydex-server
node dist/index.js
Docker
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
RUN UNIT TESTS
yarn test