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

chore: update replica version to 4ba58348 #4082

Merged
Show file tree
Hide file tree
Changes from 6 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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ Updated Motoko to [0.13.6](https://github.com/dfinity/motoko/releases/tag/0.13.6

### Replica

Updated replica to elected commit 233c1ee2ef68c1c8800b8151b2b9f38e17b8440a.
Updated replica to elected commit 4ba583480e05a518aa2bcf36f5a0e48475e8edc2.
This incorporates the following executed proposals:

- [134967](https://dashboard.internetcomputer.org/proposal/134967)
- [134966](https://dashboard.internetcomputer.org/proposal/134966)
- [134900](https://dashboard.internetcomputer.org/proposal/134900)
- [134773](https://dashboard.internetcomputer.org/proposal/134773)
- [134684](https://dashboard.internetcomputer.org/proposal/134684)
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ license = "Apache-2.0"
candid = "0.10.11"
candid_parser = "0.1.4"
dfx-core = { path = "src/dfx-core", version = "0.1.0" }
ic-agent = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
ic-agent = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }
ic-asset = { path = "src/canisters/frontend/ic-asset", version = "0.21.0" }
ic-cdk = "0.13.1"
ic-identity-hsm = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
ic-utils = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "a96022bd185e97f52c5cde1c82c7592abddcff86" }
ic-identity-hsm = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }
ic-utils = { version = "0.39", git = "https://github.com/dfinity/agent-rs", rev = "9ebf6314ce2fcb36772c7d81d6d414b4628d6101" }

aes-gcm = "0.10.3"
anyhow = "1.0.56"
Expand Down
1 change: 1 addition & 0 deletions e2e/assets/playground_backend/mops.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ splay = "0.1.0"
[[canister]]
candid = "service/wasm-utils/wasm-utils.did"
output = "service/pool/Wasm-utils.mo"

21 changes: 19 additions & 2 deletions e2e/assets/playground_backend/service/pool/IC.mo
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ module {
#reinstall;
#upgrade : ?{
wasm_memory_persistence : ?{
#Keep;
#Replace;
#keep;
#replace;
};
};
#install;
Expand Down Expand Up @@ -85,6 +85,22 @@ module {
message_hash : Blob;
};
public type sign_with_ecdsa_result = { signature : Blob };
public type schnorr_algorithm = {
#bip340secp256k1;
#ed25519;
};
public type schnorr_aux = {
#bip341: {
merkle_root_hash: Blob
}
};
public type sign_with_schnorr_args = {
message : Blob;
derivation_path : [Blob];
key_id : { algorithm : schnorr_algorithm; name : Text };
aux: ?schnorr_aux;
};
public type sign_with_schnorr_result = { signature : Blob };
public type user_id = Principal;
public type wasm_module = Blob;
public type Self = actor {
Expand Down Expand Up @@ -116,6 +132,7 @@ module {
} -> async ();
raw_rand : shared () -> async Blob;
sign_with_ecdsa : shared sign_with_ecdsa_args -> async sign_with_ecdsa_result;
sign_with_schnorr : shared sign_with_schnorr_args -> async sign_with_schnorr_result;
start_canister : shared { canister_id : canister_id } -> async ();
stop_canister : shared { canister_id : canister_id } -> async ();
uninstall_code : shared { canister_id : canister_id } -> async ();
Expand Down
9 changes: 8 additions & 1 deletion e2e/assets/playground_backend/service/pool/Main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
mode = args.mode;
canister_id = args.canister_id;
};
Debug.print("install mode: " # debug_show(args.mode));
await IC.install_code newArgs;
stats := Logs.updateStats(stats, #install);

Expand Down Expand Up @@ -710,6 +709,12 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
await* pool.addCycles(caller, #refund);
res
};
public shared ({ caller }) func sign_with_schnorr(arg: ICType.sign_with_schnorr_args) : async ICType.sign_with_schnorr_result {
await* pool.addCycles(caller, #method "sign_with_schnorr");
let res = await IC.sign_with_schnorr(arg);
await* pool.addCycles(caller, #refund);
res
};
public shared ({ caller }) func _ttp_request(request : ICType.http_request_args) : async ICType.http_request_result {
await* pool.addCycles(caller, #method "http_request");
let new_request = switch (request.transform) {
Expand Down Expand Up @@ -832,6 +837,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
#_ttp_request : Any;
#__transform : Any;
#sign_with_ecdsa: Any;
#sign_with_schnorr: Any;
#eth_call: Any;
#eth_feeHistory: Any;
#eth_getBlockByNumber: Any;
Expand All @@ -856,6 +862,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
case (#_ttp_request _) false;
case (#__transform _) false;
case (#sign_with_ecdsa _) false;
case (#sign_with_schnorr _) false;
case (#eth_call _) false;
case (#eth_feeHistory _) false;
case (#eth_getBlockByNumber _) false;
Expand Down
3 changes: 2 additions & 1 deletion e2e/assets/playground_backend/wasm-utils.did
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
type Config = record {
profiling : bool;
profiling : opt record { start_page: opt nat32; page_limit: opt nat32 };
remove_cycles_add : bool;
limit_stable_memory_page : opt nat32;
limit_heap_memory_page : opt nat32;
backend_canister_id : opt principal;
};

Expand Down
Binary file modified e2e/assets/playground_backend/wasm-utils.wasm
100644 → 100755
Binary file not shown.
Loading
Loading