Skip to content

Commit 1db5707

Browse files
Merge pull request #722 from dfinity/fix/tokens_transfer
🎨 rewrote example
2 parents c2bf78d + b7975e7 commit 1db5707

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3144
-1933
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Known failure: https://dfinity.atlassian.net/browse/EM-5
2+
name: motoko-icp_transfer
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- motoko/icp_transfer/**
10+
- .github/workflows/provision-darwin.sh
11+
- .github/workflows/provision-linux.sh
12+
- .github/workflows/motoko-icp-transfer-example.yml
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
jobs:
17+
motoko-icp_transfer-darwin:
18+
runs-on: macos-12
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: Provision Darwin
22+
run: bash .github/workflows/provision-darwin.sh
23+
- name: Install mops
24+
uses: ZenVoich/setup-mops@v1
25+
- name: Motoko Ledger Transfer Darwin
26+
run: |
27+
pushd motoko/icp_transfer
28+
mops install
29+
bash ./demo.sh
30+
popd
31+
motoko-icp_transfer-linux:
32+
runs-on: ubuntu-20.04
33+
steps:
34+
- uses: actions/checkout@v1
35+
- name: Provision Linux
36+
run: bash .github/workflows/provision-linux.sh
37+
- name: Install mops
38+
uses: ZenVoich/setup-mops@v1
39+
- name: Motoko Ledger Transfer Linux
40+
run: |
41+
pushd motoko/icp_transfer
42+
mops install
43+
bash ./demo.sh
44+
popd
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
# Known failure: https://dfinity.atlassian.net/browse/EM-5
2-
name: motoko-ledger-transfer
2+
name: motoko-token_transfer
33
on:
44
push:
55
branches:
66
- master
77
pull_request:
88
paths:
9-
- motoko/ledger-transfer/**
9+
- motoko/token_transfer/**
1010
- .github/workflows/provision-darwin.sh
1111
- .github/workflows/provision-linux.sh
12-
- .github/workflows/motoko-ledger-transfer-example.yml
12+
- .github/workflows/motoko-token-transfer-example.yml
1313
concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: true
1616
jobs:
17-
motoko-ledger-transfer-darwin:
17+
motoko-token_transfer-darwin:
1818
runs-on: macos-12
1919
steps:
2020
- uses: actions/checkout@v1
2121
- name: Provision Darwin
2222
run: bash .github/workflows/provision-darwin.sh
2323
- name: Motoko Ledger Transfer Darwin
2424
run: |
25-
pushd motoko/ledger-transfer
25+
pushd motoko/token_transfer
2626
bash ./demo.sh
2727
popd
28-
motoko-ledger-transfer-linux:
28+
motoko-token_transfer-linux:
2929
runs-on: ubuntu-20.04
3030
steps:
3131
- uses: actions/checkout@v1
3232
- name: Provision Linux
3333
run: bash .github/workflows/provision-linux.sh
3434
- name: Motoko Ledger Transfer Linux
3535
run: |
36-
pushd motoko/ledger-transfer
36+
pushd motoko/token_transfer
3737
bash ./demo.sh
3838
popd
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Known failure: https://dfinity.atlassian.net/browse/EM-5
2-
name: rust-tokens_transfer
2+
name: rust-icp_transfer
33
on:
44
push:
55
branches:
66
- master
77
pull_request:
88
paths:
9-
- rust/tokens_transfer/**
9+
- rust/icp_transfer/**
1010
- .github/workflows/provision-darwin.sh
1111
- .github/workflows/provision-linux.sh
12-
- .github/workflows/rust-tokens-transfer-example.yml
12+
- .github/workflows/rust-icp-transfer-example.yml
1313
concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: true
1616
jobs:
17-
rust-tokens_transfer-darwin:
17+
rust-icp_transfer-darwin:
1818
runs-on: macos-12
1919
steps:
2020
- uses: actions/checkout@v2
@@ -24,10 +24,10 @@ jobs:
2424
run: bash .github/workflows/provision-darwin.sh
2525
- name: Rust Tokens Transfer Darwin
2626
run: |
27-
pushd rust/tokens_transfer
27+
pushd rust/icp_transfer
2828
bash ./demo.sh
2929
popd
30-
rust-tokens_transfer-linux:
30+
rust-icp_transfer-linux:
3131
runs-on: ubuntu-20.04
3232
steps:
3333
- uses: actions/checkout@v2
@@ -37,6 +37,6 @@ jobs:
3737
run: bash .github/workflows/provision-linux.sh
3838
- name: Rust Tokens Transfer Linux
3939
run: |
40-
pushd rust/tokens_transfer
40+
pushd rust/icp_transfer
4141
bash ./demo.sh
4242
popd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Known failure: https://dfinity.atlassian.net/browse/EM-5
2+
name: rust-token_transfer
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- rust/token_transfer/**
10+
- .github/workflows/provision-darwin.sh
11+
- .github/workflows/provision-linux.sh
12+
- .github/workflows/rust-icp-transfer-example.yml
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
jobs:
17+
rust-token_transfer-darwin:
18+
runs-on: macos-12
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
submodules: recursive
23+
- name: Provision Darwin
24+
run: bash .github/workflows/provision-darwin.sh
25+
- name: Rust Tokens Transfer Darwin
26+
run: |
27+
pushd rust/token_transfer
28+
bash ./demo.sh
29+
popd
30+
rust-token_transfer-linux:
31+
runs-on: ubuntu-20.04
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
submodules: recursive
36+
- name: Provision Linux
37+
run: bash .github/workflows/provision-linux.sh
38+
- name: Rust Tokens Transfer Linux
39+
run: |
40+
pushd rust/token_transfer
41+
bash ./demo.sh
42+
popd

motoko/icp_transfer/.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Various IDEs and Editors
2+
.vscode/
3+
.idea/
4+
**/*~
5+
6+
# Mac OSX temporary files
7+
.DS_Store
8+
**/.DS_Store
9+
10+
# dfx temporary files
11+
.dfx/
12+
13+
# generated files
14+
**/declarations/
15+
16+
# rust
17+
target/
18+
19+
# frontend code
20+
node_modules/
21+
dist/
22+
.svelte-kit/
23+
24+
# environment variables
25+
.env
26+
27+
.mops

0 commit comments

Comments
 (0)