Skip to main content

note_getter

Standalone Functions

extract_property_value_from_selector

extract_property_value_from_selector(serialized_note, selector);

Parameters

NameType
serialized_note[Field; N]
selectorPropertySelector

check_note_header

check_note_header(context, storage_slot, note);

Parameters

NameType
contextPrivateContext
storage_slotField
noteNote

check_note_fields

check_note_fields(serialized_note, selects, N>);

Parameters

NameType
serialized_note[Field; N]
selectsBoundedVec<Option<Select>
N>

check_notes_order

check_notes_order(fields_0, fields_1, sorts, N>);

Parameters

NameType
fields_0[Field; N]
fields_1[Field; N]
sortsBoundedVec<Option<Sort>
N>

get_note

get_note(context, storage_slot);

Parameters

NameType
context&mut PrivateContext
storage_slotField

get_notes

get_notes(context, storage_slot, options, N, M, FILTER_ARGS>);

Parameters

NameType
context&mut PrivateContext
storage_slotField
optionsNoteGetterOptions<Note
N
M
FILTER_ARGS>

constrain_get_notes_internal

constrain_get_notes_internal(context, storage_slot, opt_notes, options, N, M, FILTER_ARGS>);

Parameters

NameType
context&mut PrivateContext
storage_slotField
opt_notes[Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL]
optionsNoteGetterOptions<Note
N
M
FILTER_ARGS>

get_note_internal

get_note_internal(storage_slot);

Parameters

NameType
storage_slotField

get_notes_internal

get_notes_internal(storage_slot, options, N, M, FILTER_ARGS>);

Parameters

NameType
storage_slotField
optionsNoteGetterOptions<Note
N
M
FILTER_ARGS>

view_notes

view_notes(storage_slot, options, N, M>);

Parameters

NameType
storage_slotField
optionsNoteViewerOptions<Note
N
M>

flatten_options

flatten_options(selects, N>, sorts, N>);

Parameters

NameType
selectsBoundedVec<Option<Select>
N>
sortsBoundedVec<Option<Sort>
N>