Documentation ¶
Index ¶
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 ( MedianFactoryServer = staticMedianFactoryServer{ // contains filtered or unexported fields } MedianProvider = staticMedianProvider{ // contains filtered or unexported fields } MedianContractID = "0x42" )
Functions ¶
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.