Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainReader ¶
type FeedID ¶ added in v1.3.0
type FeedID [32]byte
func (*FeedID) UnmarshalText ¶ added in v1.3.0
func (FeedID) Version ¶ added in v1.3.0
func (f FeedID) Version() FeedVersion
type FeedVersion ¶ added in v1.3.0
type FeedVersion uint16
const ( REPORT_V1 FeedVersion REPORT_V2 REPORT_V3 REPORT_V4 )
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.