terra

package
v0.0.0-...-a8a8cbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadKey

func ReadKey(path string) (string, error)

ReadKey reads file and returns its content as a string

func StringToAddress

func StringToAddress(value string) (vaa.Address, error)

StringToAddress convert string into address

func StringToHash

func StringToHash(value string) (eth_common.Hash, error)

StringToHash convert string into transaction hash

func SubmitVAA

func SubmitVAA(ctx context.Context, urlLCD string, chainID string, contractAddress string, feePayer string, signed *vaa.VAA) (*client.TxResponse, error)

SubmitVAA prepares transaction with signed VAA and sends it to the Terra blockchain

Types

type BridgeWatcher

type BridgeWatcher struct {
	// contains filtered or unexported fields
}

BridgeWatcher is responsible for looking over Terra blockchain and reporting new transactions to the bridge

func NewTerraBridgeWatcher

func NewTerraBridgeWatcher(urlWS string, urlLCD string, bridge string, lockEvents chan *common.MessagePublication, setEvents chan *common.GuardianSet) *BridgeWatcher

NewTerraBridgeWatcher creates a new terra bridge watcher

func (*BridgeWatcher) Run

func (e *BridgeWatcher) Run(ctx context.Context) error

Run is the main Terra Bridge run cycle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL