/* eslint-disable */ // @ts-nocheck // This file was automatically generated by @icp-sdk/bindgen@0.3.0. // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. import type { ActorMethod } from '@icp-sdk/core/agent'; import type { IDL } from '@icp-sdk/core/candid'; import type { Principal } from '@icp-sdk/core/principal'; export interface CanisterCallError { 'code' : [] | [number], 'description' : string, } export interface CanisterIdRecord { 'canister_id' : Principal } export type CanisterInstallMode = { 'reinstall' : null } | { 'upgrade' : null } | { 'install' : null }; export interface CanisterStatusResult { 'memory_metrics' : [] | [MemoryMetrics], 'status' : CanisterStatusType, 'memory_size' : bigint, 'cycles' : bigint, 'settings' : DefiniteCanisterSettings, 'query_stats' : [] | [QueryStats], 'idle_cycles_burned_per_day' : [] | [bigint], 'module_hash' : [] | [Uint8Array], 'reserved_cycles' : [] | [bigint], } export interface CanisterStatusResultV2 { 'memory_metrics' : [] | [MemoryMetrics], 'status' : CanisterStatusType, 'memory_size' : bigint, 'cycles' : bigint, 'settings' : DefiniteCanisterSettingsArgs, 'query_stats' : [] | [QueryStats], 'idle_cycles_burned_per_day' : bigint, 'module_hash' : [] | [Uint8Array], } export type CanisterStatusType = { 'stopped' : null } | { 'stopping' : null } | { 'running' : null }; export interface CanisterSummary { 'status' : [] | [CanisterStatusResultV2], 'canister_id' : [] | [Principal], } export interface ChangeCanisterRequest { 'arg' : Uint8Array, 'wasm_module' : Uint8Array, 'stop_before_installing' : boolean, 'mode' : CanisterInstallMode, 'canister_id' : Principal, 'chunked_canister_wasm' : [] | [ChunkedCanisterWasm], } export interface ChunkedCanisterWasm { 'wasm_module_hash' : Uint8Array, 'chunk_hashes_list' : Array, 'store_canister_id' : Principal, } export interface CleanUpFailedRegisterExtensionRequest { 'canister_id' : [] | [Principal], } export interface CleanUpFailedRegisterExtensionResponse { 'result' : [] | [CleanUpFailedRegisterExtensionResult], } export type CleanUpFailedRegisterExtensionResult = { 'Ok' : {} } | { 'Err' : CanisterCallError }; export interface DefiniteCanisterSettings { 'freezing_threshold' : [] | [bigint], 'wasm_memory_threshold' : [] | [bigint], 'controllers' : Array, 'reserved_cycles_limit' : [] | [bigint], 'log_visibility' : [] | [LogVisibility], 'wasm_memory_limit' : [] | [bigint], 'memory_allocation' : [] | [bigint], 'compute_allocation' : [] | [bigint], } export interface DefiniteCanisterSettingsArgs { 'freezing_threshold' : bigint, 'wasm_memory_threshold' : [] | [bigint], 'controllers' : Array, 'wasm_memory_limit' : [] | [bigint], 'memory_allocation' : bigint, 'compute_allocation' : bigint, } export interface Extensions { 'extension_canister_ids' : Array } export interface FailedUpdate { 'err' : [] | [CanisterCallError], 'dapp_canister_id' : [] | [Principal], } export interface GetSnsCanistersSummaryRequest { 'update_canister_list' : [] | [boolean], } export interface GetSnsCanistersSummaryResponse { 'root' : [] | [CanisterSummary], 'swap' : [] | [CanisterSummary], 'ledger' : [] | [CanisterSummary], 'index' : [] | [CanisterSummary], 'governance' : [] | [CanisterSummary], 'dapps' : Array, 'archives' : Array, } export interface GetTimersResponse { 'timers' : [] | [Timers] } export interface ListSnsCanistersResponse { 'root' : [] | [Principal], 'swap' : [] | [Principal], 'extensions' : [] | [Extensions], 'ledger' : [] | [Principal], 'index' : [] | [Principal], 'governance' : [] | [Principal], 'dapps' : Array, 'archives' : Array, } export type LogVisibility = { 'controllers' : null } | { 'public' : null } | { 'allowed_viewers' : Array }; export interface ManageDappCanisterSettingsRequest { 'freezing_threshold' : [] | [bigint], 'wasm_memory_threshold' : [] | [bigint], 'canister_ids' : Array, 'reserved_cycles_limit' : [] | [bigint], 'log_visibility' : [] | [number], 'wasm_memory_limit' : [] | [bigint], 'memory_allocation' : [] | [bigint], 'compute_allocation' : [] | [bigint], } export interface ManageDappCanisterSettingsResponse { 'failure_reason' : [] | [string], } export interface MemoryMetrics { 'wasm_binary_size' : [] | [bigint], 'wasm_chunk_store_size' : [] | [bigint], 'canister_history_size' : [] | [bigint], 'stable_memory_size' : [] | [bigint], 'snapshots_size' : [] | [bigint], 'wasm_memory_size' : [] | [bigint], 'global_memory_size' : [] | [bigint], 'custom_sections_size' : [] | [bigint], } export interface QueryStats { 'response_payload_bytes_total' : [] | [bigint], 'num_instructions_total' : [] | [bigint], 'num_calls_total' : [] | [bigint], 'request_payload_bytes_total' : [] | [bigint], } export interface RegisterDappCanisterRequest { 'canister_id' : [] | [Principal], } export interface RegisterDappCanistersRequest { 'canister_ids' : Array, } export interface RegisterExtensionRequest { 'canister_id' : [] | [Principal] } export interface RegisterExtensionResponse { 'result' : [] | [RegisterExtensionResult], } export type RegisterExtensionResult = { 'Ok' : {} } | { 'Err' : CanisterCallError }; export interface SetDappControllersRequest { 'canister_ids' : [] | [RegisterDappCanistersRequest], 'controller_principal_ids' : Array, } export interface SetDappControllersResponse { 'failed_updates' : Array, } export interface SnsRootCanister { 'dapp_canister_ids' : Array, 'timers' : [] | [Timers], 'testflight' : boolean, 'extensions' : [] | [Extensions], 'archive_canister_ids' : Array, 'governance_canister_id' : [] | [Principal], 'index_canister_id' : [] | [Principal], 'swap_canister_id' : [] | [Principal], 'ledger_canister_id' : [] | [Principal], } export interface Timers { 'last_spawned_timestamp_seconds' : [] | [bigint], 'last_reset_timestamp_seconds' : [] | [bigint], 'requires_periodic_tasks' : [] | [boolean], } export interface _SERVICE { 'canister_status' : ActorMethod<[CanisterIdRecord], CanisterStatusResult>, 'change_canister' : ActorMethod<[ChangeCanisterRequest], undefined>, 'clean_up_failed_register_extension' : ActorMethod< [CleanUpFailedRegisterExtensionRequest], CleanUpFailedRegisterExtensionResponse >, 'get_build_metadata' : ActorMethod<[], string>, 'get_sns_canisters_summary' : ActorMethod< [GetSnsCanistersSummaryRequest], GetSnsCanistersSummaryResponse >, 'get_timers' : ActorMethod<[{}], GetTimersResponse>, 'list_sns_canisters' : ActorMethod<[{}], ListSnsCanistersResponse>, 'manage_dapp_canister_settings' : ActorMethod< [ManageDappCanisterSettingsRequest], ManageDappCanisterSettingsResponse >, 'register_dapp_canister' : ActorMethod<[RegisterDappCanisterRequest], {}>, 'register_dapp_canisters' : ActorMethod<[RegisterDappCanistersRequest], {}>, 'register_extension' : ActorMethod< [RegisterExtensionRequest], RegisterExtensionResponse >, 'reset_timers' : ActorMethod<[{}], {}>, 'set_dapp_controllers' : ActorMethod< [SetDappControllersRequest], SetDappControllersResponse >, } export declare const idlService: IDL.ServiceClass; export declare const idlInitArgs: IDL.Type[]; export declare const idlFactory: IDL.InterfaceFactory; export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];