Skip to content
Open
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
9 changes: 3 additions & 6 deletions bin/dfx-snapshot-restore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ help_text() {
source "$SOURCE_DIR/clap.bash"
# Define options
clap.define short=s long=snapshot desc="The file to save to" variable=DFX_SNAPSHOT_FILE default="state.tar.xz"
clap.define long=pocketic desc="Whether to start dfx with --pocketic" variable=USE_POCKET_IC nargs=0 default=false
# Source the output file ----------------------------------------------------------
source "$(clap.build)"

Expand All @@ -27,12 +26,10 @@ DFX_SNAPSHOT_FILE="$(realpath "$DFX_SNAPSHOT_FILE")"
pushd "$HOME"
rm -fr .local/share/dfx/network/local
tar --extract --xz --file "$DFX_SNAPSHOT_FILE"
POCKET_IC_ARG=()
if [[ "${USE_POCKET_IC:-}" == "true" ]]; then
POCKET_IC_ARG=(--pocketic)
fi

# Note: dfx start works here but not in the project dir.
dfx start "${POCKET_IC_ARG[@]}" --background
dfx start --background
sleep 10 # wait for dfx to start
num_canisters="$(curl -s "http://localhost:$(dfx info webserver-port)/_/dashboard" | grep -c '<h3>Execution state</h3>')"
echo "Approx num canisters: $num_canisters"
popd
Expand Down
4 changes: 2 additions & 2 deletions bin/versions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ QUILL_VERSION=0.5.3
IDL2JSON_VERSION=0.8.5
BINSTALL_VERSION=1.3.0
IC_WASM_VERSION=0.6.0
DFX_NNS_EXTENSION_VERSION=0.5.4
DFX_SNS_EXTENSION_VERSION=0.5.4
DFX_NNS_EXTENSION_VERSION=0.7.0
DFX_SNS_EXTENSION_VERSION=0.7.0
EXCHANGE_RATE_CANISTER_RELEASE=2024.09.05
2 changes: 1 addition & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"packtool": ""
}
},
"dfx": "0.29.2",
"dfx": "0.30.1",
"version": 1
}
2 changes: 1 addition & 1 deletion dfx.json.original
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"packtool": ""
}
},
"dfx": "0.29.2",
"dfx": "0.30.1",
"version": 1
}
Loading