canic 0.34.4

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// -----------------------------------------------------------------------------
// Cycle endpoint emitters
// -----------------------------------------------------------------------------

// Leaf emitter for the standard cycle-tracker view.
#[macro_export]
macro_rules! canic_emit_cycle_tracker_endpoints {
    () => {
        #[$crate::canic_query]
        fn canic_cycle_tracker(
            page: ::canic::dto::page::PageRequest,
        ) -> Result<::canic::dto::page::Page<::canic::dto::cycles::CycleTrackerEntry>, ::canic::Error>
        {
            Ok($crate::__internal::core::api::cycles::CycleTrackerQuery::page(page))
        }
    };
}