-
Notifications
You must be signed in to change notification settings - Fork 99
feat: update management canister interface #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,58 @@ | ||
| /** | ||
| * This file is generated from the candid for asset management. | ||
| * This file is generated from public spec 0.10. | ||
| * didc bind ic.did -t js | ||
| */ | ||
| /* tslint:disable */ | ||
| // @ts-ignore | ||
| export default ({ IDL }) => { | ||
| const canister_id = IDL.Principal; | ||
| const wasm_module = IDL.Vec(IDL.Nat8); | ||
| return IDL.Service({ | ||
| create_canister: IDL.Func([], [IDL.Record({ canister_id: canister_id })], []), | ||
| install_code: IDL.Func( | ||
| stop_canister: IDL.Func([IDL.Record({ canister_id: canister_id })], [], []), | ||
| start_canister: IDL.Func([IDL.Record({ canister_id: canister_id })], [], []), | ||
| canister_status: IDL.Func( | ||
| [IDL.Record({ canister_id: canister_id })], | ||
| [ | ||
| IDL.Record({ | ||
| status: IDL.Variant({ | ||
| stopped: IDL.Null, | ||
| stopping: IDL.Null, | ||
| running: IDL.Null, | ||
| }), | ||
| }), | ||
| ], | ||
| [], | ||
| ), | ||
| delete_canister: IDL.Func([IDL.Record({ canister_id: canister_id })], [], []), | ||
| set_controller: IDL.Func( | ||
| [ | ||
| IDL.Record({ | ||
| mode: IDL.Variant({ install: IDL.Null, reinstall: IDL.Null, upgrade: IDL.Null }), | ||
| canister_id: canister_id, | ||
| wasm_module: wasm_module, | ||
| arg: IDL.Vec(IDL.Nat8), | ||
| compute_allocation: IDL.Opt(IDL.Nat), | ||
| memory_allocation: IDL.Opt(IDL.Nat), | ||
| new_controller: IDL.Principal, | ||
| }), | ||
| ], | ||
| [], | ||
| [], | ||
| ), | ||
| set_controller: IDL.Func( | ||
| [IDL.Record({ canister_id: canister_id, new_controller: IDL.Principal })], | ||
| install_code: IDL.Func( | ||
| [ | ||
| IDL.Record({ | ||
| arg: IDL.Vec(IDL.Nat8), | ||
| wasm_module: wasm_module, | ||
| mode: IDL.Variant({ | ||
| reinstall: IDL.Null, | ||
| upgrade: IDL.Null, | ||
| install: IDL.Null, | ||
| }), | ||
| canister_id: canister_id, | ||
| memory_allocation: IDL.Opt(IDL.Nat), | ||
| compute_allocation: IDL.Opt(IDL.Nat), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already out of date:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not in the spec. We are generating from spec 0.10: https://github.com/dfinity-lab/ic-ref/blob/release-0.10/spec/ic.did |
||
| }), | ||
| ], | ||
| [], | ||
| [], | ||
| ), | ||
| raw_rand: IDL.Func([], [IDL.Vec(IDL.Nat8)], []), | ||
| create_canister: IDL.Func([], [IDL.Record({ canister_id: canister_id })], []), | ||
| }); | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a list in the actual asset canister? That doesn't seem like a good idea...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is added here: dfinity/sdk#1047. What's the concern for
list?