Skip to content

Commit

Permalink
Merge branch 'master' into unity-ii-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-dfinity authored Nov 29, 2023
2 parents 0802e32 + abf2568 commit 5ce9af2
Show file tree
Hide file tree
Showing 92 changed files with 10,868 additions and 36,382 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/motoko-encrypted-notes-vetkd-example.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: motoko-encrypted-notes
name: motoko-encrypted-notes-vetkd
on:
push:
branches:
- master
pull_request:
paths:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-encrypted-notes-example.yml
- .github/workflows/motoko-encrypted-notes-vetkd-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/motoko-encrypted-notes-vetkd-skip.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: motoko-encrypted-notes
name: motoko-encrypted-notes-vetkd
on:
pull_request:
paths-ignore:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-encrypted-notes-example.yml
- .github/workflows/motoko-encrypted-notes-vetkd-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/motoko-icrc2-swap-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: motoko-icrc2-swap
on:
push:
branches:
- master
pull_request:
paths:
- motoko/icrc2-swap/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-icrc2-swap-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-icrc2-swap-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
env:
DFX_VERSION: 0.15.1
run: bash .github/workflows/provision-linux.sh
- name: Motoko ICRC2-Swap Linux
run: |
dfx start --background
pushd motoko/icrc2-swap
npm install
sleep 10
make test
6 changes: 3 additions & 3 deletions .github/workflows/rust-encrypted-notes-vetkd-example.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: rust-encrypted-notes
name: rust-encrypted-notes-vetkd
on:
push:
branches:
- master
pull_request:
paths:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-encrypted-notes-example.yml
- .github/workflows/rust-encrypted-notes-vetkd-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust-encrypted-notes-vetkd-skip.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: rust-encrypted-notes
name: rust-encrypted-notes-vetkd
on:
pull_request:
paths-ignore:
- rust/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- motoko/encrypted-notes-dapp-vetkd/**
- motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-encrypted-notes-example.yml
- .github/workflows/rust-encrypted-notes-vetkd-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion motoko/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ These examples show the Motoko language as a backend language for the IC, operat
- [`quicksort`](https://github.com/dfinity/examples/tree/master/motoko/quicksort) -- sorting an array, via Quick Sort, in Motoko.
- [`simple-to-do`](https://github.com/dfinity/examples/tree/master/motoko/simple-to-do) -- CRUD-like demo service, sans a front end; see also: `phone-book` and `superheroes`.
- [`calc`](https://github.com/dfinity/examples/tree/master/motoko/calc) -- more advanced version of `counter` demo.
- [`icrc2-swap`](https://github.com/dfinity/examples/tree/master/motoko/icrc2-swap) -- deposit, swap, and withdraw two ICRC-2 tokens.

## Minimal front end.

Expand All @@ -42,4 +43,4 @@ These examples use a "conventional" front end component (via `React.Component`).

## Security Considerations and Security Best Practices

If you base your application on one of these examples, we recommend you familiarize yourself with and adhere to the [Security Best Practices](https://internetcomputer.org/docs/current/references/security/) for developing on the Internet Computer. The examples provided here may not implement all the best practices.
If you base your application on one of these examples, we recommend you familiarize yourself with and adhere to the [Security Best Practices](https://internetcomputer.org/docs/current/references/security/) for developing on the Internet Computer. The examples provided here may not implement all the best practices.
Loading

0 comments on commit 5ce9af2

Please sign in to comment.