Skip to content

Commit

Permalink
updating actor and management_service
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Jun 3, 2024
1 parent dabbda5 commit b4f4682
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/agent/src/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -243,7 +243,7 @@ export class Actor {
public static async install(
fields: {
module: ArrayBuffer;
mode?: CanisterInstallMode;
mode?: canister_install_mode;
arg?: ArrayBuffer;
},
config: ActorConfig,
Expand Down Expand Up @@ -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: [],
},
];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/canisters/management_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit b4f4682

Please sign in to comment.