0.0.9 • Published 2 years ago

@oraichain/dex-backend v0.0.9

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

Description

Document (for development logic)

  1. Circulating Supply (CW20 Flow):
    • Query type message /cosmwasm.wasm.v1.MsgInstantiateContract in api.scan.io -> get tx_hash -> get sender
    • Query transactions of sender in api.scan.io
    • Sum amount of all the transactions -> Circulating Supply

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

Command Line

  1. 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
  1. 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.

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago