From 534ee9a5bce655c21e4d0242ba3941ed21c9f9d3 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Thu, 7 May 2026 14:37:56 +0000 Subject: [PATCH 1/3] fix: links to mgmt canister docs at internetcomputer.org --- .../ic-management-canister-types/README.md | 4 +- .../ic-management-canister-types/src/lib.rs | 104 +++++++++--------- .../src/execution/install.rs | 2 +- .../src/execution/upgrade.rs | 2 +- .../clients/src/management_canister_client.rs | 2 +- .../clients/src/update_settings.rs | 4 +- rs/nns/governance/api/src/types.rs | 2 +- .../src/gen/ic_nns_governance.pb.v1.rs | 2 +- .../api/src/ic_sns_governance.pb.v1.rs | 2 +- .../src/gen/ic_sns_governance.pb.v1.rs | 2 +- .../management_canister_types/src/http.rs | 8 +- 11 files changed, 67 insertions(+), 67 deletions(-) diff --git a/packages/ic-management-canister-types/README.md b/packages/ic-management-canister-types/README.md index f87399db7bef..4c91da6bc253 100644 --- a/packages/ic-management-canister-types/README.md +++ b/packages/ic-management-canister-types/README.md @@ -4,7 +4,7 @@ Types for calling [the IC management canister][1]. This module is a direct translation from its Candid interface description. -[1]: https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-management-canister +[1]: https://docs.internetcomputer.org/references/management-canister/#management-canister ## Correctness @@ -14,7 +14,7 @@ The test defines a dummy Canister covering all Management Canister entry points It then asserts the equality of the dummy canister's interface with the specified interface in [`ic.did`](tests/ic.did). -The [`ic.did`](tests/ic.did) is sourced from the [Internet Computer Interface Specification](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-candid). +The [`ic.did`](tests/ic.did) is sourced from the [Internet Computer Interface Specification](https://docs.internetcomputer.org/references/management-canister/#candid). Some methods are excluded (commented out) as follows: - Bitcoin API: These functionalities are planned to migrate from the Management Canister to the [Bitcoin Canister](https://github.com/dfinity/bitcoin-canister). diff --git a/packages/ic-management-canister-types/src/lib.rs b/packages/ic-management-canister-types/src/lib.rs index a77fe74f3e5d..f5b9fa4d2be9 100644 --- a/packages/ic-management-canister-types/src/lib.rs +++ b/packages/ic-management-canister-types/src/lib.rs @@ -76,9 +76,9 @@ pub struct EnvironmentVariable { /// # Canister Settings /// -/// For arguments of [`create_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-create_canister), -/// [`update_settings`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-update_settings) and -/// [`provisional_create_canister_with_cycles`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-provisional_create_canister_with_cycles). +/// For arguments of [`create_canister`](https://docs.internetcomputer.org/references/management-canister/#create_canister), +/// [`update_settings`](https://docs.internetcomputer.org/references/management-canister/#update_settings) and +/// [`provisional_create_canister_with_cycles`](https://docs.internetcomputer.org/references/management-canister/#provisional_create_canister_with_cycles). /// /// All fields are `Option` types, allowing selective settings/updates. #[derive( @@ -168,7 +168,7 @@ pub struct CanisterSettings { /// /// Represents the actual settings in effect. /// -/// For return of [`canister_status`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_status). +/// For return of [`canister_status`](https://docs.internetcomputer.org/references/management-canister/#canister_status). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -199,7 +199,7 @@ pub struct DefiniteCanisterSettings { /// # Create Canister Args /// -/// Argument type of [`create_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-create_canister). +/// Argument type of [`create_canister`](https://docs.internetcomputer.org/references/management-canister/#create_canister). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -212,12 +212,12 @@ pub struct CreateCanisterArgs { /// # Create Canister Result /// -/// Result type of [`create_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-create_canister). +/// Result type of [`create_canister`](https://docs.internetcomputer.org/references/management-canister/#create_canister). pub type CreateCanisterResult = CanisterIdRecord; /// # Update Settings Args /// -/// Argument type of [`update_settings`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-update_settings). +/// Argument type of [`update_settings`](https://docs.internetcomputer.org/references/management-canister/#update_settings). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -232,7 +232,7 @@ pub struct UpdateSettingsArgs { /// # Upload Chunk Args /// -/// Argument type of [`upload_chunk`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_chunk). +/// Argument type of [`upload_chunk`](https://docs.internetcomputer.org/references/management-canister/#upload_chunk). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -246,22 +246,22 @@ pub struct UploadChunkArgs { /// # Upload Chunk Result /// -/// Result type of [`upload_chunk`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_chunk). +/// Result type of [`upload_chunk`](https://docs.internetcomputer.org/references/management-canister/#upload_chunk). pub type UploadChunkResult = ChunkHash; /// # Clear Chunk Store Args /// -/// Argument type of [`clear_chunk_store`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-clear_chunk_store). +/// Argument type of [`clear_chunk_store`](https://docs.internetcomputer.org/references/management-canister/#clear_chunk_store). pub type ClearChunkStoreArgs = CanisterIdRecord; /// # Stored Chunks Args /// -/// Argument type of [`stored_chunks`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-stored_chunks). +/// Argument type of [`stored_chunks`](https://docs.internetcomputer.org/references/management-canister/#stored_chunks). pub type StoredChunksArgs = CanisterIdRecord; /// # Stored Chunks Result /// -/// Result type of [`stored_chunks`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-stored_chunks). +/// Result type of [`stored_chunks`](https://docs.internetcomputer.org/references/management-canister/#stored_chunks). pub type StoredChunksResult = Vec; /// # Canister Install Mode @@ -350,7 +350,7 @@ pub type WasmModule = Vec; /// # Install Code Args /// -/// Argument type of [`install_code`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_code). +/// Argument type of [`install_code`](https://docs.internetcomputer.org/references/management-canister/#install_code). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -370,7 +370,7 @@ pub struct InstallCodeArgs { /// # Install Chunked Code Args /// -/// Argument type of [`install_chunked_code`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_chunked_code). +/// Argument type of [`install_chunked_code`](https://docs.internetcomputer.org/references/management-canister/#install_chunked_code). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -395,7 +395,7 @@ pub struct InstallChunkedCodeArgs { /// # Uninstall Code Args /// -/// Argument type of [`uninstall_code`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-uninstall_code). +/// Argument type of [`uninstall_code`](https://docs.internetcomputer.org/references/management-canister/#uninstall_code). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -408,22 +408,22 @@ pub struct UninstallCodeArgs { /// # Start Canister Args /// -/// Argument type of [`start_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-start_canister). +/// Argument type of [`start_canister`](https://docs.internetcomputer.org/references/management-canister/#start_canister). pub type StartCanisterArgs = CanisterIdRecord; /// # Stop Canister Args /// -/// Argument type of [`stop_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-stop_canister). +/// Argument type of [`stop_canister`](https://docs.internetcomputer.org/references/management-canister/#stop_canister). pub type StopCanisterArgs = CanisterIdRecord; /// # Canister Status Args /// -/// Argument type of [`canister_status`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_status). +/// Argument type of [`canister_status`](https://docs.internetcomputer.org/references/management-canister/#canister_status). pub type CanisterStatusArgs = CanisterIdRecord; /// # Canister Status Result /// -/// Result type of [`canister_status`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_status). +/// Result type of [`canister_status`](https://docs.internetcomputer.org/references/management-canister/#canister_status). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -526,7 +526,7 @@ pub struct QueryStats { /// # Canister Info Args /// -/// Argument type of [`canister_info`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_info). +/// Argument type of [`canister_info`](https://docs.internetcomputer.org/references/management-canister/#canister_info). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -540,7 +540,7 @@ pub struct CanisterInfoArgs { /// # Canister Info Result /// -/// Result type of [`canister_info`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_info). +/// Result type of [`canister_info`](https://docs.internetcomputer.org/references/management-canister/#canister_info). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -561,7 +561,7 @@ pub struct CanisterInfoResult { /// # Canister Metadata Args /// -/// Argument type of [`canister_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_metadata). +/// Argument type of [`canister_metadata`](https://docs.internetcomputer.org/references/management-canister/#canister_metadata). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -575,7 +575,7 @@ pub struct CanisterMetadataArgs { /// # Canister Metadata Result /// -/// Result type of [`canister_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_metadata). +/// Result type of [`canister_metadata`](https://docs.internetcomputer.org/references/management-canister/#canister_metadata). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -820,22 +820,22 @@ pub struct Change { /// # Delete Canister Args /// -/// Argument type of [`delete_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-delete_canister). +/// Argument type of [`delete_canister`](https://docs.internetcomputer.org/references/management-canister/#delete_canister). pub type DeleteCanisterArgs = CanisterIdRecord; /// # Deposit Cycles Args /// -/// Argument type of [`deposit_cycles`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-deposit_cycles). +/// Argument type of [`deposit_cycles`](https://docs.internetcomputer.org/references/management-canister/#deposit_cycles). pub type DepositCyclesArgs = CanisterIdRecord; /// # Raw Rand Result /// -/// Result type of [`raw_rand`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-raw_rand). +/// Result type of [`raw_rand`](https://docs.internetcomputer.org/references/management-canister/#raw_rand). pub type RawRandResult = Vec; /// # HTTP Request Args /// -/// Argument type of [`http_request`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-http_request). +/// Argument type of [`http_request`](https://docs.internetcomputer.org/references/management-canister/#http_request). #[derive(CandidType, Deserialize, Debug, PartialEq, Eq, Clone, Default)] pub struct HttpRequestArgs { /// The requested URL. @@ -862,7 +862,7 @@ pub struct HttpRequestArgs { /// # HTTP Request Result /// -/// Result type of [`http_request`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-http_request). +/// Result type of [`http_request`](https://docs.internetcomputer.org/references/management-canister/#http_request). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1023,7 +1023,7 @@ impl From for u32 { /// # ECDSA Public Key Args. /// -/// Argument type of [`ecdsa_public_key`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-ecdsa_public_key). +/// Argument type of [`ecdsa_public_key`](https://docs.internetcomputer.org/references/management-canister/#ecdsa_public_key). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1038,7 +1038,7 @@ pub struct EcdsaPublicKeyArgs { /// # ECDSA Public Key Result. /// -/// Result type of [`ecdsa_public_key`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-ecdsa_public_key). +/// Result type of [`ecdsa_public_key`](https://docs.internetcomputer.org/references/management-canister/#ecdsa_public_key). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1053,7 +1053,7 @@ pub struct EcdsaPublicKeyResult { /// # Sign With ECDSA Args. /// -/// Argument type of [`sign_with_ecdsa`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-sign_with_ecdsa). +/// Argument type of [`sign_with_ecdsa`](https://docs.internetcomputer.org/references/management-canister/#sign_with_ecdsa). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1069,7 +1069,7 @@ pub struct SignWithEcdsaArgs { /// # Sign With ECDSA Result. /// -/// Result type of [`sign_with_ecdsa`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-sign_with_ecdsa). +/// Result type of [`sign_with_ecdsa`](https://docs.internetcomputer.org/references/management-canister/#sign_with_ecdsa). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1128,7 +1128,7 @@ impl From for u32 { /// # Schnorr Public Key Args. /// -/// Argument type of [`schnorr_public_key`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-schnorr_public_key). +/// Argument type of [`schnorr_public_key`](https://docs.internetcomputer.org/references/management-canister/#schnorr_public_key). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1143,7 +1143,7 @@ pub struct SchnorrPublicKeyArgs { /// # Schnorr Public Key Result. /// -/// Result type of [`schnorr_public_key`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-schnorr_public_key). +/// Result type of [`schnorr_public_key`](https://docs.internetcomputer.org/references/management-canister/#schnorr_public_key). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1176,7 +1176,7 @@ pub struct Bip341 { /// # Sign With Schnorr Args. /// -/// Argument type of [`sign_with_schnorr`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-sign_with_schnorr). +/// Argument type of [`sign_with_schnorr`](https://docs.internetcomputer.org/references/management-canister/#sign_with_schnorr). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1194,7 +1194,7 @@ pub struct SignWithSchnorrArgs { /// # Sign With Schnorr Result. /// -/// Result type of [`sign_with_schnorr`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-sign_with_schnorr). +/// Result type of [`sign_with_schnorr`](https://docs.internetcomputer.org/references/management-canister/#sign_with_schnorr). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1202,7 +1202,7 @@ pub struct SignWithSchnorrResult { /// The signature. /// /// The encoding of the signature depends on the key ID's algorithm. - /// See [`sign_with_schnorr`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-sign_with_schnorr) for more details. + /// See [`sign_with_schnorr`](https://docs.internetcomputer.org/references/management-canister/#sign_with_schnorr) for more details. #[serde(with = "serde_bytes")] pub signature: Vec, } @@ -1284,7 +1284,7 @@ pub struct VetKDDeriveKeyResult { /// # Node Metrics History Args. /// -/// Argument type of [`node_metrics_history`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-node_metrics_history). +/// Argument type of [`node_metrics_history`](https://docs.internetcomputer.org/references/management-canister/#node_metrics_history). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1297,7 +1297,7 @@ pub struct NodeMetricsHistoryArgs { /// # Node Metrics History Result. /// -/// Result type of [`node_metrics_history`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-node_metrics_history). +/// Result type of [`node_metrics_history`](https://docs.internetcomputer.org/references/management-canister/#node_metrics_history). pub type NodeMetricsHistoryResult = Vec; /// # Node Metrics History Record. @@ -1330,7 +1330,7 @@ pub struct NodeMetrics { /// # Subnet Info Args. /// -/// Argument type of [`subnet_info`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-subnet_info). +/// Argument type of [`subnet_info`](https://docs.internetcomputer.org/references/management-canister/#subnet_info). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1341,7 +1341,7 @@ pub struct SubnetInfoArgs { /// # Subnet Info Result. /// -/// Result type of [`subnet_info`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-subnet_info). +/// Result type of [`subnet_info`](https://docs.internetcomputer.org/references/management-canister/#subnet_info). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1354,7 +1354,7 @@ pub struct SubnetInfoResult { /// # Provisional Create Canister With Cycles Args. /// -/// Argument type of [`provisional_create_canister_with_cycles`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-provisional_create_canister_with_cycles). +/// Argument type of [`provisional_create_canister_with_cycles`](https://docs.internetcomputer.org/references/management-canister/#provisional_create_canister_with_cycles). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default, )] @@ -1371,12 +1371,12 @@ pub struct ProvisionalCreateCanisterWithCyclesArgs { /// # Provisional Create Canister With Cycles Result. /// -/// Result type of [`provisional_create_canister_with_cycles`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-provisional_create_canister_with_cycles). +/// Result type of [`provisional_create_canister_with_cycles`](https://docs.internetcomputer.org/references/management-canister/#provisional_create_canister_with_cycles). pub type ProvisionalCreateCanisterWithCyclesResult = CanisterIdRecord; /// # Provisional Top Up Canister Args. /// -/// Argument type of [`provisional_top_up_canister`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-provisional_top_up_canister). +/// Argument type of [`provisional_top_up_canister`](https://docs.internetcomputer.org/references/management-canister/#provisional_top_up_canister). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1409,7 +1409,7 @@ pub struct Snapshot { /// # Take Canister Snapshot Args. /// -/// Argument type of [`take_canister_snapshot`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-take_canister_snapshot). +/// Argument type of [`take_canister_snapshot`](https://docs.internetcomputer.org/references/management-canister/#take_canister_snapshot). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1428,12 +1428,12 @@ pub struct TakeCanisterSnapshotArgs { /// # Take Canister Snapshot Result. /// -/// Result type of [`take_canister_snapshot`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-take_canister_snapshot). +/// Result type of [`take_canister_snapshot`](https://docs.internetcomputer.org/references/management-canister/#take_canister_snapshot). pub type TakeCanisterSnapshotResult = Snapshot; /// # Load Canister Snapshot Args. /// -/// Argument type of [`load_canister_snapshot`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-load_canister_snapshot). +/// Argument type of [`load_canister_snapshot`](https://docs.internetcomputer.org/references/management-canister/#load_canister_snapshot). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1448,17 +1448,17 @@ pub struct LoadCanisterSnapshotArgs { /// # List Canister Snapshots Args. /// -/// Argument type of [`list_canister_snapshots`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-list_canister_snapshots). +/// Argument type of [`list_canister_snapshots`](https://docs.internetcomputer.org/references/management-canister/#list_canister_snapshots). pub type ListCanisterSnapshotsArgs = CanisterIdRecord; /// # List Canister Snapshots Result. /// -/// Result type of [`list_canister_snapshots`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-list_canister_snapshots). +/// Result type of [`list_canister_snapshots`](https://docs.internetcomputer.org/references/management-canister/#list_canister_snapshots). pub type ListCanisterSnapshotsResult = Vec; /// # Delete Canister Snapshot Args. /// -/// Argument type of [`delete_canister_snapshot`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-delete_canister_snapshot). +/// Argument type of [`delete_canister_snapshot`](https://docs.internetcomputer.org/references/management-canister/#delete_canister_snapshot). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1707,7 +1707,7 @@ pub enum CanisterLogFilter { /// # Fetch Canister Logs Args. /// -/// Argument type of [`fetch_canister_logs`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-fetch_canister_logs). +/// Argument type of [`fetch_canister_logs`](https://docs.internetcomputer.org/references/management-canister/#fetch_canister_logs). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1736,7 +1736,7 @@ pub struct CanisterLogRecord { /// # Fetch Canister Logs Result. /// -/// Result type of [`fetch_canister_logs`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-fetch_canister_logs). +/// Result type of [`fetch_canister_logs`](https://docs.internetcomputer.org/references/management-canister/#fetch_canister_logs). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] diff --git a/rs/execution_environment/src/execution/install.rs b/rs/execution_environment/src/execution/install.rs index c6ff87cb7b2c..0d581b8a5b24 100644 --- a/rs/execution_environment/src/execution/install.rs +++ b/rs/execution_environment/src/execution/install.rs @@ -1,6 +1,6 @@ //! This module defines how the `install_code` IC method in mode //! `install`/`reinstall` is executed. -//! See https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_code +//! See https://docs.internetcomputer.org/references/management-canister/#install_code use crate::as_round_instructions; use crate::canister_manager::types::{ diff --git a/rs/execution_environment/src/execution/upgrade.rs b/rs/execution_environment/src/execution/upgrade.rs index 1da04df7ebb0..0c8b7dce396d 100644 --- a/rs/execution_environment/src/execution/upgrade.rs +++ b/rs/execution_environment/src/execution/upgrade.rs @@ -1,6 +1,6 @@ //! This module defines how the `install_code` IC method in mode //! `upgrade` is executed. -//! See https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_code +//! See https://docs.internetcomputer.org/references/management-canister/#install_code //! and https://internetcomputer.org/docs/current/references/ic-interface-spec/#system-api-upgrades use crate::as_round_instructions; diff --git a/rs/nervous_system/clients/src/management_canister_client.rs b/rs/nervous_system/clients/src/management_canister_client.rs index 36f9a59a4567..d92be7b45c81 100644 --- a/rs/nervous_system/clients/src/management_canister_client.rs +++ b/rs/nervous_system/clients/src/management_canister_client.rs @@ -26,7 +26,7 @@ use std::{ }; /// The management (virtual) canister trait, also known as IC_00. -/// Reference: https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-management-canister +/// Reference: https://docs.internetcomputer.org/references/management-canister/#management-canister /// /// This trait allows for injection of clients to canister for easier unit testing. #[async_trait] diff --git a/rs/nervous_system/clients/src/update_settings.rs b/rs/nervous_system/clients/src/update_settings.rs index 417a88943176..17b598895003 100644 --- a/rs/nervous_system/clients/src/update_settings.rs +++ b/rs/nervous_system/clients/src/update_settings.rs @@ -6,7 +6,7 @@ use ic_nervous_system_runtime::Runtime; use serde::Deserialize; /// The UpdateSettings struct as defined in the ic-interface-spec -/// https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-candids +/// https://docs.internetcomputer.org/references/management-canister/#candids #[derive(Clone, Eq, PartialEq, Debug, CandidType, Deserialize)] pub struct UpdateSettings { pub canister_id: PrincipalId, @@ -33,7 +33,7 @@ pub enum SnapshotVisibility { } /// The CanisterSettings struct as defined in the ic-interface-spec -/// https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-candid +/// https://docs.internetcomputer.org/references/management-canister/#candid #[derive(Clone, Eq, PartialEq, Hash, Debug, Default, CandidType, Deserialize)] pub struct CanisterSettings { pub controllers: Option>, diff --git a/rs/nns/governance/api/src/types.rs b/rs/nns/governance/api/src/types.rs index f992e6b0e059..3f0a31bbe838 100644 --- a/rs/nns/governance/api/src/types.rs +++ b/rs/nns/governance/api/src/types.rs @@ -2701,7 +2701,7 @@ pub struct UpdateCanisterSettings { } /// The CanisterSettings struct as defined in the ic-interface-spec -/// +/// #[derive( candid::CandidType, candid::Deserialize, serde::Serialize, Clone, PartialEq, Debug, Default, )] diff --git a/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs b/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs index e5ccff9f8605..1ca2f9beadb1 100644 --- a/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs +++ b/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs @@ -2819,7 +2819,7 @@ pub mod stop_or_start_canister { } } /// The CanisterSettings struct as defined in the ic-interface-spec -/// +/// #[derive( candid::CandidType, candid::Deserialize, diff --git a/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs b/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs index 21b9f0a8a803..cad346caaded 100644 --- a/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs +++ b/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs @@ -583,7 +583,7 @@ pub struct ManageDappCanisterSettings { /// The canister IDs of the dapp canisters to be modified. pub canister_ids: Vec, /// Below are fields under CanisterSettings defined at - /// + /// pub compute_allocation: Option, pub memory_allocation: Option, pub freezing_threshold: Option, diff --git a/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs b/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs index 3765d38db9a3..46f175ef83db 100644 --- a/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs +++ b/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs @@ -878,7 +878,7 @@ pub struct ManageDappCanisterSettings { #[prost(message, repeated, tag = "1")] pub canister_ids: ::prost::alloc::vec::Vec<::ic_base_types::PrincipalId>, /// Below are fields under CanisterSettings defined at - /// + /// #[prost(uint64, optional, tag = "2")] pub compute_allocation: ::core::option::Option, #[prost(uint64, optional, tag = "3")] diff --git a/rs/types/management_canister_types/src/http.rs b/rs/types/management_canister_types/src/http.rs index f378134927b0..51cf47cc84f3 100644 --- a/rs/types/management_canister_types/src/http.rs +++ b/rs/types/management_canister_types/src/http.rs @@ -42,17 +42,17 @@ const KIB: usize = 1_024; /// Maximum number of HTTP headers in the request. /// -/// Described in . +/// Described in . const HTTP_HEADERS_MAX_NUMBER: usize = 64; /// Maximum size of all the HTTP headers in the request. /// -/// Described in . +/// Described in . const HTTP_HEADERS_TOTAL_MAX_SIZE: usize = 48 * KIB; /// Maximum size of a single HTTP header in the request. /// -/// Described in . +/// Described in . const HTTP_HEADERS_ELEMENT_MAX_SIZE: usize = 16 * KIB; // name + value = 8KiB + 8KiB /// The numeric representation for the Legacy pricing version. @@ -63,7 +63,7 @@ pub const PRICING_VERSION_PAY_AS_YOU_GO: u32 = 2; /// The default pricing version for HTTP outcalls. /// /// If the field is missing, this is the version that will be assumed by the replica. -/// Described in . +/// Described in . pub const DEFAULT_HTTP_OUTCALLS_PRICING_VERSION: u32 = PRICING_VERSION_LEGACY; /// A set of all allowed pricing versions for HTTP outcalls. From 5e29a4eda857bb2d376c76dae82007874a97eaa3 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 8 May 2026 12:23:06 +0000 Subject: [PATCH 2/3] fix some more occurrences --- .../ic-management-canister-types/src/lib.rs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/ic-management-canister-types/src/lib.rs b/packages/ic-management-canister-types/src/lib.rs index 7c041b5ceffc..6c6da9f3e6ee 100644 --- a/packages/ic-management-canister-types/src/lib.rs +++ b/packages/ic-management-canister-types/src/lib.rs @@ -1372,7 +1372,7 @@ pub struct CanisterIdRange { /// # List Canisters Result. /// -/// Result type of [`list_canisters`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-list_canisters). +/// Result type of [`list_canisters`](https://docs.internetcomputer.org/references/management-canister/#list_canisters). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] @@ -1500,7 +1500,7 @@ pub struct DeleteCanisterSnapshotArgs { /// # Read Canister Snapshot Metadata Args. /// -/// Argument type of [`read_canister_snapshot_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-read_canister_snapshot_metadata). +/// Argument type of [`read_canister_snapshot_metadata`](https://docs.internetcomputer.org/references/management-canister/#read_canister_snapshot_metadata). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct ReadCanisterSnapshotMetadataArgs { /// Canister ID. @@ -1511,7 +1511,7 @@ pub struct ReadCanisterSnapshotMetadataArgs { /// # Read Canister Snapshot Metadata Result. /// -/// Result type of [`read_canister_snapshot_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-read_canister_snapshot_metadata). +/// Result type of [`read_canister_snapshot_metadata`](https://docs.internetcomputer.org/references/management-canister/#read_canister_snapshot_metadata). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct ReadCanisterSnapshotMetadataResult { /// How the snapshot was created. @@ -1615,7 +1615,7 @@ pub enum OnLowWasmMemoryHookStatus { /// # Read Canister Snapshot Data Args. /// -/// Argument type of [`read_canister_snapshot_data`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-read_canister_snapshot_data). +/// Argument type of [`read_canister_snapshot_data`](https://docs.internetcomputer.org/references/management-canister/#read_canister_snapshot_data). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct ReadCanisterSnapshotDataArgs { /// Canister ID. @@ -1668,7 +1668,7 @@ pub enum SnapshotDataKind { /// # Read Canister Snapshot Data Result. /// -/// Result type of [`read_canister_snapshot_data`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-read_canister_snapshot_data). +/// Result type of [`read_canister_snapshot_data`](https://docs.internetcomputer.org/references/management-canister/#read_canister_snapshot_data). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct ReadCanisterSnapshotDataResult { /// The requested chunk of snapshot data. @@ -1678,7 +1678,7 @@ pub struct ReadCanisterSnapshotDataResult { /// # Upload Canister Snapshot Metadata Args. /// -/// Argument type of [`upload_canister_snapshot_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_canister_snapshot_metadata). +/// Argument type of [`upload_canister_snapshot_metadata`](https://docs.internetcomputer.org/references/management-canister/#upload_canister_snapshot_metadata). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct UploadCanisterSnapshotMetadataArgs { /// Canister ID. @@ -1705,7 +1705,7 @@ pub struct UploadCanisterSnapshotMetadataArgs { /// # Upload Canister Snapshot Metadata Result. /// -/// Result type of [`upload_canister_snapshot_metadata`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_canister_snapshot_metadata). +/// Result type of [`upload_canister_snapshot_metadata`](https://docs.internetcomputer.org/references/management-canister/#upload_canister_snapshot_metadata). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct UploadCanisterSnapshotMetadataResult { /// The ID of the snapshot. @@ -1714,7 +1714,7 @@ pub struct UploadCanisterSnapshotMetadataResult { /// # Upload Canister Snapshot Data Args. /// -/// Argument type of [`upload_canister_snapshot_data`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_canister_snapshot_data). +/// Argument type of [`upload_canister_snapshot_data`](https://docs.internetcomputer.org/references/management-canister/#upload_canister_snapshot_data). #[derive(CandidType, Serialize, Deserialize, Debug, Clone)] pub struct UploadCanisterSnapshotDataArgs { /// Canister ID. @@ -1834,7 +1834,7 @@ pub struct CyclesConsumed { /// Cycles consumed when the canister was uninstalled by the system due to running out of cycles. /// /// This is only updated on system-triggered uninstallation (i.e. the canister ran out of - /// cycles). Explicit calls to [`uninstall_code`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-uninstall_code) + /// cycles). Explicit calls to [`uninstall_code`](https://docs.internetcomputer.org/references/management-canister/#uninstall_code) /// do not update this metric; in that case other metrics (e.g. [`ingress_induction`](Self::ingress_induction)) /// may be updated instead. pub uninstall: Nat, @@ -1848,12 +1848,12 @@ pub struct CyclesConsumed { /// # Canister Metrics Args. /// -/// Argument type of [`canister_metrics`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_metrics). +/// Argument type of [`canister_metrics`](https://docs.internetcomputer.org/references/management-canister/#canister_metrics). pub type CanisterMetricsArgs = CanisterIdRecord; /// # Canister Metrics Result. /// -/// Result type of [`canister_metrics`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-canister_metrics). +/// Result type of [`canister_metrics`](https://docs.internetcomputer.org/references/management-canister/#canister_metrics). #[derive( CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, )] From 386c6d81fe8fa4eddf1a335889a1c5af966acde7 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 8 May 2026 12:29:48 +0000 Subject: [PATCH 3/3] fix some more links --- packages/ic-management-canister-types/README.md | 4 ++-- rs/nervous_system/clients/src/management_canister_client.rs | 2 +- rs/nervous_system/clients/src/update_settings.rs | 4 ++-- rs/nns/governance/api/src/types.rs | 2 +- rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs | 2 +- rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs | 2 +- rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/ic-management-canister-types/README.md b/packages/ic-management-canister-types/README.md index 4c91da6bc253..b288015d3bc5 100644 --- a/packages/ic-management-canister-types/README.md +++ b/packages/ic-management-canister-types/README.md @@ -4,7 +4,7 @@ Types for calling [the IC management canister][1]. This module is a direct translation from its Candid interface description. -[1]: https://docs.internetcomputer.org/references/management-canister/#management-canister +[1]: https://docs.internetcomputer.org/references/management-canister/ ## Correctness @@ -14,7 +14,7 @@ The test defines a dummy Canister covering all Management Canister entry points It then asserts the equality of the dummy canister's interface with the specified interface in [`ic.did`](tests/ic.did). -The [`ic.did`](tests/ic.did) is sourced from the [Internet Computer Interface Specification](https://docs.internetcomputer.org/references/management-canister/#candid). +The [`ic.did`](tests/ic.did) is sourced from the [Internet Computer Interface Specification](https://docs.internetcomputer.org/references/management-canister/#candid-interface). Some methods are excluded (commented out) as follows: - Bitcoin API: These functionalities are planned to migrate from the Management Canister to the [Bitcoin Canister](https://github.com/dfinity/bitcoin-canister). diff --git a/rs/nervous_system/clients/src/management_canister_client.rs b/rs/nervous_system/clients/src/management_canister_client.rs index d92be7b45c81..363bcd3e056c 100644 --- a/rs/nervous_system/clients/src/management_canister_client.rs +++ b/rs/nervous_system/clients/src/management_canister_client.rs @@ -26,7 +26,7 @@ use std::{ }; /// The management (virtual) canister trait, also known as IC_00. -/// Reference: https://docs.internetcomputer.org/references/management-canister/#management-canister +/// Reference: https://docs.internetcomputer.org/references/management-canister/ /// /// This trait allows for injection of clients to canister for easier unit testing. #[async_trait] diff --git a/rs/nervous_system/clients/src/update_settings.rs b/rs/nervous_system/clients/src/update_settings.rs index 17b598895003..59ebef2c9ebb 100644 --- a/rs/nervous_system/clients/src/update_settings.rs +++ b/rs/nervous_system/clients/src/update_settings.rs @@ -6,7 +6,7 @@ use ic_nervous_system_runtime::Runtime; use serde::Deserialize; /// The UpdateSettings struct as defined in the ic-interface-spec -/// https://docs.internetcomputer.org/references/management-canister/#candids +/// https://docs.internetcomputer.org/references/management-canister/#update_settings #[derive(Clone, Eq, PartialEq, Debug, CandidType, Deserialize)] pub struct UpdateSettings { pub canister_id: PrincipalId, @@ -33,7 +33,7 @@ pub enum SnapshotVisibility { } /// The CanisterSettings struct as defined in the ic-interface-spec -/// https://docs.internetcomputer.org/references/management-canister/#candid +/// https://docs.internetcomputer.org/references/management-canister/#canister-settings #[derive(Clone, Eq, PartialEq, Hash, Debug, Default, CandidType, Deserialize)] pub struct CanisterSettings { pub controllers: Option>, diff --git a/rs/nns/governance/api/src/types.rs b/rs/nns/governance/api/src/types.rs index 3f0a31bbe838..5ea9c143ec63 100644 --- a/rs/nns/governance/api/src/types.rs +++ b/rs/nns/governance/api/src/types.rs @@ -2701,7 +2701,7 @@ pub struct UpdateCanisterSettings { } /// The CanisterSettings struct as defined in the ic-interface-spec -/// +/// . #[derive( candid::CandidType, candid::Deserialize, serde::Serialize, Clone, PartialEq, Debug, Default, )] diff --git a/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs b/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs index 4238bf568367..14671e18d292 100644 --- a/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs +++ b/rs/nns/governance/src/gen/ic_nns_governance.pb.v1.rs @@ -2819,7 +2819,7 @@ pub mod stop_or_start_canister { } } /// The CanisterSettings struct as defined in the ic-interface-spec -/// +/// . #[derive( candid::CandidType, candid::Deserialize, diff --git a/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs b/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs index cad346caaded..9c742065aa93 100644 --- a/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs +++ b/rs/sns/governance/api/src/ic_sns_governance.pb.v1.rs @@ -583,7 +583,7 @@ pub struct ManageDappCanisterSettings { /// The canister IDs of the dapp canisters to be modified. pub canister_ids: Vec, /// Below are fields under CanisterSettings defined at - /// + /// . pub compute_allocation: Option, pub memory_allocation: Option, pub freezing_threshold: Option, diff --git a/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs b/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs index 46f175ef83db..3993260e2cce 100644 --- a/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs +++ b/rs/sns/governance/src/gen/ic_sns_governance.pb.v1.rs @@ -878,7 +878,7 @@ pub struct ManageDappCanisterSettings { #[prost(message, repeated, tag = "1")] pub canister_ids: ::prost::alloc::vec::Vec<::ic_base_types::PrincipalId>, /// Below are fields under CanisterSettings defined at - /// + /// . #[prost(uint64, optional, tag = "2")] pub compute_allocation: ::core::option::Option, #[prost(uint64, optional, tag = "3")]