orchestrator

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GravityOrchestrator added in v0.2.0

type GravityOrchestrator interface {
	Start(ctx context.Context) error
	CheckForEvents(ctx context.Context, startingBlock, ethBlockConfirmationDelay uint64) (currentBlock uint64, err error)
	GetLastCheckedBlock(ctx context.Context, ethBlockConfirmationDelay uint64) (uint64, error)
	EthOracleMainLoop(ctx context.Context) error
	EthSignerMainLoop(ctx context.Context) error
	BatchRequesterLoop(ctx context.Context) error
	RelayerMainLoop(ctx context.Context) error
}

func NewGravityOrchestrator added in v0.2.0

func NewGravityOrchestrator(
	logger zerolog.Logger,
	cosmosQueryClient gravitytypes.QueryClient,
	gravityBroadcastClient sidechain.GravityBroadcastClient,
	gravityContract gravity.Contract,
	ethFrom ethcmn.Address,
	ethSignerFn keystore.SignerFn,
	ethPersonalSignFn keystore.PersonalSignFn,
	relayer relayer.GravityRelayer,
	cosmosBlockTime time.Duration,
	ethereumBlockTime time.Duration,
	batchRequesterLoopDuration time.Duration,
	ethBlocksPerLoop int64,
	bridgeStartHeight int64,
	symbolRetriever relayer.SymbolRetriever,
	oracle relayer.Oracle,
	ethMergePause bool,
	options ...func(GravityOrchestrator),
) GravityOrchestrator

Directories

Path Synopsis
ethereum

Jump to

Keyboard shortcuts

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