Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backoff ¶
Backoff controls polling cadence.
func NewBackoff ¶ added in v1.0.3
func NewBackoff(cfg clientconfig.WaitTxConfig) Backoff
NewBackoff constructs a poller backoff from the WaitTx configuration.
type Querier ¶
type Querier interface {
GetTx(ctx context.Context, req *txtypes.GetTxRequest) (*txtypes.GetTxResponse, error)
}
Querier fetches transactions over gRPC.
type Waiter ¶
type Waiter struct {
// contains filtered or unexported fields
}
Waiter coordinates a subscriber (WS) and poller (gRPC) to observe a tx.
func New ¶
func New(cfg clientconfig.WaitTxConfig, rpcEndpoint string, querier Querier) (*Waiter, error)
New creates a waiter based on the provided config and querier.
Click to show internal directories.
Click to hide internal directories.