Build & run with das-register. Support CKB, TRX, BNB, ETH and Matic to pay the registration fee.
- Ubuntu 18.04 or newer
- MYSQL >= 8.0
- go version >= 1.15.0
- CKB Node
- ETH Node
- BSC Node
- Tron Node
- das-database
- das-register
# get the code
git clone https://github.com/DeAccountSystems/das-pay.git
# edit config/config.yaml and run das-database and init db of das-register before run das_pay_server
# compile and run
cd das-pay
make pay
./das_pay_server --config=conf/config.yamlSet the gateway address of each chain in conf/config.yaml ( private, the private key of address, is for refund). The whole workflow as below:
┌───────┐
│ start │
└───┬───┘
│
│
│
┌───────────▼───────────┐
┌───────┤ sync block? │◄─┬───┐
│ │ CKB/ETH/BSC/TRX/MATIC │ │ │
│ └───────────┬───────────┘ │ │
│ │ │ │
│ Y │ │
│ │ │ │
│ ┌─────────▼──────────┐ │ │
│ │ parse txs in block │ │ │
│ └─────────┬──────────┘ │ │
│ │ │ │
│ │ │ │
│ │ N │
N │ │ │
│ ┌─────────▼──────────┐ │ │
│ │ pay for the order? ├───┘ │
│ └─────────┬──────────┘ │
│ │ │
│ Y │
│ │ │
│ │ │
│ ┌───────────▼─────────────┐ │
│ │ update the order status ├────┘
│ └─────────────────────────┘
│
│
│
│
│ ┌───────┐
└──────────────►│ end │
└───────┘