feat: Counter canister and a Node client, over OCapN on a local replica

The canister is freestanding wasm32 importing only ic0. Each caller
principal gets a CapTP session: start carries op:start-session, deliver
carries later frames, and each reply carries the canister's frames.

The client peer is wasm too, driven from Node by @icp-sdk/core. It
holds answer releases so they ride ahead of the next call instead of
costing an update call of their own: handshake, fetch, and each send
are one update call apiece.

Generated-by: Claude Code (claude-opus-5-5)
This commit is contained in:
dckc committed 2026-11-18 05:47:04 -06:00
1 parent 6348422012
commit 1177fc86b6
13 files changed
+787 -14

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
{
"version": 1,
"canisters": {
"counter": {
"type": "custom",
"build": "zig build canister",
"wasm": "zig-out/bin/counter.wasm",
"candid": "counter.did"
}
},
"networks": {
"local": { "bind": "127.0.0.1:4959", "type": "ephemeral" }
}
}