mod
Standalone Functions
extract_property_value_from_selector
extract_property_value_from_selector(serialized_note, selector, );
Parameters
Name | Type |
---|---|
serialized_note | [Field; N] |
selector | PropertySelector |
check_note_header
check_note_header(context, storage_slot, note);
Parameters
Name | Type |
---|---|
context | PrivateContext |
storage_slot | Field |
note | Note |
check_note_fields
check_note_fields(serialized_note, selects, N>, );
Parameters
Name | Type |
---|---|
serialized_note | [Field; N] |
selects | BoundedVec<Option<Select> |
N> | |
check_notes_order
check_notes_order(fields_0, fields_1, sorts, N>, );
Parameters
Name | Type |
---|---|
fields_0 | [Field; N] |
fields_1 | [Field; N] |
sorts | BoundedVec<Option<Sort> |
N> | |
get_note
get_note(context, storage_slot, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
storage_slot | Field |
get_notes
get_notes(context, storage_slot, options, N, PREPROCESSOR_ARGS, FILTER_ARGS>, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
storage_slot | Field |
options | NoteGetterOptions<Note |
N | |
PREPROCESSOR_ARGS | |
FILTER_ARGS> | |
apply_preprocessor
apply_preprocessor(notes, preprocessor, PREPROCESSOR_ARGS);
Parameters
Name | Type |
---|---|
notes | [Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
preprocessor | fn([Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
PREPROCESSOR_ARGS |
constrain_get_notes_internal
constrain_get_notes_internal(context, storage_slot, opt_notes, options, N, PREPROCESSOR_ARGS, FILTER_ARGS>, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
storage_slot | Field |
opt_notes | [Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
options | NoteGetterOptions<Note |
N | |
PREPROCESSOR_ARGS | |
FILTER_ARGS> | |
get_note_internal
get_note_internal(storage_slot);
Parameters
Name | Type |
---|---|
storage_slot | Field |
get_notes_internal
get_notes_internal(storage_slot, options, N, PREPROCESSOR_ARGS, FILTER_ARGS>, );
Parameters
Name | Type |
---|---|
storage_slot | Field |
options | NoteGetterOptions<Note |
N | |
PREPROCESSOR_ARGS | |
FILTER_ARGS> | |
view_notes
view_notes(storage_slot, options, N>, );
Parameters
Name | Type |
---|---|
storage_slot | Field |
options | NoteViewerOptions<Note |
N> | |
flatten_options
flatten_options(selects, N>, sorts, N>, );
Parameters
Name | Type |
---|---|
selects | BoundedVec<Option<Select> |
N> | |
sorts | BoundedVec<Option<Sort> |
N> | |