Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relayer ¶
type Relayer struct {
// contains filtered or unexported fields
}
Relayer handles the flow of transactions from the Native chain to Bitcoin. It uses two processors: - nativeProcessor: To send transactions from Native to IKA for signing. - btcProcessor: To broadcast signed transactions to Bitcoin and monitor confirmations.
func NewRelayer ¶
func NewRelayer( relayerConfig RelayerConfig, db dal.DB, btcProcessor *ika2btc.Processor, fetcher native.SignReqFetcher, ) (*Relayer, error)
NewRelayer creates a new Relayer instance with the given configuration and processors. TODO: need to add Ika signatures querier
type RelayerConfig ¶
type RelayerConfig struct {
ProcessTxsInterval time.Duration
ConfirmTxsInterval time.Duration
SignReqFetchInterval time.Duration
// ID of the first sign req that we want to fetch in
SignReqFetchFrom int
SignReqFetchLimit int
}
RelayerConfig holds the configuration parameters for the Relayer.
Click to show internal directories.
Click to hide internal directories.