@dfinity/sns 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/candid/sns_governance.certified.idl.js +3 -0
- package/dist/candid/sns_governance.d.ts +5 -0
- package/dist/candid/sns_governance.did +7 -1
- package/dist/candid/sns_governance.idl.js +3 -0
- package/dist/candid/sns_governance_test.certified.idl.js +3 -0
- package/dist/candid/sns_governance_test.d.ts +5 -0
- package/dist/candid/sns_governance_test.did +7 -1
- package/dist/candid/sns_governance_test.idl.js +3 -0
- package/dist/candid/sns_root.did +1 -1
- package/dist/candid/sns_swap.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-HIRPCVPC.js +2 -0
- package/dist/esm/chunk-HIRPCVPC.js.map +7 -0
- package/dist/esm/{chunk-63KCLBLM.js → chunk-V7RSNTZY.js} +2 -2
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/sns.js +1 -1
- package/dist/types/converters/governance.converters.d.ts +1 -1
- package/dist/types/types/governance.params.d.ts +1 -0
- package/package.json +3 -3
- package/dist/esm/chunk-ERFZ4WF4.js +0 -2
- package/dist/esm/chunk-ERFZ4WF4.js.map +0 -7
- /package/dist/esm/{chunk-63KCLBLM.js.map → chunk-V7RSNTZY.js.map} +0 -0
|
@@ -627,16 +627,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
627
627
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
628
628
|
});
|
|
629
629
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
630
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
630
631
|
const ListProposals = IDL.Record({
|
|
631
632
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
632
633
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
633
634
|
'limit' : IDL.Nat32,
|
|
634
635
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
636
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
635
637
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
636
638
|
});
|
|
637
639
|
const ListProposalsResponse = IDL.Record({
|
|
638
640
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
639
641
|
'proposals' : IDL.Vec(ProposalData),
|
|
642
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
640
643
|
});
|
|
641
644
|
const ListTopicsRequest = IDL.Record({});
|
|
642
645
|
const TopicInfo = IDL.Record({
|
|
@@ -339,11 +339,13 @@ export interface ListProposals {
|
|
|
339
339
|
before_proposal: [] | [ProposalId];
|
|
340
340
|
limit: number;
|
|
341
341
|
exclude_type: BigUint64Array | bigint[];
|
|
342
|
+
include_topics: [] | [Array<TopicSelector>];
|
|
342
343
|
include_status: Int32Array | number[];
|
|
343
344
|
}
|
|
344
345
|
export interface ListProposalsResponse {
|
|
345
346
|
include_ballots_by_caller: [] | [boolean];
|
|
346
347
|
proposals: Array<ProposalData>;
|
|
348
|
+
include_topic_filtering: [] | [boolean];
|
|
347
349
|
}
|
|
348
350
|
export type ListTopicsRequest = {};
|
|
349
351
|
export interface ListTopicsResponse {
|
|
@@ -652,6 +654,9 @@ export interface TopicInfo {
|
|
|
652
654
|
description: [] | [string];
|
|
653
655
|
custom_functions: [] | [Array<NervousSystemFunction>];
|
|
654
656
|
}
|
|
657
|
+
export interface TopicSelector {
|
|
658
|
+
topic: [] | [Topic];
|
|
659
|
+
}
|
|
655
660
|
export interface TransferSnsTreasuryFunds {
|
|
656
661
|
from_treasury: number;
|
|
657
662
|
to_principal: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 579b8ba (2025-04-11 tags: release-2025-04-11_13-20-base) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -372,10 +372,16 @@ type ListProposals = record {
|
|
|
372
372
|
limit : nat32;
|
|
373
373
|
exclude_type : vec nat64;
|
|
374
374
|
include_status : vec int32;
|
|
375
|
+
include_topics : opt vec TopicSelector;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
type TopicSelector = record {
|
|
379
|
+
topic : opt Topic;
|
|
375
380
|
};
|
|
376
381
|
|
|
377
382
|
type ListProposalsResponse = record {
|
|
378
383
|
include_ballots_by_caller : opt bool;
|
|
384
|
+
include_topic_filtering : opt bool;
|
|
379
385
|
proposals : vec ProposalData;
|
|
380
386
|
};
|
|
381
387
|
|
|
@@ -627,16 +627,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
627
627
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
628
628
|
});
|
|
629
629
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
630
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
630
631
|
const ListProposals = IDL.Record({
|
|
631
632
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
632
633
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
633
634
|
'limit' : IDL.Nat32,
|
|
634
635
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
636
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
635
637
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
636
638
|
});
|
|
637
639
|
const ListProposalsResponse = IDL.Record({
|
|
638
640
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
639
641
|
'proposals' : IDL.Vec(ProposalData),
|
|
642
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
640
643
|
});
|
|
641
644
|
const ListTopicsRequest = IDL.Record({});
|
|
642
645
|
const TopicInfo = IDL.Record({
|
|
@@ -638,16 +638,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
638
638
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
639
639
|
});
|
|
640
640
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
641
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
641
642
|
const ListProposals = IDL.Record({
|
|
642
643
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
643
644
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
644
645
|
'limit' : IDL.Nat32,
|
|
645
646
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
647
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
646
648
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
647
649
|
});
|
|
648
650
|
const ListProposalsResponse = IDL.Record({
|
|
649
651
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
650
652
|
'proposals' : IDL.Vec(ProposalData),
|
|
653
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
651
654
|
});
|
|
652
655
|
const ListTopicsRequest = IDL.Record({});
|
|
653
656
|
const TopicInfo = IDL.Record({
|
|
@@ -350,11 +350,13 @@ export interface ListProposals {
|
|
|
350
350
|
before_proposal: [] | [ProposalId];
|
|
351
351
|
limit: number;
|
|
352
352
|
exclude_type: BigUint64Array | bigint[];
|
|
353
|
+
include_topics: [] | [Array<TopicSelector>];
|
|
353
354
|
include_status: Int32Array | number[];
|
|
354
355
|
}
|
|
355
356
|
export interface ListProposalsResponse {
|
|
356
357
|
include_ballots_by_caller: [] | [boolean];
|
|
357
358
|
proposals: Array<ProposalData>;
|
|
359
|
+
include_topic_filtering: [] | [boolean];
|
|
358
360
|
}
|
|
359
361
|
export type ListTopicsRequest = {};
|
|
360
362
|
export interface ListTopicsResponse {
|
|
@@ -667,6 +669,9 @@ export interface TopicInfo {
|
|
|
667
669
|
description: [] | [string];
|
|
668
670
|
custom_functions: [] | [Array<NervousSystemFunction>];
|
|
669
671
|
}
|
|
672
|
+
export interface TopicSelector {
|
|
673
|
+
topic: [] | [Topic];
|
|
674
|
+
}
|
|
670
675
|
export interface TransferSnsTreasuryFunds {
|
|
671
676
|
from_treasury: number;
|
|
672
677
|
to_principal: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 579b8ba (2025-04-11 tags: release-2025-04-11_13-20-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -381,10 +381,16 @@ type ListProposals = record {
|
|
|
381
381
|
limit : nat32;
|
|
382
382
|
exclude_type : vec nat64;
|
|
383
383
|
include_status : vec int32;
|
|
384
|
+
include_topics : opt vec TopicSelector;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
type TopicSelector = record {
|
|
388
|
+
topic : opt Topic;
|
|
384
389
|
};
|
|
385
390
|
|
|
386
391
|
type ListProposalsResponse = record {
|
|
387
392
|
include_ballots_by_caller : opt bool;
|
|
393
|
+
include_topic_filtering : opt bool;
|
|
388
394
|
proposals : vec ProposalData;
|
|
389
395
|
};
|
|
390
396
|
|
|
@@ -638,16 +638,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
638
638
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
639
639
|
});
|
|
640
640
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
641
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
641
642
|
const ListProposals = IDL.Record({
|
|
642
643
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
643
644
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
644
645
|
'limit' : IDL.Nat32,
|
|
645
646
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
647
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
646
648
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
647
649
|
});
|
|
648
650
|
const ListProposalsResponse = IDL.Record({
|
|
649
651
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
650
652
|
'proposals' : IDL.Vec(ProposalData),
|
|
653
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
651
654
|
});
|
|
652
655
|
const ListTopicsRequest = IDL.Record({});
|
|
653
656
|
const TopicInfo = IDL.Record({
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 579b8ba (2025-04-11 tags: release-2025-04-11_13-20-base) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record {
|
|
3
3
|
code : opt int32;
|
|
4
4
|
description : text;
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 579b8ba (2025-04-11 tags: release-2025-04-11_13-20-base) 'rs/sns/swap/canister/swap.did' by import-candid
|
|
2
2
|
type BuyerState = record {
|
|
3
3
|
icp : opt TransferableAmount;
|
|
4
4
|
has_created_neuron_recipes : opt bool;
|