Documentation ¶
Index ¶
- Variables
- type Median
- func (m *Median) Address() common.Address
- func (m *Median) Age(ctx context.Context) (time.Time, error)
- func (m *Median) Bar(ctx context.Context) (int64, error)
- func (m *Median) Drop(ctx context.Context, addresses []common.Address, simulateBeforeRun bool) (*ethereum.Hash, error)
- func (m *Median) Feeds(ctx context.Context) ([]ethereum.Address, error)
- func (m *Median) Lift(ctx context.Context, addresses []common.Address, simulateBeforeRun bool) (*ethereum.Hash, error)
- func (m *Median) Poke(ctx context.Context, prices []*oracle.Price, simulateBeforeRun bool) (*ethereum.Hash, error)
- func (m *Median) SetBar(ctx context.Context, bar *big.Int, simulateBeforeRun bool) (*ethereum.Hash, error)
- func (m *Median) Val(ctx context.Context) (*big.Int, error)
- func (m *Median) Wat(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStorageQueryFailed = errors.New("oracle contract storage query failed")
Functions ¶
This section is empty.
Types ¶
type Median ¶
type Median struct {
// contains filtered or unexported fields
}
Median implements the oracle.Median interface using go-ethereum packages.
func (*Median) Drop ¶
func (m *Median) Drop(ctx context.Context, addresses []common.Address, simulateBeforeRun bool) (*ethereum.Hash, error)
Drop implements the oracle.Median interface.
func (*Median) Lift ¶
func (m *Median) Lift(ctx context.Context, addresses []common.Address, simulateBeforeRun bool) (*ethereum.Hash, error)
Lift implements the oracle.Median interface.
func (*Median) Poke ¶
func (m *Median) Poke(ctx context.Context, prices []*oracle.Price, simulateBeforeRun bool) (*ethereum.Hash, error)
Poke implements the oracle.Median interface.
func (*Median) SetBar ¶
func (m *Median) SetBar(ctx context.Context, bar *big.Int, simulateBeforeRun bool) (*ethereum.Hash, error)
SetBar implements the oracle.Median interface.
Click to show internal directories.
Click to hide internal directories.