Documentation ¶
Index ¶
Constants ¶
View Source
const (
OnDeckTxKey = "ondeck-tx"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
Observer observer service
func NewObserver ¶
func NewObserver(pubkeyMgr *pubkeymanager.PubKeyManager, chains map[common.Chain]chainclients.ChainClient, thorchainBridge *thorclient.ThorchainBridge, m *metrics.Metrics, dataPath string, tssKeysignMetricMgr *metrics.TssKeysignMetricMgr, updater SignerCacheUpdater) (*Observer, error)
NewObserver create a new instance of Observer for chain
type ObserverStorage ¶ added in v0.41.0
type ObserverStorage struct {
// contains filtered or unexported fields
}
ObserverStorage save the ondeck tx in item to key value store , in case bifrost restart
func NewObserverStorage ¶ added in v0.41.0
func NewObserverStorage(path string) (*ObserverStorage, error)
NewObserverStorage create a new instance of LevelDBScannerStorage
func (*ObserverStorage) Close ¶ added in v0.41.0
func (s *ObserverStorage) Close() error
func (*ObserverStorage) GetOnDeckTxs ¶ added in v0.41.0
func (s *ObserverStorage) GetOnDeckTxs() ([]types.TxIn, error)
GetOnDeckTxs retrieve the ondeck tx from key value store
func (*ObserverStorage) SetOnDeckTxs ¶ added in v0.41.0
func (s *ObserverStorage) SetOnDeckTxs(ondeck []types.TxIn) error
SetOnDeckTxs save the ondeck tx to key value store
type SignerCacheUpdater ¶ added in v0.57.0
Click to show internal directories.
Click to hide internal directories.