@furyanetwork/root

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @furyanetwork/root

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

37.7 MB

Total Files

3254

Last publish

Collaborators

  • nimbldoor