From b4f4682b318315233456b6852ffff8cc262b9ed6 Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Mon, 3 Jun 2024 16:26:18 -0700 Subject: [PATCH] updating actor and management_service --- packages/agent/src/actor.ts | 6 ++---- packages/agent/src/canisters/management_service.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/agent/src/actor.ts b/packages/agent/src/actor.ts index 42834339..e221775c 100644 --- a/packages/agent/src/actor.ts +++ b/packages/agent/src/actor.ts @@ -16,7 +16,7 @@ import { RequestId } from './request_id'; import { toHex } from './utils/buffer'; import { CreateCertificateOptions } from './certificate'; import managementCanisterIdl from './canisters/management_idl'; -import _SERVICE, { canister_settings } from './canisters/management_service'; +import _SERVICE, { canister_install_mode, canister_settings } from './canisters/management_service'; export class ActorCallError extends AgentError { constructor( @@ -243,7 +243,7 @@ export class Actor { public static async install( fields: { module: ArrayBuffer; - mode?: CanisterInstallMode; + mode?: canister_install_mode; arg?: ArrayBuffer; }, config: ActorConfig, @@ -278,8 +278,6 @@ export class Actor { compute_allocation: settings.compute_allocation ? [settings.compute_allocation] : [], freezing_threshold: settings.freezing_threshold ? [settings.freezing_threshold] : [], memory_allocation: settings.memory_allocation ? [settings.memory_allocation] : [], - reserved_cycles_limit: [], - log_visibility: [], }, ]; } diff --git a/packages/agent/src/canisters/management_service.ts b/packages/agent/src/canisters/management_service.ts index 8c864929..617c0687 100644 --- a/packages/agent/src/canisters/management_service.ts +++ b/packages/agent/src/canisters/management_service.ts @@ -110,7 +110,7 @@ export interface utxo { outpoint: outpoint; } export type wasm_module = Uint8Array | number[]; -export interface _SERVICE { +export default interface _SERVICE { bitcoin_get_balance: ActorMethod<[get_balance_request], satoshi>; bitcoin_get_balance_query: ActorMethod<[get_balance_request], satoshi>; bitcoin_get_current_fee_percentiles: ActorMethod<