simple

package
v1.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 2

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 (*TransactionHandlerFactory) NewTransactionHandler

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL