Skip to content

Commit f7e90c5

Browse files
authored
chore: promote dfx to 0.26.0 (#1130)
1 parent 9a11fca commit f7e90c5

File tree

26 files changed

+10487
-11393
lines changed

26 files changed

+10487
-11393
lines changed

.github/workflows/motoko-hello_cycles-example.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
run: bash .github/workflows/provision-linux.sh
3535
- name: Motoko Hello Cycles Linux
3636
run: |
37-
dfxvm update
3837
dfx start --background --clean
3938
pushd motoko/hello_cycles
4039
make test

.github/workflows/provision-darwin.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rm node.pkg
1818

1919
# Install DFINITY SDK.
2020
curl --location --output install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/master/public/install-dfxvm.sh"
21-
DFX_VERSION=${DFX_VERSION:=0.25.1} DFXVM_INIT_YES=true bash install-dfx.sh
21+
DFX_VERSION=${DFX_VERSION:=0.26.0} DFXVM_INIT_YES=true bash install-dfx.sh
2222
rm install-dfx.sh
2323
echo "$HOME/Library/Application Support/org.dfinity.dfx/bin" >> $GITHUB_PATH
2424
source "$HOME/Library/Application Support/org.dfinity.dfx/env"
@@ -38,8 +38,8 @@ if [ -f "${GITHUB_WORKSPACE}/.ic-commit" ]; then
3838
fi
3939

4040
# Install ic-repl
41-
version=0.7.0
42-
curl --location --output ic-repl "https://github.com/chenyan2002/ic-repl/releases/download/$version/ic-repl-macos"
41+
version=0.7.7
42+
curl --location --output ic-repl "https://github.com/dfinity/ic-repl/releases/download/$version/ic-repl-macos"
4343
mv ./ic-repl /usr/local/bin/ic-repl
4444
chmod a+x /usr/local/bin/ic-repl
4545

.github/workflows/provision-linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rm nodesource_setup.sh
1313

1414
# Install DFINITY SDK.
1515
wget --output-document install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/master/public/install-dfxvm.sh"
16-
DFX_VERSION=${DFX_VERSION:=0.25.1} DFXVM_INIT_YES=true bash install-dfx.sh
16+
DFX_VERSION=${DFX_VERSION:=0.26.0} DFXVM_INIT_YES=true bash install-dfx.sh
1717
rm install-dfx.sh
1818
echo "$HOME/.local/share/dfx/bin" >>$GITHUB_PATH
1919
source "$HOME/.local/share/dfx/env"
@@ -32,8 +32,8 @@ if [ -f "${GITHUB_WORKSPACE}/.ic-commit" ]; then
3232
fi
3333

3434
# Install ic-repl
35-
version=0.7.0
36-
curl --location --output ic-repl "https://github.com/chenyan2002/ic-repl/releases/download/$version/ic-repl-linux64"
35+
version=0.7.7
36+
curl --location --output ic-repl "https://github.com/dfinity/ic-repl/releases/download/$version/ic-repl-linux64"
3737
mv ./ic-repl /usr/local/bin/ic-repl
3838
chmod a+x /usr/local/bin/ic-repl
3939

.github/workflows/rust-composite_query-example.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ jobs:
2525
run: |
2626
pushd rust/composite_query
2727
dfx start --background
28-
dfx canister create data_partition
28+
dfx canister create data_partition --no-wallet
2929
dfx build data_partition
30-
dfx canister create kv_frontend
30+
dfx canister create kv_frontend --no-wallet
3131
dfx build kv_frontend
3232
dfx canister install kv_frontend
33-
dfx canister deposit-cycles 10_000_000_000_000 kv_frontend
3433
dfx canister call kv_frontend put '(1, 1337)'
3534
dfx canister call kv_frontend get '(1)' | grep '1_337'
3635
popd
@@ -44,12 +43,11 @@ jobs:
4443
run: |
4544
pushd rust/composite_query
4645
dfx start --background
47-
dfx canister create data_partition
46+
dfx canister create data_partition --no-wallet
4847
dfx build data_partition
49-
dfx canister create kv_frontend
48+
dfx canister create kv_frontend --no-wallet
5049
dfx build kv_frontend
5150
dfx canister install kv_frontend
52-
dfx canister deposit-cycles 10_000_000_000_000 kv_frontend
5351
dfx canister call kv_frontend put '(1, 1337)'
5452
dfx canister call kv_frontend get '(1)' | grep '1_337'
5553
popd

.github/workflows/rust-parallel-calls-example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
run: bash .github/workflows/provision-linux.sh
5454
- name: Install PocketIC server
5555
uses: dfinity/pocketic@main
56+
with:
57+
pocket-ic-server-version: "7.0.0"
5658
- name: Test parallel calls with PocketIC
5759
run: |
5860
pushd rust/parallel_calls

motoko/classes/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: build
44
.PHONY: build
55
.SILENT: build
66
build:
7-
dfx canister create --all
7+
dfx canister create --all --no-wallet
88
dfx build
99

1010
.PHONY: install

motoko/classes/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ dfx start --background
3939
## Step 2: Deploy the canisters `Map` and `Test`
4040

4141
```bash
42-
dfx deploy Map
43-
dfx deploy Test
42+
dfx deploy Map --no-wallet
43+
dfx deploy Test --no-wallet
4444
```
4545

4646
## Step 3: Invoke the run method of canister `Test`

motoko/composite_query/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: build
44
.PHONY: build
55
.SILENT: build
66
build:
7-
dfx canister create --all
7+
dfx canister create --all --no-wallet
88
dfx build
99

1010
.PHONY: install

motoko/composite_query/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dfx start --background
4848
## Step 2: Deploy the `Map` canister
4949

5050
```bash
51-
dfx deploy Map
51+
dfx deploy Map --no-wallet
5252
```
5353

5454
## Step 3: Invoke the `test` method of canister `Map` to add some entries

motoko/hello_cycles/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ test: install
2626
echo "wallet: $(WALLET)"
2727
echo "hello_cycles: $(HELLO_CYCLES)"
2828
echo "$(dfx canister call hello_cycles wallet_balance)"
29-
# canister has just above 3T cycles, so output start with '(3'
29+
# canister has just above 2.9T cycles, so output start with '(2_9'
3030
dfx canister call hello_cycles wallet_balance \
31-
| grep '(3' && echo 'PASS'
31+
| grep '(2_9' && echo 'PASS'
3232
dfx canister status hello_cycles
3333
dfx canister call $(WALLET) wallet_send '(record { canister = principal "$(HELLO_CYCLES)"; amount = (2000000000000:nat64); } )'
34-
# 2T cycles added, now contains just above 5T
34+
# 2T cycles added, now contains just above 4.9T
3535
dfx canister call hello_cycles wallet_balance \
36-
| grep '(5' && echo 'PASS'
36+
| grep '(4_9' && echo 'PASS'
3737
echo '(func "$(WALLET)"."wallet_receive", 5000000)'
3838
dfx canister call hello_cycles transfer '(func "$(WALLET)"."wallet_receive", 5000000)' \
3939
| grep '0' && echo 'PASS'
4040
dfx canister call hello_cycles wallet_balance \
41-
| grep '(5' && echo 'PASS'
41+
| grep '(4_9' && echo 'PASS'
4242

4343
.PHONY: clean
4444
.SILENT: clean

0 commit comments

Comments
 (0)