Skip to content

scorpiotzh/das-pay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

das-pay

Build & run with das-register. Support CKB, TRX, BNB, ETH and Matic to pay the registration fee.

Prerequisites

Install & run

# 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.yaml

Usage

Set 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  │
                └───────┘

Documents

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.6%
  • Makefile 0.4%