gm.mint.swap

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: MIT

README

GM Mint blockchain service for MNTP (ERC20) <-> MNT (Mint) tokens swap.
Exposes GRPC API. Depends on GM Mint Sender service (via Nats).

ethsvc

Listens Ethereum swap contract for a new swap requests and emits MNT in Mint blockchain.

# Logs
log:
  level: debug
  color: yes
  json: no
# API
api:
  grpc: 6666
# DB
db:
  dsn: user:password@tcp(localhost:3306)/database?collation=utf8_general_ci&timeout=10s&readTimeout=60s&writeTimeout=60s
  table: ethsvc
# Ethereum swap contract
ethereum:
  swap_core_addr: ADDRESS
  service_account_pk: PRIVATE_KEY
  provider: https://rinkeby.infura.io/v3/token
# Mint Sender service
mint_sender:
  nats: localhost:4222
  prefix: "mint"
# Metrics (optional)
metrics: 0
# GM Alerts (optional)
gcloud_alerts: false

mintsvc

Watches specified Mint address for incoming swap transactions, then sends MNTP in Ethereum blockchain.
A pair of Mint/Ethereum addresses should be specified before swap transaction.

# Logs
log:
  level: debug
  color: yes
  json: no
# API
api:
  grpc: 6667
  swap_address: ADDRESS
# DB
db:
  dsn: user:password@tcp(localhost:3306)/database?collation=utf8_general_ci&timeout=10s&readTimeout=60s&writeTimeout=60s
  table: mintsvc
# EthSvc service
ethsvc:
  grpc_endpoint: localhost:6666
# Mint Sender service
mint_sender:
  nats: localhost:4222
  prefix: "mint"
# Metrics (optional)
metrics: 0
# GM Alerts (optional)
gcloud_alerts: false

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL