Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use full IC Management IDL (#406)
* feat: Use full IC Management IDL * Assert fn prov...with_cycles has type ActorMethod Co-authored-by: Kyle Peacock <kylpeacock@gmail.com>
- Loading branch information
Showing
4 changed files
with
134 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* This file is generated from the candid for asset management. | ||
*/ | ||
/* tslint:disable */ | ||
// @ts-ignore | ||
import type { Principal } from '@dfinity/principal'; | ||
export type canister_id = Principal; | ||
export interface canister_settings { | ||
controllers: [] | [Array<Principal>]; | ||
freezing_threshold: [] | [bigint]; | ||
memory_allocation: [] | [bigint]; | ||
compute_allocation: [] | [bigint]; | ||
} | ||
export interface definite_canister_settings { | ||
controllers: Array<Principal>; | ||
freezing_threshold: bigint; | ||
memory_allocation: bigint; | ||
compute_allocation: bigint; | ||
} | ||
export type user_id = Principal; | ||
export type wasm_module = Array<number>; | ||
export default interface _SERVICE { | ||
canister_status: (arg_0: { canister_id: canister_id }) => Promise<{ | ||
status: { stopped: null } | { stopping: null } | { running: null }; | ||
memory_size: bigint; | ||
cycles: bigint; | ||
settings: definite_canister_settings; | ||
module_hash: [] | [Array<number>]; | ||
}>; | ||
create_canister: (arg_0: { | ||
settings: [] | [canister_settings]; | ||
}) => Promise<{ canister_id: canister_id }>; | ||
delete_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>; | ||
deposit_cycles: (arg_0: { canister_id: canister_id }) => Promise<undefined>; | ||
install_code: (arg_0: { | ||
arg: Array<number>; | ||
wasm_module: wasm_module; | ||
mode: { reinstall: null } | { upgrade: null } | { install: null }; | ||
canister_id: canister_id; | ||
}) => Promise<undefined>; | ||
provisional_create_canister_with_cycles: (arg_0: { | ||
settings: [] | [canister_settings]; | ||
amount: [] | [bigint]; | ||
}) => Promise<{ canister_id: canister_id }>; | ||
provisional_top_up_canister: (arg_0: { | ||
canister_id: canister_id; | ||
amount: bigint; | ||
}) => Promise<undefined>; | ||
raw_rand: () => Promise<Array<number>>; | ||
start_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>; | ||
stop_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>; | ||
uninstall_code: (arg_0: { canister_id: canister_id }) => Promise<undefined>; | ||
update_settings: (arg_0: { | ||
canister_id: Principal; | ||
settings: canister_settings; | ||
}) => Promise<undefined>; | ||
} |