Skip to content

Commit dc03f48

Browse files
committed
refactor(canister-calls): rename pages to descriptive titles
- onchain-calls → inter-canister-calls - offchain-calls → calling-from-clients - parallel-calls → parallel-inter-canister-calls (reordered to sidebar position 3) Updates all cross-references across docs.
1 parent d9f4138 commit dc03f48

13 files changed

Lines changed: 1860 additions & 23 deletions

File tree

docs/concepts/app-architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Separate canisters handle distinct responsibilities. The two-canister setup (fro
5959
- Request and response payloads are limited to 2 MiB per call.
6060
- Cross-subnet calls add one consensus round of latency compared to same-subnet calls.
6161

62-
For implementation details and common pitfalls, see [Onchain calls](../guides/canister-calls/onchain-calls.md).
62+
For implementation details and common pitfalls, see [Inter-canister calls](../guides/canister-calls/inter-canister-calls.md).
6363

6464
### Canister-per-subnet
6565

@@ -101,7 +101,7 @@ Start with the simplest architecture that meets your requirements. You can alway
101101
## Next steps
102102

103103
- [Quickstart](../getting-started/quickstart.md): deploy your first application
104-
- [Onchain calls](../guides/canister-calls/onchain-calls.md): inter-canister communication patterns
104+
- [Inter-canister calls](../guides/canister-calls/inter-canister-calls.md): inter-canister communication patterns
105105
- [Asset canister](../guides/frontends/asset-canister.md): frontend deployment
106106
- [Canisters](canisters.md): canister internals
107107

docs/getting-started/choose-your-path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This is where most developers start after the quickstart. The backend guides cov
3838
- [HTTPS outcalls](../guides/backends/https-outcalls.md): call external APIs from your canister
3939
- [Timers](../guides/backends/timers.md): schedule recurring tasks
4040
- [Randomness](../guides/backends/randomness.md): generate unpredictable values onchain
41-
- [Calling other canisters](../guides/canister-calls/onchain-calls.md): compose functionality across canisters
41+
- [Calling other canisters](../guides/canister-calls/inter-canister-calls.md): compose functionality across canisters
4242

4343
## Fullstack applications
4444

docs/guides/backends/randomness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,6 @@ Note: this example predates `mo:core` and uses the older `Random.Finite` API. Th
226226
- [Onchain Randomness (concept)](../../concepts/onchain-randomness.md): how the IC's threshold VRF works
227227
- [Management Canister](../../reference/management-canister.md): `raw_rand` API reference
228228
- [Data Integrity](../security/data-integrity.md): using randomness in a secure application design
229-
- [Inter-canister calls](../canister-calls/onchain-calls.md): async patterns and reentrancy
229+
- [Inter-canister calls](../canister-calls/inter-canister-calls.md): async patterns and reentrancy
230230

231231
<!-- Upstream: informed by dfinity/portal — docs/building-apps/integrations/randomness.mdx; dfinity/icskills — skills/canister-security/SKILL.md; dfinity/examples — motoko/random_maze; caffeinelabs/motoko-core — src/Random.mo -->

docs/guides/canister-calls/offchain-calls.md renamed to docs/guides/canister-calls/calling-from-clients.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Offchain Calls"
2+
title: "Calling from Clients"
33
description: "Call canister functions from frontends, scripts, and backend services using IC agent libraries"
44
sidebar:
5-
order: 3
5+
order: 4
66
---
77

88
An **agent** is a client-side library that constructs ingress messages, signs them with a cryptographic identity, and sends them to ICP boundary nodes. Agents handle the protocol details (CBOR encoding, request IDs, certificate verification) so your application code works with native language types.
@@ -314,7 +314,7 @@ const agent = await HttpAgent.create({
314314
## Next steps
315315

316316
- [Candid and binding generation](candid.md): generate typed clients from `.did` files
317-
- [Onchain calls](onchain-calls.md): canister-to-canister calls from within the IC
317+
- [Inter-canister calls](inter-canister-calls.md): canister-to-canister calls from within the IC
318318
- [Internet Identity](../authentication/internet-identity.md): adding user authentication to offchain calls
319319
- [Asset canister](../frontends/asset-canister.md): deploying the frontend that makes these calls
320320

docs/guides/canister-calls/candid.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ console.log(greeting); // "Hello, World!"
291291

292292
### From another canister
293293

294-
When one canister calls another, Candid handles the argument encoding and response decoding transparently. See [Onchain calls](onchain-calls.md) for how to make inter-canister calls in Motoko and Rust.
294+
When one canister calls another, Candid handles the argument encoding and response decoding transparently. See [Inter-canister calls](inter-canister-calls.md) for how to make inter-canister calls in Motoko and Rust.
295295

296296
## Safe interface upgrades
297297

@@ -420,7 +420,7 @@ async fn invoke_callee() {
420420
}
421421
```
422422

423-
The `.dynamic_callee("PUBLIC_CANISTER_ID:callee")` mode reads the canister ID from a canister environment variable at runtime. The same `PUBLIC_CANISTER_ID:<name>` variables that `icp deploy` injects (see [canister discovery](onchain-calls.md#canister-discovery)). For canisters with fixed IDs, use `.static_callee(principal)` instead.
423+
The `.dynamic_callee("PUBLIC_CANISTER_ID:callee")` mode reads the canister ID from a canister environment variable at runtime. The same `PUBLIC_CANISTER_ID:<name>` variables that `icp deploy` injects (see [canister discovery](inter-canister-calls.md#canister-discovery)). For canisters with fixed IDs, use `.static_callee(principal)` instead.
424424
{/* Needs human verification: the upstream ic-cdk-bindgen README uses ICP_CANISTER_ID: in its example, but icp-cli sets PUBLIC_CANISTER_ID:. We use PUBLIC_CANISTER_ID: here to match icp-cli. An issue has been filed on dfinity/cdk-rs to align the upstream README. */}
425425

426426
For type selector configuration and advanced options, see the [`ic-cdk-bindgen` documentation](https://crates.io/crates/ic-cdk-bindgen).
@@ -443,8 +443,8 @@ For type selector configuration and advanced options, see the [`ic-cdk-bindgen`
443443

444444
## Next steps
445445

446-
- [Onchain calls](onchain-calls.md): make inter-canister calls using Candid interfaces
447-
- [Offchain calls](offchain-calls.md): call canisters from JavaScript frontends and agents
446+
- [Inter-canister calls](inter-canister-calls.md): make inter-canister calls using Candid interfaces
447+
- [Calling from clients](calling-from-clients.md): call canisters from JavaScript frontends and agents
448448
- [Candid specification](../../reference/candid-spec.md): full type reference and subtyping rules
449449

450450
{/* Upstream: informed by dfinity/portal docs/building-apps/interact-with-canisters/candid/ (3 files), docs/building-apps/developer-tools/cdks/rust/generating-candid.mdx, icp-cli concepts/binding-generation.md, ic-cdk-bindgen README, and @icp-sdk/bindgen. Type mappings verified against .sources/candid (spec), .sources/motoko (IDL-Motoko.md), and .sources/cdk-rs. */}

docs/guides/canister-calls/onchain-calls.mdx renamed to docs/guides/canister-calls/inter-canister-calls.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Onchain Calls"
2+
title: "Inter-canister Calls"
33
description: "Call functions on other canisters from your canister code"
44
sidebar:
55
order: 2
@@ -27,7 +27,7 @@ There are two types of canister methods, and the choice affects latency, cost, a
2727

2828
**Use update calls** when modifying state, transferring cycles, or when the caller needs a consensus-backed guarantee that the call was executed correctly.
2929

30-
To make query responses verifiable without the cost of update calls, see [Certified Variables](../backends/certified-variables.md). For running multiple query calls in parallel, see [Parallel Calls and Composite Queries](parallel-calls.md).
30+
To make query responses verifiable without the cost of update calls, see [Certified Variables](../backends/certified-variables.md). For running multiple query calls in parallel, see [Parallel inter-canister calls](parallel-inter-canister-calls.md).
3131

3232
## Making calls
3333

@@ -398,7 +398,7 @@ Calls between canisters on the same subnet complete within a single round. Cross
398398

399399
## Next steps
400400

401-
- [Parallel Calls and Composite Queries](parallel-calls.md): make multiple calls concurrently and use composite queries for efficient read patterns
401+
- [Parallel inter-canister calls](parallel-inter-canister-calls.md): make multiple calls concurrently and use composite queries for efficient read patterns
402402
- [Candid](candid.md): define the interface your canister exposes for inter-canister calls
403403
- [Certified Variables](../backends/certified-variables.md): make query responses verifiable without update call overhead
404404
- [Inter-Canister Call Security](../security/inter-canister-calls.md): reentrancy guards, async safety patterns, and trust considerations

docs/guides/canister-calls/parallel-calls.mdx renamed to docs/guides/canister-calls/parallel-inter-canister-calls.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Parallel Calls"
2+
title: "Parallel Inter-canister Calls"
33
description: "Execute multiple inter-canister calls concurrently to reduce latency, especially across subnets."
44
sidebar:
5-
order: 4
5+
order: 3
66
---
77

88
import { Tabs, TabItem } from '@astrojs/starlight/components';
@@ -355,7 +355,7 @@ Parallel and composite calls carry the same atomicity properties as any inter-ca
355355

356356
## Next steps
357357

358-
- [Onchain calls](onchain-calls.md): making basic inter-canister calls
358+
- [Inter-canister calls](inter-canister-calls.md): making basic inter-canister calls
359359
- [Canister optimization](../canister-management/optimization.md): profiling and improving throughput
360360
- [Inter-canister call security](../security/inter-canister-calls.md): atomicity, reentrancy, and call safety
361361

docs/guides/defi/token-ledgers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,6 @@ icp canister call icrc1_ledger icrc1_transfer \
565565
- [Token standards](../../reference/token-standards.md): formal ICRC-1, ICRC-2, ICRC-7, and ICRC-37 specifications
566566
- [Chain-key tokens](chain-key-tokens.md): working with ckBTC and ckETH (minting, deposits, withdrawals)
567567
- [Wallet integration](wallet-integration.md): connecting wallets to your app
568-
- [Onchain calls](../canister-calls/onchain-calls.md): how inter-canister calls work (ledger calls are inter-canister calls)
568+
- [Inter-canister calls](../canister-calls/inter-canister-calls.md): how inter-canister calls work (ledger calls are inter-canister calls)
569569

570570
{/* Upstream: informed by dfinity/portal docs/defi/token-standards/, docs/defi/token-integrations/: icrc-1.mdx, icrc-2.mdx, icrc-7.mdx, icrc-37.mdx; dfinity/icskills skills/icrc-ledger/SKILL.md; dfinity/examples motoko/nft-creator */}

docs/guides/security/access-management.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ import Runtime "mo:core/Runtime";
244244
</TabItem>
245245
<TabItem label="Rust">
246246

247-
In Rust, there is no built-in `is_controller` function: checking controllers requires an async call to the management canister. See [onchain calls](../canister-calls/onchain-calls.md) for inter-canister call patterns.
247+
In Rust, there is no built-in `is_controller` function: checking controllers requires an async call to the management canister. See [inter-canister calls](../canister-calls/inter-canister-calls.md) for inter-canister call patterns.
248248

249249
</TabItem>
250250
</Tabs>

docs/guides/security/inter-canister-calls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ Before shipping any canister that makes inter-canister calls:
476476

477477
## Next steps
478478

479-
- [Onchain calls](../canister-calls/onchain-calls.md): Basic inter-canister call patterns and the `Call` API
480-
- [Parallel calls](../canister-calls/parallel-calls.md): Running multiple calls concurrently and handling partial failures
479+
- [Inter-canister calls](../canister-calls/inter-canister-calls.md): Basic inter-canister call patterns and the `Call` API
480+
- [Parallel inter-canister calls](../canister-calls/parallel-inter-canister-calls.md): Running multiple calls concurrently and handling partial failures
481481
- [Security concepts](../../concepts/security.md): IC security model and threat landscape
482482

483483
<!-- Upstream: informed by dfinity/icskills — canister-security/SKILL.md, multi-canister/SKILL.md -->

0 commit comments

Comments
 (0)