verifreg

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, MIT Imports: 61 Imported by: 0

Documentation

Overview

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Index

Constants

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

Variables

Functions

func AllCodes

func AllCodes() []cid.Cid

func NewVerifierDiffContainer

func NewVerifierDiffContainer(pre, cur State) *verifierDiffContainer

func VersionCodes added in v0.11.0

func VersionCodes() map[actorstypes.Version]cid.Cid

Types

type AddVerifiedClientParams added in v0.21.0

type AddVerifiedClientParams = verifregtypes12.AddVerifiedClientParams

type AddVerifierParams added in v0.21.0

type AddVerifierParams = verifregtypes12.AddVerifierParams

type Allocation added in v0.14.0

type Allocation = verifregtypes.Allocation

type AllocationId added in v0.14.0

type AllocationId = verifregtypes.AllocationId

type AllocationRequest added in v0.21.0

type AllocationRequest = verifregtypes12.AllocationRequest

type AllocationRequests added in v0.21.0

type AllocationRequests = verifregtypes12.AllocationRequests

type Claim added in v0.14.0

type Claim = verifregtypes.Claim

type ClaimId added in v0.14.0

type ClaimId = verifregtypes.ClaimId

type RemoveExpiredAllocationsParams added in v0.21.0

type RemoveExpiredAllocationsParams = verifregtypes12.RemoveExpiredAllocationsParams

type State

type State interface {
	cbor.Marshaler

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

	VerifiersMap() (adt.Map, error)
	VerifiersMapBitWidth() int
	VerifiersMapHashFunction() func(input []byte) []byte

	VerifiedClientsMap() (adt.Map, error)
	VerifiedClientsMapBitWidth() int
	VerifiedClientsMapHashFunction() func(input []byte) []byte

	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 verifregtypes.AllocationId) (*verifregtypes.Allocation, bool, error)
	GetAllocations(clientIdAddr address.Address) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error)
	GetClaim(providerIdAddr address.Address, claimId verifregtypes.ClaimId) (*verifregtypes.Claim, bool, error)
	GetClaims(providerIdAddr address.Address) (map[verifregtypes.ClaimId]verifregtypes.Claim, error)
	GetState() interface{}

	ClaimsMap() (adt.Map, error)
	ClaimMapForProvider(providerIdAddr address.Address) (adt.Map, error)
	ClaimsMapBitWidth() int
	ClaimsMapHashFunction() func(input []byte) []byte
}

func Load

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

type VerifierChange

type VerifierChange struct {
	Before VerifierInfo
	After  VerifierInfo
}

type VerifierChanges

type VerifierChanges struct {
	Added    []VerifierInfo
	Modified []VerifierChange
	Removed  []VerifierInfo
}

func DiffVerifiedClients

func DiffVerifiedClients(ctx context.Context, store adt.Store, pre, cur State) (*VerifierChanges, error)

func DiffVerifiers

func DiffVerifiers(ctx context.Context, store adt.Store, pre, cur State) (*VerifierChanges, error)

type VerifierInfo

type VerifierInfo struct {
	Address address.Address
	DataCap abi.StoragePower
}

Jump to

Keyboard shortcuts

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