0.0.9 • Published 2 years ago
@oraichain/dex-backend v0.0.9
Description
Document (for development logic)
- Circulating Supply (CW20 Flow):
- Query type message
/cosmwasm.wasm.v1.MsgInstantiateContractinapi.scan.io-> gettx_hash-> getsender - Query transactions of
senderinapi.scan.io - Sum amount of all the transactions -> Circulating Supply
- Query type message
Installation
$ npm installRunning the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodTest
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covSupport
Stay in touch
- Contributor - dang.vh@orai.io
- Website - https://orai.io
- Twitter - @oraichain
Command Line
- Dump database with docker container
docker exec -t -u root ${container_name} pg_dumpall -c > ${PWD}/dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql- Restore database with docker container
cat your_dump.sql | docker exec -i {docker-postgres-container} psql -U {user} -d {database_name}docker exec -i dex_db /bin/bash -c "PGPASSWORD=dev@orai2022 psql --username root testnet" < ${PWD}/pg.sqlLicense
Orai is MIT licensed.