verifreg

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0, MIT Imports: 50 Imported by: 15

Documentation

Index

Constants

View Source
const (
	NoAllocationID                      = verifregtypes.NoAllocationID
	MinimumVerifiedAllocationTerm       = verifregtypes12.MinimumVerifiedAllocationTerm
	MaximumVerifiedAllocationTerm       = verifregtypes12.MaximumVerifiedAllocationTerm
	MaximumVerifiedAllocationExpiration = verifregtypes12.MaximumVerifiedAllocationExpiration
)

Variables

Functions

func AllCodes added in v1.20.0

func AllCodes() []cid.Cid

Types

type AddVerifiedClientParams added in v1.30.0

type AddVerifiedClientParams = verifregtypes12.AddVerifiedClientParams

type AddVerifierParams added in v1.30.0

type AddVerifierParams = verifregtypes12.AddVerifierParams

type Allocation added in v1.20.0

type Allocation = verifregtypes.Allocation

type AllocationId added in v1.20.0

type AllocationId = verifregtypes.AllocationId

type AllocationRequest added in v1.30.0

type AllocationRequest = verifregtypes12.AllocationRequest

type AllocationRequests added in v1.30.0

type AllocationRequests = verifregtypes12.AllocationRequests

type Claim added in v1.20.0

type Claim = verifregtypes.Claim

type ClaimId added in v1.20.0

type ClaimId = verifregtypes.ClaimId

type RemoveExpiredAllocationsParams added in v1.30.0

type RemoveExpiredAllocationsParams = verifregtypes12.RemoveExpiredAllocationsParams

type State

type State interface {
	cbor.Marshaler

	Code() cid.Cid
	ActorKey() string
	ActorVersion() actorstypes.Version

	RootKey() (address.Address, error)
	VerifiedClientDataCap(address.Address) (bool, abi.StoragePower, error)
	VerifierDataCap(address.Address) (bool, abi.StoragePower, error)
	RemoveDataCapProposalID(verifier address.Address, client address.Address) (bool, uint64, error)
	ForEachVerifier(func(addr address.Address, dcap abi.StoragePower) error) error
	ForEachClient(func(addr address.Address, dcap abi.StoragePower) error) error
	GetAllocation(clientIdAddr address.Address, allocationId AllocationId) (*Allocation, bool, error)
	GetAllocations(clientIdAddr address.Address) (map[AllocationId]Allocation, error)
	GetAllAllocations() (map[AllocationId]Allocation, error)
	GetClaim(providerIdAddr address.Address, claimId ClaimId) (*Claim, bool, error)
	GetClaims(providerIdAddr address.Address) (map[ClaimId]Claim, error)
	GetAllClaims() (map[ClaimId]Claim, error)
	GetClaimIdsBySector(providerIdAddr address.Address) (map[abi.SectorNumber][]ClaimId, error)
	GetState() interface{}
}

func Load

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

func MakeState added in v1.11.0

func MakeState(store adt.Store, av actorstypes.Version, rootKeyAddress address.Address) (State, error)

Jump to

Keyboard shortcuts

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