Skip to content

Commit 9947c12

Browse files
committed
feat: example on receiving ICP
1 parent ee8f238 commit 9947c12

File tree

7 files changed

+830
-0
lines changed

7 files changed

+830
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Known failure: https://dfinity.atlassian.net/browse/EM-5
2+
name: rust-receiving-icp
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- rust/receiving-icp/**
10+
- .github/workflows/provision-darwin.sh
11+
- .github/workflows/provision-linux.sh
12+
- .github/workflows/rust-receiving-icp-example.yml
13+
- .ic-commit
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
jobs:
18+
rust-token_transfer-darwin:
19+
runs-on: macos-15
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- name: Provision Darwin
25+
run: bash .github/workflows/provision-darwin.sh
26+
- name: Rust Receiving ICP Darwin
27+
run: |
28+
pushd rust/receiving-icp
29+
cargo build
30+
popd
31+
rust-token_transfer-linux:
32+
runs-on: ubuntu-22.04
33+
steps:
34+
- uses: actions/checkout@v2
35+
with:
36+
submodules: recursive
37+
- name: Provision Linux
38+
run: bash .github/workflows/provision-linux.sh
39+
- name: Rust Receiving ICP Linux
40+
run: |
41+
pushd rust/receiving-icp
42+
cargo build
43+
popd

rust/receiving-icp/.env

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# DFX CANISTER ENVIRONMENT VARIABLES
3+
DFX_VERSION='0.28.0'
4+
DFX_NETWORK='local'
5+
CANISTER_ID_TESTICP_LEDGER='xafvr-biaaa-aaaai-aql5q-cai'
6+
CANISTER_ID_RECEIVING_ICP='u6s2n-gx777-77774-qaaba-cai'
7+
CANISTER_ID='u6s2n-gx777-77774-qaaba-cai'
8+
CANISTER_CANDID_PATH='/Users/islam.elashi/dev/dfinity/examples/rust/receiving-icp/src/receiving-icp.did'
9+
# END DFX CANISTER ENVIRONMENT VARIABLES

0 commit comments

Comments
 (0)