Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Forwarder ¶
type Forwarder struct { ID int64 Address common.Address EVMChainID utils.Big CreatedAt time.Time UpdatedAt time.Time }
Forwarder is the struct for Forwarder Addresses
type FwdMgr ¶ added in v1.5.0
type FwdMgr struct { utils.StartStopOnce ORM ORM // contains filtered or unexported fields }
func (*FwdMgr) MaybeForwardTransaction ¶ added in v1.5.0
func (f *FwdMgr) MaybeForwardTransaction(from common.Address, to common.Address, encodedPayload []byte) (fwdAddr common.Address, fwdPayload []byte, err error)
TODO(samhassan): this should be aware of job type to decide how to fetch senders list.
This is necessary to support ocr1 jobs. https://app.shortcut.com/chainlinklabs/story/15448/ocr1-feeds-jobs-should-detect-if-they-are-configured-to-use-a-forwarder-contract
type ORM ¶
type ORM interface { CreateForwarder(addr common.Address, evmChainId utils.Big) (fwd Forwarder, err error) FindForwarders(offset, limit int) ([]Forwarder, int, error) FindForwardersByChain(evmChainId utils.Big) ([]Forwarder, error) DeleteForwarder(id int32) error FindForwardersInListByChain(evmChainId utils.Big, addrs []common.Address) ([]Forwarder, error) }
Click to show internal directories.
Click to hide internal directories.