Versions in this module Expand all Collapse all v0 v0.1.5 Oct 30, 2023 v0.1.4 Jul 29, 2023 Changes in this version + const BridgeOperatorRole + const BridgeRelayerRole + const BridgeRetrierRole + const DefaultAdminRole + type BridgeClient struct + Bridge *contracts.BridgeContract + Cfg contracts.BridgeNetworkConfig + Client *ethclient.Client + func NewBridgeSuite(cfg contracts.BridgeNetworkConfig, log logger.Logger) (*BridgeClient, error) + func (c *BridgeClient) DomainID() uint8 + func (c *BridgeClient) FormatAddressLink(address string) string + func (c *BridgeClient) FormatTxHashLink(txHash string) string + func (c *BridgeClient) ListenToTxs(ctx context.Context, resultChan chan interface{}, _ *big.Int) + func (c *BridgeClient) Roles() map[ethCommon.Hash]string + type BridgeConfig struct + Chains map[string]contracts.BridgeNetworkConfig + func DefaultConfig() BridgeConfig + func (cfg *BridgeConfig) IsValid() (bool, error) + type BridgeProcessor struct + func NewBridgeProcessor(cfg BridgeConfig, db *store.Store, log logger.Logger) (*BridgeProcessor, error) + func (p *BridgeProcessor) Process(ctx context.Context, msg EventMsg) error + func (p *BridgeProcessor) Queue(msg interface{}) + func (p *BridgeProcessor) Start(ctx context.Context) + type DepositMsg struct + Amount float64 + From string + FromNetwork string + To string + ToNetwork string + Token string + TokenName string + TokenSymbol string + TxHash string + func (msg DepositMsg) String() string + type EventMsg struct + DomainID uint8 + Event common.EVMEvent + type RelayerAddedMsg struct + Network string + Relayer string + TotalRelayers uint64 + TxHash string + func (msg RelayerAddedMsg) String() string + type RelayerRemovedMsg struct + Network string + Relayer string + TotalRelayers uint64 + TxHash string + func (msg RelayerRemovedMsg) String() string + type RetryMsg struct + Network string + TxHash string + TxToRetry string + func (msg RetryMsg) String() string + type RoleGrantedMsg struct + Grantee string + Network string + Operator string + Role string + TxHash string + func (msg RoleGrantedMsg) String() string + type RoleRevokedMsg struct + Network string + Operator string + RevokedAddress string + Role string + TxHash string + func (msg RoleRevokedMsg) String() string