Skip to content

Commit

Permalink
Bump ic-js next with last Candid definition (#4894)
Browse files Browse the repository at this point in the history
# Motivation

Propagate last weekly Candid definition
([631](dfinity/ic-js#631)).

# Notes

Query stats has been added to the spec in this PR
[305](dfinity/interface-spec#305).

# Changes

- `npm run upgrade:next`
- extend `CanisterStatusResponse` mock with `query_stats` in ic-mgmt and
canister worker tests
  • Loading branch information
peterpeterparker authored May 21, 2024
1 parent 62bcfc6 commit dedc239
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 49 deletions.
109 changes: 60 additions & 49 deletions frontend/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ describe("ICManagementCanister", () => {
module_hash: [],
idle_cycles_burned_per_day: 30_000n,
reserved_cycles: 1_000_000n,
query_stats: {
num_calls_total: 1n,
num_instructions_total: 2n,
request_payload_bytes_total: 3n,
response_payload_bytes_total: 4n,
},
};
const service = mock<IcManagementService>();
service.canister_status.mockResolvedValue(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ describe("canisters-worker-api", () => {
module_hash: [],
idle_cycles_burned_per_day: 300n,
reserved_cycles: 1_000_000n,
query_stats: {
num_calls_total: 1n,
num_instructions_total: 2n,
request_payload_bytes_total: 3n,
response_payload_bytes_total: 4n,
},
};

beforeEach(async () => {
Expand Down

0 comments on commit dedc239

Please sign in to comment.