Versions in this module Expand all Collapse all v8 v8.0.1 Jun 10, 2022 v8.0.0 Apr 22, 2022 Changes in this version + const BalanceTableBitwidth + var DefaultAmtOptions = []amt.Option + var DefaultHamtOptions = []hamt.Option + func StoreEmptyArray(s Store, bitwidth int) (cid.Cid, error) + func StoreEmptyMap(s Store, bitwidth int) (cid.Cid, error) + func StoreEmptyMultimap(store Store, outerBitwidth, innerBitwidth int) (cid.Cid, error) + type Array struct + func AsArray(s Store, r cid.Cid, bitwidth int) (*Array, error) + func MakeEmptyArray(s Store, bitwidth int) (*Array, error) + func (a *Array) AppendContinuous(value cbor.Marshaler) error + func (a *Array) BatchDelete(ix []uint64, strict bool) error + func (a *Array) Delete(i uint64) error + func (a *Array) ForEach(out cbor.Unmarshaler, fn func(i int64) error) error + func (a *Array) Get(k uint64, out cbor.Unmarshaler) (bool, error) + func (a *Array) Length() uint64 + func (a *Array) Pop(k uint64, out cbor.Unmarshaler) (bool, error) + func (a *Array) Root() (cid.Cid, error) + func (a *Array) Set(i uint64, value cbor.Marshaler) error + func (a *Array) TryDelete(i uint64) (bool, error) + type BalanceTable Map + func AsBalanceTable(s Store, r cid.Cid) (*BalanceTable, error) + func (t *BalanceTable) Add(key addr.Address, value abi.TokenAmount) error + func (t *BalanceTable) Get(key addr.Address) (abi.TokenAmount, error) + func (t *BalanceTable) MustSubtract(key addr.Address, req abi.TokenAmount) error + func (t *BalanceTable) Root() (cid.Cid, error) + func (t *BalanceTable) SubtractWithMinimum(key addr.Address, req abi.TokenAmount, floor abi.TokenAmount) (abi.TokenAmount, error) + func (t *BalanceTable) Total() (abi.TokenAmount, error) + type Map struct + func AsMap(s Store, root cid.Cid, bitwidth int) (*Map, error) + func MakeEmptyMap(s Store, bitwidth int) (*Map, error) + func (m *Map) CollectKeys() (out []string, err error) + func (m *Map) Delete(k abi.Keyer) error + func (m *Map) ForEach(out cbor.Unmarshaler, fn func(key string) error) error + func (m *Map) Get(k abi.Keyer, out cbor.Unmarshaler) (bool, error) + func (m *Map) Has(k abi.Keyer) (bool, error) + func (m *Map) Pop(k abi.Keyer, out cbor.Unmarshaler) (bool, error) + func (m *Map) Put(k abi.Keyer, v cbor.Marshaler) error + func (m *Map) PutIfAbsent(k abi.Keyer, v cbor.Marshaler) (bool, error) + func (m *Map) Root() (cid.Cid, error) + func (m *Map) TryDelete(k abi.Keyer) (bool, error) + type Multimap struct + func AsMultimap(s Store, r cid.Cid, outerBitwidth, innerBitwidth int) (*Multimap, error) + func MakeEmptyMultimap(s Store, outerBitwidth, innerBitwidth int) (*Multimap, error) + func (mm *Multimap) Add(key abi.Keyer, value cbor.Marshaler) error + func (mm *Multimap) ForAll(fn func(k string, arr *Array) error) error + func (mm *Multimap) ForEach(key abi.Keyer, out cbor.Unmarshaler, fn func(i int64) error) error + func (mm *Multimap) Get(key abi.Keyer) (*Array, bool, error) + func (mm *Multimap) RemoveAll(key abi.Keyer) error + func (mm *Multimap) Root() (cid.Cid, error) + type Set struct + func AsSet(s Store, r cid.Cid, bitwidth int) (*Set, error) + func MakeEmptySet(s Store, bitwidth int) (*Set, error) + func (h *Set) CollectKeys() (out []string, err error) + func (h *Set) Delete(k abi.Keyer) error + func (h *Set) ForEach(cb func(k string) error) error + func (h *Set) Has(k abi.Keyer) (bool, error) + func (h *Set) Put(k abi.Keyer) error + func (h *Set) Root() (cid.Cid, error) + func (h *Set) TryDelete(k abi.Keyer) (bool, error) + type Store = adt2.Store + func AsStore(rt vmr.Runtime) Store + func WrapBlockStore(ctx context.Context, bs ipldcbor.IpldBlockstore) Store + func WrapStore(ctx context.Context, store ipldcbor.IpldStore) Store Other modules containing this package github.com/filecoin-project/specs-actors github.com/filecoin-project/specs-actors/v2 github.com/filecoin-project/specs-actors/v3 github.com/filecoin-project/specs-actors/v4 github.com/filecoin-project/specs-actors/v5 github.com/filecoin-project/specs-actors/v6 github.com/filecoin-project/specs-actors/v7