UploadCanisterSnapshotOptions
Defined in: packages/pic/src/pocket-ic-types.ts:1459
Options for uploading a snapshot of a canister from a directory.
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/pic/src/pocket-ic-types.ts:1463
The Principal of the canister to upload the snapshot to.
replaceSnapshot?
Section titled “replaceSnapshot?”
optionalreplaceSnapshot:Uint8Array<ArrayBufferLike>
Defined in: packages/pic/src/pocket-ic-types.ts:1474
The ID of an existing snapshot to replace with the uploaded one.
sender?
Section titled “sender?”
optionalsender:Principal
Defined in: packages/pic/src/pocket-ic-types.ts:1480
The Principal to send the request as. Defaults to the anonymous principal.
snapshotDir
Section titled “snapshotDir”snapshotDir:
string
Defined in: packages/pic/src/pocket-ic-types.ts:1469
The directory to upload the snapshot from, on the machine running the PocketIC server, as written by PocketIc.downloadCanisterSnapshot.