-
Notifications
You must be signed in to change notification settings - Fork 12
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
Requesting clarification on the following: Dynamic canister creation, automatic Candid generation, inter canister calls #23
Comments
Hey! v0.5 is still alpha, we're pushing for it to be stable very soon, hopefully, this week. For the inter-canister calls, you can currently see the example in For automatic candid generation notice this in the fib example: ic-kit/examples/fib/src/canister.rs Lines 29 to 31 in 7f8a47c
running cargo test now automatically writes the candid to the provided path.
As for importing canisters and dynamic creation, the new version is taking a different approach which is what's currently pending, the factory-counter example should demo this once it is possible. |
see this #24 for the wip dynamic canister creation. |
@qti3e Thank you for the clarification. Eagerly awaiting the release :) 2 quick questions I had while going through the example code:
Thank you for the inputs nonetheless :) |
believe me, we're also eagerly awaiting the release internally xD
But one of our main goals is being able to import the canister, that is:
|
@qti3e |
The upgrade and schema migration should happen on each canister level, we will only provide the installation helpers in the dynamic canister context. But
This will greatly reduce your cost of migration and more importantly will save you from headaches since you can still restore/decode data stored in a previous version and access it. And as far as mass migration goes, we currently don't have something on the roadmap, but if it turns out to be a need for some project internally we may consider creating an option (Cap future migration might involve a mass migration, but I honestly don't know and wish it doesn't!) |
It would be really helpful if you could document how to do the following with ic-kit:
as comments in the examples provided and provide any guidance on how to set it up from scratch on a new project.
I was using ic-kit 0.4.8 before. It included calls to the management canister as documented here for the dynamic creations of canisters but that seems to have been removed in v0.5 onwards.
And I had been using the
cargo test
mechanism of automatic Candid generation as used in some other Psychedelic projects like thisFor inter canister calls, I tried the mechanism outlined here but it's not type safe so it breaks compilation with Cargo. I created a post for it here
I feel ic-kit 0.5 would probably solve all of the above but I'm unable to make it work atm.
I see some of the examples have pending todos and I imagine you'll be fleshing them out in more details.
In case you already plan to cover the above, please ignore this issue :)
The text was updated successfully, but these errors were encountered: