binance

package
v0.0.0-...-8acb6f8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTestNet

func IsTestNet(dexHost string) bool

Types

type Binance

type Binance struct {
	Client sdk.DexClient
	// contains filtered or unexported fields
}

func NewBinance

func NewBinance(cfg config.BinanceConfiguration, useTSS bool, keySignCfg config.TSSConfiguration) (*Binance, error)

NewBinance create new instance of binance client

func (*Binance) BroadcastTx

func (b *Binance) BroadcastTx(hexTx []byte, param map[string]string) (*tx.TxCommitResult, error)

func (*Binance) GetAddress

func (b *Binance) GetAddress(poolPubKey common.PubKey) string

GetAddress return current signer address, it will be bech32 encoded address

func (*Binance) GetPubKey

func (b *Binance) GetPubKey() crypto.PubKey

GetPubKey return the pub key

func (*Binance) SignTx

func (b *Binance) SignTx(tai stypes.TxArrayItem, height int64) ([]byte, map[string]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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