Skip to main content

canic_core/
protocol.rs

1/// Runtime wire-level endpoint names used by `canic-core` for inter-canister calls.
2///
3/// Keep these synchronized with the macro-defined endpoints.
4
5pub const CANIC_RESPONSE_CAPABILITY_V1: &str = "canic_response_capability_v1";
6pub const CANIC_FLEET_REGISTRY: &str = "canic_fleet_registry";
7pub const CANIC_FLEET_REGISTRY_MANIFEST: &str = "canic_fleet_registry_manifest";
8pub const CANIC_FLEET_REGISTRY_VERSION: &str = "canic_fleet_registry_version";
9pub const CANIC_FLEET_SUBNET_ROOT_JOIN: &str = "canic_fleet_subnet_root_join";
10pub const CANIC_FLEET_REGISTRY_SNAPSHOT_FOR_ROOT: &str = "canic_fleet_registry_snapshot_for_root";
11pub const CANIC_FLEET_REGISTRY_ACKNOWLEDGE_ROOT: &str = "canic_fleet_registry_acknowledge_root";
12pub const CANIC_FLEET_REGISTRY_ROOT_ACKNOWLEDGEMENTS: &str =
13    "canic_fleet_registry_root_acknowledgements";
14pub const CANIC_FLEET_REGISTRY_ACTIVATE: &str = "canic_fleet_registry_activate";
15pub const CANIC_FLEET_SUBNET_ROOT_AUTHORITY: &str = "canic_fleet_subnet_root_authority";
16pub const CANIC_FLEET_REGISTRY_SYNCHRONIZE: &str = "canic_fleet_registry_synchronize";
17pub const CANIC_FLEET_REGISTRY_SYNC_STATUS: &str = "canic_fleet_registry_sync_status";
18pub const CANIC_FLEET_REGISTRY_ACTIVATE_MIRROR: &str = "canic_fleet_registry_activate_mirror";
19pub const CANIC_FLEET_REGISTRY_MIRROR_STATUS: &str = "canic_fleet_registry_mirror_status";
20pub const CANIC_ROOT_COMPONENT_REGISTRY_PREPARE: &str = "canic_root_component_registry_prepare";
21pub const CANIC_ROOT_COMPONENT_REGISTRY_STATUS: &str = "canic_root_component_registry_status";
22pub const CANIC_ROOT_COMPONENT_ALLOCATE: &str = "canic_root_component_allocate";
23pub const CANIC_ROOT_COMPONENT_ALLOCATION_STATUS: &str = "canic_root_component_allocation_status";
24pub const CANIC_FLEET_ACTIVATION_STATUS: &str = "canic_fleet_activation_status";
25pub const CANIC_PREPARE_FLEET_ACTIVATION: &str = "canic_prepare_fleet_activation";
26pub const CANIC_RESUME_FLEET_ACTIVATION: &str = "canic_resume_fleet_activation";
27pub const CANIC_PREPARE_FLEET_CREDENTIAL_GENERATION: &str =
28    "canic_prepare_fleet_credential_generation";
29pub const CANIC_ACTIVATE_FLEET: &str = "canic_activate_fleet";
30pub const CANIC_UPSERT_ROOT_ISSUER_POLICY: &str = "canic_upsert_root_issuer_policy";
31pub const CANIC_UPSERT_ROOT_ISSUER_RENEWAL_TEMPLATE: &str =
32    "canic_upsert_root_issuer_renewal_template";
33pub const CANIC_ROOT_ISSUER_RENEWAL_STATUS: &str = "canic_root_issuer_renewal_status";
34pub const CANIC_GET_OR_CREATE_CHAIN_KEY_DELEGATION_PROOF: &str =
35    "canic_get_or_create_chain_key_delegation_proof";
36pub const CANIC_PREPARE_DELEGATED_TOKEN: &str = "canic_prepare_delegated_token";
37pub const CANIC_GET_DELEGATED_TOKEN: &str = "canic_get_delegated_token";
38pub const CANIC_ACTIVE_DELEGATION_PROOF_STATUS: &str = "canic_active_delegation_proof_status";
39pub const CANIC_PREPARE_ROLE_ATTESTATION: &str = "canic_prepare_role_attestation";
40pub const CANIC_GET_ROLE_ATTESTATION: &str = "canic_get_role_attestation";
41pub const CANIC_INSTALL_ACTIVE_DELEGATION_PROOF: &str = "canic_install_active_delegation_proof";
42pub const CANIC_BOOTSTRAP_STATUS: &str = "canic_bootstrap_status";
43pub const CANIC_HEALTH: &str = "canic_health";
44pub const CANIC_READINESS: &str = "canic_readiness";
45pub const CANIC_RUNTIME_STATUS: &str = "canic_runtime_status";
46pub const CANIC_CYCLE_BALANCE: &str = "canic_cycle_balance";
47pub const CANIC_CYCLE_TRACKER: &str = "canic_cycle_tracker";
48pub const CANIC_CYCLE_TOPUPS: &str = "canic_cycle_topups";
49pub const CANIC_METADATA: &str = "canic_metadata";
50pub const CANIC_WASM_STORE_CATALOG: &str = "canic_wasm_store_catalog";
51pub const CANIC_WASM_STORE_INFO: &str = "canic_wasm_store_info";
52pub const CANIC_WASM_STORE_STATUS: &str = "canic_wasm_store_status";
53pub const CANIC_WASM_STORE_PREPARE_GC: &str = "canic_wasm_store_prepare_gc";
54pub const CANIC_WASM_STORE_BEGIN_GC: &str = "canic_wasm_store_begin_gc";
55pub const CANIC_WASM_STORE_COMPLETE_GC: &str = "canic_wasm_store_complete_gc";
56pub const CANIC_WASM_STORE_PREPARE: &str = "canic_wasm_store_prepare";
57pub const CANIC_WASM_STORE_CHUNK: &str = "canic_wasm_store_chunk";
58pub const CANIC_WASM_STORE_PUBLISH_CHUNK: &str = "canic_wasm_store_publish_chunk";
59pub const CANIC_WASM_STORE_STAGE_MANIFEST: &str = "canic_wasm_store_stage_manifest";
60pub const CANIC_WASM_STORE_BOOTSTRAP_DEBUG: &str = "canic_wasm_store_bootstrap_debug";
61pub const CANIC_ROOT_STORE_BOOTSTRAP: &str = "canic_root_store_bootstrap";
62pub const CANIC_ROOT_STORE_BOOTSTRAP_STATUS: &str = "canic_root_store_bootstrap_status";
63pub const CANIC_WASM_STORE_OVERVIEW: &str = "canic_wasm_store_overview";
64pub const CANIC_TEMPLATE_PREPARE_ADMIN: &str = "canic_template_prepare_admin";
65pub const CANIC_TEMPLATE_PUBLISH_CHUNK_ADMIN: &str = "canic_template_publish_chunk_admin";
66pub const CANIC_TEMPLATE_STAGE_MANIFEST_ADMIN: &str = "canic_template_stage_manifest_admin";
67pub const BLOB_STORAGE_BLOBS_ARE_LIVE: &str = "_immutableObjectStorageBlobsAreLive";
68pub const BLOB_STORAGE_BLOBS_TO_DELETE: &str = "_immutableObjectStorageBlobsToDelete";
69pub const BLOB_STORAGE_CONFIRM_BLOB_DELETION: &str = "_immutableObjectStorageConfirmBlobDeletion";
70pub const BLOB_STORAGE_CREATE_CERTIFICATE: &str = "_immutableObjectStorageCreateCertificate";
71pub const BLOB_STORAGE_UPDATE_GATEWAY_PRINCIPALS: &str =
72    "_immutableObjectStorageUpdateGatewayPrincipals";
73pub const BLOB_STORAGE_FUND_FROM_PROJECT_CYCLES: &str =
74    "_immutableObjectStorageFundFromProjectCycles";
75pub const BLOB_STORAGE_STATUS: &str = "get_blob_storage_status";
76pub const BLOB_STORAGE_CASHIER_ACCOUNT_BALANCE_GET_V1: &str = "account_balance_get_v1";
77pub const BLOB_STORAGE_CASHIER_ACCOUNT_TOP_UP_V1: &str = "account_top_up_v1";
78pub const BLOB_STORAGE_CASHIER_STORAGE_GATEWAY_PRINCIPAL_LIST_V1: &str =
79    "storage_gateway_principal_list_v1";
80
81pub const CANIC_SYNC_STATE: &str = "canic_sync_state";
82pub const CANIC_SYNC_TOPOLOGY: &str = "canic_sync_topology";
83
84pub const CANIC_WASM_STORE_ROOT_UPDATE_METHODS: &[&str] = &[
85    CANIC_WASM_STORE_BEGIN_GC,
86    CANIC_WASM_STORE_CHUNK,
87    CANIC_WASM_STORE_COMPLETE_GC,
88    CANIC_WASM_STORE_INFO,
89    CANIC_WASM_STORE_PREPARE,
90    CANIC_WASM_STORE_PREPARE_GC,
91    CANIC_WASM_STORE_PUBLISH_CHUNK,
92    CANIC_WASM_STORE_STAGE_MANIFEST,
93];
94
95pub const CANIC_WASM_STORE_STRUCTURAL_QUERY_METHODS: &[&str] =
96    &[CANIC_WASM_STORE_CATALOG, CANIC_WASM_STORE_STATUS];
97
98pub const BLOB_STORAGE_069_GATEWAY_METHODS: &[&str] = &[
99    BLOB_STORAGE_BLOBS_ARE_LIVE,
100    BLOB_STORAGE_BLOBS_TO_DELETE,
101    BLOB_STORAGE_CONFIRM_BLOB_DELETION,
102    BLOB_STORAGE_CREATE_CERTIFICATE,
103];
104
105pub const BLOB_STORAGE_070_GATEWAY_METHODS: &[&str] = &[
106    BLOB_STORAGE_UPDATE_GATEWAY_PRINCIPALS,
107    BLOB_STORAGE_FUND_FROM_PROJECT_CYCLES,
108];
109
110pub const BLOB_STORAGE_070_CASHIER_METHODS: &[&str] = &[
111    BLOB_STORAGE_CASHIER_ACCOUNT_BALANCE_GET_V1,
112    BLOB_STORAGE_CASHIER_ACCOUNT_TOP_UP_V1,
113    BLOB_STORAGE_CASHIER_STORAGE_GATEWAY_PRINCIPAL_LIST_V1,
114];