Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# image; the host only needs Docker.

# Official ICP dev environment; the tag pins the icp CLI version under test.
IMAGE ?= ghcr.io/dfinity/icp-dev-env-all:0.3.2
IMAGE ?= ghcr.io/dfinity/icp-dev-env-all:1.3.0
# Optional permutation filter, e.g. `make test FILTER=hello-world:rust:react`
FILTER ?=

Expand Down
2 changes: 1 addition & 1 deletion bitcoin-starter/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/icp-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/icp-yaml-schema.json

canisters:
- backend
Expand Down
4 changes: 2 additions & 2 deletions bitcoin-starter/motoko-backend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v0.2.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: backend
recipe:
type: "@dfinity/motoko@v5.0.0"
type: "@dfinity/motoko@v5.1.0"
7 changes: 5 additions & 2 deletions bitcoin-starter/motoko-backend/mops.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[dependencies]
core = "2.3.1"
core = "2.6.1"

[toolchain]
moc = "1.9.0"
moc = "1.14.0"

[moc]
args = ["--default-persistent-actors"]

[canisters.backend]
main = "src/main.mo"
Expand Down
2 changes: 1 addition & 1 deletion bitcoin-starter/motoko-backend/src/main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import Runtime "mo:core/Runtime";
import Text "mo:core/Text";

