expert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Methods = builtin2.MethodsExpert
)

Functions

This section is empty.

Types

type BatchImportDataParams

type BatchImportDataParams = expert2.BatchImportDataParams

type DataOnChainInfo

type DataOnChainInfo = expert2.DataOnChainInfo

type ExpertInfo

type ExpertInfo struct {
	expert2.ExpertInfo
	LostEpoch       abi.ChainEpoch
	Status          expert2.ExpertState
	StatusDesc      string // fill in state.go
	ImplicatedTimes uint64
	DataCount       uint64
	CurrentVotes    abi.TokenAmount // fill in state.go
	RequiredVotes   abi.TokenAmount
}

type ImportDataParams

type ImportDataParams = expert2.ImportDataParams

type State

type State interface {
	cbor.Marshaler

	Info() (*ExpertInfo, error)
	Datas() ([]*DataOnChainInfo, error)
	Data(cid.Cid) (*DataOnChainInfo, error)
}

func Load

func Load(store adt.Store, act *types.Actor) (st State, err error)

Jump to

Keyboard shortcuts

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