Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainReader ¶
type OnchainConfig ¶
type OnchainConfigCodec ¶
type OnchainConfigCodec interface { Encode(context.Context, OnchainConfig) ([]byte, error) Decode(context.Context, []byte) (OnchainConfig, error) }
type ServerFetcher ¶
type ServerFetcher interface { // FetchInitialMaxFinalizedBlockNumber should fetch the initial max finalized block number FetchInitialMaxFinalizedBlockNumber(context.Context) (*int64, error) LatestPrice(ctx context.Context, feedID [32]byte) (*big.Int, error) LatestTimestamp(context.Context) (int64, error) }
type Transmitter ¶
type Transmitter interface { ServerFetcher // NOTE: Mercury doesn't actually transmit on-chain, so there is no // "contract" involved with the transmitter. // - Transmit should be implemented and send to Mercury server // - LatestConfigDigestAndEpoch is a stub method, does not need to do anything // - FromAccount() should return CSA public key ocrtypes.ContractTransmitter }
Click to show internal directories.
Click to hide internal directories.