Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeggyBroadcastClient ¶
type PeggyBroadcastClient interface { AccFromAddress() sdk.AccAddress // SendValsetConfirm broadcasts in a confirmation for a specific validator set for a specific block height. SendValsetConfirm( ctx context.Context, ethFrom ethcmn.Address, peggyID ethcmn.Hash, valset *types.Valset, ) error // SendBatchConfirm broadcasts in a confirmation for a specific transaction batch set for a specific block height // since transaction batches also include validator sets this has all the arguments SendBatchConfirm( ctx context.Context, ethFrom ethcmn.Address, peggyID ethcmn.Hash, batch *types.OutgoingTxBatch, ) error SendEthereumClaims( ctx context.Context, lastClaimEvent uint64, deposits []*wrappers.PeggySendToCosmosEvent, withdraws []*wrappers.PeggyTransactionBatchExecutedEvent, valsetUpdates []*wrappers.PeggyValsetUpdatedEvent, erc20Deployed []*wrappers.PeggyERC20DeployedEvent, loopDuration time.Duration, ) error // SendRequestBatch broadcasts a requests a batch of withdrawal transactions to be generated on the chain. SendRequestBatch( ctx context.Context, denom string, ) error }
func NewPeggyBroadcastClient ¶
func NewPeggyBroadcastClient( logger zerolog.Logger, queryClient types.QueryClient, broadcastClient client.CosmosClient, ethSignerFn keystore.SignerFn, ethPersonalSignFn keystore.PersonalSignFn, ) PeggyBroadcastClient
Click to show internal directories.
Click to hide internal directories.