Documentation
¶
Index ¶
- Variables
- func NewFunctionsConfigPoller(pluginType FunctionsPluginType, destChainPoller logpoller.LogPoller, ...) (*configPoller, error)
- func NewFunctionsContractTransmitter(caller contractReader, contractABI abi.ABI, lp logpoller.LogPoller, ...) (*contractTransmitter, error)
- func NewFunctionsOffchainConfigDigester(pluginType FunctionsPluginType, chainID uint64) *functionsOffchainConfigDigester
- func NewLogPollerWrapper(routerContractAddress common.Address, pluginConfig config.PluginConfig, ...) (evmRelayTypes.LogPollerWrapper, error)
- type FunctionsContractTransmitter
- type FunctionsPluginType
- type ReportToEthMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FunctionsDigestPrefix = types.ConfigDigestPrefixEVMSimple // In order to support multiple OCR plugins with a single jobspec & OCR2Base contract, each plugin must have a unique config digest. // This is accomplished by overriding the single config digest from the contract with a unique prefix for each plugin via this custom offchain digester & config poller. ThresholdDigestPrefix = types.ConfigDigestPrefix(7) S4DigestPrefix = types.ConfigDigestPrefix(8) )
View Source
var ConfigSet common.Hash
ConfigSet Common to all OCR2 evm based contracts: https://github.com/smartcontractkit/libocr/blob/master/contract2/dev/OCR2Abstract.sol
Functions ¶
func NewFunctionsContractTransmitter ¶ added in v2.5.0
func NewFunctionsContractTransmitter( caller contractReader, contractABI abi.ABI, lp logpoller.LogPoller, lggr logger.Logger, contractVersion uint32, txm txManager, fromAddresses []common.Address, gasLimit uint64, effectiveTransmitterAddress common.Address, strategy types.TxStrategy, checker txmgr.TransmitCheckerSpec, chainID *big.Int, keystore roundRobinKeystore, ) (*contractTransmitter, error)
func NewFunctionsOffchainConfigDigester ¶ added in v2.5.0
func NewFunctionsOffchainConfigDigester(pluginType FunctionsPluginType, chainID uint64) *functionsOffchainConfigDigester
func NewLogPollerWrapper ¶ added in v2.5.0
func NewLogPollerWrapper(routerContractAddress common.Address, pluginConfig config.PluginConfig, client client.Client, logPoller logpoller.LogPoller, lggr logger.Logger) (evmRelayTypes.LogPollerWrapper, error)
Types ¶
type FunctionsContractTransmitter ¶ added in v2.5.0
type FunctionsContractTransmitter interface { services.ServiceCtx ocrtypes.ContractTransmitter }
type FunctionsPluginType ¶
type FunctionsPluginType int
const ( FunctionsPlugin FunctionsPluginType = iota ThresholdPlugin S4Plugin )
Click to show internal directories.
Click to hide internal directories.