Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReceiptSource ¶
type SendState ¶
type SendState struct {
// contains filtered or unexported fields
}
func NewSendState ¶
func (*SendState) IsWaitingForConfirmation ¶
func (*SendState) ProcessSendError ¶
func (*SendState) ShouldAbortImmediately ¶
func (*SendState) TxNotMined ¶
type SendTransactionFunc ¶
type SendTransactionFunc = func(ctx context.Context, tx *types.Transaction) error
type SimpleTxManager ¶
type SimpleTxManager struct {
// contains filtered or unexported fields
}
func NewSimpleTxManager ¶
func NewSimpleTxManager(cfg Config, backend ReceiptSource) *SimpleTxManager
func (*SimpleTxManager) Send ¶
func (m *SimpleTxManager) Send(ctx context.Context, updateGasPrice UpdateGasPriceFunc, sendTx SendTransactionFunc) (*types.Receipt, error)
type TxManager ¶
type TxManager interface {
Send(ctx context.Context, updateGasPrice UpdateGasPriceFunc, sendTxn SendTransactionFunc) (*types.Receipt, error)
}
type UpdateGasPriceFunc ¶
type UpdateGasPriceFunc = func(ctx context.Context) (*types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.