Documentation ¶
Index ¶
- Variables
- type Median
- func (m *Median) Address() types.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 []types.Address, simulateBeforeRun bool) (*types.Hash, error)
- func (m *Median) Feeds(ctx context.Context) ([]types.Address, error)
- func (m *Median) Lift(ctx context.Context, addresses []types.Address, simulateBeforeRun bool) (*types.Hash, error)
- func (m *Median) Poke(ctx context.Context, prices []*median.Price, simulateBeforeRun bool) (*types.Hash, error)
- func (m *Median) SetBar(ctx context.Context, bar *big.Int, simulateBeforeRun bool) (*types.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 github.com/defiweb/go-eth packages.
func (*Median) Drop ¶
func (m *Median) Drop(ctx context.Context, addresses []types.Address, simulateBeforeRun bool) (*types.Hash, error)
Drop implements the oracle.Median interface.
func (*Median) Lift ¶
func (m *Median) Lift(ctx context.Context, addresses []types.Address, simulateBeforeRun bool) (*types.Hash, error)
Lift implements the oracle.Median interface.
func (*Median) Poke ¶
func (m *Median) Poke(ctx context.Context, prices []*median.Price, simulateBeforeRun bool) (*types.Hash, error)
Poke implements the oracle.Median interface.
func (*Median) SetBar ¶
func (m *Median) SetBar(ctx context.Context, bar *big.Int, simulateBeforeRun bool) (*types.Hash, error)
SetBar implements the oracle.Median interface.
Click to show internal directories.
Click to hide internal directories.