simple

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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 PolicyEngineFactory

type PolicyEngineFactory struct{}

func (*PolicyEngineFactory) InitConfig

func (f *PolicyEngineFactory) InitConfig(conf config.Section)

func (*PolicyEngineFactory) Name

func (f *PolicyEngineFactory) Name() string

func (*PolicyEngineFactory) NewPolicyEngine

func (f *PolicyEngineFactory) NewPolicyEngine(ctx context.Context, conf config.Section) (pe policyengine.PolicyEngine, err error)

simplePolicyEngine is a base policy engine forming an example for extension: - It uses a public gas estimation - It submits the transaction once - It logs errors transactions breach certain configured thresholds of staleness

Jump to

Keyboard shortcuts

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