/* 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 type bitcoin_address = string; export type bitcoin_block_hash = Uint8Array; export type bitcoin_block_header = Uint8Array; export type bitcoin_block_height = number; export interface bitcoin_get_balance_args { 'network' : bitcoin_network, 'address' : bitcoin_address, 'min_confirmations' : [] | [number], } export type bitcoin_get_balance_result = satoshi; export interface bitcoin_get_block_headers_args { 'start_height' : bitcoin_block_height, 'end_height' : [] | [bitcoin_block_height], 'network' : bitcoin_network, } export interface bitcoin_get_block_headers_result { 'tip_height' : bitcoin_block_height, 'block_headers' : Array, } export interface bitcoin_get_current_fee_percentiles_args { 'network' : bitcoin_network, } export type bitcoin_get_current_fee_percentiles_result = BigUint64Array; export interface bitcoin_get_utxos_args { 'network' : bitcoin_network, 'filter' : [] | [{ 'page' : Uint8Array } | { 'min_confirmations' : number }], 'address' : bitcoin_address, } export interface bitcoin_get_utxos_result { 'next_page' : [] | [Uint8Array], 'tip_height' : bitcoin_block_height, 'tip_block_hash' : bitcoin_block_hash, 'utxos' : Array, } export type bitcoin_network = { 'mainnet' : null } | { 'testnet' : null }; export interface bitcoin_send_transaction_args { 'transaction' : Uint8Array, 'network' : bitcoin_network, } export type canister_id = Principal; export interface canister_info_args { 'canister_id' : canister_id, 'num_requested_changes' : [] | [bigint], } export interface canister_info_result { 'controllers' : Array, 'module_hash' : [] | [Uint8Array], 'recent_changes' : Array, 'total_num_changes' : bigint, } export type canister_install_mode = { 'reinstall' : null } | { 'upgrade' : [] | [ { 'wasm_memory_persistence' : [] | [ { 'keep' : null } | { 'replace' : null } ], 'skip_pre_upgrade' : [] | [boolean], } ] } | { 'install' : null }; export interface canister_log_record { 'idx' : bigint, 'timestamp_nanos' : bigint, 'content' : Uint8Array, } export interface canister_metadata_args { 'name' : string, 'canister_id' : canister_id, } export interface canister_metadata_result { 'value' : Uint8Array } export interface canister_settings { 'freezing_threshold' : [] | [bigint], 'wasm_memory_threshold' : [] | [bigint], 'environment_variables' : [] | [Array], 'controllers' : [] | [Array], 'reserved_cycles_limit' : [] | [bigint], 'log_visibility' : [] | [log_visibility], 'wasm_memory_limit' : [] | [bigint], 'memory_allocation' : [] | [bigint], 'compute_allocation' : [] | [bigint], } export interface canister_status_args { 'canister_id' : canister_id } export interface canister_status_result { 'memory_metrics' : { '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, }, 'status' : { 'stopped' : null } | { 'stopping' : null } | { 'running' : null }, 'memory_size' : bigint, 'ready_for_migration' : boolean, 'version' : bigint, 'cycles' : bigint, 'settings' : definite_canister_settings, 'query_stats' : { 'response_payload_bytes_total' : bigint, 'num_instructions_total' : bigint, 'num_calls_total' : bigint, 'request_payload_bytes_total' : bigint, }, 'idle_cycles_burned_per_day' : bigint, 'module_hash' : [] | [Uint8Array], 'reserved_cycles' : bigint, } export interface change { 'timestamp_nanos' : bigint, 'canister_version' : bigint, 'origin' : change_origin, 'details' : change_details, } export type change_details = { 'creation' : { 'controllers' : Array, 'environment_variables_hash' : [] | [Uint8Array], } } | { 'code_deployment' : { 'mode' : { 'reinstall' : null } | { 'upgrade' : null } | { 'install' : null }, 'module_hash' : Uint8Array, } } | { 'load_snapshot' : { 'canister_version' : bigint, 'source' : { 'metadata_upload' : any } | { 'taken_from_canister' : any }, 'from_canister_id' : [] | [Principal], 'taken_at_timestamp' : bigint, 'snapshot_id' : snapshot_id, } } | { 'rename_canister' : { 'rename_to' : { 'canister_id' : canister_id, 'version' : bigint, 'total_num_changes' : bigint, }, 'canister_id' : canister_id, 'requested_by' : Principal, 'total_num_changes' : bigint, } } | { 'controllers_change' : { 'controllers' : Array } } | { 'code_uninstall' : null }; export type change_origin = { 'from_user' : { 'user_id' : Principal } } | { 'from_canister' : { 'canister_version' : [] | [bigint], 'canister_id' : canister_id, } }; export interface chunk_hash { 'hash' : Uint8Array } export interface clear_chunk_store_args { 'canister_id' : canister_id } export interface create_canister_args { 'settings' : [] | [canister_settings], 'sender_canister_version' : [] | [bigint], } export interface create_canister_result { 'canister_id' : canister_id } export interface definite_canister_settings { 'freezing_threshold' : bigint, 'wasm_memory_threshold' : bigint, 'environment_variables' : Array, 'controllers' : Array, 'reserved_cycles_limit' : bigint, 'log_visibility' : log_visibility, 'wasm_memory_limit' : bigint, 'memory_allocation' : bigint, 'compute_allocation' : bigint, } export interface delete_canister_args { 'canister_id' : canister_id } export interface delete_canister_snapshot_args { 'canister_id' : canister_id, 'snapshot_id' : snapshot_id, } export interface deposit_cycles_args { 'canister_id' : canister_id } export type ecdsa_curve = { 'secp256k1' : null }; export interface ecdsa_public_key_args { 'key_id' : { 'name' : string, 'curve' : ecdsa_curve }, 'canister_id' : [] | [canister_id], 'derivation_path' : Array, } export interface ecdsa_public_key_result { 'public_key' : Uint8Array, 'chain_code' : Uint8Array, } export interface environment_variable { 'value' : string, 'name' : string } export interface fetch_canister_logs_args { 'canister_id' : canister_id } export interface fetch_canister_logs_result { 'canister_log_records' : Array, } export interface http_header { 'value' : string, 'name' : string } export interface http_request_args { 'url' : string, 'method' : { 'get' : null } | { 'put' : null } | { 'head' : null } | { 'post' : null } | { 'delete' : null }, 'max_response_bytes' : [] | [bigint], 'body' : [] | [Uint8Array], 'transform' : [] | [ { 'function' : [Principal, string], 'context' : Uint8Array } ], 'headers' : Array, 'is_replicated' : [] | [boolean], } export interface http_request_result { 'status' : bigint, 'body' : Uint8Array, 'headers' : Array, } export interface install_chunked_code_args { 'arg' : Uint8Array, 'wasm_module_hash' : Uint8Array, 'mode' : canister_install_mode, 'chunk_hashes_list' : Array, 'target_canister' : canister_id, 'store_canister' : [] | [canister_id], 'sender_canister_version' : [] | [bigint], } export interface install_code_args { 'arg' : Uint8Array, 'wasm_module' : wasm_module, 'mode' : canister_install_mode, 'canister_id' : canister_id, 'sender_canister_version' : [] | [bigint], } export interface list_canister_snapshots_args { 'canister_id' : canister_id } export type list_canister_snapshots_result = Array; export interface load_canister_snapshot_args { 'canister_id' : canister_id, 'sender_canister_version' : [] | [bigint], 'snapshot_id' : snapshot_id, } export type log_visibility = { 'controllers' : null } | { 'public' : null } | { 'allowed_viewers' : Array }; export type millisatoshi_per_byte = bigint; export interface node_metrics { 'num_block_failures_total' : bigint, 'node_id' : Principal, 'num_blocks_proposed_total' : bigint, } export interface node_metrics_history_args { 'start_at_timestamp_nanos' : bigint, 'subnet_id' : Principal, } export type node_metrics_history_result = Array< { 'timestamp_nanos' : bigint, 'node_metrics' : Array } >; export interface outpoint { 'txid' : Uint8Array, 'vout' : number } export interface provisional_create_canister_with_cycles_args { 'settings' : [] | [canister_settings], 'specified_id' : [] | [canister_id], 'amount' : [] | [bigint], 'sender_canister_version' : [] | [bigint], } export interface provisional_create_canister_with_cycles_result { 'canister_id' : canister_id, } export interface provisional_top_up_canister_args { 'canister_id' : canister_id, 'amount' : bigint, } export type raw_rand_result = Uint8Array; export interface read_canister_snapshot_data_args { 'kind' : { 'wasm_module' : { 'size' : bigint, 'offset' : bigint } } | { 'wasm_memory' : { 'size' : bigint, 'offset' : bigint } } | { 'stable_memory' : { 'size' : bigint, 'offset' : bigint } } | { 'wasm_chunk' : { 'hash' : Uint8Array } }, 'canister_id' : canister_id, 'snapshot_id' : snapshot_id, } export interface read_canister_snapshot_data_response { 'chunk' : Uint8Array } export interface read_canister_snapshot_metadata_args { 'canister_id' : canister_id, 'snapshot_id' : snapshot_id, } export interface read_canister_snapshot_metadata_response { 'globals' : Array< { 'f32' : number } | { 'f64' : number } | { 'i32' : number } | { 'i64' : bigint } | { 'v128' : bigint } >, 'canister_version' : bigint, 'source' : { 'metadata_upload' : any } | { 'taken_from_canister' : any }, 'certified_data' : Uint8Array, 'global_timer' : [] | [{ 'active' : bigint } | { 'inactive' : null }], 'on_low_wasm_memory_hook_status' : [] | [ { 'condition_not_satisfied' : null } | { 'executed' : null } | { 'ready' : null } ], 'wasm_module_size' : bigint, 'stable_memory_size' : bigint, 'wasm_chunk_store' : Array<{ 'hash' : Uint8Array }>, 'taken_at_timestamp' : bigint, 'wasm_memory_size' : bigint, } export type satoshi = bigint; export type schnorr_algorithm = { 'ed25519' : null } | { 'bip340secp256k1' : null }; export type schnorr_aux = { 'bip341' : { 'merkle_root_hash' : Uint8Array } }; export interface schnorr_public_key_args { 'key_id' : { 'algorithm' : schnorr_algorithm, 'name' : string }, 'canister_id' : [] | [canister_id], 'derivation_path' : Array, } export interface schnorr_public_key_result { 'public_key' : Uint8Array, 'chain_code' : Uint8Array, } export interface sign_with_ecdsa_args { 'key_id' : { 'name' : string, 'curve' : ecdsa_curve }, 'derivation_path' : Array, 'message_hash' : Uint8Array, } export interface sign_with_ecdsa_result { 'signature' : Uint8Array } export interface sign_with_schnorr_args { 'aux' : [] | [schnorr_aux], 'key_id' : { 'algorithm' : schnorr_algorithm, 'name' : string }, 'derivation_path' : Array, 'message' : Uint8Array, } export interface sign_with_schnorr_result { 'signature' : Uint8Array } export interface snapshot { 'id' : snapshot_id, 'total_size' : bigint, 'taken_at_timestamp' : bigint, } export type snapshot_id = Uint8Array; export interface start_canister_args { 'canister_id' : canister_id } export interface stop_canister_args { 'canister_id' : canister_id } export interface stored_chunks_args { 'canister_id' : canister_id } export type stored_chunks_result = Array; export interface subnet_info_args { 'subnet_id' : Principal } export interface subnet_info_result { 'replica_version' : string, 'registry_version' : bigint, } export interface take_canister_snapshot_args { 'replace_snapshot' : [] | [snapshot_id], 'canister_id' : canister_id, 'uninstall_code' : [] | [boolean], 'sender_canister_version' : [] | [bigint], } export type take_canister_snapshot_result = snapshot; export interface uninstall_code_args { 'canister_id' : canister_id, 'sender_canister_version' : [] | [bigint], } export interface update_settings_args { 'canister_id' : canister_id, 'settings' : canister_settings, 'sender_canister_version' : [] | [bigint], } export interface upload_canister_snapshot_data_args { 'chunk' : Uint8Array, 'kind' : { 'wasm_module' : { 'offset' : bigint } } | { 'wasm_memory' : { 'offset' : bigint } } | { 'stable_memory' : { 'offset' : bigint } } | { 'wasm_chunk' : null }, 'canister_id' : canister_id, 'snapshot_id' : snapshot_id, } export interface upload_canister_snapshot_metadata_args { 'globals' : Array< { 'f32' : number } | { 'f64' : number } | { 'i32' : number } | { 'i64' : bigint } | { 'v128' : bigint } >, 'replace_snapshot' : [] | [snapshot_id], 'certified_data' : Uint8Array, 'global_timer' : [] | [{ 'active' : bigint } | { 'inactive' : null }], 'on_low_wasm_memory_hook_status' : [] | [ { 'condition_not_satisfied' : null } | { 'executed' : null } | { 'ready' : null } ], 'wasm_module_size' : bigint, 'canister_id' : canister_id, 'stable_memory_size' : bigint, 'wasm_memory_size' : bigint, } export interface upload_canister_snapshot_metadata_response { 'snapshot_id' : snapshot_id, } export interface upload_chunk_args { 'chunk' : Uint8Array, 'canister_id' : canister_id, } export type upload_chunk_result = chunk_hash; export interface utxo { 'height' : number, 'value' : satoshi, 'outpoint' : outpoint, } export type vetkd_curve = { 'bls12_381_g2' : null }; export interface vetkd_derive_key_args { 'context' : Uint8Array, 'key_id' : { 'name' : string, 'curve' : vetkd_curve }, 'input' : Uint8Array, 'transport_public_key' : Uint8Array, } export interface vetkd_derive_key_result { 'encrypted_key' : Uint8Array } export interface vetkd_public_key_args { 'context' : Uint8Array, 'key_id' : { 'name' : string, 'curve' : vetkd_curve }, 'canister_id' : [] | [canister_id], } export interface vetkd_public_key_result { 'public_key' : Uint8Array } export type wasm_module = Uint8Array; export interface _SERVICE { /** * bitcoin interface */ 'bitcoin_get_balance' : ActorMethod< [bitcoin_get_balance_args], bitcoin_get_balance_result >, 'bitcoin_get_block_headers' : ActorMethod< [bitcoin_get_block_headers_args], bitcoin_get_block_headers_result >, 'bitcoin_get_current_fee_percentiles' : ActorMethod< [bitcoin_get_current_fee_percentiles_args], bitcoin_get_current_fee_percentiles_result >, 'bitcoin_get_utxos' : ActorMethod< [bitcoin_get_utxos_args], bitcoin_get_utxos_result >, 'bitcoin_send_transaction' : ActorMethod< [bitcoin_send_transaction_args], undefined >, /** * Public canister data */ 'canister_info' : ActorMethod<[canister_info_args], canister_info_result>, 'canister_metadata' : ActorMethod< [canister_metadata_args], canister_metadata_result >, 'canister_status' : ActorMethod< [canister_status_args], canister_status_result >, 'clear_chunk_store' : ActorMethod<[clear_chunk_store_args], undefined>, 'create_canister' : ActorMethod< [create_canister_args], create_canister_result >, 'delete_canister' : ActorMethod<[delete_canister_args], undefined>, 'delete_canister_snapshot' : ActorMethod< [delete_canister_snapshot_args], undefined >, 'deposit_cycles' : ActorMethod<[deposit_cycles_args], undefined>, /** * Threshold ECDSA signature */ 'ecdsa_public_key' : ActorMethod< [ecdsa_public_key_args], ecdsa_public_key_result >, /** * canister logging */ 'fetch_canister_logs' : ActorMethod< [fetch_canister_logs_args], fetch_canister_logs_result >, 'http_request' : ActorMethod<[http_request_args], http_request_result>, 'install_chunked_code' : ActorMethod<[install_chunked_code_args], undefined>, 'install_code' : ActorMethod<[install_code_args], undefined>, 'list_canister_snapshots' : ActorMethod< [list_canister_snapshots_args], list_canister_snapshots_result >, 'load_canister_snapshot' : ActorMethod< [load_canister_snapshot_args], undefined >, /** * metrics interface */ 'node_metrics_history' : ActorMethod< [node_metrics_history_args], node_metrics_history_result >, /** * provisional interfaces for the pre-ledger world */ 'provisional_create_canister_with_cycles' : ActorMethod< [provisional_create_canister_with_cycles_args], provisional_create_canister_with_cycles_result >, 'provisional_top_up_canister' : ActorMethod< [provisional_top_up_canister_args], undefined >, 'raw_rand' : ActorMethod<[], raw_rand_result>, 'read_canister_snapshot_data' : ActorMethod< [read_canister_snapshot_data_args], read_canister_snapshot_data_response >, 'read_canister_snapshot_metadata' : ActorMethod< [read_canister_snapshot_metadata_args], read_canister_snapshot_metadata_response >, /** * Threshold Schnorr signature */ 'schnorr_public_key' : ActorMethod< [schnorr_public_key_args], schnorr_public_key_result >, 'sign_with_ecdsa' : ActorMethod< [sign_with_ecdsa_args], sign_with_ecdsa_result >, 'sign_with_schnorr' : ActorMethod< [sign_with_schnorr_args], sign_with_schnorr_result >, 'start_canister' : ActorMethod<[start_canister_args], undefined>, 'stop_canister' : ActorMethod<[stop_canister_args], undefined>, 'stored_chunks' : ActorMethod<[stored_chunks_args], stored_chunks_result>, /** * subnet info */ 'subnet_info' : ActorMethod<[subnet_info_args], subnet_info_result>, /** * Canister snapshots */ 'take_canister_snapshot' : ActorMethod< [take_canister_snapshot_args], take_canister_snapshot_result >, 'uninstall_code' : ActorMethod<[uninstall_code_args], undefined>, 'update_settings' : ActorMethod<[update_settings_args], undefined>, 'upload_canister_snapshot_data' : ActorMethod< [upload_canister_snapshot_data_args], undefined >, 'upload_canister_snapshot_metadata' : ActorMethod< [upload_canister_snapshot_metadata_args], upload_canister_snapshot_metadata_response >, 'upload_chunk' : ActorMethod<[upload_chunk_args], upload_chunk_result>, 'vetkd_derive_key' : ActorMethod< [vetkd_derive_key_args], vetkd_derive_key_result >, /** * Threshold key derivation */ 'vetkd_public_key' : ActorMethod< [vetkd_public_key_args], vetkd_public_key_result >, } 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[];