0.0.9 • Published 10 months ago
@oraichain/dex-backend v0.0.9
Description
Document (for development logic)
- Circulating Supply (CW20 Flow):
- Query type message
/cosmwasm.wasm.v1.MsgInstantiateContract
inapi.scan.io
-> gettx_hash
-> getsender
- Query transactions of
sender
inapi.scan.io
- Sum amount of all the transactions -> Circulating Supply
- Query type message
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
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.sql
License
Orai is MIT licensed.