core

package
v2.16.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 15 Imported by: 1 module, 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 MinterGate

type MinterGate struct {
	NodeClient *grpc_client.Client

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

func New

func New(nodeApi *grpc_client.Client, e *pubsub.Server, logger *logrus.Entry) *MinterGate

New instance of Minter Gate

func (*MinterGate) CoinInfo added in v2.3.0

func (mg *MinterGate) CoinInfo(symbol string) (*api_pb.CoinInfoResponse, error)

func (*MinterGate) CoinInfoById added in v2.3.0

func (mg *MinterGate) CoinInfoById(id uint64) (*api_pb.CoinInfoResponse, error)

func (*MinterGate) EstimateCoinBuy

func (mg *MinterGate) EstimateCoinBuy(coinToSell, coinIdToSell, coinToBuy, coinIdToBuy, value, swapFrom string,
	commissionCoinId uint64, route []uint64) (*domain.CoinEstimate, error)

Return estimate of buy coin

func (*MinterGate) EstimateCoinSell

func (mg *MinterGate) EstimateCoinSell(coinToSell, coinIdToSell, coinToBuy, coinIdToBuy, value, swapFrom string,
	commissionCoinId uint64, route []uint64) (*domain.CoinEstimate, error)

Return estimate of sell coin

func (*MinterGate) EstimateCoinSellAll added in v2.3.0

func (mg *MinterGate) EstimateCoinSellAll(coinToSell, coinIdToSell, coinToBuy, coinIdToBuy, value, gasPrice,
	swapFrom string, route []uint64) (*domain.CoinEstimate, error)

Return estimate of sell coin

func (*MinterGate) EstimateTxCommission

func (mg *MinterGate) EstimateTxCommission(tx string, optionalHeight ...uint64) (*string, error)

Return estimate of transaction

func (*MinterGate) ExplorerStatusChecker added in v2.3.0

func (mg *MinterGate) ExplorerStatusChecker()

func (*MinterGate) GetMinGas

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

Return nonce for address

func (*MinterGate) GetNonce

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

Return nonce for address

func (*MinterGate) PriceCommissionsHandler added in v2.3.0

func (mg *MinterGate) PriceCommissionsHandler(c *gin.Context)

func (*MinterGate) SwapPoolHandler added in v2.3.0

func (mg *MinterGate) SwapPoolHandler(c *gin.Context)

func (*MinterGate) TxPush

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