stellar-withdraw-svc

command module
v0.0.0-...-e73af20 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

Build Status

Stellar withdraw integration module

Stellar withdraw service is a bridge between TokenD and Stellar, which allows to withdraw tokens from TokenD directly to Stellar.

Usage

Enviromental variable KV_VIPER_FILE must be set and contain path to desired config file.

stellar-withdraw-svc run withdraw

Watchlist

In order for service to start watching withdrawals in specific asset, asset details in TokenD must have entry of the following form:

{
//...
"stellar": {
   "withdraw": true, 
   "asset_code": "USD", // Omit for asset type "native"
   "asset_type": "AlphaNum4",
   },
//...
}

Service will only listen for withdraw requests with 2048 pending tasks flag set and 4096 flag not set. So, either value by key withdrawal_tasks:*, or withdrawal_tasks:ASSET_CODE must contain 2048 flag and must not contain flag 4096.

Config

stellar:
  is_testnet: true # Whether to connect to testnet or mainnet

horizon:
  endpoint:
  signer: "S_SOME_VALID_SECRET_KEY" # Issuer of assets

payment:
  source_signer: "S_SOME_VALID_STELLAR_SECRET_KEY" # Payment sender signer
  source_address: "G_SOME_VALID_STELLAR_ADDRESS" # Payment sender address
  max_base_fee: #maximum stroops to be paid as transaction fee

withdraw:
  signer: "S_SOME_VALID_SECRET_KEY"
  owner: "G_SOME_VALID_ADDRESS"

log:
  level: debug
  disable_sentry: true

Note: Be careful during development, using testnet, it is cleaned periodically.

Use SCJSL6NUTWF6JT45DXUQM3BNGTOKYJ2QR5LE5C2QVQM5BXWKSNAYQYN3 for development and testing on testnet.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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