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 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( cosmosQueryClient sidechain.PeggyQueryClient, peggyBroadcastClient sidechain.PeggyBroadcastClient, tmClient tmclient.TendermintClient, peggyContract peggy.PeggyContract, ethFrom ethcmn.Address, ethSignerFn keystore.SignerFn, ethPersonalSignFn keystore.PersonalSignFn, erc20ContractMapping map[ethcmn.Address]string, relayer relayer.PeggyRelayer, minBatchFeeUSD float64, priceFeeder *coingecko.CoingeckoPriceFeed, ) PeggyOrchestrator
Source Files
¶
Click to show internal directories.
Click to hide internal directories.