Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO_NOT_MERGE] chore: dfx start --pocketic #973

Draft
wants to merge 46 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
45cca8c
chore: dfx start --pocketic
mraszyk Sep 10, 2024
17879bb
typo
mraszyk Sep 10, 2024
f1ba18c
fix rust/composite_query
mraszyk Sep 10, 2024
165e68f
fix rust/composite_query on darwin
mraszyk Sep 10, 2024
dbc3ad4
fix parallel_calls
mraszyk Sep 10, 2024
0e3ac6a
fix parallel_calls
mraszyk Sep 10, 2024
4b35d28
dfx deploy --no-wallet
mraszyk Sep 10, 2024
cca6caf
replica-port
mraszyk Sep 17, 2024
cf84c96
fix motoko/hello_cycles
mraszyk Sep 17, 2024
9bb5c7d
Merge branch 'master' into mraszyk/pic
mraszyk Oct 1, 2024
58d7462
dfx version
mraszyk Oct 1, 2024
a0b21e2
dfx version
mraszyk Oct 1, 2024
5782cca
Merge branch 'master' into mraszyk/pic
mraszyk Oct 3, 2024
65d20ea
bump ic-repl
mraszyk Oct 4, 2024
38738b1
Merge branch 'master' into mraszyk/pic
mraszyk Oct 25, 2024
77c6807
lock
mraszyk Oct 25, 2024
a196075
ic-repl
mraszyk Nov 4, 2024
848eec4
Merge branch 'master' into mraszyk/pic
mraszyk Nov 4, 2024
5291707
Merge branch 'master' into mraszyk/pic
mraszyk Nov 18, 2024
d48ddb9
Merge branch 'master' into mraszyk/pic
mraszyk Nov 20, 2024
48ecdae
Merge branch 'master' into mraszyk/pic
mraszyk Dec 4, 2024
b60e2b1
pocketic
mraszyk Dec 4, 2024
1bc25a0
tests
mraszyk Dec 6, 2024
46e358c
Merge branch 'master' into mraszyk/pic
mraszyk Dec 20, 2024
17d525b
Merge branch 'master' into mraszyk/pic
mraszyk Jan 10, 2025
43398fd
ic-repl
mraszyk Jan 12, 2025
a78ce17
Merge branch 'master' into mraszyk/pic
mraszyk Jan 16, 2025
c8dc6aa
Merge branch 'master' into mraszyk/pic
mraszyk Jan 22, 2025
6fc3d12
Merge branch 'master' into mraszyk/pic
mraszyk Feb 4, 2025
36d0fbc
dfx version
mraszyk Feb 4, 2025
cc7d9c7
fix cycles in threshold-ecdsa example
mraszyk Feb 7, 2025
cea043f
Merge branch 'master' into mraszyk/pic
mraszyk Feb 18, 2025
0d8448b
replica-port
mraszyk Feb 18, 2025
05688a1
Revert "replica-port"
mraszyk Feb 18, 2025
b74a3f1
agent-js
mraszyk Feb 18, 2025
6e61909
fix: uses the shouldFetchRootKey feature in the HttpAgent
krpeacock Feb 18, 2025
3c2f243
Merge branch 'master' into mraszyk/pic
mraszyk Feb 20, 2025
4c1a588
Merge branch 'master' into mraszyk/pic
mraszyk Mar 24, 2025
9786555
dump dfx to 0.26.0-beta.1
mraszyk Mar 24, 2025
a6c9fac
simplify
mraszyk Mar 24, 2025
7dce4d6
fix motoko/hello_cycles
mraszyk Mar 24, 2025
a27c6e7
fix rust/inter-canister-calls
mraszyk Mar 24, 2025
3f2d35e
fix motoko/threshold-schnorr
mraszyk Mar 24, 2025
e24bbf7
fix rust/parallel_calls
mraszyk Mar 24, 2025
d08882f
simplify
mraszyk Mar 24, 2025
473e757
drop dfxvm update
mraszyk Mar 24, 2025
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
1 change: 0 additions & 1 deletion .github/workflows/motoko-hello_cycles-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Hello Cycles Linux
run: |
dfxvm update
dfx start --background --clean
pushd motoko/hello_cycles
make test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/provision-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rm node.pkg

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

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/provision-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm nodesource_setup.sh

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

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

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust-composite_query-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
run: |
pushd rust/composite_query
dfx start --background
dfx canister create data_partition
dfx canister create data_partition --no-wallet
dfx build data_partition
dfx canister create kv_frontend
dfx canister create kv_frontend --no-wallet
dfx build kv_frontend
dfx canister install kv_frontend
dfx canister call kv_frontend put '(1, 1337)'
Expand All @@ -43,9 +43,9 @@ jobs:
run: |
pushd rust/composite_query
dfx start --background
dfx canister create data_partition
dfx canister create data_partition --no-wallet
dfx build data_partition
dfx canister create kv_frontend
dfx canister create kv_frontend --no-wallet
dfx build kv_frontend
dfx canister install kv_frontend
dfx canister call kv_frontend put '(1, 1337)'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust-parallel-calls-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Install PocketIC server
uses: dfinity/pocketic@main
with:
pocket-ic-server-version: "7.0.0"
- name: Test parallel calls with PocketIC
run: |
pushd rust/parallel_calls
Expand Down
2 changes: 1 addition & 1 deletion motoko/classes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: build
.PHONY: build
.SILENT: build
build:
dfx canister create --all
dfx canister create --all --no-wallet
dfx build

.PHONY: install
Expand Down
2 changes: 1 addition & 1 deletion motoko/composite_query/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: build
.PHONY: build
.SILENT: build
build:
dfx canister create --all
dfx canister create --all --no-wallet
dfx build

.PHONY: install
Expand Down
10 changes: 5 additions & 5 deletions motoko/hello_cycles/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ test: install
echo "wallet: $(WALLET)"
echo "hello_cycles: $(HELLO_CYCLES)"
echo "$(dfx canister call hello_cycles wallet_balance)"
# canister has just above 3T cycles, so output start with '(3'
# canister has just above 2.9T cycles, so output start with '(2_9'
dfx canister call hello_cycles wallet_balance \
| grep '(3' && echo 'PASS'
| grep '(2_9' && echo 'PASS'
dfx canister status hello_cycles
dfx canister call $(WALLET) wallet_send '(record { canister = principal "$(HELLO_CYCLES)"; amount = (2000000000000:nat64); } )'
# 2T cycles added, now contains just above 5T
# 2T cycles added, now contains just above 4.9T
dfx canister call hello_cycles wallet_balance \
| grep '(5' && echo 'PASS'
| grep '(4_9' && echo 'PASS'
echo '(func "$(WALLET)"."wallet_receive", 5000000)'
dfx canister call hello_cycles transfer '(func "$(WALLET)"."wallet_receive", 5000000)' \
| grep '0' && echo 'PASS'
dfx canister call hello_cycles wallet_balance \
| grep '(5' && echo 'PASS'
| grep '(4_9' && echo 'PASS'

.PHONY: clean
.SILENT: clean
Expand Down
Loading
Loading