@dfinity/nns 5.2.0 → 6.0.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 +46 -35
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +152 -10
- package/dist/candid/governance.d.ts +114 -3
- package/dist/candid/governance.did +107 -4
- package/dist/candid/governance.idl.js +152 -10
- package/dist/candid/governance_test.certified.idl.js +152 -10
- package/dist/candid/governance_test.d.ts +114 -3
- package/dist/candid/governance_test.did +107 -4
- package/dist/candid/governance_test.idl.js +152 -10
- package/dist/candid/sns_wasm.certified.idl.js +0 -13
- package/dist/candid/sns_wasm.d.ts +0 -13
- package/dist/candid/sns_wasm.did +1 -12
- package/dist/candid/sns_wasm.idl.js +0 -13
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-3GMJYFVP.js +2 -0
- package/dist/esm/chunk-3GMJYFVP.js.map +7 -0
- package/dist/esm/chunk-L6YE6E7N.js +19 -0
- package/dist/esm/chunk-L6YE6E7N.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_wasm.canister.js +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +10 -5
- package/dist/types/canisters/governance/services.d.ts +3 -3
- package/dist/types/enums/governance.enums.d.ts +32 -6
- package/dist/types/governance.canister.d.ts +9 -2
- package/dist/types/types/governance_converters.d.ts +108 -2
- package/package.json +6 -6
- package/dist/esm/chunk-RRSEQTKA.js +0 -2
- package/dist/esm/chunk-RRSEQTKA.js.map +0 -7
- package/dist/esm/chunk-ZSTGGZGS.js +0 -19
- package/dist/esm/chunk-ZSTGGZGS.js.map +0 -7
|
@@ -15,15 +15,6 @@ export interface AirdropDistribution {
|
|
|
15
15
|
export interface Canister {
|
|
16
16
|
id: [] | [Principal];
|
|
17
17
|
}
|
|
18
|
-
export interface CfNeuron {
|
|
19
|
-
has_created_neuron_recipes: [] | [boolean];
|
|
20
|
-
nns_neuron_id: bigint;
|
|
21
|
-
amount_icp_e8s: bigint;
|
|
22
|
-
}
|
|
23
|
-
export interface CfParticipant {
|
|
24
|
-
hotkey_principal: string;
|
|
25
|
-
cf_neurons: Array<CfNeuron>;
|
|
26
|
-
}
|
|
27
18
|
export interface Countries {
|
|
28
19
|
iso_codes: Array<string>;
|
|
29
20
|
}
|
|
@@ -153,9 +144,6 @@ export interface NeuronDistribution {
|
|
|
153
144
|
stake_e8s: bigint;
|
|
154
145
|
vesting_period_seconds: [] | [bigint];
|
|
155
146
|
}
|
|
156
|
-
export interface NeuronsFundParticipants {
|
|
157
|
-
participants: Array<CfParticipant>;
|
|
158
|
-
}
|
|
159
147
|
export interface NeuronsFundParticipationConstraints {
|
|
160
148
|
coefficient_intervals: Array<LinearScalingCoefficient>;
|
|
161
149
|
max_neurons_fund_participation_icp_e8s: [] | [bigint];
|
|
@@ -216,7 +204,6 @@ export interface SnsInitPayload {
|
|
|
216
204
|
neurons_fund_participation_constraints:
|
|
217
205
|
| []
|
|
218
206
|
| [NeuronsFundParticipationConstraints];
|
|
219
|
-
neurons_fund_participants: [] | [NeuronsFundParticipants];
|
|
220
207
|
max_age_bonus_percentage: [] | [bigint];
|
|
221
208
|
initial_token_distribution: [] | [InitialTokenDistribution];
|
|
222
209
|
reward_rate_transition_duration_seconds: [] | [bigint];
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) '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 };
|
|
5
5
|
type Canister = record { id : opt principal };
|
|
6
|
-
type CfNeuron = record {
|
|
7
|
-
has_created_neuron_recipes : opt bool;
|
|
8
|
-
nns_neuron_id : nat64;
|
|
9
|
-
amount_icp_e8s : nat64;
|
|
10
|
-
};
|
|
11
|
-
type CfParticipant = record {
|
|
12
|
-
hotkey_principal : text;
|
|
13
|
-
cf_neurons : vec CfNeuron;
|
|
14
|
-
};
|
|
15
6
|
type Countries = record { iso_codes : vec text };
|
|
16
7
|
type DappCanisters = record { canisters : vec Canister };
|
|
17
8
|
type DappCanistersTransferResult = record {
|
|
@@ -110,7 +101,6 @@ type NeuronDistribution = record {
|
|
|
110
101
|
stake_e8s : nat64;
|
|
111
102
|
vesting_period_seconds : opt nat64;
|
|
112
103
|
};
|
|
113
|
-
type NeuronsFundParticipants = record { participants : vec CfParticipant };
|
|
114
104
|
type NeuronsFundParticipationConstraints = record {
|
|
115
105
|
coefficient_intervals : vec LinearScalingCoefficient;
|
|
116
106
|
max_neurons_fund_participation_icp_e8s : opt nat64;
|
|
@@ -163,7 +153,6 @@ type SnsInitPayload = record {
|
|
|
163
153
|
transaction_fee_e8s : opt nat64;
|
|
164
154
|
dapp_canisters : opt DappCanisters;
|
|
165
155
|
neurons_fund_participation_constraints : opt NeuronsFundParticipationConstraints;
|
|
166
|
-
neurons_fund_participants : opt NeuronsFundParticipants;
|
|
167
156
|
max_age_bonus_percentage : opt nat64;
|
|
168
157
|
initial_token_distribution : opt InitialTokenDistribution;
|
|
169
158
|
reward_rate_transition_duration_seconds : opt nat64;
|
|
@@ -44,18 +44,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
44
44
|
IdealMatchedParticipationFunction
|
|
45
45
|
),
|
|
46
46
|
});
|
|
47
|
-
const CfNeuron = IDL.Record({
|
|
48
|
-
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
49
|
-
'nns_neuron_id' : IDL.Nat64,
|
|
50
|
-
'amount_icp_e8s' : IDL.Nat64,
|
|
51
|
-
});
|
|
52
|
-
const CfParticipant = IDL.Record({
|
|
53
|
-
'hotkey_principal' : IDL.Text,
|
|
54
|
-
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
55
|
-
});
|
|
56
|
-
const NeuronsFundParticipants = IDL.Record({
|
|
57
|
-
'participants' : IDL.Vec(CfParticipant),
|
|
58
|
-
});
|
|
59
47
|
const TreasuryDistribution = IDL.Record({ 'total_e8s' : IDL.Nat64 });
|
|
60
48
|
const NeuronDistribution = IDL.Record({
|
|
61
49
|
'controller' : IDL.Opt(IDL.Principal),
|
|
@@ -116,7 +104,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
116
104
|
'neurons_fund_participation_constraints' : IDL.Opt(
|
|
117
105
|
NeuronsFundParticipationConstraints
|
|
118
106
|
),
|
|
119
|
-
'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants),
|
|
120
107
|
'max_age_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
121
108
|
'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
|
|
122
109
|
'reward_rate_transition_duration_seconds' : IDL.Opt(IDL.Nat64),
|