package
0.0.0-20230424031211-d49236897af1
Repository: https://github.com/ipfs-force-community/go-fvm-sdk.git
Documentation: pkg.go.dev

# Functions

AdtStore Adapts a vanilla IPLD store as an ADT store.
AsArray interprets a store as an AMT-based array with root `r`.
AsBalanceTable interprets a store as balance table with root `r`.
AsMap interprets a store as a HAMT-based map with root `r`.
AsMultimap interprets a store as a HAMT-based map of AMTs with root `r`.
AsSet interprets a store as a HAMT-based set with root `r`.
MakeEmptyArray creates a new array backed by an empty AMT.
MakeEmptyMap creates a new map backed by an empty HAMT.
MakeEmptyMultimap creates a new map backed by an empty HAMT and flushes it to the store.
MakeEmptySet creates a new HAMT with root `r` and store `s`.
StoreEmptyArray writes a new empty array to the store, returning its CID.
StoreEmptyMap creates and stores a new empty map, returning its CID.
StoreEmptyMultimap creates and stores a new empty multimap, returning its CID.

# Constants

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

# Variables

DefaultAmtOptions default amt option.
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

IpldStore wraps a Blockstore and provides an interface for storing and retrieving CBOR encoded data.
Store define store with context.

# Type aliases

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