@dfinity/sns 3.4.0 → 3.5.0-next-2025-04-15
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/README.md +126 -97
- package/dist/candid/sns_governance.certified.idl.js +45 -0
- package/dist/candid/sns_governance.d.ts +23 -9
- package/dist/candid/sns_governance.did +29 -12
- package/dist/candid/sns_governance.idl.js +45 -0
- package/dist/candid/sns_governance_test.certified.idl.js +45 -0
- package/dist/candid/sns_governance_test.d.ts +23 -9
- package/dist/candid/sns_governance_test.did +29 -12
- package/dist/candid/sns_governance_test.idl.js +45 -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-Q55ZUKOX.js → chunk-TJDVNGQZ.js} +2 -2
- package/dist/esm/chunk-TJDVNGQZ.js.map +7 -0
- package/dist/esm/{chunk-CMVA2R27.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/esm/sns.wrapper.js +1 -1
- package/dist/types/converters/governance.converters.d.ts +3 -2
- package/dist/types/governance.canister.d.ts +7 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/sns.wrapper.d.ts +2 -1
- package/dist/types/types/governance.params.d.ts +15 -2
- package/package.json +7 -7
- package/dist/esm/chunk-IVTJXPAO.js +0 -2
- package/dist/esm/chunk-IVTJXPAO.js.map +0 -7
- package/dist/esm/chunk-Q55ZUKOX.js.map +0 -7
- /package/dist/esm/{chunk-CMVA2R27.js.map → chunk-V7RSNTZY.js.map} +0 -0
|
@@ -330,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
330
330
|
const ProposalData = IDL.Record({
|
|
331
331
|
'id' : IDL.Opt(ProposalId),
|
|
332
332
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
333
|
+
'topic' : IDL.Opt(Topic),
|
|
333
334
|
'action' : IDL.Nat64,
|
|
334
335
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
335
336
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -381,6 +382,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
381
382
|
'vote' : IDL.Int32,
|
|
382
383
|
'proposal' : IDL.Opt(ProposalId),
|
|
383
384
|
});
|
|
385
|
+
const Followee = IDL.Record({
|
|
386
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
387
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
388
|
+
});
|
|
389
|
+
const FolloweesForTopic = IDL.Record({
|
|
390
|
+
'topic' : IDL.Opt(Topic),
|
|
391
|
+
'followees' : IDL.Vec(Followee),
|
|
392
|
+
});
|
|
393
|
+
const SetFollowing = IDL.Record({
|
|
394
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
395
|
+
});
|
|
384
396
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
385
397
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
386
398
|
'to_account' : IDL.Opt(Account),
|
|
@@ -414,6 +426,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
414
426
|
'DisburseMaturity' : DisburseMaturity,
|
|
415
427
|
'Configure' : Configure,
|
|
416
428
|
'RegisterVote' : RegisterVote,
|
|
429
|
+
'SetFollowing' : SetFollowing,
|
|
417
430
|
'SyncCommand' : IDL.Record({}),
|
|
418
431
|
'MakeProposal' : Proposal,
|
|
419
432
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -448,6 +461,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
448
461
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
449
462
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
450
463
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
464
|
+
'topic_followees' : IDL.Opt(
|
|
465
|
+
IDL.Record({
|
|
466
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
467
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
468
|
+
),
|
|
469
|
+
})
|
|
470
|
+
),
|
|
451
471
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
452
472
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
453
473
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -607,16 +627,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
607
627
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
608
628
|
});
|
|
609
629
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
630
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
610
631
|
const ListProposals = IDL.Record({
|
|
611
632
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
612
633
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
613
634
|
'limit' : IDL.Nat32,
|
|
614
635
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
636
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
615
637
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
616
638
|
});
|
|
617
639
|
const ListProposalsResponse = IDL.Record({
|
|
618
640
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
619
641
|
'proposals' : IDL.Vec(ProposalData),
|
|
642
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
620
643
|
});
|
|
621
644
|
const ListTopicsRequest = IDL.Record({});
|
|
622
645
|
const TopicInfo = IDL.Record({
|
|
@@ -641,6 +664,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
641
664
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
642
665
|
'Configure' : Configure,
|
|
643
666
|
'RegisterVote' : RegisterVote,
|
|
667
|
+
'SetFollowing' : SetFollowing,
|
|
644
668
|
'MakeProposal' : Proposal,
|
|
645
669
|
'StakeMaturity' : StakeMaturity,
|
|
646
670
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -677,6 +701,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
677
701
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
678
702
|
'Configure' : IDL.Record({}),
|
|
679
703
|
'RegisterVote' : IDL.Record({}),
|
|
704
|
+
'SetFollowing' : IDL.Record({}),
|
|
680
705
|
'MakeProposal' : GetProposal,
|
|
681
706
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
682
707
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1078,6 +1103,7 @@ export const init = ({ IDL }) => {
|
|
|
1078
1103
|
const ProposalData = IDL.Record({
|
|
1079
1104
|
'id' : IDL.Opt(ProposalId),
|
|
1080
1105
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1106
|
+
'topic' : IDL.Opt(Topic),
|
|
1081
1107
|
'action' : IDL.Nat64,
|
|
1082
1108
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1083
1109
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1129,6 +1155,17 @@ export const init = ({ IDL }) => {
|
|
|
1129
1155
|
'vote' : IDL.Int32,
|
|
1130
1156
|
'proposal' : IDL.Opt(ProposalId),
|
|
1131
1157
|
});
|
|
1158
|
+
const Followee = IDL.Record({
|
|
1159
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1160
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1161
|
+
});
|
|
1162
|
+
const FolloweesForTopic = IDL.Record({
|
|
1163
|
+
'topic' : IDL.Opt(Topic),
|
|
1164
|
+
'followees' : IDL.Vec(Followee),
|
|
1165
|
+
});
|
|
1166
|
+
const SetFollowing = IDL.Record({
|
|
1167
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1168
|
+
});
|
|
1132
1169
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1133
1170
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1134
1171
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1162,6 +1199,7 @@ export const init = ({ IDL }) => {
|
|
|
1162
1199
|
'DisburseMaturity' : DisburseMaturity,
|
|
1163
1200
|
'Configure' : Configure,
|
|
1164
1201
|
'RegisterVote' : RegisterVote,
|
|
1202
|
+
'SetFollowing' : SetFollowing,
|
|
1165
1203
|
'SyncCommand' : IDL.Record({}),
|
|
1166
1204
|
'MakeProposal' : Proposal,
|
|
1167
1205
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1196,6 +1234,13 @@ export const init = ({ IDL }) => {
|
|
|
1196
1234
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1197
1235
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1198
1236
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1237
|
+
'topic_followees' : IDL.Opt(
|
|
1238
|
+
IDL.Record({
|
|
1239
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1240
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1241
|
+
),
|
|
1242
|
+
})
|
|
1243
|
+
),
|
|
1199
1244
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1200
1245
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1201
1246
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -104,6 +104,7 @@ export type Command =
|
|
|
104
104
|
| { ClaimOrRefresh: ClaimOrRefresh }
|
|
105
105
|
| { Configure: Configure }
|
|
106
106
|
| { RegisterVote: RegisterVote }
|
|
107
|
+
| { SetFollowing: SetFollowing }
|
|
107
108
|
| { MakeProposal: Proposal }
|
|
108
109
|
| { StakeMaturity: StakeMaturity }
|
|
109
110
|
| { RemoveNeuronPermissions: RemoveNeuronPermissions }
|
|
@@ -118,6 +119,7 @@ export type Command_1 =
|
|
|
118
119
|
| { ClaimOrRefresh: ClaimOrRefreshResponse }
|
|
119
120
|
| { Configure: {} }
|
|
120
121
|
| { RegisterVote: {} }
|
|
122
|
+
| { SetFollowing: {} }
|
|
121
123
|
| { MakeProposal: GetProposal }
|
|
122
124
|
| { RemoveNeuronPermission: {} }
|
|
123
125
|
| { StakeMaturity: StakeMaturityResponse }
|
|
@@ -130,6 +132,7 @@ export type Command_2 =
|
|
|
130
132
|
| { DisburseMaturity: DisburseMaturity }
|
|
131
133
|
| { Configure: Configure }
|
|
132
134
|
| { RegisterVote: RegisterVote }
|
|
135
|
+
| { SetFollowing: SetFollowing }
|
|
133
136
|
| { SyncCommand: {} }
|
|
134
137
|
| { MakeProposal: Proposal }
|
|
135
138
|
| { FinalizeDisburseMaturity: FinalizeDisburseMaturity }
|
|
@@ -195,9 +198,17 @@ export interface Follow {
|
|
|
195
198
|
function_id: bigint;
|
|
196
199
|
followees: Array<NeuronId>;
|
|
197
200
|
}
|
|
201
|
+
export interface Followee {
|
|
202
|
+
alias: [] | [string];
|
|
203
|
+
neuron_id: [] | [NeuronId];
|
|
204
|
+
}
|
|
198
205
|
export interface Followees {
|
|
199
206
|
followees: Array<NeuronId>;
|
|
200
207
|
}
|
|
208
|
+
export interface FolloweesForTopic {
|
|
209
|
+
topic: [] | [Topic];
|
|
210
|
+
followees: Array<Followee>;
|
|
211
|
+
}
|
|
201
212
|
export type FunctionType =
|
|
202
213
|
| { NativeNervousSystemFunction: {} }
|
|
203
214
|
| { GenericNervousSystemFunction: GenericNervousSystemFunction };
|
|
@@ -328,11 +339,13 @@ export interface ListProposals {
|
|
|
328
339
|
before_proposal: [] | [ProposalId];
|
|
329
340
|
limit: number;
|
|
330
341
|
exclude_type: BigUint64Array | bigint[];
|
|
342
|
+
include_topics: [] | [Array<TopicSelector>];
|
|
331
343
|
include_status: Int32Array | number[];
|
|
332
344
|
}
|
|
333
345
|
export interface ListProposalsResponse {
|
|
334
346
|
include_ballots_by_caller: [] | [boolean];
|
|
335
347
|
proposals: Array<ProposalData>;
|
|
348
|
+
include_topic_filtering: [] | [boolean];
|
|
336
349
|
}
|
|
337
350
|
export type ListTopicsRequest = {};
|
|
338
351
|
export interface ListTopicsResponse {
|
|
@@ -431,6 +444,9 @@ export interface Neuron {
|
|
|
431
444
|
maturity_e8s_equivalent: bigint;
|
|
432
445
|
cached_neuron_stake_e8s: bigint;
|
|
433
446
|
created_timestamp_seconds: bigint;
|
|
447
|
+
topic_followees:
|
|
448
|
+
| []
|
|
449
|
+
| [{ topic_id_to_followees: Array<[number, FolloweesForTopic]> }];
|
|
434
450
|
source_nns_neuron_id: [] | [bigint];
|
|
435
451
|
auto_stake_maturity: [] | [boolean];
|
|
436
452
|
aging_since_timestamp_seconds: bigint;
|
|
@@ -451,15 +467,6 @@ export interface NeuronInFlightCommand {
|
|
|
451
467
|
command: [] | [Command_2];
|
|
452
468
|
timestamp: bigint;
|
|
453
469
|
}
|
|
454
|
-
export interface NeuronParameters {
|
|
455
|
-
controller: [] | [Principal];
|
|
456
|
-
dissolve_delay_seconds: [] | [bigint];
|
|
457
|
-
source_nns_neuron_id: [] | [bigint];
|
|
458
|
-
stake_e8s: [] | [bigint];
|
|
459
|
-
followees: Array<NeuronId>;
|
|
460
|
-
hotkey: [] | [Principal];
|
|
461
|
-
neuron_id: [] | [NeuronId];
|
|
462
|
-
}
|
|
463
470
|
export interface NeuronPermission {
|
|
464
471
|
principal: [] | [Principal];
|
|
465
472
|
permission_type: Int32Array | number[];
|
|
@@ -513,6 +520,7 @@ export interface Proposal {
|
|
|
513
520
|
export interface ProposalData {
|
|
514
521
|
id: [] | [ProposalId];
|
|
515
522
|
payload_text_rendering: [] | [string];
|
|
523
|
+
topic: [] | [Topic];
|
|
516
524
|
action: bigint;
|
|
517
525
|
failure_reason: [] | [GovernanceError];
|
|
518
526
|
action_auxiliary: [] | [ActionAuxiliary];
|
|
@@ -568,6 +576,9 @@ export interface RewardEvent {
|
|
|
568
576
|
export interface SetDissolveTimestamp {
|
|
569
577
|
dissolve_timestamp_seconds: bigint;
|
|
570
578
|
}
|
|
579
|
+
export interface SetFollowing {
|
|
580
|
+
topic_following: Array<FolloweesForTopic>;
|
|
581
|
+
}
|
|
571
582
|
export interface SetMode {
|
|
572
583
|
mode: number;
|
|
573
584
|
}
|
|
@@ -643,6 +654,9 @@ export interface TopicInfo {
|
|
|
643
654
|
description: [] | [string];
|
|
644
655
|
custom_functions: [] | [Array<NervousSystemFunction>];
|
|
645
656
|
}
|
|
657
|
+
export interface TopicSelector {
|
|
658
|
+
topic: [] | [Topic];
|
|
659
|
+
}
|
|
646
660
|
export interface TransferSnsTreasuryFunds {
|
|
647
661
|
from_treasury: number;
|
|
648
662
|
to_principal: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 579b8ba3a3 (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;
|
|
@@ -98,6 +98,7 @@ type ClaimedSwapNeurons = record {
|
|
|
98
98
|
type Command = variant {
|
|
99
99
|
Split : Split;
|
|
100
100
|
Follow : Follow;
|
|
101
|
+
SetFollowing : SetFollowing;
|
|
101
102
|
DisburseMaturity : DisburseMaturity;
|
|
102
103
|
ClaimOrRefresh : ClaimOrRefresh;
|
|
103
104
|
Configure : Configure;
|
|
@@ -114,6 +115,7 @@ type Command_1 = variant {
|
|
|
114
115
|
Error : GovernanceError;
|
|
115
116
|
Split : SplitResponse;
|
|
116
117
|
Follow : record {};
|
|
118
|
+
SetFollowing : record {};
|
|
117
119
|
DisburseMaturity : DisburseMaturityResponse;
|
|
118
120
|
ClaimOrRefresh : ClaimOrRefreshResponse;
|
|
119
121
|
Configure : record {};
|
|
@@ -129,6 +131,7 @@ type Command_1 = variant {
|
|
|
129
131
|
type Command_2 = variant {
|
|
130
132
|
Split : Split;
|
|
131
133
|
Follow : Follow;
|
|
134
|
+
SetFollowing : SetFollowing;
|
|
132
135
|
DisburseMaturity : DisburseMaturity;
|
|
133
136
|
Configure : Configure;
|
|
134
137
|
RegisterVote : RegisterVote;
|
|
@@ -214,6 +217,10 @@ type Follow = record {
|
|
|
214
217
|
followees : vec NeuronId;
|
|
215
218
|
};
|
|
216
219
|
|
|
220
|
+
type SetFollowing = record {
|
|
221
|
+
topic_following : vec FolloweesForTopic;
|
|
222
|
+
};
|
|
223
|
+
|
|
217
224
|
type Followees = record {
|
|
218
225
|
followees : vec NeuronId;
|
|
219
226
|
};
|
|
@@ -228,7 +235,7 @@ type GenericNervousSystemFunction = record {
|
|
|
228
235
|
target_canister_id : opt principal;
|
|
229
236
|
validator_method_name : opt text;
|
|
230
237
|
target_method_name : opt text;
|
|
231
|
-
topic: opt Topic;
|
|
238
|
+
topic : opt Topic;
|
|
232
239
|
};
|
|
233
240
|
|
|
234
241
|
type GetMaturityModulationResponse = record {
|
|
@@ -365,10 +372,16 @@ type ListProposals = record {
|
|
|
365
372
|
limit : nat32;
|
|
366
373
|
exclude_type : vec nat64;
|
|
367
374
|
include_status : vec int32;
|
|
375
|
+
include_topics : opt vec TopicSelector;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
type TopicSelector = record {
|
|
379
|
+
topic : opt Topic;
|
|
368
380
|
};
|
|
369
381
|
|
|
370
382
|
type ListProposalsResponse = record {
|
|
371
383
|
include_ballots_by_caller : opt bool;
|
|
384
|
+
include_topic_filtering : opt bool;
|
|
372
385
|
proposals : vec ProposalData;
|
|
373
386
|
};
|
|
374
387
|
|
|
@@ -492,6 +505,11 @@ type NervousSystemParameters = record {
|
|
|
492
505
|
automatically_advance_target_version : opt bool;
|
|
493
506
|
};
|
|
494
507
|
|
|
508
|
+
type FolloweesForTopic = record {
|
|
509
|
+
followees : vec Followee;
|
|
510
|
+
topic : opt Topic;
|
|
511
|
+
};
|
|
512
|
+
|
|
495
513
|
type Neuron = record {
|
|
496
514
|
id : opt NeuronId;
|
|
497
515
|
staked_maturity_e8s_equivalent : opt nat64;
|
|
@@ -507,6 +525,9 @@ type Neuron = record {
|
|
|
507
525
|
vesting_period_seconds : opt nat64;
|
|
508
526
|
disburse_maturity_in_progress : vec DisburseMaturityInProgress;
|
|
509
527
|
followees : vec record { nat64; Followees };
|
|
528
|
+
topic_followees : opt record {
|
|
529
|
+
topic_id_to_followees : vec record { int32; FolloweesForTopic };
|
|
530
|
+
};
|
|
510
531
|
neuron_fees_e8s : nat64;
|
|
511
532
|
};
|
|
512
533
|
|
|
@@ -514,6 +535,11 @@ type NeuronId = record {
|
|
|
514
535
|
id : blob;
|
|
515
536
|
};
|
|
516
537
|
|
|
538
|
+
type Followee = record {
|
|
539
|
+
neuron_id : opt NeuronId;
|
|
540
|
+
alias : opt text;
|
|
541
|
+
};
|
|
542
|
+
|
|
517
543
|
type NeuronIds = record {
|
|
518
544
|
neuron_ids : vec NeuronId;
|
|
519
545
|
};
|
|
@@ -523,16 +549,6 @@ type NeuronInFlightCommand = record {
|
|
|
523
549
|
timestamp : nat64;
|
|
524
550
|
};
|
|
525
551
|
|
|
526
|
-
type NeuronParameters = record {
|
|
527
|
-
controller : opt principal;
|
|
528
|
-
dissolve_delay_seconds : opt nat64;
|
|
529
|
-
source_nns_neuron_id : opt nat64;
|
|
530
|
-
stake_e8s : opt nat64;
|
|
531
|
-
followees : vec NeuronId;
|
|
532
|
-
hotkey : opt principal;
|
|
533
|
-
neuron_id : opt NeuronId;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
552
|
type NeuronPermission = record {
|
|
537
553
|
"principal" : opt principal;
|
|
538
554
|
permission_type : vec int32;
|
|
@@ -612,6 +628,7 @@ type ProposalData = record {
|
|
|
612
628
|
minimum_yes_proportion_of_exercised : opt Percentage;
|
|
613
629
|
is_eligible_for_rewards : bool;
|
|
614
630
|
executed_timestamp_seconds : nat64;
|
|
631
|
+
topic : opt Topic;
|
|
615
632
|
};
|
|
616
633
|
|
|
617
634
|
type ProposalId = record {
|
|
@@ -330,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
330
330
|
const ProposalData = IDL.Record({
|
|
331
331
|
'id' : IDL.Opt(ProposalId),
|
|
332
332
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
333
|
+
'topic' : IDL.Opt(Topic),
|
|
333
334
|
'action' : IDL.Nat64,
|
|
334
335
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
335
336
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -381,6 +382,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
381
382
|
'vote' : IDL.Int32,
|
|
382
383
|
'proposal' : IDL.Opt(ProposalId),
|
|
383
384
|
});
|
|
385
|
+
const Followee = IDL.Record({
|
|
386
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
387
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
388
|
+
});
|
|
389
|
+
const FolloweesForTopic = IDL.Record({
|
|
390
|
+
'topic' : IDL.Opt(Topic),
|
|
391
|
+
'followees' : IDL.Vec(Followee),
|
|
392
|
+
});
|
|
393
|
+
const SetFollowing = IDL.Record({
|
|
394
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
395
|
+
});
|
|
384
396
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
385
397
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
386
398
|
'to_account' : IDL.Opt(Account),
|
|
@@ -414,6 +426,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
414
426
|
'DisburseMaturity' : DisburseMaturity,
|
|
415
427
|
'Configure' : Configure,
|
|
416
428
|
'RegisterVote' : RegisterVote,
|
|
429
|
+
'SetFollowing' : SetFollowing,
|
|
417
430
|
'SyncCommand' : IDL.Record({}),
|
|
418
431
|
'MakeProposal' : Proposal,
|
|
419
432
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -448,6 +461,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
448
461
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
449
462
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
450
463
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
464
|
+
'topic_followees' : IDL.Opt(
|
|
465
|
+
IDL.Record({
|
|
466
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
467
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
468
|
+
),
|
|
469
|
+
})
|
|
470
|
+
),
|
|
451
471
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
452
472
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
453
473
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -607,16 +627,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
607
627
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
608
628
|
});
|
|
609
629
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
630
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
610
631
|
const ListProposals = IDL.Record({
|
|
611
632
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
612
633
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
613
634
|
'limit' : IDL.Nat32,
|
|
614
635
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
636
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
615
637
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
616
638
|
});
|
|
617
639
|
const ListProposalsResponse = IDL.Record({
|
|
618
640
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
619
641
|
'proposals' : IDL.Vec(ProposalData),
|
|
642
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
620
643
|
});
|
|
621
644
|
const ListTopicsRequest = IDL.Record({});
|
|
622
645
|
const TopicInfo = IDL.Record({
|
|
@@ -641,6 +664,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
641
664
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
642
665
|
'Configure' : Configure,
|
|
643
666
|
'RegisterVote' : RegisterVote,
|
|
667
|
+
'SetFollowing' : SetFollowing,
|
|
644
668
|
'MakeProposal' : Proposal,
|
|
645
669
|
'StakeMaturity' : StakeMaturity,
|
|
646
670
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -677,6 +701,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
677
701
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
678
702
|
'Configure' : IDL.Record({}),
|
|
679
703
|
'RegisterVote' : IDL.Record({}),
|
|
704
|
+
'SetFollowing' : IDL.Record({}),
|
|
680
705
|
'MakeProposal' : GetProposal,
|
|
681
706
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
682
707
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1090,6 +1115,7 @@ export const init = ({ IDL }) => {
|
|
|
1090
1115
|
const ProposalData = IDL.Record({
|
|
1091
1116
|
'id' : IDL.Opt(ProposalId),
|
|
1092
1117
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1118
|
+
'topic' : IDL.Opt(Topic),
|
|
1093
1119
|
'action' : IDL.Nat64,
|
|
1094
1120
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1095
1121
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1141,6 +1167,17 @@ export const init = ({ IDL }) => {
|
|
|
1141
1167
|
'vote' : IDL.Int32,
|
|
1142
1168
|
'proposal' : IDL.Opt(ProposalId),
|
|
1143
1169
|
});
|
|
1170
|
+
const Followee = IDL.Record({
|
|
1171
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1172
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1173
|
+
});
|
|
1174
|
+
const FolloweesForTopic = IDL.Record({
|
|
1175
|
+
'topic' : IDL.Opt(Topic),
|
|
1176
|
+
'followees' : IDL.Vec(Followee),
|
|
1177
|
+
});
|
|
1178
|
+
const SetFollowing = IDL.Record({
|
|
1179
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1180
|
+
});
|
|
1144
1181
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1145
1182
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1146
1183
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1174,6 +1211,7 @@ export const init = ({ IDL }) => {
|
|
|
1174
1211
|
'DisburseMaturity' : DisburseMaturity,
|
|
1175
1212
|
'Configure' : Configure,
|
|
1176
1213
|
'RegisterVote' : RegisterVote,
|
|
1214
|
+
'SetFollowing' : SetFollowing,
|
|
1177
1215
|
'SyncCommand' : IDL.Record({}),
|
|
1178
1216
|
'MakeProposal' : Proposal,
|
|
1179
1217
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1208,6 +1246,13 @@ export const init = ({ IDL }) => {
|
|
|
1208
1246
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1209
1247
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1210
1248
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1249
|
+
'topic_followees' : IDL.Opt(
|
|
1250
|
+
IDL.Record({
|
|
1251
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1252
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1253
|
+
),
|
|
1254
|
+
})
|
|
1255
|
+
),
|
|
1211
1256
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1212
1257
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1213
1258
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -330,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
330
330
|
const ProposalData = IDL.Record({
|
|
331
331
|
'id' : IDL.Opt(ProposalId),
|
|
332
332
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
333
|
+
'topic' : IDL.Opt(Topic),
|
|
333
334
|
'action' : IDL.Nat64,
|
|
334
335
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
335
336
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -381,6 +382,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
381
382
|
'vote' : IDL.Int32,
|
|
382
383
|
'proposal' : IDL.Opt(ProposalId),
|
|
383
384
|
});
|
|
385
|
+
const Followee = IDL.Record({
|
|
386
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
387
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
388
|
+
});
|
|
389
|
+
const FolloweesForTopic = IDL.Record({
|
|
390
|
+
'topic' : IDL.Opt(Topic),
|
|
391
|
+
'followees' : IDL.Vec(Followee),
|
|
392
|
+
});
|
|
393
|
+
const SetFollowing = IDL.Record({
|
|
394
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
395
|
+
});
|
|
384
396
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
385
397
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
386
398
|
'to_account' : IDL.Opt(Account),
|
|
@@ -414,6 +426,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
414
426
|
'DisburseMaturity' : DisburseMaturity,
|
|
415
427
|
'Configure' : Configure,
|
|
416
428
|
'RegisterVote' : RegisterVote,
|
|
429
|
+
'SetFollowing' : SetFollowing,
|
|
417
430
|
'SyncCommand' : IDL.Record({}),
|
|
418
431
|
'MakeProposal' : Proposal,
|
|
419
432
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -448,6 +461,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
448
461
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
449
462
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
450
463
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
464
|
+
'topic_followees' : IDL.Opt(
|
|
465
|
+
IDL.Record({
|
|
466
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
467
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
468
|
+
),
|
|
469
|
+
})
|
|
470
|
+
),
|
|
451
471
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
452
472
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
453
473
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -618,16 +638,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
618
638
|
'start_page_at' : IDL.Opt(NeuronId),
|
|
619
639
|
});
|
|
620
640
|
const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
|
|
641
|
+
const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
|
|
621
642
|
const ListProposals = IDL.Record({
|
|
622
643
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
623
644
|
'before_proposal' : IDL.Opt(ProposalId),
|
|
624
645
|
'limit' : IDL.Nat32,
|
|
625
646
|
'exclude_type' : IDL.Vec(IDL.Nat64),
|
|
647
|
+
'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
|
|
626
648
|
'include_status' : IDL.Vec(IDL.Int32),
|
|
627
649
|
});
|
|
628
650
|
const ListProposalsResponse = IDL.Record({
|
|
629
651
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
630
652
|
'proposals' : IDL.Vec(ProposalData),
|
|
653
|
+
'include_topic_filtering' : IDL.Opt(IDL.Bool),
|
|
631
654
|
});
|
|
632
655
|
const ListTopicsRequest = IDL.Record({});
|
|
633
656
|
const TopicInfo = IDL.Record({
|
|
@@ -652,6 +675,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
652
675
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
653
676
|
'Configure' : Configure,
|
|
654
677
|
'RegisterVote' : RegisterVote,
|
|
678
|
+
'SetFollowing' : SetFollowing,
|
|
655
679
|
'MakeProposal' : Proposal,
|
|
656
680
|
'StakeMaturity' : StakeMaturity,
|
|
657
681
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -688,6 +712,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
688
712
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
689
713
|
'Configure' : IDL.Record({}),
|
|
690
714
|
'RegisterVote' : IDL.Record({}),
|
|
715
|
+
'SetFollowing' : IDL.Record({}),
|
|
691
716
|
'MakeProposal' : GetProposal,
|
|
692
717
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
693
718
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1106,6 +1131,7 @@ export const init = ({ IDL }) => {
|
|
|
1106
1131
|
const ProposalData = IDL.Record({
|
|
1107
1132
|
'id' : IDL.Opt(ProposalId),
|
|
1108
1133
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1134
|
+
'topic' : IDL.Opt(Topic),
|
|
1109
1135
|
'action' : IDL.Nat64,
|
|
1110
1136
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1111
1137
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1157,6 +1183,17 @@ export const init = ({ IDL }) => {
|
|
|
1157
1183
|
'vote' : IDL.Int32,
|
|
1158
1184
|
'proposal' : IDL.Opt(ProposalId),
|
|
1159
1185
|
});
|
|
1186
|
+
const Followee = IDL.Record({
|
|
1187
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1188
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1189
|
+
});
|
|
1190
|
+
const FolloweesForTopic = IDL.Record({
|
|
1191
|
+
'topic' : IDL.Opt(Topic),
|
|
1192
|
+
'followees' : IDL.Vec(Followee),
|
|
1193
|
+
});
|
|
1194
|
+
const SetFollowing = IDL.Record({
|
|
1195
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1196
|
+
});
|
|
1160
1197
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1161
1198
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1162
1199
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1190,6 +1227,7 @@ export const init = ({ IDL }) => {
|
|
|
1190
1227
|
'DisburseMaturity' : DisburseMaturity,
|
|
1191
1228
|
'Configure' : Configure,
|
|
1192
1229
|
'RegisterVote' : RegisterVote,
|
|
1230
|
+
'SetFollowing' : SetFollowing,
|
|
1193
1231
|
'SyncCommand' : IDL.Record({}),
|
|
1194
1232
|
'MakeProposal' : Proposal,
|
|
1195
1233
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1224,6 +1262,13 @@ export const init = ({ IDL }) => {
|
|
|
1224
1262
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1225
1263
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1226
1264
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1265
|
+
'topic_followees' : IDL.Opt(
|
|
1266
|
+
IDL.Record({
|
|
1267
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1268
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1269
|
+
),
|
|
1270
|
+
})
|
|
1271
|
+
),
|
|
1227
1272
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1228
1273
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1229
1274
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|