Documentation ¶
Index ¶
- type ChainOracle
- func (ora *ChainOracle) API() rpc.API
- func (ora *ChainOracle) DataStoreFinished(cid boson.Address, dataLen uint64, salt uint64, proof []byte, ...)
- func (ora *ChainOracle) GetCid(aufsUri string) []byte
- func (ora *ChainOracle) GetNodesFromCid(cid []byte) []boson.Address
- func (ora *ChainOracle) GetRegisterState(ctx context.Context, rootCid boson.Address, address boson.Address) (bool, error)
- func (ora *ChainOracle) GetSourceNodes(aufsUri string) []boson.Address
- func (ora *ChainOracle) OnStoreMatched(cid boson.Address, dataLen uint64, salt uint64, address boson.Address)
- func (ora *ChainOracle) RegisterCidAndNode(ctx context.Context, rootCid boson.Address, address boson.Address) (common.Hash, error)
- func (ora *ChainOracle) RemoveCidAndNode(ctx context.Context, rootCid boson.Address, address boson.Address) (common.Hash, error)
- func (ora *ChainOracle) WaitForReceipt(ctx context.Context, rootCid boson.Address, txHash common.Hash) (receipt *types.Receipt, err error)
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 (*ChainOracle) GetSourceNodes ¶
func (ora *ChainOracle) GetSourceNodes(aufsUri string) []boson.Address
func (*ChainOracle) OnStoreMatched ¶
func (*ChainOracle) RegisterCidAndNode ¶ added in v1.2.2
func (*ChainOracle) RemoveCidAndNode ¶ added in v1.2.2
Click to show internal directories.
Click to hide internal directories.