Skip to content

Commit 53f4075

Browse files
authored
chore: update replica version to 4ba58348 (#4082)
1 parent 314fec1 commit 53f4075

File tree

14 files changed

+214
-168
lines changed

14 files changed

+214
-168
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,11 @@ Updated Motoko to [0.13.6](https://github.com/dfinity/motoko/releases/tag/0.13.6
186186

187187
### Replica
188188

189-
Updated replica to elected commit 233c1ee2ef68c1c8800b8151b2b9f38e17b8440a.
189+
Updated replica to elected commit 4ba583480e05a518aa2bcf36f5a0e48475e8edc2.
190190
This incorporates the following executed proposals:
191191

192+
- [134967](https://dashboard.internetcomputer.org/proposal/134967)
193+
- [134966](https://dashboard.internetcomputer.org/proposal/134966)
192194
- [134900](https://dashboard.internetcomputer.org/proposal/134900)
193195
- [134773](https://dashboard.internetcomputer.org/proposal/134773)
194196
- [134684](https://dashboard.internetcomputer.org/proposal/134684)

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ license = "Apache-2.0"
2222
candid = "0.10.11"
2323
candid_parser = "0.1.4"
2424
dfx-core = { path = "src/dfx-core", version = "0.1.0" }
25-
ic-agent = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
25+
ic-agent = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }
2626
ic-asset = { path = "src/canisters/frontend/ic-asset", version = "0.21.0" }
2727
ic-cdk = "0.13.1"
28-
ic-identity-hsm = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
29-
ic-utils = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
28+
ic-identity-hsm = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }
29+
ic-utils = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }
3030

3131
aes-gcm = "0.10.3"
3232
anyhow = "1.0.56"

e2e/assets/playground_backend/mops.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ splay = "0.1.0"
55
[[canister]]
66
candid = "service/wasm-utils/wasm-utils.did"
77
output = "service/pool/Wasm-utils.mo"
8+

e2e/assets/playground_backend/service/pool/IC.mo

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ module {
2323
#reinstall;
2424
#upgrade : ?{
2525
wasm_memory_persistence : ?{
26-
#Keep;
27-
#Replace;
26+
#keep;
27+
#replace;
2828
};
2929
};
3030
#install;
@@ -85,6 +85,22 @@ module {
8585
message_hash : Blob;
8686
};
8787
public type sign_with_ecdsa_result = { signature : Blob };
88+
public type schnorr_algorithm = {
89+
#bip340secp256k1;
90+
#ed25519;
91+
};
92+
public type schnorr_aux = {
93+
#bip341: {
94+
merkle_root_hash: Blob
95+
}
96+
};
97+
public type sign_with_schnorr_args = {
98+
message : Blob;
99+
derivation_path : [Blob];
100+
key_id : { algorithm : schnorr_algorithm; name : Text };
101+
aux: ?schnorr_aux;
102+
};
103+
public type sign_with_schnorr_result = { signature : Blob };
88104
public type user_id = Principal;
89105
public type wasm_module = Blob;
90106
public type Self = actor {
@@ -116,6 +132,7 @@ module {
116132
} -> async ();
117133
raw_rand : shared () -> async Blob;
118134
sign_with_ecdsa : shared sign_with_ecdsa_args -> async sign_with_ecdsa_result;
135+
sign_with_schnorr : shared sign_with_schnorr_args -> async sign_with_schnorr_result;
119136
start_canister : shared { canister_id : canister_id } -> async ();
120137
stop_canister : shared { canister_id : canister_id } -> async ();
121138
uninstall_code : shared { canister_id : canister_id } -> async ();

e2e/assets/playground_backend/service/pool/Main.mo

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
361361
mode = args.mode;
362362
canister_id = args.canister_id;
363363
};
364-
Debug.print("install mode: " # debug_show(args.mode));
365364
await IC.install_code newArgs;
366365
stats := Logs.updateStats(stats, #install);
367366

@@ -710,6 +709,12 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
710709
await* pool.addCycles(caller, #refund);
711710
res
712711
};
712+
public shared ({ caller }) func sign_with_schnorr(arg: ICType.sign_with_schnorr_args) : async ICType.sign_with_schnorr_result {
713+
await* pool.addCycles(caller, #method "sign_with_schnorr");
714+
let res = await IC.sign_with_schnorr(arg);
715+
await* pool.addCycles(caller, #refund);
716+
res
717+
};
713718
public shared ({ caller }) func _ttp_request(request : ICType.http_request_args) : async ICType.http_request_result {
714719
await* pool.addCycles(caller, #method "http_request");
715720
let new_request = switch (request.transform) {
@@ -832,6 +837,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
832837
#_ttp_request : Any;
833838
#__transform : Any;
834839
#sign_with_ecdsa: Any;
840+
#sign_with_schnorr: Any;
835841
#eth_call: Any;
836842
#eth_feeHistory: Any;
837843
#eth_getBlockByNumber: Any;
@@ -856,6 +862,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
856862
case (#_ttp_request _) false;
857863
case (#__transform _) false;
858864
case (#sign_with_ecdsa _) false;
865+
case (#sign_with_schnorr _) false;
859866
case (#eth_call _) false;
860867
case (#eth_feeHistory _) false;
861868
case (#eth_getBlockByNumber _) false;

e2e/assets/playground_backend/wasm-utils.did

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
type Config = record {
2-
profiling : bool;
2+
profiling : opt record { start_page: opt nat32; page_limit: opt nat32 };
33
remove_cycles_add : bool;
44
limit_stable_memory_page : opt nat32;
5+
limit_heap_memory_page : opt nat32;
56
backend_canister_id : opt principal;
67
};
78

e2e/assets/playground_backend/wasm-utils.wasm

100644100755
181 KB
Binary file not shown.

e2e/tests-dfx/call.bash

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function impersonate_sender() {
318318

319319
# test management canister call failure (setting memory allocation to a low value)
320320
assert_command_fail dfx canister update-settings hello_backend --memory-allocation 1 --impersonate "${IDENTITY_PRINCIPAL}"
321-
assert_contains "Management canister call failed: IC0402: Canister was given 1 B memory allocation but at least"
321+
assert_contains "Canister was given 1 B memory allocation but at least"
322322

323323
# canister status fails because the default identity does not control the canister anymore
324324
assert_command_fail dfx canister status hello_backend
@@ -334,22 +334,22 @@ function impersonate_sender() {
334334

335335
# test management canister call submission failure
336336
assert_command_fail dfx canister status hello_backend --impersonate "${IDENTITY_PRINCIPAL}"
337-
assert_contains "Failed to submit management canister call: IC0207: Canister $CANISTER_ID is out of cycles"
337+
assert_contains "Failed to submit management canister call: Canister $CANISTER_ID is out of cycles"
338338

339339
# test update call submission failure
340340
assert_command_fail dfx canister call aaaaa-aa canister_status "(record { canister_id=principal\"$CANISTER_ID\" })" --update --impersonate "${IDENTITY_PRINCIPAL}"
341-
assert_contains "Failed to submit canister call: IC0207: Canister $CANISTER_ID is out of cycles"
341+
assert_contains "Failed to submit canister call: Canister $CANISTER_ID is out of cycles"
342342

343343
# test async call submission failure
344344
assert_command_fail dfx canister call aaaaa-aa canister_status "(record { canister_id=principal\"$CANISTER_ID\" })" --async --impersonate "${IDENTITY_PRINCIPAL}"
345-
assert_contains "Failed to submit canister call: IC0207: Canister $CANISTER_ID is out of cycles"
345+
assert_contains "Failed to submit canister call: Canister $CANISTER_ID is out of cycles"
346346

347347
# unfreeze the canister
348348
assert_command dfx canister update-settings hello_backend --freezing-threshold 0 --impersonate "${IDENTITY_PRINCIPAL}"
349349

350350
# test update call failure
351351
assert_command_fail dfx canister call aaaaa-aa delete_canister "(record { canister_id=principal\"$CANISTER_ID\" })" --update --impersonate "${IDENTITY_PRINCIPAL}"
352-
assert_contains "Canister call failed: IC0510: Canister $CANISTER_ID must be stopped before it is deleted."
352+
assert_contains "Canister call failed: Canister $CANISTER_ID must be stopped before it is deleted."
353353

354354
# test update call
355355
assert_command dfx canister call aaaaa-aa start_canister "(record { canister_id=principal\"$CANISTER_ID\" })" --update --impersonate "${IDENTITY_PRINCIPAL}"
@@ -361,7 +361,7 @@ function impersonate_sender() {
361361

362362
# test query call failure
363363
assert_command_fail dfx canister call aaaaa-aa fetch_canister_logs "(record { canister_id=principal\"$CANISTER_ID\" })" --query --impersonate "$CANISTER_ID"
364-
assert_contains "Failed to perform query call: IC0406: Caller $CANISTER_ID is not allowed to query ic00 method fetch_canister_logs"
364+
assert_contains "Failed to perform query call: Caller $CANISTER_ID is not allowed to query ic00 method fetch_canister_logs"
365365

366366
# test query call
367367
assert_command dfx canister call aaaaa-aa fetch_canister_logs "(record { canister_id=principal\"$CANISTER_ID\" })" --query --impersonate "${IDENTITY_PRINCIPAL}"

0 commit comments

Comments
 (0)