SetupCanisterOptions
Defined in: pocket-ic-types.ts:406
Options for setting up a canister.
Properties
Section titled “Properties”
optionalarg:ArrayBufferLike
Defined in: pocket-ic-types.ts:423
Candid encoded argument to pass to the canister’s init function. Defaults to an empty ArrayBuffer.
computeAllocation?
Section titled “computeAllocation?”
optionalcomputeAllocation:bigint
Defined in: pocket-ic-types.ts:467
The compute allocation of the canister.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.computeAllocation
controllers?
Section titled “controllers?”
optionalcontrollers:Principal[]
Defined in: pocket-ic-types.ts:462
The controllers of the canister. Defaults to the sender, which defaults to the anonymous principal.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.controllers
cycles?
Section titled “cycles?”
optionalcycles:bigint
Defined in: pocket-ic-types.ts:496
The amount of cycles to send to the canister. Defaults to 1_000_000_000_000_000_000n.
Inherited from
Section titled “Inherited from”freezingThreshold?
Section titled “freezingThreshold?”
optionalfreezingThreshold:bigint
Defined in: pocket-ic-types.ts:477
The freezing threshold of the canister.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.freezingThreshold
idlFactory
Section titled “idlFactory”idlFactory:
InterfaceFactory
Defined in: pocket-ic-types.ts:410
The interface factory to use for the Actor.
memoryAllocation?
Section titled “memoryAllocation?”
optionalmemoryAllocation:bigint
Defined in: pocket-ic-types.ts:472
The memory allocation of the canister.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.memoryAllocation
reservedCyclesLimit?
Section titled “reservedCyclesLimit?”
optionalreservedCyclesLimit:bigint
Defined in: pocket-ic-types.ts:482
The reserved cycles limit of the canister.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.reservedCyclesLimit
sender?
Section titled “sender?”
optionalsender:Principal
Defined in: pocket-ic-types.ts:429
The principal to setup the canister as. Defaults to the anonymous principal.
Overrides
Section titled “Overrides”targetCanisterId?
Section titled “targetCanisterId?”
optionaltargetCanisterId:Principal
Defined in: pocket-ic-types.ts:513
The Id of the canister to create. Can only be used on Bitcoin, Fiduciary, II, SNS and NNS subnets.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.targetCanisterId
targetSubnetId?
Section titled “targetSubnetId?”
optionaltargetSubnetId:Principal
Defined in: pocket-ic-types.ts:507
The Id of the subnet to create the canister on.
Inherited from
Section titled “Inherited from”CreateCanisterOptions.targetSubnetId
wasm:
string|ArrayBufferLike
Defined in: pocket-ic-types.ts:417
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.