Module hypermap

Source
Expand description

Interact with hypermap, the onchain namespace

Modules§

contract
Sol structures for Hypermap requests

Structs§

Fact
A fact log from the hypermap, converted to a ‘resolved’ format using namespace data saved in the hns-indexer
Hypermap
Helper struct for reading from the hypermap.
LogCache
Mint
A mint log from the hypermap, converted to a ‘resolved’ format using namespace data saved in the hns-indexer.
Note
A note log from the hypermap, converted to a ‘resolved’ format using namespace data saved in the hns-indexer

Enums§

DecodeLogError
Errors that can occur when decoding a log from the hypermap using decode_mint_log() or decode_note_log().

Constants§

HYPERMAP_ADDRESS
hypermap deployment address on base
HYPERMAP_CHAIN_ID
base chain id
HYPERMAP_FIRST_BLOCK
first block (minus one) of hypermap deployment on base
HYPERMAP_ROOT_HASH
the root hash of hypermap, empty bytes32

Functions§

decode_fact_log
decode_mint_log
Decode a mint log from the hypermap into a ‘resolved’ format.
decode_note_log
Decode a note log from the hypermap into a ‘resolved’ format.
eth_apply_filter
namehash
Produce a namehash from a hypermap name.
resolve_full_name
Given a crate::eth::Log (which must be a log from hypermap), resolve the full name of the new entry or note.
resolve_parent
Given a crate::eth::Log (which must be a log from hypermap), resolve the parent name of the new entry or note.
valid_entry
Canonical function to determine if a hypermap entry is valid.
valid_fact
valid_name
valid_note