Skip to content

Commit

Permalink
Merge branch 'master' into ielashi/on_low_wasm_memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk authored Jun 21, 2024
2 parents 071a811 + 2c7cca0 commit d514072
Show file tree
Hide file tree
Showing 4 changed files with 603 additions and 183 deletions.
2 changes: 1 addition & 1 deletion docusaurus/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"ic": {
"providers": [
"https://mainnet.dfinity.network"
"https://icp-api.io"
],
"type": "persistent"
}
Expand Down
38 changes: 37 additions & 1 deletion spec/_attachments/ic.did
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
type canister_id = principal;
type wasm_module = blob;

type log_visibility = variant {
controllers;
public;
};

type canister_settings = record {
controllers : opt vec principal;
compute_allocation : opt nat;
memory_allocation : opt nat;
freezing_threshold : opt nat;
reserved_cycles_limit : opt nat;
log_visibility : opt log_visibility;
wasm_memory_limit : opt nat;
low_wasm_memory_threshold : opt nat;
};

Expand All @@ -16,6 +23,8 @@ type definite_canister_settings = record {
memory_allocation : nat;
freezing_threshold : nat;
reserved_cycles_limit : nat;
log_visibility : log_visibility;
wasm_memory_limit : nat;
low_wasm_memory_threshold: nat;
};

Expand Down Expand Up @@ -148,7 +157,7 @@ type millisatoshi_per_byte = nat64;

type node_metrics = record {
node_id : principal;
num_blocks_total : nat64;
num_blocks_proposed_total : nat64;
num_block_failures_total : nat64;
};

Expand Down Expand Up @@ -185,6 +194,10 @@ type canister_install_mode = variant {
reinstall;
upgrade : opt record {
skip_pre_upgrade : opt bool;
wasm_memory_persistence : opt variant {
keep;
replace;
};
};
};

Expand Down Expand Up @@ -231,6 +244,12 @@ type canister_status_result = record {
cycles : nat;
reserved_cycles : nat;
idle_cycles_burned_per_day : nat;
query_stats: record {
num_calls_total: nat;
num_instructions_total: nat;
request_payload_bytes_total: nat;
response_payload_bytes_total: nat;
};
};

type canister_info_args = record {
Expand Down Expand Up @@ -324,6 +343,20 @@ type bitcoin_get_balance_query_result = satoshi;

type bitcoin_get_current_fee_percentiles_result = vec millisatoshi_per_byte;

type fetch_canister_logs_args = record {
canister_id : canister_id;
};

type canister_log_record = record {
idx: nat64;
timestamp_nanos: nat64;
content: blob;
};

type fetch_canister_logs_result = record {
canister_log_records: vec canister_log_record;
};

service ic : {
create_canister : (create_canister_args) -> (create_canister_result);
update_settings : (update_settings_args) -> ();
Expand Down Expand Up @@ -360,4 +393,7 @@ service ic : {
// provisional interfaces for the pre-ledger world
provisional_create_canister_with_cycles : (provisional_create_canister_with_cycles_args) -> (provisional_create_canister_with_cycles_result);
provisional_top_up_canister : (provisional_top_up_canister_args) -> ();

// canister logging
fetch_canister_logs : (fetch_canister_logs_args) -> (fetch_canister_logs_result) query;
};
13 changes: 13 additions & 0 deletions spec/_attachments/interface-spec-changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
## Changelog {#changelog}

### ∞ (unreleased)

### 0.25.0 (2024-06-14) {#0_25_0}
* Query call statistics.
* New `wasm_memory_persistence` option for canister upgrades.
* Rename `num_blocks_total` to `num_blocks_proposed_total` in node metrics served by the management canister.
* Management canister query call to fetch canister logs.
* WASM heap memory limit in canisters settings.
* 32-bit stable memory System API is marked DEPRECATED.
* Remove the management canister query calls `bitcoin_get_balance_query` and `bitcoin_get_utxos_query`.

### 0.24.0 (2024-04-23) {#0_24_0}
* Wrap chunk hash for install chunked code in a record and rename `storage_canister` to `store_canister`.
* Update subnet read state request conditions on requested paths.
* Fix: allow inter-canister calls (requests) to be spontaneously rejected in the abstract spec.

### 0.23.0 (2024-03-06) {#0_23_0}
* The maximum length of a nonce in an ingress message is 32 bytes.
Expand Down
Loading

0 comments on commit d514072

Please sign in to comment.