-
Notifications
You must be signed in to change notification settings - Fork 436
chore: migrate rust/receiving-icp to icp-cli #1394
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
Merged
marc0olo
merged 12 commits into
master
from
chore/migrate-rust-receiving-icp-to-icp-cli
Jun 18, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
60c6a23
chore: migrate rust/receiving-icp to icp-cli
marc0olo 75f1e3c
improve(rust/receiving-icp): per-environment ledger config via icp.ya…
marc0olo 26f273a
fix(rust/receiving-icp): use option_env! with fallback for ledger pri…
marc0olo 91785ed
fix(rust/receiving-icp): add export_candid!() + revert to env!()
marc0olo 14d642b
fix(rust/receiving-icp): use ic_cdk::api::env_var_value at runtime
marc0olo ed0f044
fix(rust/receiving-icp): README: runtime not compile time
marc0olo 4c86797
docs(rust/receiving-icp): add Install section
marc0olo 7616aca
improve(rust/receiving-icp): strengthen tests to cover ledger interac…
marc0olo a372d53
improve(rust/receiving-icp): bash test script + subaccount funding tests
marc0olo 3abb2bc
fix(rust/receiving-icp): match (100_000_000 : nat64) with underscores
marc0olo 81056ac
fix(rust/receiving-icp): idempotent delta-based tests + clean README/…
marc0olo 40a070f
fix(rust/receiving-icp): address Mathias review comments
marc0olo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: receiving_icp | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| paths: | ||
| - rust/receiving-icp/** | ||
| - .github/workflows/receiving-icp.yml | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| rust-receiving_icp: | ||
| runs-on: ubuntu-24.04 | ||
| container: ghcr.io/dfinity/icp-dev-env-rust:1.0.1 | ||
| env: | ||
| ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
| - name: Deploy and test | ||
| working-directory: rust/receiving-icp | ||
| run: | | ||
| icp network start -d | ||
| icp deploy | ||
| bash test.sh | ||
|
marc0olo marked this conversation as resolved.
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,3 @@ | ||
| [package] | ||
| name = "receiving-icp" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [lib] | ||
| crate-type = ["cdylib"] | ||
|
|
||
| [dependencies] | ||
| candid = "0.10.19" | ||
| ic-cdk = "0.18.7" | ||
| ic-ledger-types = "0.15.0" | ||
| [workspace] | ||
| members = ["backend"] | ||
| resolver = "2" |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| [package] | ||
| name = "backend" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [lib] | ||
| crate-type = ["cdylib"] | ||
| path = "lib.rs" | ||
|
|
||
| [dependencies] | ||
| candid = "0.10" | ||
| ic-cdk = "0.20" | ||
| ic-ledger-types = "0.16" |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.