persistent actor Backend {
actor Backend {
public type Satoshi = Nat64;
public type BitcoinAddress = Text;

Expand Down
3 changes: 2 additions & 1 deletion bitcoin-starter/rust-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ crate-type = ["cdylib"]

[dependencies]
candid = "0.10"
ic-cdk = "0.19"
ic-cdk = "0.20"
ic-cdk-bitcoin-canister = "0.2"
4 changes: 2 additions & 2 deletions bitcoin-starter/rust-backend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v0.2.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: backend
recipe:
type: "@dfinity/rust@v3.3.0"
type: "@dfinity/rust@v3.4.0"
configuration:
shrink: true
candid: backend.did
Expand Down
6 changes: 3 additions & 3 deletions bitcoin-starter/rust-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Demonstrates reading Bitcoin balance via the Bitcoin canister API.

use candid::CandidType;
use ic_cdk::bitcoin_canister::{
use ic_cdk_bitcoin_canister::{
bitcoin_get_balance, get_bitcoin_canister_id, GetBalanceRequest, Network, Satoshi,
};

Expand All @@ -28,7 +28,7 @@ fn get_network() -> Network {
async fn get_balance(address: String) -> Satoshi {
bitcoin_get_balance(&GetBalanceRequest {
address,
network: get_network(),
network: get_network().into(),
min_confirmations: None,
})
.await
Expand All @@ -46,7 +46,7 @@ fn get_config() -> BitcoinConfig {
Network::Regtest => "regtest",
}
.to_string(),
bitcoin_canister_id: get_bitcoin_canister_id(&network).to_string(),
bitcoin_canister_id: get_bitcoin_canister_id(network).to_string(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion hello-world/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/icp-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/icp-yaml-schema.json

canisters:
- backend
Expand Down
4 changes: 2 additions & 2 deletions hello-world/motoko-backend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: backend
recipe:
type: "@dfinity/motoko@v5.0.0"
type: "@dfinity/motoko@v5.1.0"

5 changes: 4 additions & 1 deletion hello-world/motoko-backend/mops.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[toolchain]
moc = "1.9.0"
moc = "1.14.0"

[moc]
args = ["--default-persistent-actors"]

[canisters.backend]
main = "src/main.mo"
Expand Down
2 changes: 1 addition & 1 deletion hello-world/motoko-backend/src/main.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
persistent actor {
actor {
public query func greet(name : Text) : async Text {
return "Hello, " # name # "!";
};
Expand Down
4 changes: 2 additions & 2 deletions hello-world/react-frontend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: frontend

recipe:
# https://github.com/dfinity/icp-cli-recipes/blob/main/recipes/static-site/README.md
# IMPORTANT: This recipe requires icp-cli >= 0.2.7
type: "@dfinity/static-site@v0.3.1"
type: "@dfinity/static-site@v0.3.3"
configuration:
build:
# Install the dependencies
Expand Down
2 changes: 1 addition & 1 deletion hello-world/react-frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig([
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactHooks.configs.flat['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
Expand Down
32 changes: 16 additions & 16 deletions hello-world/react-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"preview": "vite preview"
},
"dependencies": {
"@icp-sdk/core": "~5.2.0",
"react": "~19.1.1",
"react-dom": "~19.1.1"
"@icp-sdk/core": "~6.1.0",
"react": "~19.2.8",
"react-dom": "~19.2.8"
},
"devDependencies": {
"@eslint/js": "~9.33.0",
"@icp-sdk/bindgen": "^0.4.0",
"@types/node": "^25.9.1",
"@types/react": "~19.1.10",
"@types/react-dom": "~19.1.7",
"@vitejs/plugin-react": "~5.0.0",
"eslint": "~9.33.0",
"eslint-plugin-react-hooks": "~5.2.0",
"eslint-plugin-react-refresh": "~0.4.20",
"globals": "~16.3.0",
"typescript": "~5.8.3",
"typescript-eslint": "~8.39.1",
"vite": "~7.1.11"
"@eslint/js": "~10.0.1",
"@icp-sdk/bindgen": "~0.4.0",
"@types/node": "~26.2.0",
"@types/react": "~19.2.18",
"@types/react-dom": "~19.2.4",
"@vitejs/plugin-react": "~6.0.5",
"eslint": "~10.8.1",
"eslint-plugin-react-hooks": "~7.1.1",
"eslint-plugin-react-refresh": "~0.5.4",
"globals": "~17.11.0",
"typescript": "~6.0.3",
"typescript-eslint": "~8.67.0",
"vite": "~8.2.1"
}
}
2 changes: 1 addition & 1 deletion hello-world/rust-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ crate-type = ["cdylib"]

[dependencies]
candid = "0.10"
ic-cdk = "0.19"
ic-cdk = "0.20"
4 changes: 2 additions & 2 deletions hello-world/rust-backend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json
#
name: backend
recipe:
type: "@dfinity/rust@v3.3.0"
type: "@dfinity/rust@v3.4.0"
configuration:
shrink: true
# optional
Expand Down
4 changes: 2 additions & 2 deletions hello-world/svelte-frontend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: frontend

recipe:
# https://github.com/dfinity/icp-cli-recipes/blob/main/recipes/static-site/README.md
# IMPORTANT: This recipe requires icp-cli >= 0.2.7
type: "@dfinity/static-site@v0.3.1"
type: "@dfinity/static-site@v0.3.3"
configuration:
build:
# Install the dependencies
Expand Down
14 changes: 7 additions & 7 deletions hello-world/svelte-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@icp-sdk/core": "^6.0.0",
"svelte": "^5.0.0"
"@icp-sdk/core": "~6.1.0",
"svelte": "~5.56.8"
},
"devDependencies": {
"@icp-sdk/bindgen": "^0.4.0",
"@sveltejs/vite-plugin-svelte": "~6.2.4",
"@types/node": "^25.9.1",
"typescript": "~5.8.3",
"vite": "~7.1.11"
"@icp-sdk/bindgen": "~0.4.0",
"@sveltejs/vite-plugin-svelte": "~7.3.0",
"@types/node": "~26.2.0",
"typescript": "~7.0.2",
"vite": "~8.2.1"
}
}
4 changes: 2 additions & 2 deletions hello-world/vue-frontend/canister.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/canister-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/canister-yaml-schema.json

name: frontend

recipe:
# https://github.com/dfinity/icp-cli-recipes/blob/main/recipes/static-site/README.md
# IMPORTANT: This recipe requires icp-cli >= 0.2.7
type: "@dfinity/static-site@v0.3.1"
type: "@dfinity/static-site@v0.3.3"
configuration:
build:
# Install the dependencies
Expand Down
19 changes: 10 additions & 9 deletions hello-world/vue-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{
"name": "frontend",
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite",
"preview": "vite preview"
},
"dependencies": {
"@icp-sdk/core": "^5.4.0",
"pinia": "^3.0.4",
"vue": "^3.0.0"
"@icp-sdk/core": "~6.1.0",
"pinia": "~4.0.3",
"vue": "~3.5.41"
},
"devDependencies": {
"@icp-sdk/bindgen": "^0.4.0",
"@types/node": "^25.9.1",
"@vitejs/plugin-vue": "~6.0.7",
"@vue/tsconfig": "^0.9.1",
"sass-embedded": "^1.99.0",
"vite": "~7.1.11"
"@icp-sdk/bindgen": "~0.4.0",
"@types/node": "~26.2.0",
"@vitejs/plugin-vue": "~6.0.8",
"@vue/tsconfig": "~0.9.1",
"sass-embedded": "~1.100.0",
"vite": "~8.2.1"
}
}
4 changes: 2 additions & 2 deletions motoko/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/icp-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/icp-yaml-schema.json

canisters:
- name: {{project-name}}
recipe:
type: "@dfinity/motoko@v5.0.0"
type: "@dfinity/motoko@v5.1.0"

{% if network_type == "Docker" -%}
networks:
Expand Down
5 changes: 4 additions & 1 deletion motoko/mops.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[toolchain]
moc = "1.9.0"
moc = "1.14.0"

[moc]
args = ["--default-persistent-actors"]

[canisters]
{{project-name}} = "src/main.mo"
2 changes: 1 addition & 1 deletion motoko/src/main.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
persistent actor {
actor {
public query func greet(name : Text) : async Text {
return "Hello, " # name # "!";
};
Expand Down
4 changes: 2 additions & 2 deletions proxy/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.0.0/docs/schemas/icp-yaml-schema.json
# yaml-language-server: $schema=https://github.com/dfinity/icp-cli/raw/refs/tags/v1.3.0/docs/schemas/icp-yaml-schema.json

canisters:
- name: proxy
build:
steps:
- type: pre-built
url: https://github.com/dfinity/proxy-canister/releases/download/v1.0.0/proxy.wasm
url: https://github.com/dfinity/proxy-canister/releases/download/v0.1.0/proxy.wasm
sha256: 499dc190e4c0c3b112746f25f993c7a4ca85e0ae73c8987ef87c700da74dc5d3
Loading
Loading