@junobuild/admin
Version:
A library for interfacing with admin features of Juno
50 lines (49 loc) • 2.13 kB
TypeScript
import { type CanisterStatusResponse, type IcManagementDid, type InstallChunkedCodeParams, type InstallCodeParams, type UploadChunkParams } from '@icp-sdk/canisters/ic-management';
import { CanisterStatus } from '@icp-sdk/core/agent';
import { Principal } from '@icp-sdk/core/principal';
import { type ActorParameters } from '@junobuild/ic-client/actor';
export declare const canisterStop: ({ canisterId, actor }: {
canisterId: Principal;
actor: ActorParameters;
}) => Promise<void>;
export declare const canisterStart: ({ canisterId, actor }: {
canisterId: Principal;
actor: ActorParameters;
}) => Promise<void>;
export declare const installCode: ({ actor, code }: {
actor: ActorParameters;
code: InstallCodeParams;
}) => Promise<void>;
export declare const storedChunks: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<IcManagementDid.chunk_hash[]>;
export declare const clearChunkStore: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<void>;
export declare const uploadChunk: ({ actor, chunk }: {
actor: ActorParameters;
chunk: UploadChunkParams;
}) => Promise<IcManagementDid.chunk_hash>;
export declare const installChunkedCode: ({ actor, code }: {
actor: ActorParameters;
code: InstallChunkedCodeParams;
}) => Promise<void>;
export declare const canisterStatus: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<CanisterStatusResponse>;
export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
canisterId: Principal | string;
path: string;
}) => Promise<CanisterStatus.Status | undefined>;
export declare const listCanisterSnapshots: ({ actor, canisterId }: {
actor: ActorParameters;
canisterId: Principal;
}) => Promise<IcManagementDid.list_canister_snapshots_result>;
export declare const takeCanisterSnapshot: ({ actor, ...rest }: {
actor: ActorParameters;
canisterId: Principal;
snapshotId?: IcManagementDid.snapshot_id;
}) => Promise<IcManagementDid.take_canister_snapshot_result>;