Skip to content

CanisterSettings

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

Canister settings.

Principal

optional computeAllocation: bigint

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

The compute allocation of the canister.


optional controllers: Principal[]

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

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


optional environmentVariables: EnvironmentVariable[]

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

Environment variables exposed to the canister.


optional freezingThreshold: bigint

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

The freezing threshold of the canister.


optional logMemoryLimit: bigint

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

The log memory limit of the canister in bytes.


optional logVisibility: LogVisibility

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

The log visibility of the canister.


optional memoryAllocation: bigint

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

The memory allocation of the canister.


optional reservedCyclesLimit: bigint

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

The reserved cycles limit of the canister.


optional snapshotVisibility: SnapshotVisibility

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

The snapshot visibility of the canister.


optional wasmMemoryLimit: bigint

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

The WASM memory limit of the canister in bytes.


optional wasmMemoryThreshold: bigint

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

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.