package
0.0.5
Repository: https://github.com/goplugin/plugin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BumpGas computes the next gas price to attempt as the largest of: - A configured percentage bump (ETH_GAS_BUMP_PERCENT) on top of the baseline price.
CheckEthTxQueueCapacity returns an error if inserting this transaction would exceed the maximum queue size.
CountUnconfirmedTransactions returns the number of unconfirmed transactions.
FindEthTxesRequiringResend returns the highest priced attempt for each eth_tx that was last sent before or at the given time (up to limit).
FindEthTxsRequiringGasBump returns transactions that have all attempts which are unconfirmed for at least gasBumpThreshold blocks, limited by limit pending transactions It also returns eth_txes that are unconfirmed with no eth_tx_attempts.
FindEthTxsRequiringRebroadcast returns attempts that hit insufficient eth, and attempts that need bumping, in nonce ASC order.
FindEthTxsRequiringResubmissionDueToInsufficientEth returns transactions that need to be re-sent because they hit an out-of-eth error on a previous block.
FromGethLog converts a gethTypes.Log to a Log.
FromGethReceipt converts a gethTypes.Receipt to a Receipt.
GetNextNonce returns keys.next_nonce for the given address.
IncrementNextNonce increments keys.next_nonce by 1.
No description provided by the author
NewEthBroadcaster returns a new concrete EthBroadcaster.
NewEthConfirmer instantiates a new eth confirmer.
No description provided by the author
NewNonceSyncer returns a new syncer.
NewReaper instantiates a new reaper object.
SendEther creates a transaction that transfers the given value of ether.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
InFlightTransactionRecheckInterval controls how often the EthBroadcaster will poll the unconfirmed queue to see if it is allowed to send another transaction.

# Variables

ErrCouldNotGetReceipt is the error string we save if we reach our finality depth for a confirmed transaction without ever getting a receipt This most likely happened because an external wallet used the account for this nonce.

# Structs

No description provided by the author
EthBroadcaster monitors eth_txes for transactions that need to be broadcast, assigns nonces and ensures that at least one eth node somewhere has received the transaction successfully.
No description provided by the author
EthResender periodically picks up transactions that have been languishing unconfirmed for a configured amount of time without being sent, and sends their highest priced attempt again.
Log represents a contract log event.
No description provided by the author
No description provided by the author
No description provided by the author
Reaper handles periodic database cleanup for BPTXM.
Receipt represents an ethereum receipt.

# Interfaces

Config encompasses config used by bulletprooftxmanager package Unless otherwise specified, these should support changing at runtimego:generate mockery --recursive --name Config --output ./mocks/ --case=underscore --structname Config --filename config.go.
KeyStore encompasses the subset of keystore used by bulletprooftxmanager.
ReaperConfig is the config subset used by the reaper.
go:generate mockery --recursive --name TxManager --output ./mocks/ --case=underscore --structname TxManager --filename tx_manager.go.