retrieval

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: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BindMinersParams

type BindMinersParams = retrieval2.BindMinersParams

type LockedState

type LockedState = retrieval2.LockedState

type PledgeParams

type PledgeParams = retrieval2.PledgeParams

type PledgeState

type PledgeState = retrieval2.PledgeState

type RetrievalDataParams

type RetrievalDataParams = retrieval2.RetrievalDataParams

type RetrievalState

type RetrievalState struct {
	BindMiners []address.Address
	Amount     abi.TokenAmount
	EpochDate  uint64
	DateSize   abi.PaddedPieceSize // date retrieval size
}

type State

type State interface {
	cbor.Marshaler

	PledgesInfo(addr address.Address) (map[address.Address]abi.TokenAmount, error)
	StateInfo(fromAddr address.Address) (*RetrievalState, error)
	DayExpend(epoch abi.ChainEpoch, fromAddr address.Address) (abi.TokenAmount, error)
	LockedPeriod() (abi.ChainEpoch, error)
	LockedState(fromAddr address.Address, out *LockedState) (bool, error)
	TotalCollateral() (abi.TokenAmount, error)
	TotalRetrievalReward() (abi.TokenAmount, error)
	PendingReward() (abi.TokenAmount, error)
	ForEachState(func(addr address.Address, state *RetrievalState) error) error
}

func Load

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

type WithdrawBalanceParams

type WithdrawBalanceParams = retrieval2.WithdrawBalanceParams

Jump to

Keyboard shortcuts

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