Documentation ¶
Index ¶
- type CoinEstimate
- type MinterGate
- func (mg *MinterGate) EstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*CoinEstimate, error)
- func (mg *MinterGate) EstimateCoinSell(coinToSell string, coinToBuy string, value string) (*CoinEstimate, error)
- func (mg *MinterGate) EstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*CoinEstimate, error)
- func (mg *MinterGate) EstimateTxCommission(transaction string) (*string, error)
- func (mg *MinterGate) GetMinGas() (*string, error)
- func (mg *MinterGate) GetNonce(address string) (*string, error)
- func (mg MinterGate) TxPush(transaction string) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinEstimate ¶
type MinterGate ¶
type MinterGate struct { Config env.Config Logger *logrus.Entry // contains filtered or unexported fields }
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
Click to show internal directories.
Click to hide internal directories.