Skip to content

UpdateCanisterSettingsOptions

Defined in: packages/pic/src/pocket-ic-types.ts:754

Options for updating the settings of a given canister.

Principal

canisterId: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:758

The Principal of the canister to update the settings for.


optional computeAllocation: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:510

The compute allocation of the canister.

CanisterSettings.computeAllocation


optional controllers: Principal[]

Defined in: packages/pic/src/pocket-ic-types.ts:505

The controllers of the canister. Defaults to the sender, which defaults to the anonymous principal.

CanisterSettings.controllers


optional environmentVariables: EnvironmentVariable[]

Defined in: packages/pic/src/pocket-ic-types.ts:556

Environment variables exposed to the canister.

CanisterSettings.environmentVariables


optional freezingThreshold: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:520

The freezing threshold of the canister.

CanisterSettings.freezingThreshold


optional logMemoryLimit: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:540

The log memory limit of the canister in bytes.

CanisterSettings.logMemoryLimit


optional logVisibility: LogVisibility

Defined in: packages/pic/src/pocket-ic-types.ts:530

The log visibility of the canister.

CanisterSettings.logVisibility


optional memoryAllocation: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:515

The memory allocation of the canister.

CanisterSettings.memoryAllocation


optional reservedCyclesLimit: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:525

The reserved cycles limit of the canister.

CanisterSettings.reservedCyclesLimit


optional sender: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:764

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


optional snapshotVisibility: SnapshotVisibility

Defined in: packages/pic/src/pocket-ic-types.ts:535

The snapshot visibility of the canister.

CanisterSettings.snapshotVisibility


optional wasmMemoryLimit: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:545

The WASM memory limit of the canister in bytes.

CanisterSettings.wasmMemoryLimit


optional wasmMemoryThreshold: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:551

The WASM memory threshold of the canister in bytes. The canister_on_low_wasm_memory function will be called when the canister’s remaining wasm memory is below this threshold.

CanisterSettings.wasmMemoryThreshold