Module object_by_owner

Module object_by_owner 

Source
Expand description

(OwnerKind, type, inverted_balance?, ObjectID) → latest live version.

Supports owner-and-type filtering with optional balance-based ordering. The leading OwnerKind byte clusters entries by ownership category: address-owned, object-owned, shared, immutable. The address variants carry the owning address in the key; shared and immutable do not. Within each (kind, owner, type) group, coin-like objects carry the ones-complement of their balance (!balance) so richer coins sort first under a forward prefix scan; non-coin objects carry no balance at all.

Structs§

Key
Encoded as kind_tag(1) || owner?(32) || type(bcs) || balance_tag(1) || balance?(8 BE) || object_id(32).

Enums§

OwnerKind
The four kinds of ownership this index distinguishes. The address-owner and object-owner variants carry the owning SuiAddress inline; shared and immutable owners have no owning address.

Constants§

NAME

Functions§

options
store
Build the (Key, Value) pair indexing a Move object by owner.

Type Aliases§

Value