verifreg

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0, MIT Imports: 35 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.

Index

Constants

This section is empty.

Variables

Functions

func AllCodes

func AllCodes() []cid.Cid

func NewVerifierDiffContainer

func NewVerifierDiffContainer(pre, cur State) *verifierDiffContainer

Types

type State

type State interface {
	cbor.Marshaler

	Code() cid.Cid

	RootKey() (address.Address, error)
	VerifiedClientDataCap(address.Address) (bool, abi.StoragePower, error)
	VerifierDataCap(address.Address) (bool, abi.StoragePower, error)
	ForEachVerifier(func(addr address.Address, dcap abi.StoragePower) error) error
	ForEachClient(func(addr address.Address, dcap abi.StoragePower) error) error
	// contains filtered or unexported methods
}

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