pub trait NoteConsumptionCost {
// Required method
fn consumption_cycles() -> u32;
// Provided method
fn created_notes() -> Vec<NoteScriptRoot> { ... }
}Expand description
Benchmarked consumption cost of a note when consumed by a network account.
Implemented by every priced note type in miden-standards and miden-agglayer; the values
come from the generated cost tables (see the module docs).
Required Methods§
Sourcefn consumption_cycles() -> u32
fn consumption_cycles() -> u32
Cycles of the canonical network-account transaction consuming this note (maximum across the benchmarked execution paths - an estimate, not a worst case).
Provided Methods§
Sourcefn created_notes() -> Vec<NoteScriptRoot>
fn created_notes() -> Vec<NoteScriptRoot>
Script roots of all the notes this note’s consumption is expected to create.
Where a note’s outputs are chosen by its creator rather than fixed by the script (e.g. a MINT note’s recipient digest may encode any script), the list covers the typical case.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".