govern

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Authority

type Authority struct {
	ActorCodeID cid.Cid
	Methods     []abi.MethodNum
}

type GovParams

type GovParams struct {
	MinersPoStRatio     power3.WdPoStRatio
	MinersPledgePeriod  abi.ChainEpoch
	MarketInitialQuota  int64
	ExpertfundThreshold uint64
	KnowledgePayee      address.Address
}

type GovernorInfo

type GovernorInfo struct {
	Address     address.Address
	Authorities []Authority
}

type State

type State interface {
	cbor.Marshaler

	Supervior() address.Address
	Governor(address.Address) (*GovernorInfo, error)
	ListGovrnors() ([]*GovernorInfo, 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