core

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 8 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 MinterGate

type MinterGate struct {
	// contains filtered or unexported fields
}

func New

func New(config env.Config, e *emitter.Emitter, db *gorm.DB) *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) EstimateTxCommission

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

Return estimate of transaction

func (*MinterGate) GetActiveNodes

func (mg *MinterGate) GetActiveNodes() []models.MinterNode

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