Skip to content

Commit b7975e7

Browse files
Merge branch 'master' into fix/tokens_transfer
2 parents 6844f75 + c2bf78d commit b7975e7

File tree

77 files changed

+1618
-1888
lines changed

Some content is hidden

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

77 files changed

+1618
-1888
lines changed

.github/CODEOWNERS

+86
Original file line numberDiff line numberDiff line change
@@ -1 +1,87 @@
11
* @dfinity/editorial
2+
3+
/c/adventure/ @dfinity/growth
4+
/c/qr/ @dfinity/growth
5+
/c/reverse/ @dfinity/growth
6+
7+
/hosting/godot-html5-template/ @zhangwei983
8+
/hosting/photo-storage/ @dfinity/sdk
9+
/hosting/static-website/ @dfinity/sdk
10+
/hosting/unity-webgl-template/ @zhangwei983
11+
12+
/motoko/actor_reference/ @dfinity/languages
13+
/motoko/auth_client_demo/ @dfinity/sdk
14+
/motoko/basic_bitcoin/ @dfinity/execution
15+
/motoko/basic_dao/ @dfinity/languages
16+
/motoko/calc/ @dfinity/languages
17+
/motoko/cert-var/ @dfinity/trust
18+
/motoko/classes/ @dfinity/languages
19+
/motoko/composite_query/ @dfinity/languages
20+
/motoko/counter/ @dfinity/languages
21+
/motoko/defi/ @rumenov
22+
/motoko/dip721-nft-container/ @dfinity/languages
23+
/motoko/echo/ @dfinity/languages
24+
/motoko/encrypted-notes-dapp-vetkd/ @dfinity/div-Crypto
25+
/motoko/encrypted-notes-dapp/ @dfinity/div-Crypto
26+
/motoko/factorial/ @dfinity/languages
27+
/motoko/hello-world/ @dfinity/languages
28+
/motoko/hello/ @dfinity/languages
29+
/motoko/hello_cycles/ @dfinity/languages
30+
/motoko/http_counter/ @rumenov
31+
/motoko/ic-pos/ @dfinity/div-Crypto
32+
/motoko/icrc2-swap/ @dfinity/div-Crypto
33+
/motoko/internet_identity_integration/ @dfinity/gix
34+
/motoko/invoice-canister/ @dfinity/FinInt
35+
/motoko/ios-notifications/ @dfinity/trust
36+
/motoko/ledger-transfer/ @dfinity/FinInt
37+
/motoko/life/ @dfinity/languages
38+
/motoko/minimal-counter-dapp/ @dfinity/growth
39+
/motoko/persistent-storage/ @dfinity/growth
40+
/motoko/phone-book/ @dfinity/growth
41+
/motoko/pub-sub/ @dfinity/growth
42+
/motoko/quicksort/ @dfinity/growth
43+
/motoko/random_maze/ @dfinity/languages
44+
/motoko/send_http_get/ @rumenov
45+
/motoko/send_http_post/ @rumenov
46+
/motoko/simple-to-do/ @dfinity/growth
47+
/motoko/superheroes/ @dfinity/growth
48+
/motoko/threshold-ecdsa/ @dfinity/div-Crypto
49+
/motoko/vetkd/ @dfinity/div-Crypto
50+
/motoko/whoami/ @dfinity/growth
51+
52+
/native-apps/unity_ii_applink/ @zhangwei983
53+
/native-apps/unity_ii_deeplink/ @zhangwei983
54+
55+
/rust/basic_bitcoin/ @dfinity/execution
56+
/rust/basic_dao/ @dfinity/testing-verification
57+
/rust/canister-info/ @dfinity/testing-verification
58+
/rust/composite_query/ @dfinity/execution
59+
/rust/counter/ @dfinity/growth
60+
/rust/defi/ @dfinity/div-Crypto
61+
/rust/dip721-nft-container/ @dfinity/sdk
62+
/rust/encrypted-notes-dapp-vetkd/ @dfinity/div-Crypto
63+
/rust/encrypted-notes-dapp/ @dfinity/div-Crypto
64+
/rust/hello/ @dfinity/sdk
65+
/rust/nft-wallet/ @dfinity/growth
66+
/rust/performance_counters/ @dfinity/runtime
67+
/rust/periodic_tasks/ @dfinity/runtime
68+
/rust/pub-sub/ @dfinity/growth
69+
/rust/qrcode/ @dfinity/runtime
70+
/rust/send_http_get/ @dfinity/growth
71+
/rust/send_http_post/ @dfinity/growth
72+
/rust/threshold-ecdsa/ @chmllr
73+
/rust/tokens_transfer/ @dfinity/div-Crypto
74+
/rust/vetkd/ @dfinity/div-Crypto
75+
76+
/svelte/svelte-motoko-starter/ @dfinity/sdk
77+
/svelte/svelte-starter/ @dfinity/sdk
78+
/svelte/sveltekit-starter/ @dfinity/sdk
79+
80+
/wasm/counter @dfinity/languages
81+
82+
83+
84+
85+
86+
87+

