mock

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainOracle

type ChainOracle struct {
}

func NewServer

func NewServer() *ChainOracle

func (*ChainOracle) CheckAutoInfo

func (ora *ChainOracle) CheckAutoInfo([]byte) bool

func (*ChainOracle) DataStoreFinished

func (ora *ChainOracle) DataStoreFinished(cid boson.Address, dataLen uint64, salt uint64, proof []byte, resCh chan oracle.ChainResult)

func (*ChainOracle) GetCid

func (ora *ChainOracle) GetCid(aufsUri string) []byte

func (*ChainOracle) GetNodesFromCid

func (ora *ChainOracle) GetNodesFromCid(cid []byte) []boson.Address

func (*ChainOracle) GetPeerBalance

func (ora *ChainOracle) GetPeerBalance(peer boson.Address) *big.Int

func (*ChainOracle) GetReceivedAmount

func (ora *ChainOracle) GetReceivedAmount(peer boson.Address) *big.Int

func (*ChainOracle) GetSentAmount

func (ora *ChainOracle) GetSentAmount(peer boson.Address) *big.Int

func (*ChainOracle) GetSourceNodes

func (ora *ChainOracle) GetSourceNodes(aufsUri string) []boson.Address

func (*ChainOracle) OnStoreMatched

func (ora *ChainOracle) OnStoreMatched(cid boson.Address, dataLen uint64, salt uint64, address boson.Address)

func (*ChainOracle) PeerPrice

func (ora *ChainOracle) PeerPrice(address boson.Address) uint64

func (*ChainOracle) Price

func (ora *ChainOracle) Price() uint64

func (*ChainOracle) ReportInvalidAuthInfo

func (ora *ChainOracle) ReportInvalidAuthInfo([]byte, chan oracle.ChainResult)

func (*ChainOracle) ReportSignedAmount

func (ora *ChainOracle) ReportSignedAmount(voucher []byte, signature []byte, resCh chan oracle.ChainResult)

func (*ChainOracle) SetPrice

func (ora *ChainOracle) SetPrice(value uint64, signature []byte, resCh chan oracle.ChainResult)

Jump to

Keyboard shortcuts

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