Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeggyOrchestrator ¶
type PeggyOrchestrator interface { Start(ctx context.Context) error CheckForEvents(ctx context.Context, startingBlock, ethBlockConfirmationDelay uint64) (currentBlock uint64, err error) GetLastCheckedBlock(ctx context.Context) (uint64, error) EthOracleMainLoop(ctx context.Context) error EthSignerMainLoop(ctx context.Context) error BatchRequesterLoop(ctx context.Context) error RelayerMainLoop(ctx context.Context) error }
func NewPeggyOrchestrator ¶
func NewPeggyOrchestrator( logger zerolog.Logger, cosmosQueryClient peggytypes.QueryClient, peggyBroadcastClient sidechain.PeggyBroadcastClient, peggyContract peggy.Contract, ethFrom ethcmn.Address, ethSignerFn keystore.SignerFn, ethPersonalSignFn keystore.PersonalSignFn, relayer relayer.PeggyRelayer, cosmosBlockTime time.Duration, ethereumBlockTime time.Duration, batchRequesterLoopDuration time.Duration, ethBlocksPerLoop int64, options ...func(PeggyOrchestrator), ) PeggyOrchestrator
Source Files ¶
Click to show internal directories.
Click to hide internal directories.