pub comptime fn note(s: TypeDefinition) -> Quoted
Generates the core note functionality for a struct:
The note struct must:
owner
Packable
MAX_NOTE_PACKED_LEN
Registers the note in the global NOTES BoundedVec to enable note processing functionality.
NOTES
For detailed documentation on the generated implementations, see:
generate_note_properties()
generate_note_type_impl()
generate_note_hash_trait_impl()
Generates the core note functionality for a struct:
Requirements
The note struct must:
ownerfieldPackabletraitMAX_NOTE_PACKED_LENwhen packedRegistration
Registers the note in the global
NOTESBoundedVec to enable note processing functionality.Generated Code
For detailed documentation on the generated implementations, see:
generate_note_properties()generate_note_type_impl()generate_note_hash_trait_impl()