hosting/godot-html5-template/README.md renamed to hosting/godot-html5-template/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Godot HTML5 sample
24

5+
<MarkdownChipRow labels={["Beginner"]} />
6+
37
## Overview
48
The example shows how to deploy a Godot HTML5 build on the IC in an asset canister. The Godot HTML5 build is deployed as frontend, no backend is needed in this sample.
59

hosting/photo-storage/README.md renamed to hosting/photo-storage/README.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Photo storage example
24

5+
<MarkdownChipRow labels={["Beginner"]} />
6+
37
The example shows how to store photos on the IC in an asset canister with the `@dfinity/assets` package. The photo
48
storage app is deployed as a frontend in an asset canister which is also used for photo upload.
59

@@ -16,6 +20,7 @@ This example requires an installation of:
1620
- [x] Download and install [git](https://git-scm.com/downloads).
1721

1822
- [x] Download and install [Node.js](https://nodejs.org/en).
23+
1924
## Install
2025

2126
Clone the example dapp project:

hosting/static-website/README.md renamed to hosting/static-website/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Static website
24

5+
<MarkdownChipRow labels={["Beginner"]} />
6+
37
## Overview
48
The example shows how to deploy a simple, static website on the IC in an asset canister. The website is very simple, it just shows the DFINITY logo and has a basic styling of the logo.
59

hosting/unity-webgl-template/README.md renamed to hosting/unity-webgl-template/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Unity WebGL sample
24

5+
<MarkdownChipRow labels={["Beginner"]} />
6+
37
The example shows how to deploy a simple Unity WebGL build on the IC in an asset canister. It just shows a Unity WebGL build with the URP template installed.
48

59
The Unity WebGL build is deployed as frontend, no backend is needed in this sample.

motoko/actor_reference/README.md renamed to motoko/actor_reference/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Actor reference
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
## Overview
48

59
This example demonstrates a simple use of an actor reference to convert a textual representation of some principal to a value of an actor type, that, now typed as an actor, can be communicated with by calling the shared functions of its interface.

motoko/auth_client_demo/README.md renamed to motoko/auth_client_demo/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Auth-client
24

5+
<MarkdownChipRow labels={["Intermediate", "Motoko"]} />
6+
37
This is an example project, intended to demonstrate how an app developer might integrate with an [Internet Identity](https://identity.ic0.app).
48

59
For a non-typescript implementation, see https://github.com/krpeacock/auth-client-demo/tree/vanilla-js

motoko/auth_client_demo/package-lock.json

+19-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

motoko/auth_client_demo/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
],
4949
"dependencies": {
5050
"@dfinity/agent": "^0.20.2",
51-
"@dfinity/auth-client": "^0.20.2",
51+
"@dfinity/auth-client": "^1.0.1",
5252
"@dfinity/candid": "^0.20.2",
53-
"@dfinity/identity": "^0.20.2",
53+
"@dfinity/identity": "^1.0.1",
5454
"@dfinity/principal": "^0.20.2",
5555
"lit-html": "^2.4.0",
5656
"pinia": "^2.0.36",

motoko/basic_bitcoin/README.md renamed to motoko/basic_bitcoin/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Basic Bitcoin
24

5+
<MarkdownChipRow labels={["Advanced", "Motoko"]} />
6+
37
## Deploying your first Bitcoin dapp
48

59
## Overview

motoko/basic_dao/README.md renamed to motoko/basic_dao/README.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Basic DAO
24

5+
<MarkdownChipRow labels={["Advanced", "Motoko"]} />
6+
7+
38
This sample project demonstrates a basic [decentralized autonomous organization](https://en.wikipedia.org/wiki/Decentralized_autonomous_organization) (DAO) that can be deployed to the [Internet Computer](https://github.com/dfinity/ic). The basic DAO sample code is available in [Motoko](https://github.com/dfinity/examples/tree/master/motoko/basic_dao) and [Rust](https://github.com/dfinity/examples/tree/master/rust/basic_dao). You can see a quick introduction on [YouTube](https://youtu.be/3IcYlieA-EE).
49

510
## Overview

motoko/calc/README.md renamed to motoko/calc/README.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Calculator
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
![Compatibility](https://img.shields.io/badge/compatibility-0.6.25-blue)
48
[![Build Status](https://github.com/dfinity/examples/workflows/motoko-calc-example/badge.svg)](https://github.com/dfinity/examples/actions?query=workflow%3Amotoko-calc-example)
59

@@ -59,4 +63,4 @@ If you base your application on this example, we recommend you familiarize yours
5963

6064
For example, the following aspects are particularly relevant for this app:
6165
* [Consider using stable memory, version it, test it](https://internetcomputer.org/docs/current/references/security/rust-canister-development-security-best-practices/#consider-using-stable-memory-version-it-test-it), since this canister uses canister memory, and not stable memory.
62-
* [Validate inputs](https://internetcomputer.org/docs/current/references/security/rust-canister-development-security-best-practices/#validate-inputs), since this canister accepts user input which requires input validation (e.g. div by 0 is not allowed).
66+
* [Validate inputs](https://internetcomputer.org/docs/current/references/security/rust-canister-development-security-best-practices/#validate-inputs), since this canister accepts user input which requires input validation (e.g. div by 0 is not allowed).

motoko/cert-var/README.md renamed to motoko/cert-var/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Certified variables
24

5+
<MarkdownChipRow labels={["Intermediate", "Motoko"]} />
6+
37
## Overview
48
This example demonstrates the use of a single cryptographically certified variable, as supported by the Internet Computer.
59

motoko/cert-var/package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

motoko/classes/README.md renamed to motoko/classes/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Classes
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
![Compatibility](https://img.shields.io/badge/compatibility-0.7.0-blue)
48
[![Build Status](https://github.com/dfinity/examples/workflows/motoko-classes-example/badge.svg)](https://github.com/dfinity/examples/actions?query=workflow%3Amotoko-classes-example)
59

motoko/composite_query/README.md renamed to motoko/composite_query/README.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Composite queries
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
## Overview
48

59
This example modifies the simple actor class example to demonstrate the implementation of composite queries.
@@ -103,4 +107,4 @@ dfx canister call --query Map get '(15)'
103107

104108
## Security considerations and best practices
105109

106-
If you base your application on this example, we recommend you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/current/references/security/) for developing on ICP. This example may not implement all the best practices.
110+
If you base your application on this example, we recommend you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/current/references/security/) for developing on ICP. This example may not implement all the best practices.

motoko/counter/README.md renamed to motoko/counter/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Counter
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
## Overview
48

59
This example demonstrates a counter application. It uses an orthogonally persistent counter variable to store an arbitrary precision natural number that represents the current value of the counter.

motoko/defi/README.md renamed to motoko/defi/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Decentralized exchange sample
24

5+
<MarkdownChipRow labels={["Advanced", "Motoko"]} />
6+
37
## Overview
48

59
To enable DeFi applications on the IC, canisters need to interact with token canisters and the ledger canister. This sample dapp illustrates how to facilitate these interactions. You can see a quick introduction on [YouTube](https://youtu.be/fLbaOmH24Gs).

motoko/dip721-nft-container/README.md renamed to motoko/dip721-nft-container/README.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# DIP721 NFTs
24

5+
<MarkdownChipRow labels={["Advanced", "Motoko"]} />
6+
37
This example demonstrates implementing an NFT canister. NFTs (non-fungible tokens) are unique tokens with arbitrary
48
metadata, usually an image of some kind, to form the digital equivalent of trading cards. There are a few different
59
NFT standards for the Internet Computer (e.g [EXT](https://github.com/Toniq-Labs/extendable-token), [IC-NFT](https://github.com/rocklabs-io/ic-nft)), but for the purposes of this tutorial we use [DIP-721](https://github.com/Psychedelic/DIP721). You can see a quick introduction on [YouTube](https://youtu.be/1po3udDADp4).
@@ -439,4 +443,4 @@ For example, the following aspects are particularly relevant for this app:
439443
## Resources
440444
[Rust](https://rustup.rs).
441445
[DIP721](https://github.com/Psychedelic/DIP721).
442-
[Minting tool](https://github.com/dfinity/experimental-minting-tool).
446+
[Minting tool](https://github.com/dfinity/experimental-minting-tool).

motoko/echo/README.md renamed to motoko/echo/README.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
2+
13
# Echo
24

5+
<MarkdownChipRow labels={["Beginner", "Motoko"]} />
6+
37
## Overview
48

59
This example demonstrates a simple echo effect, where an application sends back the data it receives.

0 commit comments

Comments
 (0)