core

package
v2.0.0-...-a0f20da Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinEstimate

type CoinEstimate struct {
	Value      string
	Commission string
}

type NoahGate

type NoahGate struct {
	Logger *logrus.Entry
	// contains filtered or unexported fields
}

func New

func New(e *pubsub.Server, logger *logrus.Entry) *NoahGate

New instance of Noah Gate

func (*NoahGate) EstimateCoinBuy

func (mg *NoahGate) EstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*CoinEstimate, error)

Return estimate of buy coin

func (*NoahGate) EstimateCoinSell

func (mg *NoahGate) EstimateCoinSell(coinToSell string, coinToBuy string, value string) (*CoinEstimate, error)

Return estimate of sell coin

func (*NoahGate) EstimateCoinSellAll

func (mg *NoahGate) EstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*CoinEstimate, error)

Return estimate of sell coin

func (*NoahGate) EstimateTxCommission

func (mg *NoahGate) EstimateTxCommission(transaction string) (*string, error)

Return estimate of transaction

func (*NoahGate) GetMinGas

func (mg *NoahGate) GetMinGas() (*string, error)

Return nonce for address

func (*NoahGate) GetNonce

func (mg *NoahGate) GetNonce(address string) (*string, error)

Return nonce for address

func (NoahGate) TxPush

func (mg NoahGate) TxPush(transaction string) (*string, error)

Send transaction to blockchain Return transaction hash

Jump to

Keyboard shortcuts

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