mock

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: BSD-3-Clause Imports: 6 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) API added in v1.3.2

func (ora *ChainOracle) API() rpc.API

func (*ChainOracle) DataStoreFinished

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

func (*ChainOracle) GetCid

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

func (*ChainOracle) GetNodesFromCid

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

func (*ChainOracle) GetRegisterState added in v1.2.2

func (ora *ChainOracle) GetRegisterState(ctx context.Context, rootCid boson.Address, address boson.Address) (bool, error)

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) RegisterCidAndNode added in v1.2.2

func (ora *ChainOracle) RegisterCidAndNode(ctx context.Context, rootCid boson.Address, address boson.Address) (common.Hash, error)

func (*ChainOracle) RemoveCidAndNode added in v1.2.2

func (ora *ChainOracle) RemoveCidAndNode(ctx context.Context, rootCid boson.Address, address boson.Address) (common.Hash, error)

func (*ChainOracle) WaitForReceipt added in v1.2.2

func (ora *ChainOracle) WaitForReceipt(ctx context.Context, rootCid boson.Address, txHash common.Hash) (receipt *types.Receipt, err error)

Jump to

Keyboard shortcuts

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