From 68521d31640c0b44d9baccd59025fc4a0d9f7852 Mon Sep 17 00:00:00 2001 From: gix-bot Date: Fri, 21 Feb 2025 10:18:38 +0000 Subject: [PATCH] Update IC commit --- packages/ckbtc/candid/minter.certified.idl.js | 5 +++ packages/ckbtc/candid/minter.d.ts | 6 ++- packages/ckbtc/candid/minter.did | 7 +++- packages/ckbtc/candid/minter.idl.js | 5 +++ packages/cketh/candid/minter.certified.idl.js | 1 + packages/cketh/candid/minter.d.ts | 5 ++- packages/cketh/candid/minter.did | 3 +- packages/cketh/candid/minter.idl.js | 1 + .../candid/orchestrator.certified.idl.js | 1 + packages/cketh/candid/orchestrator.d.ts | 5 ++- packages/cketh/candid/orchestrator.did | 3 +- packages/cketh/candid/orchestrator.idl.js | 1 + 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 +- .../candid/sns_governance.certified.idl.js | 34 +++++++++++++++++ packages/sns/candid/sns_governance.d.ts | 23 +++++++++++ packages/sns/candid/sns_governance.did | 29 +++++++++++++- packages/sns/candid/sns_governance.idl.js | 38 +++++++++++++++++++ .../sns_governance_test.certified.idl.js | 34 +++++++++++++++++ packages/sns/candid/sns_governance_test.d.ts | 23 +++++++++++ packages/sns/candid/sns_governance_test.did | 30 ++++++++++++++- .../sns/candid/sns_governance_test.idl.js | 38 +++++++++++++++++++ packages/sns/candid/sns_root.did | 2 +- packages/sns/candid/sns_swap.did | 2 +- 31 files changed, 295 insertions(+), 19 deletions(-) diff --git a/packages/ckbtc/candid/minter.certified.idl.js b/packages/ckbtc/candid/minter.certified.idl.js index 5f43c50b3..3666520af 100644 --- a/packages/ckbtc/candid/minter.certified.idl.js +++ b/packages/ckbtc/candid/minter.certified.idl.js @@ -46,6 +46,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.Nat, @@ -166,6 +167,10 @@ export const idlFactory = ({ IDL }) => { }), 'checked_utxo_v2' : IDL.Record({ 'utxo' : Utxo, 'account' : Account }), 'ignored_utxo' : IDL.Record({ 'utxo' : Utxo }), + 'checked_utxo_mint_unknown' : IDL.Record({ + 'utxo' : Utxo, + 'account' : Account, + }), 'reimbursed_failed_deposit' : IDL.Record({ 'burn_block_index' : IDL.Nat64, 'mint_block_index' : IDL.Nat64, diff --git a/packages/ckbtc/candid/minter.d.ts b/packages/ckbtc/candid/minter.d.ts index 6455ae793..09b9d1230 100644 --- a/packages/ckbtc/candid/minter.d.ts +++ b/packages/ckbtc/candid/minter.d.ts @@ -126,6 +126,7 @@ export type EventType = } | { checked_utxo_v2: { utxo: Utxo; account: Account } } | { ignored_utxo: { utxo: Utxo } } + | { checked_utxo_mint_unknown: { utxo: Utxo; account: Account } } | { reimbursed_failed_deposit: { burn_block_index: bigint; @@ -145,7 +146,10 @@ export interface InitArgs { min_confirmations: [] | [number]; kyt_fee: [] | [bigint]; } -export type LogVisibility = { controllers: null } | { public: null }; +export type LogVisibility = + | { controllers: null } + | { public: null } + | { allowed_viewers: Array }; export type MinterArg = { Upgrade: [] | [UpgradeArgs] } | { Init: InitArgs }; export interface MinterInfo { retrieve_btc_min_amount: bigint; diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index e09180d84..4e2095a6c 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 }; @@ -35,6 +35,7 @@ type DefiniteCanisterSettings = record { type LogVisibility = variant { controllers; public; + allowed_viewers : vec principal; }; type RetrieveBtcArgs = record { @@ -400,6 +401,10 @@ type EventType = variant { utxo : Utxo; account : Account; }; + checked_utxo_mint_unknown : record { + utxo : Utxo; + account : Account; + }; ignored_utxo : record { utxo: Utxo; }; suspended_utxo : record { utxo: Utxo; account: Account; reason: SuspendedReason }; retrieve_btc_kyt_failed : record { diff --git a/packages/ckbtc/candid/minter.idl.js b/packages/ckbtc/candid/minter.idl.js index 05a26ebfa..9a6e8fed5 100644 --- a/packages/ckbtc/candid/minter.idl.js +++ b/packages/ckbtc/candid/minter.idl.js @@ -46,6 +46,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.Nat, @@ -166,6 +167,10 @@ export const idlFactory = ({ IDL }) => { }), 'checked_utxo_v2' : IDL.Record({ 'utxo' : Utxo, 'account' : Account }), 'ignored_utxo' : IDL.Record({ 'utxo' : Utxo }), + 'checked_utxo_mint_unknown' : IDL.Record({ + 'utxo' : Utxo, + 'account' : Account, + }), 'reimbursed_failed_deposit' : IDL.Record({ 'burn_block_index' : IDL.Nat64, 'mint_block_index' : IDL.Nat64, diff --git a/packages/cketh/candid/minter.certified.idl.js b/packages/cketh/candid/minter.certified.idl.js index 98518835b..fe97876d5 100644 --- a/packages/cketh/candid/minter.certified.idl.js +++ b/packages/cketh/candid/minter.certified.idl.js @@ -59,6 +59,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.Nat, diff --git a/packages/cketh/candid/minter.d.ts b/packages/cketh/candid/minter.d.ts index 363bf3b74..2fe28447e 100644 --- a/packages/cketh/candid/minter.d.ts +++ b/packages/cketh/candid/minter.d.ts @@ -237,7 +237,10 @@ export type LedgerError = failed_burn_amount: bigint; }; }; -export type LogVisibility = { controllers: null } | { public: null }; +export type LogVisibility = + | { controllers: null } + | { public: null } + | { allowed_viewers: Array }; export type MinterArg = { UpgradeArg: UpgradeArg } | { InitArg: InitArg }; export interface MinterInfo { deposit_with_subaccount_helper_contract_address: [] | [string]; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 0ee8bcf49..8fc5d234e 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; @@ -34,6 +34,7 @@ type DefiniteCanisterSettings = record { type LogVisibility = variant { controllers; public; + allowed_viewers : vec principal; }; type QueryStats = record { diff --git a/packages/cketh/candid/minter.idl.js b/packages/cketh/candid/minter.idl.js index f45aea26d..a5b03baae 100644 --- a/packages/cketh/candid/minter.idl.js +++ b/packages/cketh/candid/minter.idl.js @@ -59,6 +59,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.Nat, diff --git a/packages/cketh/candid/orchestrator.certified.idl.js b/packages/cketh/candid/orchestrator.certified.idl.js index 79c92a781..5ee8808e3 100644 --- a/packages/cketh/candid/orchestrator.certified.idl.js +++ b/packages/cketh/candid/orchestrator.certified.idl.js @@ -68,6 +68,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.Nat, diff --git a/packages/cketh/candid/orchestrator.d.ts b/packages/cketh/candid/orchestrator.d.ts index 76ae62b5b..09e084478 100644 --- a/packages/cketh/candid/orchestrator.d.ts +++ b/packages/cketh/candid/orchestrator.d.ts @@ -66,7 +66,10 @@ export interface LedgerSuiteVersion { ledger_compressed_wasm_hash: string; index_compressed_wasm_hash: string; } -export type LogVisibility = { controllers: null } | { public: null }; +export type LogVisibility = + | { controllers: null } + | { public: null } + | { allowed_viewers: Array }; export interface ManagedCanisterIds { ledger: [] | [Principal]; index: [] | [Principal]; diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index 6e97a558f..0355142c7 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid type OrchestratorArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg; @@ -233,6 +233,7 @@ type DefiniteCanisterSettings = record { type LogVisibility = variant { controllers; public; + allowed_viewers : vec principal; }; type QueryStats = record { diff --git a/packages/cketh/candid/orchestrator.idl.js b/packages/cketh/candid/orchestrator.idl.js index 3802eb526..b22c25ad6 100644 --- a/packages/cketh/candid/orchestrator.idl.js +++ b/packages/cketh/candid/orchestrator.idl.js @@ -68,6 +68,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.Nat, diff --git a/packages/cmc/candid/cmc.did b/packages/cmc/candid/cmc.did index 8484c4102..3333ed0b7 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 817152a26..7a70a4e80 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 c93ab388d..ca5622973 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 83670124a..356710453 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 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 4e1c639fd..739a3ac66 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 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 0a5e6e67e..23bbb799c 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 2834ab6ca..a40651fac 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 7513d395f..af9986bde 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 534cdf2bf..c44e4ae90 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 332773026..511fcfe48 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), @@ -604,6 +614,19 @@ export const idlFactory = ({ IDL }) => { 'include_ballots_by_caller' : IDL.Opt(IDL.Bool), 'proposals' : IDL.Vec(ProposalData), }); + const ListTopicsRequest = IDL.Record({}); + const TopicInfo = IDL.Record({ + 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topic' : IDL.Opt(Topic), + 'is_critical' : IDL.Opt(IDL.Bool), + 'name' : IDL.Opt(IDL.Text), + 'description' : IDL.Opt(IDL.Text), + 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + }); + const ListTopicsResponse = IDL.Record({ + 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topics' : IDL.Opt(IDL.Vec(TopicInfo)), + }); const StakeMaturity = IDL.Record({ 'percentage_to_stake' : IDL.Opt(IDL.Nat32), }); @@ -714,6 +737,7 @@ export const idlFactory = ({ IDL }) => { ), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []), 'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []), + 'list_topics' : IDL.Func([ListTopicsRequest], [ListTopicsResponse], []), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), @@ -739,7 +763,17 @@ export const init = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index bba734b38..b8cb16c99 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -201,6 +201,7 @@ export type FunctionType = | { NativeNervousSystemFunction: {} } | { GenericNervousSystemFunction: GenericNervousSystemFunction }; export interface GenericNervousSystemFunction { + topic: [] | [Topic]; validator_canister_id: [] | [Principal]; target_canister_id: [] | [Principal]; validator_method_name: [] | [string]; @@ -332,6 +333,11 @@ export interface ListProposalsResponse { include_ballots_by_caller: [] | [boolean]; proposals: Array; } +export type ListTopicsRequest = {}; +export interface ListTopicsResponse { + uncategorized_functions: [] | [Array]; + topics: [] | [Array]; +} export interface ManageDappCanisterSettings { freezing_threshold: [] | [bigint]; wasm_memory_threshold: [] | [bigint]; @@ -617,6 +623,22 @@ export interface Timers { export interface Tokens { e8s: [] | [bigint]; } +export type Topic = + | { DappCanisterManagement: null } + | { DaoCommunitySettings: null } + | { ApplicationBusinessLogic: null } + | { CriticalDappOperations: null } + | { TreasuryAssetManagement: null } + | { Governance: null } + | { SnsFrameworkManagement: null }; +export interface TopicInfo { + native_functions: [] | [Array]; + topic: [] | [Topic]; + is_critical: [] | [boolean]; + name: [] | [string]; + description: [] | [string]; + custom_functions: [] | [Array]; +} export interface TransferSnsTreasuryFunds { from_treasury: number; to_principal: [] | [Principal]; @@ -743,6 +765,7 @@ export interface _SERVICE { >; list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>; list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>; + list_topics: ActorMethod<[ListTopicsRequest], ListTopicsResponse>; manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>; reset_timers: ActorMethod<[{}], {}>; set_mode: ActorMethod<[SetMode], {}>; diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 0c8a1d187..d38420e56 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -227,6 +227,7 @@ type GenericNervousSystemFunction = record { target_canister_id : opt principal; validator_method_name : opt text; target_method_name : opt text; + topic: opt Topic; }; type GetMaturityModulationResponse = record { @@ -840,6 +841,31 @@ type GetUpgradeJournalResponse = record { upgrade_journal_entry_count: opt nat64; }; +type Topic = variant { + DaoCommunitySettings; + SnsFrameworkManagement; + DappCanisterManagement; + ApplicationBusinessLogic; + Governance; + TreasuryAssetManagement; + CriticalDappOperations; +}; + +type TopicInfo = record { + topic : opt Topic; + name : opt text; + description : opt text; + native_functions : opt vec NervousSystemFunction; + custom_functions : opt vec NervousSystemFunction; + is_critical : opt bool; +}; + +type ListTopicsRequest = record {}; +type ListTopicsResponse = record { + topics: opt vec TopicInfo; + uncategorized_functions: opt vec NervousSystemFunction +}; + service : (Governance) -> { claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse); fail_stuck_upgrade_in_progress : (record {}) -> (record {}); @@ -858,6 +884,7 @@ service : (Governance) -> { list_nervous_system_functions : () -> (ListNervousSystemFunctionsResponse) query; list_neurons : (ListNeurons) -> (ListNeuronsResponse) query; list_proposals : (ListProposals) -> (ListProposalsResponse) query; + list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query; manage_neuron : (ManageNeuron) -> (ManageNeuronResponse); set_mode : (SetMode) -> (record {}); reset_timers : (record {}) -> (record {}); diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index 97fb03c61..1532e7bab 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), @@ -604,6 +614,19 @@ export const idlFactory = ({ IDL }) => { 'include_ballots_by_caller' : IDL.Opt(IDL.Bool), 'proposals' : IDL.Vec(ProposalData), }); + const ListTopicsRequest = IDL.Record({}); + const TopicInfo = IDL.Record({ + 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topic' : IDL.Opt(Topic), + 'is_critical' : IDL.Opt(IDL.Bool), + 'name' : IDL.Opt(IDL.Text), + 'description' : IDL.Opt(IDL.Text), + 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + }); + const ListTopicsResponse = IDL.Record({ + 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topics' : IDL.Opt(IDL.Vec(TopicInfo)), + }); const StakeMaturity = IDL.Record({ 'percentage_to_stake' : IDL.Opt(IDL.Nat32), }); @@ -722,6 +745,11 @@ export const idlFactory = ({ IDL }) => { [ListProposalsResponse], ['query'], ), + 'list_topics' : IDL.Func( + [ListTopicsRequest], + [ListTopicsResponse], + ['query'], + ), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), @@ -747,7 +775,17 @@ export const init = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index 663caac24..e6576e43e 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), @@ -615,6 +625,19 @@ export const idlFactory = ({ IDL }) => { 'include_ballots_by_caller' : IDL.Opt(IDL.Bool), 'proposals' : IDL.Vec(ProposalData), }); + const ListTopicsRequest = IDL.Record({}); + const TopicInfo = IDL.Record({ + 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topic' : IDL.Opt(Topic), + 'is_critical' : IDL.Opt(IDL.Bool), + 'name' : IDL.Opt(IDL.Text), + 'description' : IDL.Opt(IDL.Text), + 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + }); + const ListTopicsResponse = IDL.Record({ + 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topics' : IDL.Opt(IDL.Vec(TopicInfo)), + }); const StakeMaturity = IDL.Record({ 'percentage_to_stake' : IDL.Opt(IDL.Nat32), }); @@ -735,6 +758,7 @@ export const idlFactory = ({ IDL }) => { ), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []), 'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []), + 'list_topics' : IDL.Func([ListTopicsRequest], [ListTopicsResponse], []), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []), 'refresh_cached_upgrade_steps' : IDL.Func( @@ -767,7 +791,17 @@ export const init = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index ccbd5bb58..3cf549249 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -212,6 +212,7 @@ export type FunctionType = | { NativeNervousSystemFunction: {} } | { GenericNervousSystemFunction: GenericNervousSystemFunction }; export interface GenericNervousSystemFunction { + topic: [] | [Topic]; validator_canister_id: [] | [Principal]; target_canister_id: [] | [Principal]; validator_method_name: [] | [string]; @@ -343,6 +344,11 @@ export interface ListProposalsResponse { include_ballots_by_caller: [] | [boolean]; proposals: Array; } +export type ListTopicsRequest = {}; +export interface ListTopicsResponse { + uncategorized_functions: [] | [Array]; + topics: [] | [Array]; +} export interface ManageDappCanisterSettings { freezing_threshold: [] | [bigint]; wasm_memory_threshold: [] | [bigint]; @@ -632,6 +638,22 @@ export interface Timers { export interface Tokens { e8s: [] | [bigint]; } +export type Topic = + | { DappCanisterManagement: null } + | { DaoCommunitySettings: null } + | { ApplicationBusinessLogic: null } + | { CriticalDappOperations: null } + | { TreasuryAssetManagement: null } + | { Governance: null } + | { SnsFrameworkManagement: null }; +export interface TopicInfo { + native_functions: [] | [Array]; + topic: [] | [Topic]; + is_critical: [] | [boolean]; + name: [] | [string]; + description: [] | [string]; + custom_functions: [] | [Array]; +} export interface TransferSnsTreasuryFunds { from_treasury: number; to_principal: [] | [Principal]; @@ -763,6 +785,7 @@ export interface _SERVICE { >; list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>; list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>; + list_topics: ActorMethod<[ListTopicsRequest], ListTopicsResponse>; manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>; mint_tokens: ActorMethod<[MintTokensRequest], {}>; refresh_cached_upgrade_steps: ActorMethod<[{}], {}>; diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index 84d54f321..867919cf0 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 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -236,6 +236,7 @@ type GenericNervousSystemFunction = record { target_canister_id : opt principal; validator_method_name : opt text; target_method_name : opt text; + topic: opt Topic; }; type GetMaturityModulationResponse = record { @@ -857,6 +858,32 @@ type GetUpgradeJournalResponse = record { type AdvanceTargetVersionRequest = record { target_version : opt Version; }; type AdvanceTargetVersionResponse = record {}; + +type Topic = variant { + DaoCommunitySettings; + SnsFrameworkManagement; + DappCanisterManagement; + ApplicationBusinessLogic; + Governance; + TreasuryAssetManagement; + CriticalDappOperations; +}; + +type TopicInfo = record { + topic : opt Topic; + name : opt text; + description : opt text; + native_functions : opt vec NervousSystemFunction; + custom_functions : opt vec NervousSystemFunction; + is_critical : opt bool; +}; + +type ListTopicsRequest = record {}; +type ListTopicsResponse = record { + topics: opt vec TopicInfo; + uncategorized_functions: opt vec NervousSystemFunction +}; + service : (Governance) -> { add_maturity : (AddMaturityRequest) -> (AddMaturityResponse); claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse); @@ -876,6 +903,7 @@ service : (Governance) -> { list_nervous_system_functions : () -> (ListNervousSystemFunctionsResponse) query; list_neurons : (ListNeurons) -> (ListNeuronsResponse) query; list_proposals : (ListProposals) -> (ListProposalsResponse) query; + list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query; manage_neuron : (ManageNeuron) -> (ManageNeuronResponse); mint_tokens : (MintTokensRequest) -> (record {}); set_mode : (SetMode) -> (record {}); diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index 02a76d325..ff5e659eb 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), @@ -615,6 +625,19 @@ export const idlFactory = ({ IDL }) => { 'include_ballots_by_caller' : IDL.Opt(IDL.Bool), 'proposals' : IDL.Vec(ProposalData), }); + const ListTopicsRequest = IDL.Record({}); + const TopicInfo = IDL.Record({ + 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topic' : IDL.Opt(Topic), + 'is_critical' : IDL.Opt(IDL.Bool), + 'name' : IDL.Opt(IDL.Text), + 'description' : IDL.Opt(IDL.Text), + 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + }); + const ListTopicsResponse = IDL.Record({ + 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)), + 'topics' : IDL.Opt(IDL.Vec(TopicInfo)), + }); const StakeMaturity = IDL.Record({ 'percentage_to_stake' : IDL.Opt(IDL.Nat32), }); @@ -743,6 +766,11 @@ export const idlFactory = ({ IDL }) => { [ListProposalsResponse], ['query'], ), + 'list_topics' : IDL.Func( + [ListTopicsRequest], + [ListTopicsResponse], + ['query'], + ), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []), 'refresh_cached_upgrade_steps' : IDL.Func( @@ -775,7 +803,17 @@ export const init = ({ IDL }) => { 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64), 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64), }); + const Topic = IDL.Variant({ + 'DappCanisterManagement' : IDL.Null, + 'DaoCommunitySettings' : IDL.Null, + 'ApplicationBusinessLogic' : IDL.Null, + 'CriticalDappOperations' : IDL.Null, + 'TreasuryAssetManagement' : IDL.Null, + 'Governance' : IDL.Null, + 'SnsFrameworkManagement' : IDL.Null, + }); const GenericNervousSystemFunction = IDL.Record({ + 'topic' : IDL.Opt(Topic), 'validator_canister_id' : IDL.Opt(IDL.Principal), 'target_canister_id' : IDL.Opt(IDL.Principal), 'validator_method_name' : IDL.Opt(IDL.Text), diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index a8568ab73..7470259d0 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/root/canister/root.did' by import-candid type CanisterCallError = record { code : opt int32; description : text; diff --git a/packages/sns/candid/sns_swap.did b/packages/sns/candid/sns_swap.did index 4924c8ae3..4503b1612 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool;