From 8b6cd4dd992bbd7f066b0be2ca0233e0134f1032 Mon Sep 17 00:00:00 2001 From: "pr-automation-bot-public[bot]" <189003650+pr-automation-bot-public[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:38:31 +0100 Subject: [PATCH] bot: Update Candid Files (#839) # Motivation The canisters APIs have been updated. # Changes * Updated the candid interface files for the canisters used in this library. * Updated the javascript bindings for the latest candid interfaces. # Tests - [ ] Please check the API updates for any breaking changes that affect our code. Co-authored-by: gix-bot --- packages/ckbtc/candid/minter.did | 2 +- packages/cketh/candid/minter.did | 2 +- packages/cketh/candid/orchestrator.did | 2 +- packages/cmc/candid/cmc.did | 2 +- packages/ledger-icp/candid/index.did | 2 +- packages/ledger-icp/candid/ledger.did | 2 +- packages/ledger-icrc/candid/icrc_index-ng.did | 2 +- packages/ledger-icrc/candid/icrc_ledger.did | 2 +- packages/nns/candid/genesis_token.did | 2 +- packages/nns/candid/governance.did | 2 +- packages/nns/candid/governance_test.did | 2 +- packages/nns/candid/sns_wasm.did | 2 +- packages/sns/candid/sns_governance.certified.idl.js | 7 +++++++ packages/sns/candid/sns_governance.d.ts | 7 +++++++ packages/sns/candid/sns_governance.did | 10 +++++++++- packages/sns/candid/sns_governance.idl.js | 7 +++++++ .../sns/candid/sns_governance_test.certified.idl.js | 7 +++++++ packages/sns/candid/sns_governance_test.d.ts | 7 +++++++ packages/sns/candid/sns_governance_test.did | 10 +++++++++- packages/sns/candid/sns_governance_test.idl.js | 7 +++++++ packages/sns/candid/sns_root.certified.idl.js | 9 +++++++++ packages/sns/candid/sns_root.d.ts | 13 ++++++++++++- packages/sns/candid/sns_root.did | 12 +++++++++++- packages/sns/candid/sns_root.idl.js | 9 +++++++++ packages/sns/candid/sns_swap.certified.idl.js | 7 +++++++ packages/sns/candid/sns_swap.d.ts | 7 +++++++ packages/sns/candid/sns_swap.did | 10 +++++++++- packages/sns/candid/sns_swap.idl.js | 7 +++++++ 28 files changed, 143 insertions(+), 17 deletions(-) diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index 00b1c31b4..e09180d84 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid // Represents an account on the ckBTC ledger. type Account = record { owner : principal; subaccount : opt blob }; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 16809eb7e..0ee8bcf49 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index bf10edd71..6e97a558f 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid type OrchestratorArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg; diff --git a/packages/cmc/candid/cmc.did b/packages/cmc/candid/cmc.did index ac3b15520..8484c4102 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/nns/cmc/cmc.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/cmc/cmc.did' by import-candid type Cycles = nat; type BlockIndex = nat64; type log_visibility = variant { diff --git a/packages/ledger-icp/candid/index.did b/packages/ledger-icp/candid/index.did index 9a5bfd672..817152a26 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ledger_suite/icp/index/index.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icp/index/index.did' by import-candid type Account = record { owner : principal; subaccount : opt vec nat8 }; type GetAccountIdentifierTransactionsArgs = record { max_results : nat64; diff --git a/packages/ledger-icp/candid/ledger.did b/packages/ledger-icp/candid/ledger.did index 1e2b03423..c93ab388d 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ledger_suite/icp/ledger.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icp/ledger.did' by import-candid // This is the official Ledger interface that is guaranteed to be backward compatible. // Amount of tokens, measured in 10^-8 of a token. diff --git a/packages/ledger-icrc/candid/icrc_index-ng.did b/packages/ledger-icrc/candid/icrc_index-ng.did index 1129716ef..83670124a 100644 --- a/packages/ledger-icrc/candid/icrc_index-ng.did +++ b/packages/ledger-icrc/candid/icrc_index-ng.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid type Tokens = nat; type InitArg = record { diff --git a/packages/ledger-icrc/candid/icrc_ledger.did b/packages/ledger-icrc/candid/icrc_ledger.did index 014356474..4e1c639fd 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.did +++ b/packages/ledger-icrc/candid/icrc_ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid type BlockIndex = nat; type Subaccount = blob; // Number of nanoseconds since the UNIX epoch in UTC timezone. diff --git a/packages/nns/candid/genesis_token.did b/packages/nns/candid/genesis_token.did index 9fa5b6eb5..0a5e6e67e 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 14c8f44cd6 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/gtc/canister/gtc.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/gtc/canister/gtc.did' by import-candid type AccountState = record { authenticated_principal_id : opt principal; successfully_transferred_neurons : vec TransferredNeuron; diff --git a/packages/nns/candid/governance.did b/packages/nns/candid/governance.did index d2660aff2..2834ab6ca 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 14c8f44cd6 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance.did' by import-candid type AccountIdentifier = record { hash : blob; }; diff --git a/packages/nns/candid/governance_test.did b/packages/nns/candid/governance_test.did index 87c548ee1..7513d395f 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 14c8f44cd6 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance_test.did' by import-candid type AccountIdentifier = record { hash : blob; }; diff --git a/packages/nns/candid/sns_wasm.did b/packages/nns/candid/sns_wasm.did index 8bd6297a7..534cdf2bf 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 14c8f44cd6 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm; diff --git a/packages/sns/candid/sns_governance.certified.idl.js b/packages/sns/candid/sns_governance.certified.idl.js index a751b719e..332773026 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -541,11 +541,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index fdc8f8cfa..bba734b38 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -62,6 +62,7 @@ export interface CanisterStatusResultV2 { memory_size: bigint; cycles: bigint; settings: DefiniteCanisterSettingsArgs; + query_stats: [] | [QueryStats]; idle_cycles_burned_per_day: bigint; module_hash: [] | [Uint8Array | number[]]; } @@ -529,6 +530,12 @@ export interface ProposalData { export interface ProposalId { id: bigint; } +export interface QueryStats { + response_payload_bytes_total: [] | [bigint]; + num_instructions_total: [] | [bigint]; + num_calls_total: [] | [bigint]; + request_payload_bytes_total: [] | [bigint]; +} export interface RegisterDappCanisters { canister_ids: Array; } diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 81508d184..0c8a1d187 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/sns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -56,6 +56,7 @@ type CanisterStatusResultV2 = record { settings : DefiniteCanisterSettingsArgs; idle_cycles_burned_per_day : nat; module_hash : opt blob; + query_stats : opt QueryStats; }; type CanisterStatusType = variant { @@ -611,6 +612,13 @@ type ProposalId = record { id : nat64; }; +type QueryStats = record { + num_calls_total : opt nat; + num_instructions_total : opt nat; + request_payload_bytes_total : opt nat; + response_payload_bytes_total : opt nat; +}; + type RegisterDappCanisters = record { canister_ids : vec principal; }; diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index ad9d52849..97fb03c61 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -541,11 +541,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index ddb00dab6..663caac24 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -552,11 +552,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index 9087a6046..ccbd5bb58 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -73,6 +73,7 @@ export interface CanisterStatusResultV2 { memory_size: bigint; cycles: bigint; settings: DefiniteCanisterSettingsArgs; + query_stats: [] | [QueryStats]; idle_cycles_burned_per_day: bigint; module_hash: [] | [Uint8Array | number[]]; } @@ -544,6 +545,12 @@ export interface ProposalData { export interface ProposalId { id: bigint; } +export interface QueryStats { + response_payload_bytes_total: [] | [bigint]; + num_instructions_total: [] | [bigint]; + num_calls_total: [] | [bigint]; + request_payload_bytes_total: [] | [bigint]; +} export interface RegisterDappCanisters { canister_ids: Array; } diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index fb5bec278..84d54f321 100644 --- a/packages/sns/candid/sns_governance_test.did +++ b/packages/sns/candid/sns_governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/sns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -65,6 +65,7 @@ type CanisterStatusResultV2 = record { settings : DefiniteCanisterSettingsArgs; idle_cycles_burned_per_day : nat; module_hash : opt blob; + query_stats : opt QueryStats; }; type CanisterStatusType = variant { @@ -625,6 +626,13 @@ type ProposalId = record { id : nat64; }; +type QueryStats = record { + num_calls_total : opt nat; + num_instructions_total : opt nat; + request_payload_bytes_total : opt nat; + response_payload_bytes_total : opt nat; +}; + type RegisterDappCanisters = record { canister_ids : vec principal; }; diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index e17f761e0..02a76d325 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -552,11 +552,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_root.certified.idl.js b/packages/sns/candid/sns_root.certified.idl.js index 5af7ec2ad..f2bc7ccf3 100644 --- a/packages/sns/candid/sns_root.certified.idl.js +++ b/packages/sns/candid/sns_root.certified.idl.js @@ -24,6 +24,7 @@ export const idlFactory = ({ IDL }) => { const LogVisibility = IDL.Variant({ 'controllers' : IDL.Null, 'public' : IDL.Null, + 'allowed_viewers' : IDL.Vec(IDL.Principal), }); const DefiniteCanisterSettings = IDL.Record({ 'freezing_threshold' : IDL.Opt(IDL.Nat), @@ -35,11 +36,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat), 'compute_allocation' : IDL.Opt(IDL.Nat), }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResult = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettings, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat), 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), 'reserved_cycles' : IDL.Opt(IDL.Nat), @@ -80,6 +88,7 @@ export const idlFactory = ({ IDL }) => { 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_root.d.ts b/packages/sns/candid/sns_root.d.ts index a9c60f04c..ae05f5e1f 100644 --- a/packages/sns/candid/sns_root.d.ts +++ b/packages/sns/candid/sns_root.d.ts @@ -18,6 +18,7 @@ export interface CanisterStatusResult { memory_size: bigint; cycles: bigint; settings: DefiniteCanisterSettings; + query_stats: [] | [QueryStats]; idle_cycles_burned_per_day: [] | [bigint]; module_hash: [] | [Uint8Array | number[]]; reserved_cycles: [] | [bigint]; @@ -27,6 +28,7 @@ export interface CanisterStatusResultV2 { memory_size: bigint; cycles: bigint; settings: DefiniteCanisterSettingsArgs; + query_stats: [] | [QueryStats]; idle_cycles_burned_per_day: bigint; module_hash: [] | [Uint8Array | number[]]; } @@ -99,7 +101,10 @@ export interface ListSnsCanistersResponse { dapps: Array; archives: Array; } -export type LogVisibility = { controllers: null } | { public: null }; +export type LogVisibility = + | { controllers: null } + | { public: null } + | { allowed_viewers: Array }; export interface ManageDappCanisterSettingsRequest { freezing_threshold: [] | [bigint]; wasm_memory_threshold: [] | [bigint]; @@ -113,6 +118,12 @@ export interface ManageDappCanisterSettingsRequest { export interface ManageDappCanisterSettingsResponse { failure_reason: [] | [string]; } +export interface QueryStats { + response_payload_bytes_total: [] | [bigint]; + num_instructions_total: [] | [bigint]; + num_calls_total: [] | [bigint]; + request_payload_bytes_total: [] | [bigint]; +} export interface RegisterDappCanisterRequest { canister_id: [] | [Principal]; } diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index 93dfb6dd5..a8568ab73 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/sns/root/canister/root.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/root/canister/root.did' by import-candid type CanisterCallError = record { code : opt int32; description : text; @@ -22,6 +22,7 @@ type CanisterStatusResult = record { idle_cycles_burned_per_day : opt nat; module_hash : opt blob; reserved_cycles : opt nat; + query_stats : opt QueryStats; }; type CanisterStatusResultV2 = record { @@ -31,6 +32,7 @@ type CanisterStatusResultV2 = record { settings : DefiniteCanisterSettingsArgs; idle_cycles_burned_per_day : nat; module_hash : opt blob; + query_stats : opt QueryStats; }; type CanisterStatusType = variant { @@ -81,6 +83,13 @@ type DefiniteCanisterSettingsArgs = record { wasm_memory_threshold : opt nat; }; +type QueryStats = record { + num_calls_total : opt nat; + num_instructions_total : opt nat; + request_payload_bytes_total : opt nat; + response_payload_bytes_total : opt nat; +}; + type FailedUpdate = record { err : opt CanisterCallError; dapp_canister_id : opt principal; @@ -113,6 +122,7 @@ type ListSnsCanistersResponse = record { type LogVisibility = variant { controllers; public; + allowed_viewers: vec principal; }; type ManageDappCanisterSettingsRequest = record { diff --git a/packages/sns/candid/sns_root.idl.js b/packages/sns/candid/sns_root.idl.js index 81c38e361..ef2caeef8 100644 --- a/packages/sns/candid/sns_root.idl.js +++ b/packages/sns/candid/sns_root.idl.js @@ -24,6 +24,7 @@ export const idlFactory = ({ IDL }) => { const LogVisibility = IDL.Variant({ 'controllers' : IDL.Null, 'public' : IDL.Null, + 'allowed_viewers' : IDL.Vec(IDL.Principal), }); const DefiniteCanisterSettings = IDL.Record({ 'freezing_threshold' : IDL.Opt(IDL.Nat), @@ -35,11 +36,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat), 'compute_allocation' : IDL.Opt(IDL.Nat), }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResult = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettings, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat), 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), 'reserved_cycles' : IDL.Opt(IDL.Nat), @@ -80,6 +88,7 @@ export const idlFactory = ({ IDL }) => { 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_swap.certified.idl.js b/packages/sns/candid/sns_swap.certified.idl.js index 9fa2cee72..8ccfe5e51 100644 --- a/packages/sns/candid/sns_swap.certified.idl.js +++ b/packages/sns/candid/sns_swap.certified.idl.js @@ -170,11 +170,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), }); diff --git a/packages/sns/candid/sns_swap.d.ts b/packages/sns/candid/sns_swap.d.ts index 371787486..fa307e49a 100644 --- a/packages/sns/candid/sns_swap.d.ts +++ b/packages/sns/candid/sns_swap.d.ts @@ -15,6 +15,7 @@ export interface CanisterStatusResultV2 { memory_size: bigint; cycles: bigint; settings: DefiniteCanisterSettingsArgs; + query_stats: [] | [QueryStats]; idle_cycles_burned_per_day: bigint; module_hash: [] | [Uint8Array | number[]]; } @@ -288,6 +289,12 @@ export type Possibility_3 = { Ok: {} } | { Err: CanisterCallError }; export interface Principals { principals: Array; } +export interface QueryStats { + response_payload_bytes_total: [] | [bigint]; + num_instructions_total: [] | [bigint]; + num_calls_total: [] | [bigint]; + request_payload_bytes_total: [] | [bigint]; +} export interface RefreshBuyerTokensRequest { confirmation_text: [] | [string]; buyer: string; diff --git a/packages/sns/candid/sns_swap.did b/packages/sns/candid/sns_swap.did index 7478040ad..4924c8ae3 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/sns/swap/canister/swap.did' by import-candid +// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool; @@ -9,6 +9,13 @@ type CanisterCallError = record { description : text; }; +type QueryStats = record { + num_calls_total : opt nat; + num_instructions_total : opt nat; + request_payload_bytes_total : opt nat; + response_payload_bytes_total : opt nat; +}; + type CanisterStatusResultV2 = record { status : CanisterStatusType; memory_size : nat; @@ -16,6 +23,7 @@ type CanisterStatusResultV2 = record { settings : DefiniteCanisterSettingsArgs; idle_cycles_burned_per_day : nat; module_hash : opt blob; + query_stats : opt QueryStats; }; type CanisterStatusType = variant { diff --git a/packages/sns/candid/sns_swap.idl.js b/packages/sns/candid/sns_swap.idl.js index 2236f477d..578615070 100644 --- a/packages/sns/candid/sns_swap.idl.js +++ b/packages/sns/candid/sns_swap.idl.js @@ -170,11 +170,18 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Nat, 'compute_allocation' : IDL.Nat, }); + const QueryStats = IDL.Record({ + 'response_payload_bytes_total' : IDL.Opt(IDL.Nat), + 'num_instructions_total' : IDL.Opt(IDL.Nat), + 'num_calls_total' : IDL.Opt(IDL.Nat), + 'request_payload_bytes_total' : IDL.Opt(IDL.Nat), + }); const CanisterStatusResultV2 = IDL.Record({ 'status' : CanisterStatusType, 'memory_size' : IDL.Nat, 'cycles' : IDL.Nat, 'settings' : DefiniteCanisterSettingsArgs, + 'query_stats' : IDL.Opt(QueryStats), 'idle_cycles_burned_per_day' : IDL.Nat, 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)), });