Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2023 Changes in this version + type ChainHandler struct + type ChainManager struct + func InitChainManager(cfg *conf.MysGateConfig, db *xorm.Engine) *ChainManager + func (cm *ChainManager) CloseChainManager() + func (cm *ChainManager) PayForDest(order *model.Order) error + func (cm *ChainManager) SendMessage(msg msgType, order *model.Order) error + type Connection struct + HttpClient *ethclient.Client + type DestChainHandler struct + Caller common.Address + ContractAddress common.Address + HttpClient *ethclient.Client + PrivKey *ecdsa.PrivateKey + func NewDestChainHandler(client *ethclient.Client, addr common.Address, key *ecdsa.PrivateKey) *DestChainHandler + type IDispatcher interface + PayForDest func(*model.Order) error + type SrcChainHandler struct + Caller common.Address + ContractAddress common.Address + Db *xorm.Engine + HttpClient *ethclient.Client + PrivKey *ecdsa.PrivateKey + QuitListen chan bool + Rpc string + func NewSrcChainHandler(httpClient *ethclient.Client, addr common.Address, key *ecdsa.PrivateKey, ...) *SrcChainHandler + func (sch *SrcChainHandler) AddCommitment(order *model.Order) (bool, error) + func (sch *SrcChainHandler) DispatchEvent(v interface{})