package
9.0.0-rc1+incompatible
Repository: https://github.com/filecoin-project/go-state-types.git
Documentation: pkg.go.dev

# Functions

AsArray interprets a store as an AMT-based array with root `r`.
Interprets a store as balance table with root `r`.
AsMap interprets a store as a HAMT-based map with root `r`.
AsSet interprets a store as a HAMT-based set with root `r`.
Creates a new array backed by an empty AMT.
Creates a new map backed by an empty HAMT.
Creates a new map backed by an empty HAMT and flushes it to the store.
NewSet creates a new HAMT with root `r` and store `s`.
Writes a new empty array to the store, returning its CID.
Creates and stores a new empty map, returning its CID.
Creates and stores a new empty multimap, returning its CID.
Adapts a vanilla IPLD store as an ADT store.

# Constants

Bitwidth of balance table HAMTs, determined empirically from mutation patterns and projections of mainnet data.

# Variables

No description provided by the author
DefaultHamtOptions specifies default options used to construct Filecoin HAMTs.

# Structs

Array stores a sparse sequence of values in an AMT.
Map stores key-value pairs in a HAMT.
Multimap stores multiple values per key in a HAMT of AMTs.
Set interprets a Map as a set, storing keys (with empty values) in a HAMT.

# Interfaces

Store defines an interface required to back the ADTs in this package.

# Type aliases

A specialization of a map of addresses to (positive) token amounts.