0.0.9 • Published 10 months ago

@oraichain/dex-backend v0.0.9

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
10 months 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

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago