Skip to content

Commit

Permalink
chore: update sns Candid Files
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Mar 7, 2025
1 parent 03af972 commit e78fd2d
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 4 deletions.
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down Expand Up @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down Expand Up @@ -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),
});
Expand Down Expand Up @@ -1045,6 +1052,7 @@ export const init = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down
4 changes: 4 additions & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Action =
| { AddGenericNervousSystemFunction: NervousSystemFunction }
| { ManageDappCanisterSettings: ManageDappCanisterSettings }
| { RemoveGenericNervousSystemFunction: bigint }
| { SetTopicsForCustomProposals: SetTopicsForCustomProposals }
| { UpgradeSnsToNextVersion: {} }
| { RegisterDappCanisters: RegisterDappCanisters }
| { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds }
Expand Down Expand Up @@ -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[]];
Expand Down
7 changes: 6 additions & 1 deletion packages/sns/candid/sns_governance.did
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -7,6 +7,7 @@ type Account = record {
type Action = variant {
ManageNervousSystemParameters : NervousSystemParameters;
AddGenericNervousSystemFunction : NervousSystemFunction;
SetTopicsForCustomProposals : SetTopicsForCustomProposals;
ManageDappCanisterSettings : ManageDappCanisterSettings;
RemoveGenericNervousSystemFunction : nat64;
UpgradeSnsToNextVersion : record {};
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down Expand Up @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down Expand Up @@ -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),
});
Expand Down Expand Up @@ -1057,6 +1064,7 @@ export const init = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance_test.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down Expand Up @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down Expand Up @@ -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),
});
Expand Down Expand Up @@ -1073,6 +1080,7 @@ export const init = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down
4 changes: 4 additions & 0 deletions packages/sns/candid/sns_governance_test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Action =
| { AddGenericNervousSystemFunction: NervousSystemFunction }
| { ManageDappCanisterSettings: ManageDappCanisterSettings }
| { RemoveGenericNervousSystemFunction: bigint }
| { SetTopicsForCustomProposals: SetTopicsForCustomProposals }
| { UpgradeSnsToNextVersion: {} }
| { RegisterDappCanisters: RegisterDappCanisters }
| { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds }
Expand Down Expand Up @@ -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[]];
Expand Down
7 changes: 6 additions & 1 deletion packages/sns/candid/sns_governance_test.did
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -7,6 +7,7 @@ type Account = record {
type Action = variant {
ManageNervousSystemParameters : NervousSystemParameters;
AddGenericNervousSystemFunction : NervousSystemFunction;
SetTopicsForCustomProposals : SetTopicsForCustomProposals;
ManageDappCanisterSettings : ManageDappCanisterSettings;
RemoveGenericNervousSystemFunction : nat64;
UpgradeSnsToNextVersion : record {};
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance_test.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down Expand Up @@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down Expand Up @@ -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),
});
Expand Down Expand Up @@ -1085,6 +1092,7 @@ export const init = ({ IDL }) => {
'AddGenericNervousSystemFunction' : NervousSystemFunction,
'ManageDappCanisterSettings' : ManageDappCanisterSettings,
'RemoveGenericNervousSystemFunction' : IDL.Nat64,
'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
'UpgradeSnsToNextVersion' : IDL.Record({}),
'RegisterDappCanisters' : RegisterDappCanisters,
'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/candid/sns_root.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/candid/sns_swap.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit e78fd2d

Please sign in to comment.