Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateRelayData(vaultTx types.VaultTransaction) (models.RelayData, error)
- func (c *Client) CreateRelayDatas(vaultTxs []types.VaultTransaction) ([]models.RelayData, error)
- func (c *Client) PreProcessMessages(vaultTxs []types.VaultTransaction) error
- func (c *Client) Start(ctx context.Context) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewElectrumClient ¶
func NewElectrumClients ¶
func (*Client) CreateRelayData ¶
func (*Client) CreateRelayDatas ¶
func (*Client) PreProcessMessages ¶
func (c *Client) PreProcessMessages(vaultTxs []types.VaultTransaction) error
Todo: Log and validate incomming message
type Config ¶
type Config struct { //Electrum server host Host string //Electrum server port Port int //Electrum server user User string //Electrum server password Password string //Source chain - This must match with bridge config in the xchains core config. For example bitcoin-testnet4 SourceChain string //Las Vault Tx's hash received from electrum server. //If this parameter is empty, server will start from the first vault tx from db. BatchSize int LastVaultTx string }
Click to show internal directories.
Click to hide internal directories.