Skip to main content

Interface: UpgradeCanisterOptions

Options for upgrading a given canister with a WASM module. This will reset the canister's heap, but preserve stable memory.

See

Principal

Properties

canisterId

canisterId: Principal

The Principal of the canister to upgrade.

Source

pocket-ic-types.ts:396


wasm

wasm: string | ArrayBufferLike

The WASM module to install to the canister. If a string is passed, it is treated as a path to a file. If an ArrayBufferLike is passed, it is treated as the WASM module itself.

Source

pocket-ic-types.ts:403


arg?

optional arg: ArrayBufferLike

Candid encoded argument to pass to the canister's init function.

Source

pocket-ic-types.ts:408


sender?

optional sender: Principal

The Principal to send the request as. Defaults to the anonymous principal.

Source

pocket-ic-types.ts:414