UNPKG

@dfinity/ic-management

Version:

A library for interfacing with the IC management canister.

17 lines (16 loc) 775 B
import type { ActorConfig } from "@dfinity/agent"; type CallTransform = Required<ActorConfig>["callTransform"]; type QueryTransform = Required<ActorConfig>["queryTransform"]; /** * Transformer function for service creation with `callTransform` or `queryTransform`. * * This function maps the `effective_canister_id` for calls to the Management Canister (`aaaaa-aa`). * * Original source `getManagementCanister` in agent-js. * * Providing a transformer is required to determine the effective_canister_id when the request is an update call to the Management Canister (aaaaa-aa). * * @link https://internetcomputer.org/docs/current/references/ic-interface-spec/#http-effective-canister-id **/ export declare const transform: CallTransform | QueryTransform; export {};