Documentation ¶
Index ¶
- func EventsToMessagePublications(contract string, txHash string, events []gjson.Result, logger *zap.Logger) []*common.MessagePublication
- func ReadKey(path string) (string, error)
- func StringToAddress(value string) (vaa.Address, error)
- func StringToHash(value string) (eth_common.Hash, error)
- func SubmitVAA(ctx context.Context, urlLCD string, chainID string, contractAddress string, ...) (*sdk.TxResponse, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToAddress ¶
StringToAddress convert string into address
func StringToHash ¶
func StringToHash(value string) (eth_common.Hash, error)
StringToHash convert string into transaction hash
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is responsible for looking over Terra blockchain and reporting new transactions to the contract
func NewWatcher ¶
func NewWatcher( urlWS string, urlLCD string, contract string, lockEvents chan *common.MessagePublication, setEvents chan *common.GuardianSet, obsvReqC chan *gossipv1.ObservationRequest) *Watcher
NewWatcher creates a new Terra contract watcher
Click to show internal directories.
Click to hide internal directories.