@dfinity/nns 5.1.1 → 5.1.2-next-2024-06-24
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/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +8 -0
- package/dist/candid/governance.d.ts +2 -0
- package/dist/candid/governance.did +3 -1
- package/dist/candid/governance.idl.js +8 -0
- package/dist/candid/governance_test.certified.idl.js +8 -0
- package/dist/candid/governance_test.d.ts +2 -0
- package/dist/candid/governance_test.did +3 -1
- package/dist/candid/governance_test.idl.js +8 -0
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-MXHDEJLX.js +19 -0
- package/dist/esm/chunk-MXHDEJLX.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/response.converters.d.ts +8 -1
- package/dist/types/governance_test.canister.d.ts +2 -1
- package/package.json +7 -7
- package/dist/esm/chunk-AN6DZS5M.js +0 -19
- package/dist/esm/chunk-AN6DZS5M.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit e3fca54 (2024-06-19 tags: release-2024-06-19_23-01-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
|
|
2
2
|
type AccountState = record {
|
|
3
3
|
authenticated_principal_id : opt principal;
|
|
4
4
|
successfully_transferred_neurons : vec TransferredNeuron;
|
|
@@ -337,6 +337,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
337
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
338
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
339
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
340
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
341
|
+
IDL.Nat64
|
|
342
|
+
),
|
|
340
343
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
344
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
345
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +347,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
347
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
348
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
349
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
350
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
351
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
352
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
353
|
),
|
|
@@ -1181,6 +1185,9 @@ export const init = ({ IDL }) => {
|
|
|
1181
1185
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1182
1186
|
'total_locked_e8s' : IDL.Nat64,
|
|
1183
1187
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1188
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1189
|
+
IDL.Nat64
|
|
1190
|
+
),
|
|
1184
1191
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1185
1192
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1186
1193
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1188,6 +1195,7 @@ export const init = ({ IDL }) => {
|
|
|
1188
1195
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1189
1196
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1190
1197
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1198
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1191
1199
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1192
1200
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1193
1201
|
),
|
|
@@ -252,11 +252,13 @@ export interface GovernanceCachedMetrics {
|
|
|
252
252
|
not_dissolving_neurons_count: bigint;
|
|
253
253
|
total_locked_e8s: bigint;
|
|
254
254
|
neurons_fund_total_active_neurons: bigint;
|
|
255
|
+
total_voting_power_non_self_authenticating_controller: [] | [bigint];
|
|
255
256
|
total_staked_maturity_e8s_equivalent: bigint;
|
|
256
257
|
not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
257
258
|
total_staked_e8s_ect: bigint;
|
|
258
259
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
|
|
259
260
|
dissolved_neurons_e8s: bigint;
|
|
261
|
+
total_staked_e8s_non_self_authenticating_controller: [] | [bigint];
|
|
260
262
|
dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
|
|
261
263
|
neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
|
|
262
264
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit e3fca54 (2024-06-19 tags: release-2024-06-19_23-01-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : blob };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -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 {
|
|
@@ -337,6 +337,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
337
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
338
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
339
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
340
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
341
|
+
IDL.Nat64
|
|
342
|
+
),
|
|
340
343
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
344
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
345
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +347,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
347
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
348
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
349
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
350
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
351
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
352
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
353
|
),
|
|
@@ -1197,6 +1201,9 @@ export const init = ({ IDL }) => {
|
|
|
1197
1201
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1198
1202
|
'total_locked_e8s' : IDL.Nat64,
|
|
1199
1203
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1204
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1205
|
+
IDL.Nat64
|
|
1206
|
+
),
|
|
1200
1207
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1201
1208
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1202
1209
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1204,6 +1211,7 @@ export const init = ({ IDL }) => {
|
|
|
1204
1211
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1205
1212
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1206
1213
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1214
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1207
1215
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1208
1216
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1209
1217
|
),
|
|
@@ -337,6 +337,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
337
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
338
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
339
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
340
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
341
|
+
IDL.Nat64
|
|
342
|
+
),
|
|
340
343
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
344
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
345
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +347,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
347
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
348
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
349
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
350
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
351
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
352
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
353
|
),
|
|
@@ -1182,6 +1186,9 @@ export const init = ({ IDL }) => {
|
|
|
1182
1186
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1183
1187
|
'total_locked_e8s' : IDL.Nat64,
|
|
1184
1188
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1189
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1190
|
+
IDL.Nat64
|
|
1191
|
+
),
|
|
1185
1192
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1186
1193
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1187
1194
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1189,6 +1196,7 @@ export const init = ({ IDL }) => {
|
|
|
1189
1196
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1190
1197
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1191
1198
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1199
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1192
1200
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1193
1201
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1194
1202
|
),
|
|
@@ -252,11 +252,13 @@ export interface GovernanceCachedMetrics {
|
|
|
252
252
|
not_dissolving_neurons_count: bigint;
|
|
253
253
|
total_locked_e8s: bigint;
|
|
254
254
|
neurons_fund_total_active_neurons: bigint;
|
|
255
|
+
total_voting_power_non_self_authenticating_controller: [] | [bigint];
|
|
255
256
|
total_staked_maturity_e8s_equivalent: bigint;
|
|
256
257
|
not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
257
258
|
total_staked_e8s_ect: bigint;
|
|
258
259
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
|
|
259
260
|
dissolved_neurons_e8s: bigint;
|
|
261
|
+
total_staked_e8s_non_self_authenticating_controller: [] | [bigint];
|
|
260
262
|
dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
|
|
261
263
|
neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
|
|
262
264
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit e3fca54 (2024-06-19 tags: release-2024-06-19_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;
|
|
@@ -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 {
|
|
@@ -337,6 +337,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
337
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
338
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
339
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
340
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
341
|
+
IDL.Nat64
|
|
342
|
+
),
|
|
340
343
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
344
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
345
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +347,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
347
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
348
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
349
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
350
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
351
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
352
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
353
|
),
|
|
@@ -1198,6 +1202,9 @@ export const init = ({ IDL }) => {
|
|
|
1198
1202
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1199
1203
|
'total_locked_e8s' : IDL.Nat64,
|
|
1200
1204
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1205
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1206
|
+
IDL.Nat64
|
|
1207
|
+
),
|
|
1201
1208
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1202
1209
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1203
1210
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1205,6 +1212,7 @@ export const init = ({ IDL }) => {
|
|
|
1205
1212
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1206
1213
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1207
1214
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1215
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1208
1216
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1209
1217
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1210
1218
|
),
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit e3fca54 (2024-06-19 tags: release-2024-06-19_23-01-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm };
|
|
3
3
|
type AddWasmResponse = record { result : opt Result };
|
|
4
4
|
type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution };
|