@dfinity/sns 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/candid/sns_governance.certified.idl.js +3 -10
- package/dist/candid/sns_governance.d.ts +2 -1
- package/dist/candid/sns_governance.did +272 -51
- package/dist/candid/sns_governance.idl.js +3 -10
- package/dist/candid/sns_governance_test.certified.idl.js +3 -10
- package/dist/candid/sns_governance_test.d.ts +2 -1
- package/dist/candid/sns_governance_test.did +282 -53
- package/dist/candid/sns_governance_test.idl.js +3 -10
- package/dist/candid/sns_root.certified.idl.js +1 -2
- package/dist/candid/sns_root.d.ts +1 -1
- package/dist/candid/sns_root.did +61 -13
- package/dist/candid/sns_root.idl.js +1 -2
- package/dist/candid/sns_swap.certified.idl.js +1 -0
- package/dist/candid/sns_swap.d.ts +1 -0
- package/dist/candid/sns_swap.did +192 -36
- package/dist/candid/sns_swap.idl.js +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-5YPS4ZYR.js +2 -0
- package/dist/esm/chunk-5YPS4ZYR.js.map +7 -0
- package/dist/esm/{chunk-TVXJJLBF.js → chunk-7V3B657R.js} +2 -2
- package/dist/esm/chunk-JY2TPU5D.js +2 -0
- package/dist/esm/chunk-JY2TPU5D.js.map +7 -0
- package/dist/esm/chunk-ODQ7CAD7.js +2 -0
- package/dist/esm/chunk-ODQ7CAD7.js.map +7 -0
- package/dist/esm/{chunk-CQAJ2SZB.js → chunk-Q55ZUKOX.js} +2 -2
- package/dist/esm/{chunk-CQAJ2SZB.js.map → chunk-Q55ZUKOX.js.map} +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/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/esm/swap.canister.js +1 -1
- package/package.json +6 -6
- package/dist/esm/chunk-7CU6QPD4.js +0 -2
- package/dist/esm/chunk-7CU6QPD4.js.map +0 -7
- package/dist/esm/chunk-C7HBQQIL.js +0 -2
- package/dist/esm/chunk-C7HBQQIL.js.map +0 -7
- package/dist/esm/chunk-K2WYATWO.js +0 -2
- package/dist/esm/chunk-K2WYATWO.js.map +0 -7
- /package/dist/esm/{chunk-TVXJJLBF.js.map → chunk-7V3B657R.js.map} +0 -0
|
@@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
374
374
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
375
375
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
376
376
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
377
|
+
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
377
378
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
378
379
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
379
380
|
});
|
|
@@ -399,18 +400,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
399
400
|
const NeuronRecipes = IDL.Record({
|
|
400
401
|
'neuron_recipes' : IDL.Vec(NeuronRecipe),
|
|
401
402
|
});
|
|
402
|
-
const NeuronParameters = IDL.Record({
|
|
403
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
404
|
-
'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
405
|
-
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
406
|
-
'stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
407
|
-
'followees' : IDL.Vec(NeuronId),
|
|
408
|
-
'hotkey' : IDL.Opt(IDL.Principal),
|
|
409
|
-
'neuron_id' : IDL.Opt(NeuronId),
|
|
410
|
-
});
|
|
411
403
|
const ClaimSwapNeuronsRequest = IDL.Record({
|
|
412
404
|
'neuron_recipes' : IDL.Opt(NeuronRecipes),
|
|
413
|
-
'neuron_parameters' : IDL.Vec(NeuronParameters),
|
|
414
405
|
});
|
|
415
406
|
const SwapNeuron = IDL.Record({
|
|
416
407
|
'id' : IDL.Opt(NeuronId),
|
|
@@ -453,6 +444,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
453
444
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
454
445
|
'freezing_threshold' : IDL.Nat,
|
|
455
446
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
447
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
456
448
|
'memory_allocation' : IDL.Nat,
|
|
457
449
|
'compute_allocation' : IDL.Nat,
|
|
458
450
|
});
|
|
@@ -983,6 +975,7 @@ export const init = ({ IDL }) => {
|
|
|
983
975
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
984
976
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
985
977
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
978
|
+
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
986
979
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
987
980
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
988
981
|
});
|
|
@@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
374
374
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
375
375
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
376
376
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
377
|
+
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
377
378
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
378
379
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
379
380
|
});
|
|
@@ -406,18 +407,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
406
407
|
const NeuronRecipes = IDL.Record({
|
|
407
408
|
'neuron_recipes' : IDL.Vec(NeuronRecipe),
|
|
408
409
|
});
|
|
409
|
-
const NeuronParameters = IDL.Record({
|
|
410
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
411
|
-
'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
412
|
-
'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
413
|
-
'stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
414
|
-
'followees' : IDL.Vec(NeuronId),
|
|
415
|
-
'hotkey' : IDL.Opt(IDL.Principal),
|
|
416
|
-
'neuron_id' : IDL.Opt(NeuronId),
|
|
417
|
-
});
|
|
418
410
|
const ClaimSwapNeuronsRequest = IDL.Record({
|
|
419
411
|
'neuron_recipes' : IDL.Opt(NeuronRecipes),
|
|
420
|
-
'neuron_parameters' : IDL.Vec(NeuronParameters),
|
|
421
412
|
});
|
|
422
413
|
const SwapNeuron = IDL.Record({
|
|
423
414
|
'id' : IDL.Opt(NeuronId),
|
|
@@ -460,6 +451,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
460
451
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
461
452
|
'freezing_threshold' : IDL.Nat,
|
|
462
453
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
454
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
463
455
|
'memory_allocation' : IDL.Nat,
|
|
464
456
|
'compute_allocation' : IDL.Nat,
|
|
465
457
|
});
|
|
@@ -989,6 +981,7 @@ export const init = ({ IDL }) => {
|
|
|
989
981
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
990
982
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
991
983
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
984
|
+
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
992
985
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
993
986
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
994
987
|
});
|
|
@@ -74,7 +74,6 @@ export interface ClaimOrRefreshResponse {
|
|
|
74
74
|
}
|
|
75
75
|
export interface ClaimSwapNeuronsRequest {
|
|
76
76
|
neuron_recipes: [] | [NeuronRecipes];
|
|
77
|
-
neuron_parameters: Array<NeuronParameters>;
|
|
78
77
|
}
|
|
79
78
|
export interface ClaimSwapNeuronsResponse {
|
|
80
79
|
claim_swap_neurons_result: [] | [ClaimSwapNeuronsResult];
|
|
@@ -138,6 +137,7 @@ export interface DefaultFollowees {
|
|
|
138
137
|
export interface DefiniteCanisterSettingsArgs {
|
|
139
138
|
freezing_threshold: bigint;
|
|
140
139
|
controllers: Array<Principal>;
|
|
140
|
+
wasm_memory_limit: [] | [bigint];
|
|
141
141
|
memory_allocation: bigint;
|
|
142
142
|
compute_allocation: bigint;
|
|
143
143
|
}
|
|
@@ -241,6 +241,7 @@ export interface Governance {
|
|
|
241
241
|
proposals: Array<[bigint, ProposalData]>;
|
|
242
242
|
in_flight_commands: Array<[string, NeuronInFlightCommand]>;
|
|
243
243
|
sns_metadata: [] | [ManageSnsMetadata];
|
|
244
|
+
migrated_root_wasm_memory_limit: [] | [boolean];
|
|
244
245
|
neurons: Array<[string, Neuron]>;
|
|
245
246
|
genesis_timestamp_seconds: bigint;
|
|
246
247
|
}
|