@dfinity/stable-memory

Persist canister state across upgrades. Covers StableBTreeMap and MemoryManager in Rust, persistent actor in Motoko, and upgrade hook patterns. Use when dealing with canister upgrades, data persistence, data lost after upgrade, stable storage, StableBTreeMap, pre_upgrade traps, or heap vs stable memory. Do NOT use for inter-canister calls or access control — use multi-canister or canister-security instead.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@dfinity/stable-memory/verified)](https://skillsafe.ai/skill/@dfinity/stable-memory/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@dfinity/stable-memory/installs)](https://skillsafe.ai/skill/@dfinity/stable-memory/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@dfinity/stable-memory/scan)](https://skillsafe.ai/skill/@dfinity/stable-memory/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@dfinity/stable-memory/eval)](https://skillsafe.ai/skill/@dfinity/stable-memory/)