@dfinity/nns 5.1.2 → 5.2.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 +37 -35
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +70 -13
- package/dist/candid/governance.d.ts +26 -5
- package/dist/candid/governance.did +25 -4
- package/dist/candid/governance.idl.js +70 -13
- package/dist/candid/governance_test.certified.idl.js +70 -13
- package/dist/candid/governance_test.d.ts +26 -5
- package/dist/candid/governance_test.did +25 -4
- package/dist/candid/governance_test.idl.js +70 -13
- package/dist/candid/old_list_neurons_service.certified.idl.d.ts +2 -0
- package/dist/candid/old_list_neurons_service.certified.idl.js +78 -0
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-ZSTGGZGS.js +19 -0
- package/dist/esm/chunk-ZSTGGZGS.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/types/canisters/governance/request.converters.d.ts +4 -1
- package/dist/types/canisters/governance/response.converters.d.ts +8 -1
- package/dist/types/enums/governance.enums.d.ts +3 -1
- package/dist/types/governance.canister.d.ts +4 -1
- package/dist/types/governance_test.canister.d.ts +2 -1
- package/dist/types/types/governance.options.d.ts +2 -0
- package/package.json +6 -6
- package/dist/esm/chunk-AN6DZS5M.js +0 -19
- package/dist/esm/chunk-AN6DZS5M.js.map +0 -7
|
@@ -308,9 +308,34 @@ export const idlFactory = ({ IDL }) => {
|
|
|
308
308
|
'caller' : IDL.Opt(IDL.Principal),
|
|
309
309
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
310
310
|
});
|
|
311
|
-
const
|
|
311
|
+
const XdrConversionRate = IDL.Record({
|
|
312
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
313
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
314
|
+
});
|
|
315
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
316
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
317
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
318
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
312
319
|
'timestamp' : IDL.Nat64,
|
|
313
320
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
321
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
322
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
323
|
+
});
|
|
324
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
325
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
326
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
327
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
328
|
+
),
|
|
329
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
330
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
331
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
332
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
333
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
334
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
335
|
+
),
|
|
336
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
337
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
338
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
314
339
|
});
|
|
315
340
|
const GovernanceCachedMetrics = IDL.Record({
|
|
316
341
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -337,6 +362,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
362
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
363
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
364
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
365
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
366
|
+
IDL.Nat64
|
|
367
|
+
),
|
|
340
368
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
369
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
370
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +372,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
372
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
373
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
374
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
375
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
376
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
377
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
378
|
),
|
|
@@ -357,6 +386,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
386
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
358
387
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
359
388
|
),
|
|
389
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
390
|
+
NeuronSubsetMetrics
|
|
391
|
+
),
|
|
360
392
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
361
393
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
362
394
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -518,10 +550,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
518
550
|
IDL.Nat64
|
|
519
551
|
),
|
|
520
552
|
});
|
|
521
|
-
const XdrConversionRate = IDL.Record({
|
|
522
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
523
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
524
|
-
});
|
|
525
553
|
const Command_2 = IDL.Variant({
|
|
526
554
|
'Spawn' : NeuronId,
|
|
527
555
|
'Split' : Split,
|
|
@@ -572,7 +600,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
572
600
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
573
601
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
574
602
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
575
|
-
|
|
603
|
+
MonthlyNodeProviderRewards
|
|
576
604
|
),
|
|
577
605
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
578
606
|
IDL.Nat64
|
|
@@ -670,6 +698,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
670
698
|
});
|
|
671
699
|
const ListNeurons = IDL.Record({
|
|
672
700
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
701
|
+
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
673
702
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
674
703
|
});
|
|
675
704
|
const ListNeuronsResponse = IDL.Record({
|
|
@@ -795,7 +824,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
795
824
|
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
796
825
|
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
797
826
|
[],
|
|
798
|
-
[IDL.Opt(
|
|
827
|
+
[IDL.Opt(MonthlyNodeProviderRewards)],
|
|
799
828
|
['query'],
|
|
800
829
|
),
|
|
801
830
|
'get_network_economics_parameters' : IDL.Func(
|
|
@@ -1168,9 +1197,34 @@ export const init = ({ IDL }) => {
|
|
|
1168
1197
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1169
1198
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1170
1199
|
});
|
|
1171
|
-
const
|
|
1200
|
+
const XdrConversionRate = IDL.Record({
|
|
1201
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1202
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1203
|
+
});
|
|
1204
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1205
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1206
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
1207
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
1172
1208
|
'timestamp' : IDL.Nat64,
|
|
1173
1209
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1210
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1211
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
1212
|
+
});
|
|
1213
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
1214
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1215
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1216
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1217
|
+
),
|
|
1218
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1219
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
1220
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
1221
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1222
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1223
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1224
|
+
),
|
|
1225
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1226
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1227
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1174
1228
|
});
|
|
1175
1229
|
const GovernanceCachedMetrics = IDL.Record({
|
|
1176
1230
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -1197,6 +1251,9 @@ export const init = ({ IDL }) => {
|
|
|
1197
1251
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1198
1252
|
'total_locked_e8s' : IDL.Nat64,
|
|
1199
1253
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1254
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1255
|
+
IDL.Nat64
|
|
1256
|
+
),
|
|
1200
1257
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1201
1258
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1202
1259
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1204,6 +1261,7 @@ export const init = ({ IDL }) => {
|
|
|
1204
1261
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1205
1262
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1206
1263
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1264
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1207
1265
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1208
1266
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1209
1267
|
),
|
|
@@ -1217,6 +1275,9 @@ export const init = ({ IDL }) => {
|
|
|
1217
1275
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1218
1276
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1219
1277
|
),
|
|
1278
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
1279
|
+
NeuronSubsetMetrics
|
|
1280
|
+
),
|
|
1220
1281
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
1221
1282
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1222
1283
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1378,10 +1439,6 @@ export const init = ({ IDL }) => {
|
|
|
1378
1439
|
IDL.Nat64
|
|
1379
1440
|
),
|
|
1380
1441
|
});
|
|
1381
|
-
const XdrConversionRate = IDL.Record({
|
|
1382
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1383
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1384
|
-
});
|
|
1385
1442
|
const Command_2 = IDL.Variant({
|
|
1386
1443
|
'Spawn' : NeuronId,
|
|
1387
1444
|
'Split' : Split,
|
|
@@ -1432,7 +1489,7 @@ export const init = ({ IDL }) => {
|
|
|
1432
1489
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1433
1490
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1434
1491
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1435
|
-
|
|
1492
|
+
MonthlyNodeProviderRewards
|
|
1436
1493
|
),
|
|
1437
1494
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
1438
1495
|
IDL.Nat64
|
|
@@ -308,9 +308,34 @@ export const idlFactory = ({ IDL }) => {
|
|
|
308
308
|
'caller' : IDL.Opt(IDL.Principal),
|
|
309
309
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
310
310
|
});
|
|
311
|
-
const
|
|
311
|
+
const XdrConversionRate = IDL.Record({
|
|
312
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
313
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
314
|
+
});
|
|
315
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
316
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
317
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
318
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
312
319
|
'timestamp' : IDL.Nat64,
|
|
313
320
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
321
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
322
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
323
|
+
});
|
|
324
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
325
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
326
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
327
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
328
|
+
),
|
|
329
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
330
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
331
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
332
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
333
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
334
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
335
|
+
),
|
|
336
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
337
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
338
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
314
339
|
});
|
|
315
340
|
const GovernanceCachedMetrics = IDL.Record({
|
|
316
341
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -337,6 +362,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
362
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
363
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
364
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
365
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
366
|
+
IDL.Nat64
|
|
367
|
+
),
|
|
340
368
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
369
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
370
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +372,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
372
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
373
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
374
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
375
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
376
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
377
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
378
|
),
|
|
@@ -357,6 +386,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
386
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
358
387
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
359
388
|
),
|
|
389
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
390
|
+
NeuronSubsetMetrics
|
|
391
|
+
),
|
|
360
392
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
361
393
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
362
394
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -518,10 +550,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
518
550
|
IDL.Nat64
|
|
519
551
|
),
|
|
520
552
|
});
|
|
521
|
-
const XdrConversionRate = IDL.Record({
|
|
522
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
523
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
524
|
-
});
|
|
525
553
|
const Command_2 = IDL.Variant({
|
|
526
554
|
'Spawn' : NeuronId,
|
|
527
555
|
'Split' : Split,
|
|
@@ -572,7 +600,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
572
600
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
573
601
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
574
602
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
575
|
-
|
|
603
|
+
MonthlyNodeProviderRewards
|
|
576
604
|
),
|
|
577
605
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
578
606
|
IDL.Nat64
|
|
@@ -670,6 +698,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
670
698
|
});
|
|
671
699
|
const ListNeurons = IDL.Record({
|
|
672
700
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
701
|
+
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
673
702
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
674
703
|
});
|
|
675
704
|
const ListNeuronsResponse = IDL.Record({
|
|
@@ -795,7 +824,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
795
824
|
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
796
825
|
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
797
826
|
[],
|
|
798
|
-
[IDL.Opt(
|
|
827
|
+
[IDL.Opt(MonthlyNodeProviderRewards)],
|
|
799
828
|
[],
|
|
800
829
|
),
|
|
801
830
|
'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
|
|
@@ -1153,9 +1182,34 @@ export const init = ({ IDL }) => {
|
|
|
1153
1182
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1154
1183
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1155
1184
|
});
|
|
1156
|
-
const
|
|
1185
|
+
const XdrConversionRate = IDL.Record({
|
|
1186
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1187
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1188
|
+
});
|
|
1189
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1190
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1191
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
1192
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
1157
1193
|
'timestamp' : IDL.Nat64,
|
|
1158
1194
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1195
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1196
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
1197
|
+
});
|
|
1198
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
1199
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1200
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1201
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1202
|
+
),
|
|
1203
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1204
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
1205
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
1206
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1207
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1208
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1209
|
+
),
|
|
1210
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1211
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1212
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1159
1213
|
});
|
|
1160
1214
|
const GovernanceCachedMetrics = IDL.Record({
|
|
1161
1215
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -1182,6 +1236,9 @@ export const init = ({ IDL }) => {
|
|
|
1182
1236
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1183
1237
|
'total_locked_e8s' : IDL.Nat64,
|
|
1184
1238
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1239
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1240
|
+
IDL.Nat64
|
|
1241
|
+
),
|
|
1185
1242
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1186
1243
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1187
1244
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1189,6 +1246,7 @@ export const init = ({ IDL }) => {
|
|
|
1189
1246
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1190
1247
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1191
1248
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1249
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1192
1250
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1193
1251
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1194
1252
|
),
|
|
@@ -1202,6 +1260,9 @@ export const init = ({ IDL }) => {
|
|
|
1202
1260
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1203
1261
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1204
1262
|
),
|
|
1263
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
1264
|
+
NeuronSubsetMetrics
|
|
1265
|
+
),
|
|
1205
1266
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
1206
1267
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1207
1268
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1363,10 +1424,6 @@ export const init = ({ IDL }) => {
|
|
|
1363
1424
|
IDL.Nat64
|
|
1364
1425
|
),
|
|
1365
1426
|
});
|
|
1366
|
-
const XdrConversionRate = IDL.Record({
|
|
1367
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1368
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1369
|
-
});
|
|
1370
1427
|
const Command_2 = IDL.Variant({
|
|
1371
1428
|
'Spawn' : NeuronId,
|
|
1372
1429
|
'Split' : Split,
|
|
@@ -1417,7 +1474,7 @@ export const init = ({ IDL }) => {
|
|
|
1417
1474
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1418
1475
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1419
1476
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1420
|
-
|
|
1477
|
+
MonthlyNodeProviderRewards
|
|
1421
1478
|
),
|
|
1422
1479
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
1423
1480
|
IDL.Nat64
|
|
@@ -208,9 +208,7 @@ export interface GlobalTimeOfDay {
|
|
|
208
208
|
export interface Governance {
|
|
209
209
|
default_followees: Array<[number, Followees]>;
|
|
210
210
|
making_sns_proposal: [] | [MakingSnsProposal];
|
|
211
|
-
most_recent_monthly_node_provider_rewards:
|
|
212
|
-
| []
|
|
213
|
-
| [MostRecentMonthlyNodeProviderRewards];
|
|
211
|
+
most_recent_monthly_node_provider_rewards: [] | [MonthlyNodeProviderRewards];
|
|
214
212
|
maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
|
|
215
213
|
wait_for_quiet_threshold_seconds: bigint;
|
|
216
214
|
metrics: [] | [GovernanceCachedMetrics];
|
|
@@ -252,11 +250,13 @@ export interface GovernanceCachedMetrics {
|
|
|
252
250
|
not_dissolving_neurons_count: bigint;
|
|
253
251
|
total_locked_e8s: bigint;
|
|
254
252
|
neurons_fund_total_active_neurons: bigint;
|
|
253
|
+
total_voting_power_non_self_authenticating_controller: [] | [bigint];
|
|
255
254
|
total_staked_maturity_e8s_equivalent: bigint;
|
|
256
255
|
not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
257
256
|
total_staked_e8s_ect: bigint;
|
|
258
257
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
|
|
259
258
|
dissolved_neurons_e8s: bigint;
|
|
259
|
+
total_staked_e8s_non_self_authenticating_controller: [] | [bigint];
|
|
260
260
|
dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
|
|
261
261
|
neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
|
|
262
262
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
|
|
@@ -264,6 +264,9 @@ export interface GovernanceCachedMetrics {
|
|
|
264
264
|
>;
|
|
265
265
|
dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
|
|
266
266
|
dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
267
|
+
non_self_authenticating_controller_neuron_subset_metrics:
|
|
268
|
+
| []
|
|
269
|
+
| [NeuronSubsetMetrics];
|
|
267
270
|
dissolving_neurons_count: bigint;
|
|
268
271
|
dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
|
|
269
272
|
total_staked_maturity_e8s_equivalent_seed: bigint;
|
|
@@ -321,6 +324,7 @@ export interface ListKnownNeuronsResponse {
|
|
|
321
324
|
}
|
|
322
325
|
export interface ListNeurons {
|
|
323
326
|
neuron_ids: BigUint64Array | bigint[];
|
|
327
|
+
include_empty_neurons_readable_by_caller: [] | [boolean];
|
|
324
328
|
include_neurons_readable_by_caller: boolean;
|
|
325
329
|
}
|
|
326
330
|
export interface ListNeuronsResponse {
|
|
@@ -384,9 +388,14 @@ export interface Migrations {
|
|
|
384
388
|
neuron_indexes_migration: [] | [Migration];
|
|
385
389
|
copy_inactive_neurons_to_stable_memory_migration: [] | [Migration];
|
|
386
390
|
}
|
|
387
|
-
export interface
|
|
391
|
+
export interface MonthlyNodeProviderRewards {
|
|
392
|
+
minimum_xdr_permyriad_per_icp: [] | [bigint];
|
|
393
|
+
registry_version: [] | [bigint];
|
|
394
|
+
node_providers: Array<NodeProvider>;
|
|
388
395
|
timestamp: bigint;
|
|
389
396
|
rewards: Array<RewardNodeProvider>;
|
|
397
|
+
xdr_conversion_rate: [] | [XdrConversionRate];
|
|
398
|
+
maximum_node_provider_rewards_e8s: [] | [bigint];
|
|
390
399
|
}
|
|
391
400
|
export interface Motion {
|
|
392
401
|
motion_text: string;
|
|
@@ -472,6 +481,18 @@ export interface NeuronStakeTransfer {
|
|
|
472
481
|
transfer_timestamp: bigint;
|
|
473
482
|
block_height: bigint;
|
|
474
483
|
}
|
|
484
|
+
export interface NeuronSubsetMetrics {
|
|
485
|
+
total_maturity_e8s_equivalent: [] | [bigint];
|
|
486
|
+
maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
|
|
487
|
+
voting_power_buckets: Array<[bigint, bigint]>;
|
|
488
|
+
total_staked_e8s: [] | [bigint];
|
|
489
|
+
count: [] | [bigint];
|
|
490
|
+
total_staked_maturity_e8s_equivalent: [] | [bigint];
|
|
491
|
+
staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
|
|
492
|
+
staked_e8s_buckets: Array<[bigint, bigint]>;
|
|
493
|
+
total_voting_power: [] | [bigint];
|
|
494
|
+
count_buckets: Array<[bigint, bigint]>;
|
|
495
|
+
}
|
|
475
496
|
export interface NeuronsFundAuditInfo {
|
|
476
497
|
final_neurons_fund_participation: [] | [NeuronsFundParticipation];
|
|
477
498
|
initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
|
|
@@ -793,7 +814,7 @@ export interface _SERVICE {
|
|
|
793
814
|
get_monthly_node_provider_rewards: ActorMethod<[], Result_4>;
|
|
794
815
|
get_most_recent_monthly_node_provider_rewards: ActorMethod<
|
|
795
816
|
[],
|
|
796
|
-
[] | [
|
|
817
|
+
[] | [MonthlyNodeProviderRewards]
|
|
797
818
|
>;
|
|
798
819
|
get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
|
|
799
820
|
get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : blob };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -159,7 +159,7 @@ type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
|
|
|
159
159
|
type Governance = record {
|
|
160
160
|
default_followees : vec record { int32; Followees };
|
|
161
161
|
making_sns_proposal : opt MakingSnsProposal;
|
|
162
|
-
most_recent_monthly_node_provider_rewards : opt
|
|
162
|
+
most_recent_monthly_node_provider_rewards : opt MonthlyNodeProviderRewards;
|
|
163
163
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
164
164
|
wait_for_quiet_threshold_seconds : nat64;
|
|
165
165
|
metrics : opt GovernanceCachedMetrics;
|
|
@@ -202,11 +202,13 @@ type GovernanceCachedMetrics = record {
|
|
|
202
202
|
not_dissolving_neurons_count : nat64;
|
|
203
203
|
total_locked_e8s : nat64;
|
|
204
204
|
neurons_fund_total_active_neurons : nat64;
|
|
205
|
+
total_voting_power_non_self_authenticating_controller : opt nat64;
|
|
205
206
|
total_staked_maturity_e8s_equivalent : nat64;
|
|
206
207
|
not_dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
207
208
|
total_staked_e8s_ect : nat64;
|
|
208
209
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
|
|
209
210
|
dissolved_neurons_e8s : nat64;
|
|
211
|
+
total_staked_e8s_non_self_authenticating_controller : opt nat64;
|
|
210
212
|
dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
|
|
211
213
|
neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
|
|
212
214
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
|
|
@@ -215,6 +217,7 @@ type GovernanceCachedMetrics = record {
|
|
|
215
217
|
};
|
|
216
218
|
dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
217
219
|
dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
220
|
+
non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
|
|
218
221
|
dissolving_neurons_count : nat64;
|
|
219
222
|
dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
|
|
220
223
|
total_staked_maturity_e8s_equivalent_seed : nat64;
|
|
@@ -262,6 +265,7 @@ type LedgerParameters = record {
|
|
|
262
265
|
type ListKnownNeuronsResponse = record { known_neurons : vec KnownNeuron };
|
|
263
266
|
type ListNeurons = record {
|
|
264
267
|
neuron_ids : vec nat64;
|
|
268
|
+
include_empty_neurons_readable_by_caller : opt bool;
|
|
265
269
|
include_neurons_readable_by_caller : bool;
|
|
266
270
|
};
|
|
267
271
|
type ListNeuronsResponse = record {
|
|
@@ -315,9 +319,14 @@ type Migrations = record {
|
|
|
315
319
|
neuron_indexes_migration : opt Migration;
|
|
316
320
|
copy_inactive_neurons_to_stable_memory_migration : opt Migration;
|
|
317
321
|
};
|
|
318
|
-
type
|
|
322
|
+
type MonthlyNodeProviderRewards = record {
|
|
323
|
+
minimum_xdr_permyriad_per_icp : opt nat64;
|
|
324
|
+
registry_version : opt nat64;
|
|
325
|
+
node_providers : vec NodeProvider;
|
|
319
326
|
timestamp : nat64;
|
|
320
327
|
rewards : vec RewardNodeProvider;
|
|
328
|
+
xdr_conversion_rate : opt XdrConversionRate;
|
|
329
|
+
maximum_node_provider_rewards_e8s : opt nat64;
|
|
321
330
|
};
|
|
322
331
|
type Motion = record { motion_text : text };
|
|
323
332
|
type NetworkEconomics = record {
|
|
@@ -397,6 +406,18 @@ type NeuronStakeTransfer = record {
|
|
|
397
406
|
transfer_timestamp : nat64;
|
|
398
407
|
block_height : nat64;
|
|
399
408
|
};
|
|
409
|
+
type NeuronSubsetMetrics = record {
|
|
410
|
+
total_maturity_e8s_equivalent : opt nat64;
|
|
411
|
+
maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
|
|
412
|
+
voting_power_buckets : vec record { nat64; nat64 };
|
|
413
|
+
total_staked_e8s : opt nat64;
|
|
414
|
+
count : opt nat64;
|
|
415
|
+
total_staked_maturity_e8s_equivalent : opt nat64;
|
|
416
|
+
staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
|
|
417
|
+
staked_e8s_buckets : vec record { nat64; nat64 };
|
|
418
|
+
total_voting_power : opt nat64;
|
|
419
|
+
count_buckets : vec record { nat64; nat64 };
|
|
420
|
+
};
|
|
400
421
|
type NeuronsFundAuditInfo = record {
|
|
401
422
|
final_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
402
423
|
initial_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
@@ -672,7 +693,7 @@ service : (Governance) -> {
|
|
|
672
693
|
get_metrics : () -> (Result_3) query;
|
|
673
694
|
get_monthly_node_provider_rewards : () -> (Result_4);
|
|
674
695
|
get_most_recent_monthly_node_provider_rewards : () -> (
|
|
675
|
-
opt
|
|
696
|
+
opt MonthlyNodeProviderRewards,
|
|
676
697
|
) query;
|
|
677
698
|
get_network_economics_parameters : () -> (NetworkEconomics) query;
|
|
678
699
|
get_neuron_ids : () -> (vec nat64) query;
|