Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2020 v1.0.0 Feb 16, 2020 Changes in this version + type Contract struct + func New(provider, coreAddrStr, serviceAccount string, logger *logrus.Entry) (*Contract, error) + func (c *Contract) Close() error + func (c *Contract) GetLatestAvailableBlock() (*big.Int, error) + func (c *Contract) GetMntpSwapEvent(blockFrom, blockTo *big.Int) (events []*MntpSwapEventWrapper, err error) + func (c *Contract) GetTransactionStatus(hash string) (status TxStatus, err error) + func (c *Contract) IsActive() (bool, error) + func (c *Contract) MntpBalance() (*amount.Amount, error) + func (c *Contract) SendMntp(dst common.Address, src mint.PublicKey, amo *amount.Amount) (hash common.Hash, err error) + func (c *Contract) ServiceHasRights() (bool, error) + type MntpSwapEvent struct + Amount *big.Int + From common.Address + To [32]byte + type MntpSwapEventWrapper struct + Event *MntpSwapEvent + TransactionHash common.Hash + type TxStatus uint64 + const EthTxFailed + const EthTxPending + const EthTxSuccess + const EthTxUnknown