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
Click to show internal directories.
Click to hide internal directories.