swap

package
v0.0.0-...-73b05ea Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion int = 2

JS SDK use to communicate.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Config *config.Config `inject:""`
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(cfg *config.Config) *Engine

func (*Engine) BitcoinAddressGenerator

func (engine *Engine) BitcoinAddressGenerator() *bitcoin.AddressGenerator

func (*Engine) EthereumAddressGenerator

func (engine *Engine) EthereumAddressGenerator() *ethereum.AddressGenerator

public method to access private properties, this avoids setting props directly cause mistmatch from config

func (*Engine) MinimumValueBtc

func (engine *Engine) MinimumValueBtc() string

func (*Engine) MinimumValueEth

func (engine *Engine) MinimumValueEth() string

func (*Engine) MinimumValueSat

func (engine *Engine) MinimumValueSat() int64

func (*Engine) MinimumValueWei

func (engine *Engine) MinimumValueWei() *big.Int

func (*Engine) SetDelegate

func (engine *Engine) SetDelegate(handler interfaces.SwapEngineHandler)

func (*Engine) SetQueue

func (engine *Engine) SetQueue(queue queue.Queue)

SetQueue : update queue mechanism, may be rabbitmq implementation

func (*Engine) SetStorage

func (engine *Engine) SetStorage(storage storage.Storage)

SetStorage : update storage mechanism

func (*Engine) SignerPublicKey

func (engine *Engine) SignerPublicKey() common.Address

func (*Engine) Start

func (engine *Engine) Start() error

func (*Engine) TomochainAccountConfigurator

func (engine *Engine) TomochainAccountConfigurator() *tomochain.AccountConfigurator

func (*Engine) TransactionsQueue

func (engine *Engine) TransactionsQueue() queue.Queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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