diff --git a/packages/sns/candid/sns_governance.certified.idl.js b/packages/sns/candid/sns_governance.certified.idl.js index 511fcfe4..711f7a7e 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 b8cb16c9..8b2901d2 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 d38420e5..1f06af97 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 9769228872 (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 1532e7ba..87a63a9a 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 e6576e43..b50d491b 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 3cf54924..3be7d143 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 867919cf..30258551 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 9769228872 (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 ff5e659e..f24c5c9b 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 7470259d..f7581ded 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 9769228872 (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 4503b161..1c4cf9d2 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 9769228872 (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;