core

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 MinterGate

type MinterGate struct {
	Config env.Config

	Logger *logrus.Entry
	// contains filtered or unexported fields
}

func New

func New(config env.Config, e *pubsub.Server, logger *logrus.Entry) *MinterGate

New instance of Minter Gate

func (*MinterGate) EstimateCoinBuy

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

Return estimate of buy coin

func (*MinterGate) EstimateCoinSell

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

Return estimate of sell coin

func (*MinterGate) EstimateCoinSellAll added in v1.2.9

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

Return estimate of sell coin

func (*MinterGate) EstimateTxCommission

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

Return estimate of transaction

func (*MinterGate) GetMinGas

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

Return nonce for address

func (*MinterGate) GetNonce

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

Return nonce for address

func (MinterGate) TxPush

func (mg MinterGate) 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