Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = builtin16.DatacapActorAddr Methods = builtin16.MethodsDatacap )
Functions ¶
func NewBalanceDiffContainer ¶
func NewBalanceDiffContainer(pre, cur State) *balanceDiffContainer
func VersionCodes ¶
func VersionCodes() map[actorstypes.Version]cid.Cid
Types ¶
type BalanceChange ¶
type BalanceChange struct { Before BalanceInfo After BalanceInfo }
type BalanceChanges ¶
type BalanceChanges struct { Added []BalanceInfo Modified []BalanceChange Removed []BalanceInfo }
func DiffDataCapBalances ¶
type BalanceInfo ¶
type BalanceInfo struct { Address address.Address DataCap abi.StoragePower }
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid ActorKey() string ActorVersion() actorstypes.Version ForEachClient(func(addr address.Address, dcap abi.StoragePower) error) error VerifiedClientDataCap(address.Address) (bool, abi.StoragePower, error) Governor() (address.Address, error) GetState() interface{} VerifiedClients() (adt.Map, error) VerifiedClientsMapBitWidth() int VerifiedClientsMapHashFunction() func(input []byte) []byte }
Click to show internal directories.
Click to hide internal directories.