Documentation
¶
Index ¶
- Constants
- Variables
- func MedianProvider(lggr logger.Logger) staticMedianProvider
- func NewMedianFactoryServer(lggr logger.Logger) staticMedianFactoryServer
- func PluginMedian(t *testing.T, p core.PluginMedian)
- func ReportingPluginFactory(t *testing.T, factory types.ReportingPluginFactory)
- type CompareError
- type PluginMedianTest
- type ZeroDataSource
Constants ¶
View Source
const ConfigTOML = `[Foo]
Bar = "Baz"
`
Variables ¶
View Source
var ( DataSource = staticDataSource{ staticDataSourceConfig{ ReportContext: reportContext, Value: value, }, } JuelsPerFeeCoinDataSource = staticDataSource{ staticDataSourceConfig{ ReportContext: reportContext, Value: juelsPerFeeCoin, }, } GasPriceSubunitsDataSource = staticDataSource{ staticDataSourceConfig{ ReportContext: reportContext, Value: gasPriceSubunits, }, } )
View Source
var MedianContractID = "0x42"
Functions ¶
func MedianProvider ¶
func NewMedianFactoryServer ¶ added in v0.5.0
func PluginMedian ¶
func PluginMedian(t *testing.T, p core.PluginMedian)
func ReportingPluginFactory ¶
func ReportingPluginFactory(t *testing.T, factory types.ReportingPluginFactory)
Types ¶
type CompareError ¶
func (*CompareError) Error ¶
func (e *CompareError) Error() string
func (*CompareError) GotZero ¶
func (e *CompareError) GotZero() bool
type PluginMedianTest ¶
type PluginMedianTest struct {
types.MedianProvider
}
func (PluginMedianTest) TestPluginMedian ¶
func (m PluginMedianTest) TestPluginMedian(t *testing.T, p core.PluginMedian)
type ZeroDataSource ¶
type ZeroDataSource struct {
}
Only to be used for testing
func (*ZeroDataSource) Observe ¶
func (s *ZeroDataSource) Observe(ctx context.Context, _ types.ReportTimestamp) (*big.Int, error)
Click to show internal directories.
Click to hide internal directories.