-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add AgentRuntime
#36
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
Conversation
96ca4df to
fcbc092
Compare
AgentRuntime and CyclesWalletRuntimeAgentRuntime
37efc56 to
2e25bf6
Compare
fcbc092 to
d2b0beb
Compare
2e25bf6 to
08a795d
Compare
e9de60e to
a4a9cce
Compare
a4a9cce to
301c841
Compare
|
@gregorydemay This runtime will be used in end-to-end tests to send requests to canisters deployed on the IC (see e.g. the SOL RPC canister e2e tests here). I guess there is also a risk of accidentally adding a dependency on |
|
@lpahlavi: Yes I think I would prefer to have it in a separate crate.
|
gregorydemay
left a comment
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.
Thanks @lpahlavi for this PR! LGTM, just the error mapping needs to be I think a bit more fine-grained.
## 🤖 New release * `canhttp`: 0.3.0 -> 0.4.0 * `ic-canister-runtime`: 0.1.0 * `ic-agent-canister-runtime`: 0.1.0 * `ic-pocket-canister-runtime`: 0.1.0 <details><summary><i><b>Changelog</b></i></summary><p> ## `canhttp` <blockquote> ## [0.4.0] - 2025-11-21 ### Added - Add `JsonRpcHttpLayer` which combines the `HttpConversionLayer`, `JsonConversionLayer` and `ConsistentJsonRpcIdFilter` middlewares into a single convenient-to-use layer ([#46](#46)) - Add example canisters demonstrating JSON-RPC functionalities and parallel calls ([#48](#48)) ### Changed - Bump `ic-cdk` to v0.19.0 ([#40](#40)) ### Fixed - Missing optional dependency on `serde` for `multi` feature ([#47](#47)) [0.4.0]: https://github.com/dfinity/canhttp/compare/canhttp-0.3.0..canhttp-0.4.0 </blockquote> ## `ic-canister-runtime` <blockquote> ## [0.1.0] - 2025-11-21 ### Added - Add helper methods to `CyclesWalletRuntime` ([#44](#44)) - Add READMEs and examples ([#42](#42)) - Add `StubRuntime` ([#41](#41)) - Add `CyclesWalletRuntime` ([#37](#37)) - Add `Runtime` crate and `IcRuntime` implementation ([#35](#35)) [0.1.0]: https://github.com/dfinity/canhttp/releases/tag/ic-canister-runtime-v0.1.0 </blockquote> ## `ic-agent-canister-runtime` <blockquote> ## [0.1.0] - 2025-11-21 ### Added - Add `AgentRuntime` ([#36](#36)) [0.1.0]: https://github.com/dfinity/canhttp/releases/tag/ic-agent-canister-runtime-v0.1.0 </blockquote> ## `ic-pocket-canister-runtime` <blockquote> ## [0.1.0] - 2025-11-21 ### Added - Add `ExecuteHttpOutcallMocks` trait and support for PocketIC live mode ([#43](#43)) - Add READMEs and examples ([#42](#42)) - Add `PocketIcRuntime` and mock HTTP mock infrastructure ([#38](#38)) [0.1.0]: https://github.com/dfinity/canhttp/releases/tag/ic-pocket-canister-runtime-v0.1.0 </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Louis Pahlavi <louis.pahlavi@dfinity.org>
Add a
Runtimeimplementation making canister calls withic-agent.