mock

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 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

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(_ string) []byte

func (*ChainOracle) GetNodesFromCid

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

func (*ChainOracle) GetRegisterState

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

func (*ChainOracle) GetSourceNodes

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

func (*ChainOracle) OnStoreMatched

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

func (*ChainOracle) RegisterCidAndNode

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

func (*ChainOracle) RemoveCidAndNode

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

func (*ChainOracle) WaitForReceipt

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