Module pallet_anchors::pallet::storage_types
source · Expand description
Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.
§Warning: Doc-Only
Members of this module cannot be used directly and are only provided for documentation purposes.
To see the actual storage type, find a struct with the same name at the root of the pallet, in the list of Type Definitions.
Structs§
- Map to find the eviction date given an anchor id
- Map to find anchorID by index
- Storage for evicted anchor child trie roots. Anchors with a given expiry/eviction date are stored on-chain in a single child trie. This child trie is removed after the expiry date has passed while its root is stored permanently for proving an existence of an evicted anchor.
- Latest anchored index that was recently used
- Latest evicted anchor index. This would keep track of the latest evicted anchor index so that we can start the removal of AnchorEvictDates index from that index onwards. Going from AnchorIndexes => AnchorEvictDates
- This is to keep track of the date when a child trie of anchors was evicted last. It is to evict historic anchor data child tries if they weren’t evicted in a timely manner.
- PreCommits store the map of anchor Id to the pre-commit, which is a lock on an anchor id to be committed later