Merged
Conversation
marc0olo
commented
Feb 9, 2026
marc0olo
commented
Feb 9, 2026
- Update YAML schema references from v0.1.0 to v0.2.0 - Use published Motoko recipe @dfinity/motoko@v4.1.0 - Update Rust recipe to @dfinity/rust@v3.2.0 - Expand .gitignore to match repo conventions
Member
Author
|
We should NOT merge this unless |
Replace Prim.envVar<system> with Runtime.envVar from mo:core/Runtime, removing the need for the internal Prim import. Bump moc to 1.3.0.
viviveevee
approved these changes
Mar 5, 2026
Align Motoko with Rust by reading the env var per request instead of caching at init. Add comment to both backends noting the network can be changed at runtime.
Runtime.envVar requires system capability which is not available in Motoko query functions. Use a cached transient value for get_config (query) while get_balance (update) reads the env var fresh. Also clean up ordering to mirror the Rust backend: types, helpers, then public API.
raymondk
approved these changes
Mar 5, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Bitcoin integration template demonstrating how to read Bitcoin balance from a canister using the Bitcoin canister API.
ic_cdk::bitcoin_canisterwhich handles cycle costs and canister ID selection automatically(with cycles = amount)syntax (moc 1.1.0, mo:core)get_balance(returns satoshi balance) andget_config(returns configured network + Bitcoin canister ID)BITCOIN_NETWORKenv var:local(regtest),staging(testnet),production(mainnet)bitcoind-addrhandling (127.0.0.1for native,host.docker.internalviaargsfor Docker)@dfinity/rust@v3.2.0, Motoko recipe pinned to@dfinity/motoko@v4.1.0Dependencies
This PR relies on the following PRs:
v12.0.0-2026-01-29-23-28.r1)bitcoind-addranddogecoind-addrto managed launcher config icp-cli#347 (merged, awaitingv0.2.0release)