Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxInFlight = "maxInFlight" NonceStateTimeout = "nonceStateTimeout" Interval = "interval" RetryInitDelay = "retry.initialDelay" RetryMaxDelay = "retry.maxDelay" RetryFactor = "retry.factor" FixedGasPrice = "fixedGasPrice" // when not using a gas station - will be treated as a raw JSON string, so can be numeric 123, or string "123", or object {"maxPriorityFeePerGas":123}) ResubmitInterval = "resubmitInterval" // warnings will be written to the log at this interval if mining has not occurred, and the TX will be resubmitted GasOracleConfig = "gasOracle" GasOracleMode = "mode" GasOracleMethod = "method" GasOracleTemplate = "template" GasOracleQueryInterval = "queryInterval" )
View Source
const ( GasOracleModeDisabled = "disabled" GasOracleModeRESTAPI = "restapi" GasOracleModeConnector = "connector" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionHandlerFactory ¶
type TransactionHandlerFactory struct{}
func (*TransactionHandlerFactory) InitConfig ¶
func (f *TransactionHandlerFactory) InitConfig(conf config.Section)
func (*TransactionHandlerFactory) Name ¶
func (f *TransactionHandlerFactory) Name() string
func (*TransactionHandlerFactory) NewTransactionHandler ¶
func (f *TransactionHandlerFactory) NewTransactionHandler(ctx context.Context, conf config.Section) (txhandler.TransactionHandler, error)
simpleTransactionHandler is a base transaction handler forming an example for extension: - It offers three ways of calculating gas price: use a fixed number, use the built-in API of a ethereum connector, use a RESTful gas oracle - It resubmits the transaction based on a configured interval until it succeed or fail
type UpdateType ¶
type UpdateType int
UpdateType informs FFTM whether the transaction needs an update to be persisted after this execution of the policy engine
const ( UpdateNo UpdateType = iota // Instructs that no update is necessary UpdateYes // Instructs that the transaction should be updated in persistence UpdateDelete // Instructs that the transaction should be removed completely from persistence - generally only returned when TX status is TxStatusDeleteRequested )
Click to show internal directories.
Click to hide internal directories.