dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
171 stars 83 forks source link

feat: Support `wasm_memory_persistence` for canister upgrades #3890

Closed luc-blaeser closed 2 weeks ago

luc-blaeser commented 2 weeks ago

Description

Support Motoko enhanced orthogonal persistence (https://github.com/dfinity/motoko/pull/4488) with the canister upgrade option wasm_memory_persistence:

The support of enhanced orthogonal persistence is identified by the presence of the Wasm metadata section "enhanced-orthogonal-persistence". NB. Replace is not recommended to be used as wasm_memory_persistence as it skips the IC safety check on orthogonal persistence.

How Has This Been Tested?

e2e test wasm_memory_persistence Manually with Motoko EOP.

Checklist: