Documentation
¶
Index ¶
- type MinterGate
- func (mg *MinterGate) CoinInfo(symbol string) (*api_pb.CoinInfoResponse, error)
- func (mg *MinterGate) CoinInfoById(id uint64) (*api_pb.CoinInfoResponse, error)
- func (mg *MinterGate) EstimateCoinBuy(coinToSell, coinIdToSell, coinToBuy, coinIdToBuy, value, swapFrom string, ...) (*domain.CoinEstimate, error)
- func (mg *MinterGate) EstimateCoinSell(coinToSell, coinIdToSell, coinToBuy, coinIdToBuy, value, swapFrom string, ...) (*domain.CoinEstimate, error)
- func (mg *MinterGate) EstimateCoinSellAll(...) (*domain.CoinEstimate, error)
- func (mg *MinterGate) EstimateTxCommission(tx string, optionalHeight ...uint64) (*string, error)
- func (mg *MinterGate) ExplorerStatusChecker()
- func (mg *MinterGate) GetMinGas() (string, error)
- func (mg *MinterGate) GetNonce(address string) (uint64, error)
- func (mg *MinterGate) PriceCommissionsHandler(c *gin.Context)
- func (mg *MinterGate) SwapPoolHandler(c *gin.Context)
- func (mg *MinterGate) TxPush(tx string) (*string, error)
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)
Click to show internal directories.
Click to hide internal directories.