@dfinity/sns 3.4.0 → 3.5.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/README.md +126 -97
- package/dist/candid/sns_governance.certified.idl.js +42 -0
- package/dist/candid/sns_governance.d.ts +18 -9
- package/dist/candid/sns_governance.did +23 -12
- package/dist/candid/sns_governance.idl.js +42 -0
- package/dist/candid/sns_governance_test.certified.idl.js +42 -0
- package/dist/candid/sns_governance_test.d.ts +18 -9
- package/dist/candid/sns_governance_test.did +23 -12
- package/dist/candid/sns_governance_test.idl.js +42 -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-CMVA2R27.js → chunk-63KCLBLM.js} +2 -2
- package/dist/esm/chunk-ERFZ4WF4.js +2 -0
- package/dist/esm/chunk-ERFZ4WF4.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/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 +2 -1
- 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 +14 -2
- package/package.json +3 -3
- 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-63KCLBLM.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,
|
|
@@ -641,6 +661,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
641
661
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
642
662
|
'Configure' : Configure,
|
|
643
663
|
'RegisterVote' : RegisterVote,
|
|
664
|
+
'SetFollowing' : SetFollowing,
|
|
644
665
|
'MakeProposal' : Proposal,
|
|
645
666
|
'StakeMaturity' : StakeMaturity,
|
|
646
667
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -677,6 +698,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
677
698
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
678
699
|
'Configure' : IDL.Record({}),
|
|
679
700
|
'RegisterVote' : IDL.Record({}),
|
|
701
|
+
'SetFollowing' : IDL.Record({}),
|
|
680
702
|
'MakeProposal' : GetProposal,
|
|
681
703
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
682
704
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1078,6 +1100,7 @@ export const init = ({ IDL }) => {
|
|
|
1078
1100
|
const ProposalData = IDL.Record({
|
|
1079
1101
|
'id' : IDL.Opt(ProposalId),
|
|
1080
1102
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1103
|
+
'topic' : IDL.Opt(Topic),
|
|
1081
1104
|
'action' : IDL.Nat64,
|
|
1082
1105
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1083
1106
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1129,6 +1152,17 @@ export const init = ({ IDL }) => {
|
|
|
1129
1152
|
'vote' : IDL.Int32,
|
|
1130
1153
|
'proposal' : IDL.Opt(ProposalId),
|
|
1131
1154
|
});
|
|
1155
|
+
const Followee = IDL.Record({
|
|
1156
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1157
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1158
|
+
});
|
|
1159
|
+
const FolloweesForTopic = IDL.Record({
|
|
1160
|
+
'topic' : IDL.Opt(Topic),
|
|
1161
|
+
'followees' : IDL.Vec(Followee),
|
|
1162
|
+
});
|
|
1163
|
+
const SetFollowing = IDL.Record({
|
|
1164
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1165
|
+
});
|
|
1132
1166
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1133
1167
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1134
1168
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1162,6 +1196,7 @@ export const init = ({ IDL }) => {
|
|
|
1162
1196
|
'DisburseMaturity' : DisburseMaturity,
|
|
1163
1197
|
'Configure' : Configure,
|
|
1164
1198
|
'RegisterVote' : RegisterVote,
|
|
1199
|
+
'SetFollowing' : SetFollowing,
|
|
1165
1200
|
'SyncCommand' : IDL.Record({}),
|
|
1166
1201
|
'MakeProposal' : Proposal,
|
|
1167
1202
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1196,6 +1231,13 @@ export const init = ({ IDL }) => {
|
|
|
1196
1231
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1197
1232
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1198
1233
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1234
|
+
'topic_followees' : IDL.Opt(
|
|
1235
|
+
IDL.Record({
|
|
1236
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1237
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1238
|
+
),
|
|
1239
|
+
})
|
|
1240
|
+
),
|
|
1199
1241
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1200
1242
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1201
1243
|
'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 };
|
|
@@ -431,6 +442,9 @@ export interface Neuron {
|
|
|
431
442
|
maturity_e8s_equivalent: bigint;
|
|
432
443
|
cached_neuron_stake_e8s: bigint;
|
|
433
444
|
created_timestamp_seconds: bigint;
|
|
445
|
+
topic_followees:
|
|
446
|
+
| []
|
|
447
|
+
| [{ topic_id_to_followees: Array<[number, FolloweesForTopic]> }];
|
|
434
448
|
source_nns_neuron_id: [] | [bigint];
|
|
435
449
|
auto_stake_maturity: [] | [boolean];
|
|
436
450
|
aging_since_timestamp_seconds: bigint;
|
|
@@ -451,15 +465,6 @@ export interface NeuronInFlightCommand {
|
|
|
451
465
|
command: [] | [Command_2];
|
|
452
466
|
timestamp: bigint;
|
|
453
467
|
}
|
|
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
468
|
export interface NeuronPermission {
|
|
464
469
|
principal: [] | [Principal];
|
|
465
470
|
permission_type: Int32Array | number[];
|
|
@@ -513,6 +518,7 @@ export interface Proposal {
|
|
|
513
518
|
export interface ProposalData {
|
|
514
519
|
id: [] | [ProposalId];
|
|
515
520
|
payload_text_rendering: [] | [string];
|
|
521
|
+
topic: [] | [Topic];
|
|
516
522
|
action: bigint;
|
|
517
523
|
failure_reason: [] | [GovernanceError];
|
|
518
524
|
action_auxiliary: [] | [ActionAuxiliary];
|
|
@@ -568,6 +574,9 @@ export interface RewardEvent {
|
|
|
568
574
|
export interface SetDissolveTimestamp {
|
|
569
575
|
dissolve_timestamp_seconds: bigint;
|
|
570
576
|
}
|
|
577
|
+
export interface SetFollowing {
|
|
578
|
+
topic_following: Array<FolloweesForTopic>;
|
|
579
|
+
}
|
|
571
580
|
export interface SetMode {
|
|
572
581
|
mode: number;
|
|
573
582
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 10e1480992 (2025-04-01) '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 {
|
|
@@ -492,6 +499,11 @@ type NervousSystemParameters = record {
|
|
|
492
499
|
automatically_advance_target_version : opt bool;
|
|
493
500
|
};
|
|
494
501
|
|
|
502
|
+
type FolloweesForTopic = record {
|
|
503
|
+
followees : vec Followee;
|
|
504
|
+
topic : opt Topic;
|
|
505
|
+
};
|
|
506
|
+
|
|
495
507
|
type Neuron = record {
|
|
496
508
|
id : opt NeuronId;
|
|
497
509
|
staked_maturity_e8s_equivalent : opt nat64;
|
|
@@ -507,6 +519,9 @@ type Neuron = record {
|
|
|
507
519
|
vesting_period_seconds : opt nat64;
|
|
508
520
|
disburse_maturity_in_progress : vec DisburseMaturityInProgress;
|
|
509
521
|
followees : vec record { nat64; Followees };
|
|
522
|
+
topic_followees : opt record {
|
|
523
|
+
topic_id_to_followees : vec record { int32; FolloweesForTopic };
|
|
524
|
+
};
|
|
510
525
|
neuron_fees_e8s : nat64;
|
|
511
526
|
};
|
|
512
527
|
|
|
@@ -514,6 +529,11 @@ type NeuronId = record {
|
|
|
514
529
|
id : blob;
|
|
515
530
|
};
|
|
516
531
|
|
|
532
|
+
type Followee = record {
|
|
533
|
+
neuron_id : opt NeuronId;
|
|
534
|
+
alias : opt text;
|
|
535
|
+
};
|
|
536
|
+
|
|
517
537
|
type NeuronIds = record {
|
|
518
538
|
neuron_ids : vec NeuronId;
|
|
519
539
|
};
|
|
@@ -523,16 +543,6 @@ type NeuronInFlightCommand = record {
|
|
|
523
543
|
timestamp : nat64;
|
|
524
544
|
};
|
|
525
545
|
|
|
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
546
|
type NeuronPermission = record {
|
|
537
547
|
"principal" : opt principal;
|
|
538
548
|
permission_type : vec int32;
|
|
@@ -612,6 +622,7 @@ type ProposalData = record {
|
|
|
612
622
|
minimum_yes_proportion_of_exercised : opt Percentage;
|
|
613
623
|
is_eligible_for_rewards : bool;
|
|
614
624
|
executed_timestamp_seconds : nat64;
|
|
625
|
+
topic : opt Topic;
|
|
615
626
|
};
|
|
616
627
|
|
|
617
628
|
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,
|
|
@@ -641,6 +661,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
641
661
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
642
662
|
'Configure' : Configure,
|
|
643
663
|
'RegisterVote' : RegisterVote,
|
|
664
|
+
'SetFollowing' : SetFollowing,
|
|
644
665
|
'MakeProposal' : Proposal,
|
|
645
666
|
'StakeMaturity' : StakeMaturity,
|
|
646
667
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -677,6 +698,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
677
698
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
678
699
|
'Configure' : IDL.Record({}),
|
|
679
700
|
'RegisterVote' : IDL.Record({}),
|
|
701
|
+
'SetFollowing' : IDL.Record({}),
|
|
680
702
|
'MakeProposal' : GetProposal,
|
|
681
703
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
682
704
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1090,6 +1112,7 @@ export const init = ({ IDL }) => {
|
|
|
1090
1112
|
const ProposalData = IDL.Record({
|
|
1091
1113
|
'id' : IDL.Opt(ProposalId),
|
|
1092
1114
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1115
|
+
'topic' : IDL.Opt(Topic),
|
|
1093
1116
|
'action' : IDL.Nat64,
|
|
1094
1117
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1095
1118
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1141,6 +1164,17 @@ export const init = ({ IDL }) => {
|
|
|
1141
1164
|
'vote' : IDL.Int32,
|
|
1142
1165
|
'proposal' : IDL.Opt(ProposalId),
|
|
1143
1166
|
});
|
|
1167
|
+
const Followee = IDL.Record({
|
|
1168
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1169
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1170
|
+
});
|
|
1171
|
+
const FolloweesForTopic = IDL.Record({
|
|
1172
|
+
'topic' : IDL.Opt(Topic),
|
|
1173
|
+
'followees' : IDL.Vec(Followee),
|
|
1174
|
+
});
|
|
1175
|
+
const SetFollowing = IDL.Record({
|
|
1176
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1177
|
+
});
|
|
1144
1178
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1145
1179
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1146
1180
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1174,6 +1208,7 @@ export const init = ({ IDL }) => {
|
|
|
1174
1208
|
'DisburseMaturity' : DisburseMaturity,
|
|
1175
1209
|
'Configure' : Configure,
|
|
1176
1210
|
'RegisterVote' : RegisterVote,
|
|
1211
|
+
'SetFollowing' : SetFollowing,
|
|
1177
1212
|
'SyncCommand' : IDL.Record({}),
|
|
1178
1213
|
'MakeProposal' : Proposal,
|
|
1179
1214
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1208,6 +1243,13 @@ export const init = ({ IDL }) => {
|
|
|
1208
1243
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1209
1244
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1210
1245
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1246
|
+
'topic_followees' : IDL.Opt(
|
|
1247
|
+
IDL.Record({
|
|
1248
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1249
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1250
|
+
),
|
|
1251
|
+
})
|
|
1252
|
+
),
|
|
1211
1253
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1212
1254
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1213
1255
|
'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,
|
|
@@ -652,6 +672,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
652
672
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
653
673
|
'Configure' : Configure,
|
|
654
674
|
'RegisterVote' : RegisterVote,
|
|
675
|
+
'SetFollowing' : SetFollowing,
|
|
655
676
|
'MakeProposal' : Proposal,
|
|
656
677
|
'StakeMaturity' : StakeMaturity,
|
|
657
678
|
'RemoveNeuronPermissions' : RemoveNeuronPermissions,
|
|
@@ -688,6 +709,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
688
709
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
689
710
|
'Configure' : IDL.Record({}),
|
|
690
711
|
'RegisterVote' : IDL.Record({}),
|
|
712
|
+
'SetFollowing' : IDL.Record({}),
|
|
691
713
|
'MakeProposal' : GetProposal,
|
|
692
714
|
'RemoveNeuronPermission' : IDL.Record({}),
|
|
693
715
|
'StakeMaturity' : StakeMaturityResponse,
|
|
@@ -1106,6 +1128,7 @@ export const init = ({ IDL }) => {
|
|
|
1106
1128
|
const ProposalData = IDL.Record({
|
|
1107
1129
|
'id' : IDL.Opt(ProposalId),
|
|
1108
1130
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
1131
|
+
'topic' : IDL.Opt(Topic),
|
|
1109
1132
|
'action' : IDL.Nat64,
|
|
1110
1133
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1111
1134
|
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
@@ -1157,6 +1180,17 @@ export const init = ({ IDL }) => {
|
|
|
1157
1180
|
'vote' : IDL.Int32,
|
|
1158
1181
|
'proposal' : IDL.Opt(ProposalId),
|
|
1159
1182
|
});
|
|
1183
|
+
const Followee = IDL.Record({
|
|
1184
|
+
'alias' : IDL.Opt(IDL.Text),
|
|
1185
|
+
'neuron_id' : IDL.Opt(NeuronId),
|
|
1186
|
+
});
|
|
1187
|
+
const FolloweesForTopic = IDL.Record({
|
|
1188
|
+
'topic' : IDL.Opt(Topic),
|
|
1189
|
+
'followees' : IDL.Vec(Followee),
|
|
1190
|
+
});
|
|
1191
|
+
const SetFollowing = IDL.Record({
|
|
1192
|
+
'topic_following' : IDL.Vec(FolloweesForTopic),
|
|
1193
|
+
});
|
|
1160
1194
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1161
1195
|
'amount_to_be_disbursed_e8s' : IDL.Nat64,
|
|
1162
1196
|
'to_account' : IDL.Opt(Account),
|
|
@@ -1190,6 +1224,7 @@ export const init = ({ IDL }) => {
|
|
|
1190
1224
|
'DisburseMaturity' : DisburseMaturity,
|
|
1191
1225
|
'Configure' : Configure,
|
|
1192
1226
|
'RegisterVote' : RegisterVote,
|
|
1227
|
+
'SetFollowing' : SetFollowing,
|
|
1193
1228
|
'SyncCommand' : IDL.Record({}),
|
|
1194
1229
|
'MakeProposal' : Proposal,
|
|
1195
1230
|
'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
|
|
@@ -1224,6 +1259,13 @@ export const init = ({ IDL }) => {
|
|
|
1224
1259
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1225
1260
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1226
1261
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1262
|
+
'topic_followees' : IDL.Opt(
|
|
1263
|
+
IDL.Record({
|
|
1264
|
+
'topic_id_to_followees' : IDL.Vec(
|
|
1265
|
+
IDL.Tuple(IDL.Int32, FolloweesForTopic)
|
|
1266
|
+
),
|
|
1267
|
+
})
|
|
1268
|
+
),
|
|
1227
1269
|
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
1228
1270
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
1229
1271
|
'aging_since_timestamp_seconds' : IDL.Nat64,
|
|
@@ -115,6 +115,7 @@ export type Command =
|
|
|
115
115
|
| { ClaimOrRefresh: ClaimOrRefresh }
|
|
116
116
|
| { Configure: Configure }
|
|
117
117
|
| { RegisterVote: RegisterVote }
|
|
118
|
+
| { SetFollowing: SetFollowing }
|
|
118
119
|
| { MakeProposal: Proposal }
|
|
119
120
|
| { StakeMaturity: StakeMaturity }
|
|
120
121
|
| { RemoveNeuronPermissions: RemoveNeuronPermissions }
|
|
@@ -129,6 +130,7 @@ export type Command_1 =
|
|
|
129
130
|
| { ClaimOrRefresh: ClaimOrRefreshResponse }
|
|
130
131
|
| { Configure: {} }
|
|
131
132
|
| { RegisterVote: {} }
|
|
133
|
+
| { SetFollowing: {} }
|
|
132
134
|
| { MakeProposal: GetProposal }
|
|
133
135
|
| { RemoveNeuronPermission: {} }
|
|
134
136
|
| { StakeMaturity: StakeMaturityResponse }
|
|
@@ -141,6 +143,7 @@ export type Command_2 =
|
|
|
141
143
|
| { DisburseMaturity: DisburseMaturity }
|
|
142
144
|
| { Configure: Configure }
|
|
143
145
|
| { RegisterVote: RegisterVote }
|
|
146
|
+
| { SetFollowing: SetFollowing }
|
|
144
147
|
| { SyncCommand: {} }
|
|
145
148
|
| { MakeProposal: Proposal }
|
|
146
149
|
| { FinalizeDisburseMaturity: FinalizeDisburseMaturity }
|
|
@@ -206,9 +209,17 @@ export interface Follow {
|
|
|
206
209
|
function_id: bigint;
|
|
207
210
|
followees: Array<NeuronId>;
|
|
208
211
|
}
|
|
212
|
+
export interface Followee {
|
|
213
|
+
alias: [] | [string];
|
|
214
|
+
neuron_id: [] | [NeuronId];
|
|
215
|
+
}
|
|
209
216
|
export interface Followees {
|
|
210
217
|
followees: Array<NeuronId>;
|
|
211
218
|
}
|
|
219
|
+
export interface FolloweesForTopic {
|
|
220
|
+
topic: [] | [Topic];
|
|
221
|
+
followees: Array<Followee>;
|
|
222
|
+
}
|
|
212
223
|
export type FunctionType =
|
|
213
224
|
| { NativeNervousSystemFunction: {} }
|
|
214
225
|
| { GenericNervousSystemFunction: GenericNervousSystemFunction };
|
|
@@ -446,6 +457,9 @@ export interface Neuron {
|
|
|
446
457
|
maturity_e8s_equivalent: bigint;
|
|
447
458
|
cached_neuron_stake_e8s: bigint;
|
|
448
459
|
created_timestamp_seconds: bigint;
|
|
460
|
+
topic_followees:
|
|
461
|
+
| []
|
|
462
|
+
| [{ topic_id_to_followees: Array<[number, FolloweesForTopic]> }];
|
|
449
463
|
source_nns_neuron_id: [] | [bigint];
|
|
450
464
|
auto_stake_maturity: [] | [boolean];
|
|
451
465
|
aging_since_timestamp_seconds: bigint;
|
|
@@ -466,15 +480,6 @@ export interface NeuronInFlightCommand {
|
|
|
466
480
|
command: [] | [Command_2];
|
|
467
481
|
timestamp: bigint;
|
|
468
482
|
}
|
|
469
|
-
export interface NeuronParameters {
|
|
470
|
-
controller: [] | [Principal];
|
|
471
|
-
dissolve_delay_seconds: [] | [bigint];
|
|
472
|
-
source_nns_neuron_id: [] | [bigint];
|
|
473
|
-
stake_e8s: [] | [bigint];
|
|
474
|
-
followees: Array<NeuronId>;
|
|
475
|
-
hotkey: [] | [Principal];
|
|
476
|
-
neuron_id: [] | [NeuronId];
|
|
477
|
-
}
|
|
478
483
|
export interface NeuronPermission {
|
|
479
484
|
principal: [] | [Principal];
|
|
480
485
|
permission_type: Int32Array | number[];
|
|
@@ -528,6 +533,7 @@ export interface Proposal {
|
|
|
528
533
|
export interface ProposalData {
|
|
529
534
|
id: [] | [ProposalId];
|
|
530
535
|
payload_text_rendering: [] | [string];
|
|
536
|
+
topic: [] | [Topic];
|
|
531
537
|
action: bigint;
|
|
532
538
|
failure_reason: [] | [GovernanceError];
|
|
533
539
|
action_auxiliary: [] | [ActionAuxiliary];
|
|
@@ -583,6 +589,9 @@ export interface RewardEvent {
|
|
|
583
589
|
export interface SetDissolveTimestamp {
|
|
584
590
|
dissolve_timestamp_seconds: bigint;
|
|
585
591
|
}
|
|
592
|
+
export interface SetFollowing {
|
|
593
|
+
topic_following: Array<FolloweesForTopic>;
|
|
594
|
+
}
|
|
586
595
|
export interface SetMode {
|
|
587
596
|
mode: number;
|
|
588
597
|
}
|