Skip to content

Comments

feat: update management canister interface#29

Closed
chenyan-dfinity wants to merge 3 commits intomainfrom
management-idl
Closed

feat: update management canister interface#29
chenyan-dfinity wants to merge 3 commits intomainfrom
management-idl

Conversation

@chenyan-dfinity
Copy link
Contributor

No description provided.

@hansl
Copy link
Contributor

hansl commented Sep 21, 2020

Is this still Draft?

@chenyan-dfinity chenyan-dfinity marked this pull request as ready for review September 21, 2020 17:58
}),
canister_id: canister_id,
memory_allocation: IDL.Opt(IDL.Nat),
compute_allocation: IDL.Opt(IDL.Nat),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenyan-dfinity chenyan-dfinity requested a review from a team September 22, 2020 18:52
@gobengo
Copy link
Contributor

gobengo commented Sep 23, 2020

@sasa-tomic What will happen if this runs against the release the replica on tungsten is running today?

@sasa-tomic
Copy link

@sasa-tomic What will happen if this runs against the release the replica on tungsten is running today?

Good question @gobengo , I would expect it to work, although TBH I don't know how to test.
Just wanted to raise the awareness since you're already changing the interface.

@chenyan-dfinity
Copy link
Contributor Author

It should break client code, but due to several pending issues, everything works fine by luck, see https://github.com/dfinity-lab/dfinity/pull/5258#discussion_r484888797.

return IDL.Service({
retrieve: IDL.Func([IDL.Text], [IDL.Vec(IDL.Nat8)], ['query']),
store: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8)], [], []),
list: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
Copy link
Contributor

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...

Copy link
Contributor Author

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?

@krpeacock
Copy link
Contributor

@chenyan-dfinity This PR has been chilling here since October. Does this still need to happen?

@chenyan-dfinity
Copy link
Contributor Author

It's probably out-dated, I will close it. But it would be nice to update the management canister interface. We only have a small subset of the real ic interface in agent-js.

@nathanosdev nathanosdev deleted the management-idl branch July 17, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants