package
0.0.0-20220331220452-7d63ed464df1
Repository: https://github.com/zapproject/pythia.git
Documentation: pkg.go.dev

# Functions

compute the average ampl price over a 24 hour period using a chained price feed.
BuildIndexTrackers creates and initializes a new tracker instance.
CheckValueAtTime queries for the details regarding the disputed value.
these weight functions map values of x between 0 (brand new) and 1 (old) to weights between 0 and 1also returns the integral of the weight over the range [0,1]weights the oldest data (1) as being 1/3 as important (1/e).
No description provided by the author
weights the oldest data at 0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRunner will create a new runner instance.
weights all data in the time interval evenly.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

GWEI constant is the multiplier from Wei.

# Variables

No description provided by the author

# Structs

No description provided by the author
BalanceTracker concrete tracker type.
ChainedPrice computes a pair that doesn't exist by using multiple symbols.
CurrentVariablesTracker concrete tracker type.
DisputeTracker struct.
FetchRequest holds info for a request TODO: add mock fetch.
GasPriceModel is what ETHGasStation returns from queries.
GasTracker is the struct that maintains the latest gasprices.
No description provided by the author
No description provided by the author
No description provided by the author
CurrentVariablesTracker concrete tracker type.
Runner will execute all configured trackers.
No description provided by the author
No description provided by the author
No description provided by the author
TimeOutTracker struct.
No description provided by the author
ValueCheckResult holds the details regarding the disputed value.

# Interfaces

No description provided by the author
Tracker is the primary interface for the various tracking options.
No description provided by the author

# Type aliases

a function to consolidate the recorded API values to a single value.