@dfinity/nns 3.1.0 → 3.1.1-next-2024-01-30
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 +0 -18
- package/dist/candid/governance.d.ts +0 -11
- package/dist/candid/governance.did +1 -10
- package/dist/candid/governance.idl.js +0 -18
- package/dist/candid/governance_test.certified.idl.js +0 -18
- package/dist/candid/governance_test.d.ts +0 -11
- package/dist/candid/governance_test.did +1 -10
- package/dist/candid/governance_test.idl.js +0 -18
- package/dist/candid/sns_wasm.certified.idl.js +32 -7
- package/dist/candid/sns_wasm.d.ts +23 -0
- package/dist/candid/sns_wasm.did +22 -2
- package/dist/candid/sns_wasm.idl.js +32 -7
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-4ZPVMCGL.js +2 -0
- package/dist/esm/chunk-4ZPVMCGL.js.map +7 -0
- package/dist/esm/chunk-PIKHSUZR.js +20 -0
- package/dist/esm/chunk-PIKHSUZR.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/enums/governance.enums.d.ts +2 -1
- package/package.json +8 -8
- package/dist/esm/chunk-LUEC3AVX.js +0 -20
- package/dist/esm/chunk-LUEC3AVX.js.map +0 -7
- package/dist/esm/chunk-YGDWD6VV.js +0 -2
- package/dist/esm/chunk-YGDWD6VV.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) '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;
|
|
@@ -293,14 +293,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
293
293
|
'caller' : IDL.Opt(IDL.Principal),
|
|
294
294
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
295
|
});
|
|
296
|
-
const SeedAccount = IDL.Record({
|
|
297
|
-
'error_count' : IDL.Nat64,
|
|
298
|
-
'account_id' : IDL.Text,
|
|
299
|
-
'neuron_type' : IDL.Int32,
|
|
300
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
301
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
302
|
-
});
|
|
303
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
304
296
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
305
297
|
'timestamp' : IDL.Nat64,
|
|
306
298
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -550,7 +542,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
542
|
const Governance = IDL.Record({
|
|
551
543
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
552
544
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
553
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
554
545
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
555
546
|
MostRecentMonthlyNodeProviderRewards
|
|
556
547
|
),
|
|
@@ -1113,14 +1104,6 @@ export const init = ({ IDL }) => {
|
|
|
1113
1104
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1114
1105
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1115
1106
|
});
|
|
1116
|
-
const SeedAccount = IDL.Record({
|
|
1117
|
-
'error_count' : IDL.Nat64,
|
|
1118
|
-
'account_id' : IDL.Text,
|
|
1119
|
-
'neuron_type' : IDL.Int32,
|
|
1120
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1121
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1122
|
-
});
|
|
1123
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
1124
1107
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1125
1108
|
'timestamp' : IDL.Nat64,
|
|
1126
1109
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -1370,7 +1353,6 @@ export const init = ({ IDL }) => {
|
|
|
1370
1353
|
const Governance = IDL.Record({
|
|
1371
1354
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1372
1355
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1373
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
1374
1356
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1375
1357
|
MostRecentMonthlyNodeProviderRewards
|
|
1376
1358
|
),
|
|
@@ -204,7 +204,6 @@ export interface GlobalTimeOfDay {
|
|
|
204
204
|
export interface Governance {
|
|
205
205
|
default_followees: Array<[number, Followees]>;
|
|
206
206
|
making_sns_proposal: [] | [MakingSnsProposal];
|
|
207
|
-
seed_accounts: [] | [SeedAccounts];
|
|
208
207
|
most_recent_monthly_node_provider_rewards:
|
|
209
208
|
| []
|
|
210
209
|
| [MostRecentMonthlyNodeProviderRewards];
|
|
@@ -639,16 +638,6 @@ export interface RewardToAccount {
|
|
|
639
638
|
export interface RewardToNeuron {
|
|
640
639
|
dissolve_delay_seconds: bigint;
|
|
641
640
|
}
|
|
642
|
-
export interface SeedAccount {
|
|
643
|
-
error_count: bigint;
|
|
644
|
-
account_id: string;
|
|
645
|
-
neuron_type: number;
|
|
646
|
-
tag_end_timestamp_seconds: [] | [bigint];
|
|
647
|
-
tag_start_timestamp_seconds: [] | [bigint];
|
|
648
|
-
}
|
|
649
|
-
export interface SeedAccounts {
|
|
650
|
-
accounts: Array<SeedAccount>;
|
|
651
|
-
}
|
|
652
641
|
export interface SetDefaultFollowees {
|
|
653
642
|
default_followees: Array<[number, Followees]>;
|
|
654
643
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : vec nat8 };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -158,7 +158,6 @@ type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
|
|
|
158
158
|
type Governance = record {
|
|
159
159
|
default_followees : vec record { int32; Followees };
|
|
160
160
|
making_sns_proposal : opt MakingSnsProposal;
|
|
161
|
-
seed_accounts : opt SeedAccounts;
|
|
162
161
|
most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
|
|
163
162
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
164
163
|
wait_for_quiet_threshold_seconds : nat64;
|
|
@@ -549,14 +548,6 @@ type RewardNodeProviders = record {
|
|
|
549
548
|
};
|
|
550
549
|
type RewardToAccount = record { to_account : opt AccountIdentifier };
|
|
551
550
|
type RewardToNeuron = record { dissolve_delay_seconds : nat64 };
|
|
552
|
-
type SeedAccount = record {
|
|
553
|
-
error_count : nat64;
|
|
554
|
-
account_id : text;
|
|
555
|
-
neuron_type : int32;
|
|
556
|
-
tag_end_timestamp_seconds : opt nat64;
|
|
557
|
-
tag_start_timestamp_seconds : opt nat64;
|
|
558
|
-
};
|
|
559
|
-
type SeedAccounts = record { accounts : vec SeedAccount };
|
|
560
551
|
type SetDefaultFollowees = record {
|
|
561
552
|
default_followees : vec record { int32; Followees };
|
|
562
553
|
};
|
|
@@ -293,14 +293,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
293
293
|
'caller' : IDL.Opt(IDL.Principal),
|
|
294
294
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
295
|
});
|
|
296
|
-
const SeedAccount = IDL.Record({
|
|
297
|
-
'error_count' : IDL.Nat64,
|
|
298
|
-
'account_id' : IDL.Text,
|
|
299
|
-
'neuron_type' : IDL.Int32,
|
|
300
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
301
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
302
|
-
});
|
|
303
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
304
296
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
305
297
|
'timestamp' : IDL.Nat64,
|
|
306
298
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -550,7 +542,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
542
|
const Governance = IDL.Record({
|
|
551
543
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
552
544
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
553
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
554
545
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
555
546
|
MostRecentMonthlyNodeProviderRewards
|
|
556
547
|
),
|
|
@@ -1125,14 +1116,6 @@ export const init = ({ IDL }) => {
|
|
|
1125
1116
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1126
1117
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1127
1118
|
});
|
|
1128
|
-
const SeedAccount = IDL.Record({
|
|
1129
|
-
'error_count' : IDL.Nat64,
|
|
1130
|
-
'account_id' : IDL.Text,
|
|
1131
|
-
'neuron_type' : IDL.Int32,
|
|
1132
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1133
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1134
|
-
});
|
|
1135
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
1136
1119
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1137
1120
|
'timestamp' : IDL.Nat64,
|
|
1138
1121
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -1382,7 +1365,6 @@ export const init = ({ IDL }) => {
|
|
|
1382
1365
|
const Governance = IDL.Record({
|
|
1383
1366
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1384
1367
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1385
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
1386
1368
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1387
1369
|
MostRecentMonthlyNodeProviderRewards
|
|
1388
1370
|
),
|
|
@@ -293,14 +293,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
293
293
|
'caller' : IDL.Opt(IDL.Principal),
|
|
294
294
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
295
|
});
|
|
296
|
-
const SeedAccount = IDL.Record({
|
|
297
|
-
'error_count' : IDL.Nat64,
|
|
298
|
-
'account_id' : IDL.Text,
|
|
299
|
-
'neuron_type' : IDL.Int32,
|
|
300
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
301
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
302
|
-
});
|
|
303
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
304
296
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
305
297
|
'timestamp' : IDL.Nat64,
|
|
306
298
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -550,7 +542,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
542
|
const Governance = IDL.Record({
|
|
551
543
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
552
544
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
553
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
554
545
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
555
546
|
MostRecentMonthlyNodeProviderRewards
|
|
556
547
|
),
|
|
@@ -1114,14 +1105,6 @@ export const init = ({ IDL }) => {
|
|
|
1114
1105
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1115
1106
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1116
1107
|
});
|
|
1117
|
-
const SeedAccount = IDL.Record({
|
|
1118
|
-
'error_count' : IDL.Nat64,
|
|
1119
|
-
'account_id' : IDL.Text,
|
|
1120
|
-
'neuron_type' : IDL.Int32,
|
|
1121
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1122
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1123
|
-
});
|
|
1124
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
1125
1108
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1126
1109
|
'timestamp' : IDL.Nat64,
|
|
1127
1110
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -1371,7 +1354,6 @@ export const init = ({ IDL }) => {
|
|
|
1371
1354
|
const Governance = IDL.Record({
|
|
1372
1355
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1373
1356
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1374
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
1375
1357
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1376
1358
|
MostRecentMonthlyNodeProviderRewards
|
|
1377
1359
|
),
|
|
@@ -204,7 +204,6 @@ export interface GlobalTimeOfDay {
|
|
|
204
204
|
export interface Governance {
|
|
205
205
|
default_followees: Array<[number, Followees]>;
|
|
206
206
|
making_sns_proposal: [] | [MakingSnsProposal];
|
|
207
|
-
seed_accounts: [] | [SeedAccounts];
|
|
208
207
|
most_recent_monthly_node_provider_rewards:
|
|
209
208
|
| []
|
|
210
209
|
| [MostRecentMonthlyNodeProviderRewards];
|
|
@@ -639,16 +638,6 @@ export interface RewardToAccount {
|
|
|
639
638
|
export interface RewardToNeuron {
|
|
640
639
|
dissolve_delay_seconds: bigint;
|
|
641
640
|
}
|
|
642
|
-
export interface SeedAccount {
|
|
643
|
-
error_count: bigint;
|
|
644
|
-
account_id: string;
|
|
645
|
-
neuron_type: number;
|
|
646
|
-
tag_end_timestamp_seconds: [] | [bigint];
|
|
647
|
-
tag_start_timestamp_seconds: [] | [bigint];
|
|
648
|
-
}
|
|
649
|
-
export interface SeedAccounts {
|
|
650
|
-
accounts: Array<SeedAccount>;
|
|
651
|
-
}
|
|
652
641
|
export interface SetDefaultFollowees {
|
|
653
642
|
default_followees: Array<[number, Followees]>;
|
|
654
643
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : vec nat8 };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -158,7 +158,6 @@ type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
|
|
|
158
158
|
type Governance = record {
|
|
159
159
|
default_followees : vec record { int32; Followees };
|
|
160
160
|
making_sns_proposal : opt MakingSnsProposal;
|
|
161
|
-
seed_accounts : opt SeedAccounts;
|
|
162
161
|
most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
|
|
163
162
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
164
163
|
wait_for_quiet_threshold_seconds : nat64;
|
|
@@ -549,14 +548,6 @@ type RewardNodeProviders = record {
|
|
|
549
548
|
};
|
|
550
549
|
type RewardToAccount = record { to_account : opt AccountIdentifier };
|
|
551
550
|
type RewardToNeuron = record { dissolve_delay_seconds : nat64 };
|
|
552
|
-
type SeedAccount = record {
|
|
553
|
-
error_count : nat64;
|
|
554
|
-
account_id : text;
|
|
555
|
-
neuron_type : int32;
|
|
556
|
-
tag_end_timestamp_seconds : opt nat64;
|
|
557
|
-
tag_start_timestamp_seconds : opt nat64;
|
|
558
|
-
};
|
|
559
|
-
type SeedAccounts = record { accounts : vec SeedAccount };
|
|
560
551
|
type SetDefaultFollowees = record {
|
|
561
552
|
default_followees : vec record { int32; Followees };
|
|
562
553
|
};
|
|
@@ -293,14 +293,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
293
293
|
'caller' : IDL.Opt(IDL.Principal),
|
|
294
294
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
295
|
});
|
|
296
|
-
const SeedAccount = IDL.Record({
|
|
297
|
-
'error_count' : IDL.Nat64,
|
|
298
|
-
'account_id' : IDL.Text,
|
|
299
|
-
'neuron_type' : IDL.Int32,
|
|
300
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
301
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
302
|
-
});
|
|
303
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
304
296
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
305
297
|
'timestamp' : IDL.Nat64,
|
|
306
298
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -550,7 +542,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
542
|
const Governance = IDL.Record({
|
|
551
543
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
552
544
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
553
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
554
545
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
555
546
|
MostRecentMonthlyNodeProviderRewards
|
|
556
547
|
),
|
|
@@ -1126,14 +1117,6 @@ export const init = ({ IDL }) => {
|
|
|
1126
1117
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1127
1118
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1128
1119
|
});
|
|
1129
|
-
const SeedAccount = IDL.Record({
|
|
1130
|
-
'error_count' : IDL.Nat64,
|
|
1131
|
-
'account_id' : IDL.Text,
|
|
1132
|
-
'neuron_type' : IDL.Int32,
|
|
1133
|
-
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1134
|
-
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1135
|
-
});
|
|
1136
|
-
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
1137
1120
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1138
1121
|
'timestamp' : IDL.Nat64,
|
|
1139
1122
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -1383,7 +1366,6 @@ export const init = ({ IDL }) => {
|
|
|
1383
1366
|
const Governance = IDL.Record({
|
|
1384
1367
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1385
1368
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1386
|
-
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
1387
1369
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1388
1370
|
MostRecentMonthlyNodeProviderRewards
|
|
1389
1371
|
),
|
|
@@ -32,12 +32,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
32
32
|
'slope_denominator' : IDL.Opt(IDL.Nat64),
|
|
33
33
|
'to_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
34
34
|
});
|
|
35
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
36
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
37
|
+
});
|
|
35
38
|
const NeuronsFundParticipationConstraints = IDL.Record({
|
|
36
39
|
'coefficient_intervals' : IDL.Vec(LinearScalingCoefficient),
|
|
37
40
|
'max_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
38
41
|
'min_direct_participation_threshold_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
42
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
43
|
+
IdealMatchedParticipationFunction
|
|
44
|
+
),
|
|
39
45
|
});
|
|
40
46
|
const CfNeuron = IDL.Record({
|
|
47
|
+
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
41
48
|
'nns_neuron_id' : IDL.Nat64,
|
|
42
49
|
'amount_icp_e8s' : IDL.Nat64,
|
|
43
50
|
});
|
|
@@ -81,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
88
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
82
89
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
83
90
|
'nns_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
91
|
+
'neurons_fund_participation' : IDL.Opt(IDL.Bool),
|
|
84
92
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
85
93
|
'neuron_basket_construction_parameters' : IDL.Opt(
|
|
86
94
|
NeuronBasketConstructionParameters
|
|
@@ -144,6 +152,25 @@ export const idlFactory = ({ IDL }) => {
|
|
|
144
152
|
const GetAllowedPrincipalsResponse = IDL.Record({
|
|
145
153
|
'allowed_principals' : IDL.Vec(IDL.Principal),
|
|
146
154
|
});
|
|
155
|
+
const GetDeployedSnsByProposalIdRequest = IDL.Record({
|
|
156
|
+
'proposal_id' : IDL.Nat64,
|
|
157
|
+
});
|
|
158
|
+
const DeployedSns = IDL.Record({
|
|
159
|
+
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
160
|
+
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
161
|
+
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
162
|
+
'swap_canister_id' : IDL.Opt(IDL.Principal),
|
|
163
|
+
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
164
|
+
});
|
|
165
|
+
const GetDeployedSnsByProposalIdResult = IDL.Variant({
|
|
166
|
+
'Error' : SnsWasmError,
|
|
167
|
+
'DeployedSns' : DeployedSns,
|
|
168
|
+
});
|
|
169
|
+
const GetDeployedSnsByProposalIdResponse = IDL.Record({
|
|
170
|
+
'get_deployed_sns_by_proposal_id_result' : IDL.Opt(
|
|
171
|
+
GetDeployedSnsByProposalIdResult
|
|
172
|
+
),
|
|
173
|
+
});
|
|
147
174
|
const SnsVersion = IDL.Record({
|
|
148
175
|
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
149
176
|
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
@@ -175,13 +202,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
175
202
|
const InsertUpgradePathEntriesResponse = IDL.Record({
|
|
176
203
|
'error' : IDL.Opt(SnsWasmError),
|
|
177
204
|
});
|
|
178
|
-
const DeployedSns = IDL.Record({
|
|
179
|
-
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
180
|
-
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
181
|
-
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
182
|
-
'swap_canister_id' : IDL.Opt(IDL.Principal),
|
|
183
|
-
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
184
|
-
});
|
|
185
205
|
const ListDeployedSnsesResponse = IDL.Record({
|
|
186
206
|
'instances' : IDL.Vec(DeployedSns),
|
|
187
207
|
});
|
|
@@ -235,6 +255,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
235
255
|
[GetAllowedPrincipalsResponse],
|
|
236
256
|
[],
|
|
237
257
|
),
|
|
258
|
+
'get_deployed_sns_by_proposal_id' : IDL.Func(
|
|
259
|
+
[GetDeployedSnsByProposalIdRequest],
|
|
260
|
+
[GetDeployedSnsByProposalIdResponse],
|
|
261
|
+
[],
|
|
262
|
+
),
|
|
238
263
|
'get_latest_sns_version_pretty' : IDL.Func(
|
|
239
264
|
[IDL.Null],
|
|
240
265
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
@@ -15,6 +15,7 @@ export interface Canister {
|
|
|
15
15
|
id: [] | [Principal];
|
|
16
16
|
}
|
|
17
17
|
export interface CfNeuron {
|
|
18
|
+
has_created_neuron_recipes: [] | [boolean];
|
|
18
19
|
nns_neuron_id: bigint;
|
|
19
20
|
amount_icp_e8s: bigint;
|
|
20
21
|
}
|
|
@@ -61,6 +62,17 @@ export interface FractionalDeveloperVotingPower {
|
|
|
61
62
|
export interface GetAllowedPrincipalsResponse {
|
|
62
63
|
allowed_principals: Array<Principal>;
|
|
63
64
|
}
|
|
65
|
+
export interface GetDeployedSnsByProposalIdRequest {
|
|
66
|
+
proposal_id: bigint;
|
|
67
|
+
}
|
|
68
|
+
export interface GetDeployedSnsByProposalIdResponse {
|
|
69
|
+
get_deployed_sns_by_proposal_id_result:
|
|
70
|
+
| []
|
|
71
|
+
| [GetDeployedSnsByProposalIdResult];
|
|
72
|
+
}
|
|
73
|
+
export type GetDeployedSnsByProposalIdResult =
|
|
74
|
+
| { Error: SnsWasmError }
|
|
75
|
+
| { DeployedSns: DeployedSns };
|
|
64
76
|
export interface GetNextSnsVersionRequest {
|
|
65
77
|
governance_canister_id: [] | [Principal];
|
|
66
78
|
current_version: [] | [SnsVersion];
|
|
@@ -77,6 +89,9 @@ export interface GetWasmRequest {
|
|
|
77
89
|
export interface GetWasmResponse {
|
|
78
90
|
wasm: [] | [SnsWasm];
|
|
79
91
|
}
|
|
92
|
+
export interface IdealMatchedParticipationFunction {
|
|
93
|
+
serialized_representation: [] | [string];
|
|
94
|
+
}
|
|
80
95
|
export type InitialTokenDistribution = {
|
|
81
96
|
FractionalDeveloperVotingPower: FractionalDeveloperVotingPower;
|
|
82
97
|
};
|
|
@@ -127,6 +142,9 @@ export interface NeuronsFundParticipationConstraints {
|
|
|
127
142
|
coefficient_intervals: Array<LinearScalingCoefficient>;
|
|
128
143
|
max_neurons_fund_participation_icp_e8s: [] | [bigint];
|
|
129
144
|
min_direct_participation_threshold_icp_e8s: [] | [bigint];
|
|
145
|
+
ideal_matched_participation_function:
|
|
146
|
+
| []
|
|
147
|
+
| [IdealMatchedParticipationFunction];
|
|
130
148
|
}
|
|
131
149
|
export interface PrettySnsVersion {
|
|
132
150
|
archive_wasm_hash: string;
|
|
@@ -149,6 +167,7 @@ export interface SnsInitPayload {
|
|
|
149
167
|
max_dissolve_delay_seconds: [] | [bigint];
|
|
150
168
|
max_dissolve_delay_bonus_percentage: [] | [bigint];
|
|
151
169
|
nns_proposal_id: [] | [bigint];
|
|
170
|
+
neurons_fund_participation: [] | [boolean];
|
|
152
171
|
min_participant_icp_e8s: [] | [bigint];
|
|
153
172
|
neuron_basket_construction_parameters:
|
|
154
173
|
| []
|
|
@@ -240,6 +259,10 @@ export interface _SERVICE {
|
|
|
240
259
|
add_wasm: ActorMethod<[AddWasmRequest], AddWasmResponse>;
|
|
241
260
|
deploy_new_sns: ActorMethod<[DeployNewSnsRequest], DeployNewSnsResponse>;
|
|
242
261
|
get_allowed_principals: ActorMethod<[{}], GetAllowedPrincipalsResponse>;
|
|
262
|
+
get_deployed_sns_by_proposal_id: ActorMethod<
|
|
263
|
+
[GetDeployedSnsByProposalIdRequest],
|
|
264
|
+
GetDeployedSnsByProposalIdResponse
|
|
265
|
+
>;
|
|
243
266
|
get_latest_sns_version_pretty: ActorMethod<[null], Array<[string, string]>>;
|
|
244
267
|
get_next_sns_version: ActorMethod<
|
|
245
268
|
[GetNextSnsVersionRequest],
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record { hash : vec nat8; 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 {
|
|
6
|
+
type CfNeuron = record {
|
|
7
|
+
has_created_neuron_recipes : opt bool;
|
|
8
|
+
nns_neuron_id : nat64;
|
|
9
|
+
amount_icp_e8s : nat64;
|
|
10
|
+
};
|
|
7
11
|
type CfParticipant = record {
|
|
8
12
|
hotkey_principal : text;
|
|
9
13
|
cf_neurons : vec CfNeuron;
|
|
@@ -41,6 +45,14 @@ type FractionalDeveloperVotingPower = record {
|
|
|
41
45
|
type GetAllowedPrincipalsResponse = record {
|
|
42
46
|
allowed_principals : vec principal;
|
|
43
47
|
};
|
|
48
|
+
type GetDeployedSnsByProposalIdRequest = record { proposal_id : nat64 };
|
|
49
|
+
type GetDeployedSnsByProposalIdResponse = record {
|
|
50
|
+
get_deployed_sns_by_proposal_id_result : opt GetDeployedSnsByProposalIdResult;
|
|
51
|
+
};
|
|
52
|
+
type GetDeployedSnsByProposalIdResult = variant {
|
|
53
|
+
Error : SnsWasmError;
|
|
54
|
+
DeployedSns : DeployedSns;
|
|
55
|
+
};
|
|
44
56
|
type GetNextSnsVersionRequest = record {
|
|
45
57
|
governance_canister_id : opt principal;
|
|
46
58
|
current_version : opt SnsVersion;
|
|
@@ -49,6 +61,9 @@ type GetNextSnsVersionResponse = record { next_version : opt SnsVersion };
|
|
|
49
61
|
type GetSnsSubnetIdsResponse = record { sns_subnet_ids : vec principal };
|
|
50
62
|
type GetWasmRequest = record { hash : vec nat8 };
|
|
51
63
|
type GetWasmResponse = record { wasm : opt SnsWasm };
|
|
64
|
+
type IdealMatchedParticipationFunction = record {
|
|
65
|
+
serialized_representation : opt text;
|
|
66
|
+
};
|
|
52
67
|
type InitialTokenDistribution = variant {
|
|
53
68
|
FractionalDeveloperVotingPower : FractionalDeveloperVotingPower;
|
|
54
69
|
};
|
|
@@ -91,6 +106,7 @@ type NeuronsFundParticipationConstraints = record {
|
|
|
91
106
|
coefficient_intervals : vec LinearScalingCoefficient;
|
|
92
107
|
max_neurons_fund_participation_icp_e8s : opt nat64;
|
|
93
108
|
min_direct_participation_threshold_icp_e8s : opt nat64;
|
|
109
|
+
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
94
110
|
};
|
|
95
111
|
type PrettySnsVersion = record {
|
|
96
112
|
archive_wasm_hash : text;
|
|
@@ -113,6 +129,7 @@ type SnsInitPayload = record {
|
|
|
113
129
|
max_dissolve_delay_seconds : opt nat64;
|
|
114
130
|
max_dissolve_delay_bonus_percentage : opt nat64;
|
|
115
131
|
nns_proposal_id : opt nat64;
|
|
132
|
+
neurons_fund_participation : opt bool;
|
|
116
133
|
min_participant_icp_e8s : opt nat64;
|
|
117
134
|
neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
|
|
118
135
|
fallback_controller_principal_ids : vec text;
|
|
@@ -192,6 +209,9 @@ service : (SnsWasmCanisterInitPayload) -> {
|
|
|
192
209
|
add_wasm : (AddWasmRequest) -> (AddWasmResponse);
|
|
193
210
|
deploy_new_sns : (DeployNewSnsRequest) -> (DeployNewSnsResponse);
|
|
194
211
|
get_allowed_principals : (record {}) -> (GetAllowedPrincipalsResponse) query;
|
|
212
|
+
get_deployed_sns_by_proposal_id : (GetDeployedSnsByProposalIdRequest) -> (
|
|
213
|
+
GetDeployedSnsByProposalIdResponse,
|
|
214
|
+
) query;
|
|
195
215
|
get_latest_sns_version_pretty : (null) -> (vec record { text; text }) query;
|
|
196
216
|
get_next_sns_version : (GetNextSnsVersionRequest) -> (
|
|
197
217
|
GetNextSnsVersionResponse,
|
|
@@ -32,12 +32,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
32
32
|
'slope_denominator' : IDL.Opt(IDL.Nat64),
|
|
33
33
|
'to_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
34
34
|
});
|
|
35
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
36
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
37
|
+
});
|
|
35
38
|
const NeuronsFundParticipationConstraints = IDL.Record({
|
|
36
39
|
'coefficient_intervals' : IDL.Vec(LinearScalingCoefficient),
|
|
37
40
|
'max_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
38
41
|
'min_direct_participation_threshold_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
42
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
43
|
+
IdealMatchedParticipationFunction
|
|
44
|
+
),
|
|
39
45
|
});
|
|
40
46
|
const CfNeuron = IDL.Record({
|
|
47
|
+
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
41
48
|
'nns_neuron_id' : IDL.Nat64,
|
|
42
49
|
'amount_icp_e8s' : IDL.Nat64,
|
|
43
50
|
});
|
|
@@ -81,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
88
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
82
89
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
83
90
|
'nns_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
91
|
+
'neurons_fund_participation' : IDL.Opt(IDL.Bool),
|
|
84
92
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
85
93
|
'neuron_basket_construction_parameters' : IDL.Opt(
|
|
86
94
|
NeuronBasketConstructionParameters
|
|
@@ -144,6 +152,25 @@ export const idlFactory = ({ IDL }) => {
|
|
|
144
152
|
const GetAllowedPrincipalsResponse = IDL.Record({
|
|
145
153
|
'allowed_principals' : IDL.Vec(IDL.Principal),
|
|
146
154
|
});
|
|
155
|
+
const GetDeployedSnsByProposalIdRequest = IDL.Record({
|
|
156
|
+
'proposal_id' : IDL.Nat64,
|
|
157
|
+
});
|
|
158
|
+
const DeployedSns = IDL.Record({
|
|
159
|
+
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
160
|
+
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
161
|
+
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
162
|
+
'swap_canister_id' : IDL.Opt(IDL.Principal),
|
|
163
|
+
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
164
|
+
});
|
|
165
|
+
const GetDeployedSnsByProposalIdResult = IDL.Variant({
|
|
166
|
+
'Error' : SnsWasmError,
|
|
167
|
+
'DeployedSns' : DeployedSns,
|
|
168
|
+
});
|
|
169
|
+
const GetDeployedSnsByProposalIdResponse = IDL.Record({
|
|
170
|
+
'get_deployed_sns_by_proposal_id_result' : IDL.Opt(
|
|
171
|
+
GetDeployedSnsByProposalIdResult
|
|
172
|
+
),
|
|
173
|
+
});
|
|
147
174
|
const SnsVersion = IDL.Record({
|
|
148
175
|
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
149
176
|
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
@@ -175,13 +202,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
175
202
|
const InsertUpgradePathEntriesResponse = IDL.Record({
|
|
176
203
|
'error' : IDL.Opt(SnsWasmError),
|
|
177
204
|
});
|
|
178
|
-
const DeployedSns = IDL.Record({
|
|
179
|
-
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
180
|
-
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
181
|
-
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
182
|
-
'swap_canister_id' : IDL.Opt(IDL.Principal),
|
|
183
|
-
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
184
|
-
});
|
|
185
205
|
const ListDeployedSnsesResponse = IDL.Record({
|
|
186
206
|
'instances' : IDL.Vec(DeployedSns),
|
|
187
207
|
});
|
|
@@ -235,6 +255,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
235
255
|
[GetAllowedPrincipalsResponse],
|
|
236
256
|
['query'],
|
|
237
257
|
),
|
|
258
|
+
'get_deployed_sns_by_proposal_id' : IDL.Func(
|
|
259
|
+
[GetDeployedSnsByProposalIdRequest],
|
|
260
|
+
[GetDeployedSnsByProposalIdResponse],
|
|
261
|
+
['query'],
|
|
262
|
+
),
|
|
238
263
|
'get_latest_sns_version_pretty' : IDL.Func(
|
|
239
264
|
[IDL.Null],
|
|
240
265
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|