From 8453287e346ca0117c78cd5e1095022cf8f3792b Mon Sep 17 00:00:00 2001 From: gix-bot Date: Fri, 7 Mar 2025 16:25:21 +0000 Subject: [PATCH] Update IC commit --- 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 +- .../nns/candid/governance.certified.idl.js | 23 +++++++++++++++++++ packages/nns/candid/governance.d.ts | 14 +++++++++++ packages/nns/candid/governance.did | 19 ++++++++++++++- packages/nns/candid/governance.idl.js | 23 +++++++++++++++++++ .../candid/governance_test.certified.idl.js | 23 +++++++++++++++++++ packages/nns/candid/governance_test.d.ts | 14 +++++++++++ packages/nns/candid/governance_test.did | 19 ++++++++++++++- packages/nns/candid/governance_test.idl.js | 23 +++++++++++++++++++ packages/nns/candid/sns_wasm.certified.idl.js | 4 ---- packages/nns/candid/sns_wasm.d.ts | 4 ---- packages/nns/candid/sns_wasm.did | 7 +----- packages/nns/candid/sns_wasm.idl.js | 4 ---- .../candid/sns_governance.certified.idl.js | 8 +++++++ packages/sns/candid/sns_governance.d.ts | 4 ++++ packages/sns/candid/sns_governance.did | 7 +++++- packages/sns/candid/sns_governance.idl.js | 8 +++++++ .../sns_governance_test.certified.idl.js | 8 +++++++ packages/sns/candid/sns_governance_test.d.ts | 4 ++++ packages/sns/candid/sns_governance_test.did | 7 +++++- .../sns/candid/sns_governance_test.idl.js | 8 +++++++ packages/sns/candid/sns_root.did | 2 +- packages/sns/candid/sns_swap.did | 2 +- 31 files changed, 220 insertions(+), 33 deletions(-) diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index 4e2095a6c..a38ba4fb8 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 }; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 8fc5d234e..6d932dfb5 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) '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 0355142c7..8f6329893 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) '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 3333ed0b7..a0b14405e 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 7a70a4e80..5673f093d 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 ca5622973..8736e4e30 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 356710453..a7006f23e 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 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 739a3ac66..143df2d3f 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 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 23bbb799c..2de551663 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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.certified.idl.js b/packages/nns/candid/governance.certified.idl.js index e484a6ad0..b495e1e54 100644 --- a/packages/nns/candid/governance.certified.idl.js +++ b/packages/nns/candid/governance.certified.idl.js @@ -22,6 +22,14 @@ export const idlFactory = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -87,6 +95,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -817,6 +826,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -836,6 +846,9 @@ export const idlFactory = ({ IDL }) => { }) ); const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) }); + const DisburseMaturityResponse = IDL.Record({ + 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64), + }); const RefreshVotingPowerResponse = IDL.Record({}); const ClaimOrRefreshResponse = IDL.Record({ 'refreshed_neuron_id' : IDL.Opt(NeuronId), @@ -864,6 +877,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : SpawnResponse, 'Split' : SpawnResponse, 'Follow' : IDL.Record({}), + 'DisburseMaturity' : DisburseMaturityResponse, 'RefreshVotingPower' : RefreshVotingPowerResponse, 'ClaimOrRefresh' : ClaimOrRefreshResponse, 'Configure' : IDL.Record({}), @@ -1021,6 +1035,14 @@ export const init = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -1086,6 +1108,7 @@ export const init = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, diff --git a/packages/nns/candid/governance.d.ts b/packages/nns/candid/governance.d.ts index a937abf08..d33b7cb82 100644 --- a/packages/nns/candid/governance.d.ts +++ b/packages/nns/candid/governance.d.ts @@ -2,6 +2,10 @@ import type { ActorMethod } from "@dfinity/agent"; import type { IDL } from "@dfinity/candid"; import type { Principal } from "@dfinity/principal"; +export interface Account { + owner: [] | [Principal]; + subaccount: [] | [Uint8Array | number[]]; +} export interface AccountIdentifier { hash: Uint8Array | number[]; } @@ -92,6 +96,7 @@ export type Command = | { Spawn: Spawn } | { Split: Split } | { Follow: Follow } + | { DisburseMaturity: DisburseMaturity } | { RefreshVotingPower: RefreshVotingPower } | { ClaimOrRefresh: ClaimOrRefresh } | { Configure: Configure } @@ -107,6 +112,7 @@ export type Command_1 = | { Spawn: SpawnResponse } | { Split: SpawnResponse } | { Follow: {} } + | { DisburseMaturity: DisburseMaturityResponse } | { RefreshVotingPower: RefreshVotingPowerResponse } | { ClaimOrRefresh: ClaimOrRefreshResponse } | { Configure: {} } @@ -175,6 +181,13 @@ export interface Disburse { to_account: [] | [AccountIdentifier]; amount: [] | [Amount]; } +export interface DisburseMaturity { + to_account: [] | [Account]; + percentage_to_disburse: number; +} +export interface DisburseMaturityResponse { + amount_disbursed_e8s: [] | [bigint]; +} export interface DisburseResponse { transfer_block_height: bigint; } @@ -410,6 +423,7 @@ export type ManageNeuronCommandRequest = | { Spawn: Spawn } | { Split: Split } | { Follow: Follow } + | { DisburseMaturity: DisburseMaturity } | { RefreshVotingPower: RefreshVotingPower } | { ClaimOrRefresh: ClaimOrRefresh } | { Configure: Configure } diff --git a/packages/nns/candid/governance.did b/packages/nns/candid/governance.did index a40651fac..3c4ef71bb 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/nns/governance/canister/governance.did' by import-candid type AccountIdentifier = record { hash : blob; }; @@ -124,6 +124,20 @@ type RefreshVotingPowerResponse = record { // minimal until we discover there is a "real need". YAGNI. }; +type DisburseMaturity = record { + percentage_to_disburse : nat32; + to_account : opt Account; +}; + +type Account = record { + owner: opt principal; + subaccount: opt blob; +}; + +type DisburseMaturityResponse = record { + amount_disbursed_e8s : opt nat64; +}; + // KEEP THIS IN SYNC WITH ManageNeuronCommandRequest! type Command = variant { Spawn : Spawn; @@ -139,6 +153,7 @@ type Command = variant { MergeMaturity : MergeMaturity; Disburse : Disburse; RefreshVotingPower : RefreshVotingPower; + DisburseMaturity : DisburseMaturity; // KEEP THIS IN SYNC WITH ManageNeuronCommandRequest! }; @@ -158,6 +173,7 @@ type Command_1 = variant { MergeMaturity : MergeMaturityResponse; Disburse : DisburseResponse; RefreshVotingPower : RefreshVotingPowerResponse; + DisburseMaturity : DisburseMaturityResponse; }; type Command_2 = variant { @@ -541,6 +557,7 @@ type ManageNeuronCommandRequest = variant { MergeMaturity : MergeMaturity; Disburse : Disburse; RefreshVotingPower : RefreshVotingPower; + DisburseMaturity : DisburseMaturity; // KEEP THIS IN SYNC WITH COMMAND! }; diff --git a/packages/nns/candid/governance.idl.js b/packages/nns/candid/governance.idl.js index 51abbc4f3..d8a24db2f 100644 --- a/packages/nns/candid/governance.idl.js +++ b/packages/nns/candid/governance.idl.js @@ -22,6 +22,14 @@ export const idlFactory = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -87,6 +95,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -817,6 +826,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -836,6 +846,9 @@ export const idlFactory = ({ IDL }) => { }) ); const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) }); + const DisburseMaturityResponse = IDL.Record({ + 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64), + }); const RefreshVotingPowerResponse = IDL.Record({}); const ClaimOrRefreshResponse = IDL.Record({ 'refreshed_neuron_id' : IDL.Opt(NeuronId), @@ -864,6 +877,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : SpawnResponse, 'Split' : SpawnResponse, 'Follow' : IDL.Record({}), + 'DisburseMaturity' : DisburseMaturityResponse, 'RefreshVotingPower' : RefreshVotingPowerResponse, 'ClaimOrRefresh' : ClaimOrRefreshResponse, 'Configure' : IDL.Record({}), @@ -1037,6 +1051,14 @@ export const init = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -1102,6 +1124,7 @@ export const init = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, diff --git a/packages/nns/candid/governance_test.certified.idl.js b/packages/nns/candid/governance_test.certified.idl.js index f3fb94a5b..8abee9695 100644 --- a/packages/nns/candid/governance_test.certified.idl.js +++ b/packages/nns/candid/governance_test.certified.idl.js @@ -22,6 +22,14 @@ export const idlFactory = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -87,6 +95,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -817,6 +826,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -836,6 +846,9 @@ export const idlFactory = ({ IDL }) => { }) ); const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) }); + const DisburseMaturityResponse = IDL.Record({ + 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64), + }); const RefreshVotingPowerResponse = IDL.Record({}); const ClaimOrRefreshResponse = IDL.Record({ 'refreshed_neuron_id' : IDL.Opt(NeuronId), @@ -864,6 +877,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : SpawnResponse, 'Split' : SpawnResponse, 'Follow' : IDL.Record({}), + 'DisburseMaturity' : DisburseMaturityResponse, 'RefreshVotingPower' : RefreshVotingPowerResponse, 'ClaimOrRefresh' : ClaimOrRefreshResponse, 'Configure' : IDL.Record({}), @@ -1022,6 +1036,14 @@ export const init = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -1087,6 +1109,7 @@ export const init = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, diff --git a/packages/nns/candid/governance_test.d.ts b/packages/nns/candid/governance_test.d.ts index b773a4d88..36803c72e 100644 --- a/packages/nns/candid/governance_test.d.ts +++ b/packages/nns/candid/governance_test.d.ts @@ -2,6 +2,10 @@ import type { ActorMethod } from "@dfinity/agent"; import type { IDL } from "@dfinity/candid"; import type { Principal } from "@dfinity/principal"; +export interface Account { + owner: [] | [Principal]; + subaccount: [] | [Uint8Array | number[]]; +} export interface AccountIdentifier { hash: Uint8Array | number[]; } @@ -92,6 +96,7 @@ export type Command = | { Spawn: Spawn } | { Split: Split } | { Follow: Follow } + | { DisburseMaturity: DisburseMaturity } | { RefreshVotingPower: RefreshVotingPower } | { ClaimOrRefresh: ClaimOrRefresh } | { Configure: Configure } @@ -107,6 +112,7 @@ export type Command_1 = | { Spawn: SpawnResponse } | { Split: SpawnResponse } | { Follow: {} } + | { DisburseMaturity: DisburseMaturityResponse } | { RefreshVotingPower: RefreshVotingPowerResponse } | { ClaimOrRefresh: ClaimOrRefreshResponse } | { Configure: {} } @@ -175,6 +181,13 @@ export interface Disburse { to_account: [] | [AccountIdentifier]; amount: [] | [Amount]; } +export interface DisburseMaturity { + to_account: [] | [Account]; + percentage_to_disburse: number; +} +export interface DisburseMaturityResponse { + amount_disbursed_e8s: [] | [bigint]; +} export interface DisburseResponse { transfer_block_height: bigint; } @@ -410,6 +423,7 @@ export type ManageNeuronCommandRequest = | { Spawn: Spawn } | { Split: Split } | { Follow: Follow } + | { DisburseMaturity: DisburseMaturity } | { RefreshVotingPower: RefreshVotingPower } | { ClaimOrRefresh: ClaimOrRefresh } | { Configure: Configure } diff --git a/packages/nns/candid/governance_test.did b/packages/nns/candid/governance_test.did index af9986bde..9ec381573 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/nns/governance/canister/governance_test.did' by import-candid type AccountIdentifier = record { hash : blob; }; @@ -124,6 +124,20 @@ type RefreshVotingPowerResponse = record { // minimal until we discover there is a "real need". YAGNI. }; +type DisburseMaturity = record { + percentage_to_disburse : nat32; + to_account : opt Account; +}; + +type Account = record { + owner: opt principal; + subaccount: opt blob; +}; + +type DisburseMaturityResponse = record { + amount_disbursed_e8s : opt nat64; +}; + type Command = variant { Spawn : Spawn; Split : Split; @@ -138,6 +152,7 @@ type Command = variant { MergeMaturity : MergeMaturity; Disburse : Disburse; RefreshVotingPower : RefreshVotingPower; + DisburseMaturity : DisburseMaturity; }; type Command_1 = variant { @@ -155,6 +170,7 @@ type Command_1 = variant { MergeMaturity : MergeMaturityResponse; Disburse : DisburseResponse; RefreshVotingPower : RefreshVotingPowerResponse; + DisburseMaturity : DisburseMaturityResponse; }; type Command_2 = variant { @@ -518,6 +534,7 @@ type ManageNeuronCommandRequest = variant { MergeMaturity : MergeMaturity; Disburse : Disburse; RefreshVotingPower : RefreshVotingPower; + DisburseMaturity : DisburseMaturity; }; type ManageNeuronRequest = record { diff --git a/packages/nns/candid/governance_test.idl.js b/packages/nns/candid/governance_test.idl.js index 722b65f26..7d66180c0 100644 --- a/packages/nns/candid/governance_test.idl.js +++ b/packages/nns/candid/governance_test.idl.js @@ -22,6 +22,14 @@ export const idlFactory = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -87,6 +95,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -817,6 +826,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, @@ -836,6 +846,9 @@ export const idlFactory = ({ IDL }) => { }) ); const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) }); + const DisburseMaturityResponse = IDL.Record({ + 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64), + }); const RefreshVotingPowerResponse = IDL.Record({}); const ClaimOrRefreshResponse = IDL.Record({ 'refreshed_neuron_id' : IDL.Opt(NeuronId), @@ -864,6 +877,7 @@ export const idlFactory = ({ IDL }) => { 'Spawn' : SpawnResponse, 'Split' : SpawnResponse, 'Follow' : IDL.Record({}), + 'DisburseMaturity' : DisburseMaturityResponse, 'RefreshVotingPower' : RefreshVotingPowerResponse, 'ClaimOrRefresh' : ClaimOrRefreshResponse, 'Configure' : IDL.Record({}), @@ -1038,6 +1052,14 @@ export const init = ({ IDL }) => { 'topic' : IDL.Int32, 'followees' : IDL.Vec(NeuronId), }); + const Account = IDL.Record({ + 'owner' : IDL.Opt(IDL.Principal), + 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)), + }); + const DisburseMaturity = IDL.Record({ + 'to_account' : IDL.Opt(Account), + 'percentage_to_disburse' : IDL.Nat32, + }); const RefreshVotingPower = IDL.Record({}); const ClaimOrRefreshNeuronFromAccount = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -1103,6 +1125,7 @@ export const init = ({ IDL }) => { 'Spawn' : Spawn, 'Split' : Split, 'Follow' : Follow, + 'DisburseMaturity' : DisburseMaturity, 'RefreshVotingPower' : RefreshVotingPower, 'ClaimOrRefresh' : ClaimOrRefresh, 'Configure' : Configure, diff --git a/packages/nns/candid/sns_wasm.certified.idl.js b/packages/nns/candid/sns_wasm.certified.idl.js index ae2518b96..55d8a18bd 100644 --- a/packages/nns/candid/sns_wasm.certified.idl.js +++ b/packages/nns/candid/sns_wasm.certified.idl.js @@ -55,9 +55,6 @@ export const idlFactory = ({ IDL }) => { const DeveloperDistribution = IDL.Record({ 'developer_neurons' : IDL.Vec(NeuronDistribution), }); - const AirdropDistribution = IDL.Record({ - 'airdrop_neurons' : IDL.Vec(NeuronDistribution), - }); const SwapDistribution = IDL.Record({ 'total_e8s' : IDL.Nat64, 'initial_swap_amount_e8s' : IDL.Nat64, @@ -65,7 +62,6 @@ export const idlFactory = ({ IDL }) => { const FractionalDeveloperVotingPower = IDL.Record({ 'treasury_distribution' : IDL.Opt(TreasuryDistribution), 'developer_distribution' : IDL.Opt(DeveloperDistribution), - 'airdrop_distribution' : IDL.Opt(AirdropDistribution), 'swap_distribution' : IDL.Opt(SwapDistribution), }); const InitialTokenDistribution = IDL.Variant({ diff --git a/packages/nns/candid/sns_wasm.d.ts b/packages/nns/candid/sns_wasm.d.ts index 253c9fa84..6ec3ae0b1 100644 --- a/packages/nns/candid/sns_wasm.d.ts +++ b/packages/nns/candid/sns_wasm.d.ts @@ -9,9 +9,6 @@ export interface AddWasmRequest { export interface AddWasmResponse { result: [] | [Result]; } -export interface AirdropDistribution { - airdrop_neurons: Array; -} export interface Canister { id: [] | [Principal]; } @@ -48,7 +45,6 @@ export interface DeveloperDistribution { export interface FractionalDeveloperVotingPower { treasury_distribution: [] | [TreasuryDistribution]; developer_distribution: [] | [DeveloperDistribution]; - airdrop_distribution: [] | [AirdropDistribution]; swap_distribution: [] | [SwapDistribution]; } export interface GetAllowedPrincipalsResponse { diff --git a/packages/nns/candid/sns_wasm.did b/packages/nns/candid/sns_wasm.did index c44e4ae90..12a788293 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm; @@ -8,10 +8,6 @@ type AddWasmResponse = record { result : opt Result; }; -type AirdropDistribution = record { - airdrop_neurons : vec NeuronDistribution; -}; - type Canister = record { id : opt principal; }; @@ -56,7 +52,6 @@ type DeveloperDistribution = record { type FractionalDeveloperVotingPower = record { treasury_distribution : opt TreasuryDistribution; developer_distribution : opt DeveloperDistribution; - airdrop_distribution : opt AirdropDistribution; swap_distribution : opt SwapDistribution; }; diff --git a/packages/nns/candid/sns_wasm.idl.js b/packages/nns/candid/sns_wasm.idl.js index bd8f27d72..056026e3a 100644 --- a/packages/nns/candid/sns_wasm.idl.js +++ b/packages/nns/candid/sns_wasm.idl.js @@ -55,9 +55,6 @@ export const idlFactory = ({ IDL }) => { const DeveloperDistribution = IDL.Record({ 'developer_neurons' : IDL.Vec(NeuronDistribution), }); - const AirdropDistribution = IDL.Record({ - 'airdrop_neurons' : IDL.Vec(NeuronDistribution), - }); const SwapDistribution = IDL.Record({ 'total_e8s' : IDL.Nat64, 'initial_swap_amount_e8s' : IDL.Nat64, @@ -65,7 +62,6 @@ export const idlFactory = ({ IDL }) => { const FractionalDeveloperVotingPower = IDL.Record({ 'treasury_distribution' : IDL.Opt(TreasuryDistribution), 'developer_distribution' : IDL.Opt(DeveloperDistribution), - 'airdrop_distribution' : IDL.Opt(AirdropDistribution), 'swap_distribution' : IDL.Opt(SwapDistribution), }); const InitialTokenDistribution = IDL.Variant({ diff --git a/packages/sns/candid/sns_governance.certified.idl.js b/packages/sns/candid/sns_governance.certified.idl.js index 511fcfe48..711f7a7e5 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, @@ -988,6 +992,9 @@ export const init = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -1045,6 +1052,7 @@ export const init = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index b8cb16c99..8b2901d24 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -13,6 +13,7 @@ export type Action = | { AddGenericNervousSystemFunction: NervousSystemFunction } | { ManageDappCanisterSettings: ManageDappCanisterSettings } | { RemoveGenericNervousSystemFunction: bigint } + | { SetTopicsForCustomProposals: SetTopicsForCustomProposals } | { UpgradeSnsToNextVersion: {} } | { RegisterDappCanisters: RegisterDappCanisters } | { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds } @@ -570,6 +571,9 @@ export interface SetDissolveTimestamp { export interface SetMode { mode: number; } +export interface SetTopicsForCustomProposals { + custom_function_id_to_topic: Array<[bigint, Topic]>; +} export interface SnsVersion { archive_wasm_hash: [] | [Uint8Array | number[]]; root_wasm_hash: [] | [Uint8Array | number[]]; diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index d38420e56..da63504d9 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -7,6 +7,7 @@ type Account = record { type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; AddGenericNervousSystemFunction : NervousSystemFunction; + SetTopicsForCustomProposals : SetTopicsForCustomProposals; ManageDappCanisterSettings : ManageDappCanisterSettings; RemoveGenericNervousSystemFunction : nat64; UpgradeSnsToNextVersion : record {}; @@ -395,6 +396,10 @@ type AdvanceSnsTargetVersion = record { new_target : opt SnsVersion; }; +type SetTopicsForCustomProposals = record { + custom_function_id_to_topic : vec record { nat64; Topic }; +}; + type ManageLedgerParameters = record { token_symbol : opt text; transfer_fee : opt nat64; diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index 1532e7bab..87a63a9ab 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, @@ -1000,6 +1004,9 @@ export const init = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -1057,6 +1064,7 @@ export const init = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index e6576e43e..b50d491bd 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, @@ -1016,6 +1020,9 @@ export const init = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -1073,6 +1080,7 @@ export const init = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index 3cf549249..3be7d1431 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -13,6 +13,7 @@ export type Action = | { AddGenericNervousSystemFunction: NervousSystemFunction } | { ManageDappCanisterSettings: ManageDappCanisterSettings } | { RemoveGenericNervousSystemFunction: bigint } + | { SetTopicsForCustomProposals: SetTopicsForCustomProposals } | { UpgradeSnsToNextVersion: {} } | { RegisterDappCanisters: RegisterDappCanisters } | { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds } @@ -585,6 +586,9 @@ export interface SetDissolveTimestamp { export interface SetMode { mode: number; } +export interface SetTopicsForCustomProposals { + custom_function_id_to_topic: Array<[bigint, Topic]>; +} export interface SnsVersion { archive_wasm_hash: [] | [Uint8Array | number[]]; root_wasm_hash: [] | [Uint8Array | number[]]; diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index 867919cf0..6c83d9d04 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 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -7,6 +7,7 @@ type Account = record { type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; AddGenericNervousSystemFunction : NervousSystemFunction; + SetTopicsForCustomProposals : SetTopicsForCustomProposals; ManageDappCanisterSettings : ManageDappCanisterSettings; RemoveGenericNervousSystemFunction : nat64; UpgradeSnsToNextVersion : record {}; @@ -404,6 +405,10 @@ type AdvanceSnsTargetVersion = record { new_target : opt SnsVersion; }; +type SetTopicsForCustomProposals = record { + custom_function_id_to_topic : vec record { nat64; Topic }; +}; + type ManageLedgerParameters = record { token_symbol : opt text; transfer_fee : opt nat64; diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index ff5e659eb..f24c5c9bf 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, @@ -1028,6 +1032,9 @@ export const init = ({ IDL }) => { 'memory_allocation' : IDL.Opt(IDL.Nat64), 'compute_allocation' : IDL.Opt(IDL.Nat64), }); + const SetTopicsForCustomProposals = IDL.Record({ + 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)), + }); const RegisterDappCanisters = IDL.Record({ 'canister_ids' : IDL.Vec(IDL.Principal), }); @@ -1085,6 +1092,7 @@ export const init = ({ IDL }) => { 'AddGenericNervousSystemFunction' : NervousSystemFunction, 'ManageDappCanisterSettings' : ManageDappCanisterSettings, 'RemoveGenericNervousSystemFunction' : IDL.Nat64, + 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals, 'UpgradeSnsToNextVersion' : IDL.Record({}), 'RegisterDappCanisters' : RegisterDappCanisters, 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds, diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index 7470259d0..87497c933 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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 4503b1612..e15c7e3d8 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// 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 +// Generated from IC repo commit 9769228 (2025-02-13 tags: release-2025-03-06_03-10-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;