Documentation ¶
Index ¶
- func LoadChains(thorKeys *digitalclient.Keys, ...) (chains map[common.Chain]ChainClient, restart chan struct{})
- type ChainClient
- type DummyChain
- func (DummyChain) BroadcastTx(_ stypes.TxOutItem, tx []byte) error
- func (DummyChain) CheckIsTestNet() (string, bool)
- func (DummyChain) GetAccount(addr string) (common.Account, error)
- func (DummyChain) GetAddress(poolPubKey common.PubKey) string
- func (DummyChain) GetChain() common.Chain
- func (DummyChain) GetGasFee(count uint64) common.Gas
- func (DummyChain) GetHeight() (int64, error)
- func (DummyChain) IsBlockScannerHealthy() bool
- func (DummyChain) SignTx(tx stypes.TxOutItem, height int64) ([]byte, error)
- func (DummyChain) Start(globalTxsQueue chan stypes.TxIn)
- func (DummyChain) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadChains ¶
func LoadChains(thorKeys *digitalclient.Keys, cfg map[common.Chain]config.BifrostChainConfiguration, server *tss.TssServer, digitaldollarBridge digitalclient.DigitaldollarBridge, m *metrics.Metrics, pubKeyValidator pubkeymanager.PubKeyValidator, poolMgr digitalclient.PoolManager, ) (chains map[common.Chain]ChainClient, restart chan struct{})
LoadChains returns chain clients from chain configuration
Types ¶
type DummyChain ¶
type DummyChain struct{}
func (DummyChain) BroadcastTx ¶
func (DummyChain) BroadcastTx(_ stypes.TxOutItem, tx []byte) error
func (DummyChain) CheckIsTestNet ¶
func (DummyChain) CheckIsTestNet() (string, bool)
func (DummyChain) GetAccount ¶
func (DummyChain) GetAccount(addr string) (common.Account, error)
func (DummyChain) GetAddress ¶
func (DummyChain) GetAddress(poolPubKey common.PubKey) string
func (DummyChain) GetChain ¶
func (DummyChain) GetChain() common.Chain
func (DummyChain) GetHeight ¶
func (DummyChain) GetHeight() (int64, error)
func (DummyChain) IsBlockScannerHealthy ¶
func (DummyChain) IsBlockScannerHealthy() bool
func (DummyChain) Start ¶
func (DummyChain) Start(globalTxsQueue chan stypes.TxIn)
func (DummyChain) Stop ¶
func (DummyChain) Stop()
Click to show internal directories.
Click to hide internal directories.