Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FluxAggregatorName is the name of Chainlink's Ethereum contract for // aggregating numerical data such as prices. FluxAggregatorName = "FluxAggregator" )
Variables ¶
View Source
var ( // AggregatorNewRoundLogTopic20191220 is the NewRound filter topic for // the FluxAggregator as of Dec. 20th 2019. Eagerly fails if not found. AggregatorNewRoundLogTopic20191220 = eth.MustGetV6ContractEventID("FluxAggregator", "NewRound") // AggregatorAnswerUpdatedLogTopic20191220 is the AnswerUpdated filter topic for // the FluxAggregator as of Dec. 20th 2019. Eagerly fails if not found. AggregatorAnswerUpdatedLogTopic20191220 = eth.MustGetV6ContractEventID("FluxAggregator", "AnswerUpdated") )
Functions ¶
This section is empty.
Types ¶
type FluxAggregator ¶
type FluxAggregator interface {
ethsvc.ConnectedContract
RoundState(oracle common.Address) (FluxAggregatorRoundState, error)
}
func NewFluxAggregator ¶
func NewFluxAggregator(address common.Address, ethClient eth.Client, logBroadcaster ethsvc.LogBroadcaster) (FluxAggregator, error)
type FluxAggregatorRoundState ¶
type FluxAggregatorRoundState struct {
ReportableRoundID uint32 `abi:"_reportableRoundId"`
EligibleToSubmit bool `abi:"_eligibleToSubmit"`
LatestAnswer *big.Int `abi:"_latestRoundAnswer"`
TimesOutAt uint64 `abi:"_timesOutAt"`
AvailableFunds *big.Int `abi:"_availableFunds"`
PaymentAmount *big.Int `abi:"_paymentAmount"`
}
type LogAnswerUpdated ¶
Click to show internal directories.
Click to hide internal directories.