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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoahGate

type NoahGate struct {
	IsActive bool
	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) (*domain.CoinEstimate, error)

Return estimate of buy coin

func (*NoahGate) EstimateCoinSell

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

Return estimate of sell coin

func (*NoahGate) EstimateTxCommission

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

Return estimate of transaction

func (*NoahGate) ExplorerStatusChecker

func (mg *NoahGate) ExplorerStatusChecker()

func (*NoahGate) GetMinGas

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

Return nonce for address

func (*NoahGate) GetNonce

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

Return nonce for address

func (*NoahGate) TxPush

func (mg *NoahGate) TxPush(tx 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