chain

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	*chain.ChainClient
	// contains filtered or unexported fields
}

Chain

func InitChain

func InitChain(url string, pk *core.Signer) (*Chain, error)

func (*Chain) Close

func (c *Chain) Close()

func (*Chain) GetBootPeers

func (c *Chain) GetBootPeers() ([]types.P2PAddr, error)

获取worker的BootPeers Get BootPeers

func (*Chain) GetMetaApi

func (m *Chain) GetMetaApi(w gtypes.WorkId) (gtypes.ApiMeta, error)

func (*Chain) GetNodeList

func (c *Chain) GetNodeList() ([][]byte, error)

获取节点列表 GetNodeList get node list

func (*Chain) GetWorkerList

func (c *Chain) GetWorkerList() ([]*types.K8sCluster, error)

查询worker列表 Get WorkerList

func (*Chain) ListTeeCalls

func (m *Chain) ListTeeCalls(cid uint64, callId []types.U128) ([]*gtypes.TEECall, []types.U128, []types.StorageKey, error)

list tee calls

func (*Chain) RegisterNode

func (c *Chain) RegisterNode(signer *core.Signer, pubkey []byte) error

RegisterNode register node 注册节点

func (*Chain) TeeCallback

func (m *Chain) TeeCallback(cid uint64, callId []types.U128, callbacks []util.TeeCallBack) error

Jump to

Keyboard shortcuts

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