oracle

package
v0.0.0-...-29f768c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oracle

type Oracle struct {
	// contains filtered or unexported fields
}

func NewOracle

func NewOracle(nodeRPCAddr string, contractAddr string, signer *ontSDK.Account, gasPrice,
	gasLimit uint64) (*Oracle, error)

func (*Oracle) GetAddr

func (this *Oracle) GetAddr() common.Address

func (*Oracle) GetDecimal

func (this *Oracle) GetDecimal() (uint8, error)

func (*Oracle) GetUnderlyingPrice

func (this *Oracle) GetUnderlyingPrice(key string) (*big.Int, error)

func (*Oracle) Init

func (this *Oracle) Init(admin common.Address) (string, error)

func (*Oracle) IsPriceOracle

func (this *Oracle) IsPriceOracle() (bool, error)

func (*Oracle) PutUnderlyingPrice

func (this *Oracle) PutUnderlyingPrice(keyList []string, price []*big.Int) (string, error)

func (*Oracle) SetDecimal

func (this *Oracle) SetDecimal(decimals uint8) (string, error)

func (*Oracle) UpdateSigner

func (this *Oracle) UpdateSigner(newSigner *ontSDK.Account)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL