stellar

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ChannelMgr *channel.Manager
	// contains filtered or unexported fields
}

Channel reprensents the connection to the eth blochain

func NewStellarChannel

func NewStellarChannel(DB *db.DB, cnf *config.Config, cm *channel.Manager) *Channel

NewStellarChannel connects the stellar-client

func (*Channel) GeneratePaymentAddress

func (l *Channel) GeneratePaymentAddress() (Address string, Seed string, err error)

GeneratePaymentAddress generates a ethereum address and seed

func (*Channel) Name

func (l *Channel) Name() string

Name returns the name of the channel

func (*Channel) Start

func (l *Channel) Start() error

Start the listener for the eth blockchain

func (*Channel) TransferAmount

func (l *Channel) TransferAmount(Order *m.UserOrder, inTx *m.IncomingTransaction, Amount *big.Int, fromAddress string, TransationStatus string, BTCOutIndex int) error

TransferAmount transfers the given amount to the given address in the stellar network also adds the transaction logs

type DBH

type DBH struct {
	*sql.DB
}

DBH connection to horizon db

type Operation

type Operation struct {
	To          string `json:"to"`
	From        string `json:"from"`
	Amount      string `json:"amount"`
	AssetCode   string `json:"asset_code"`
	AssetType   string `json:"asset_type"`
	AssetIssuer string `json:"asset_issuer"`
}

Operation one operation in the horizon db

Jump to

Keyboard shortcuts

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