@dfinity/nns 11.1.1 → 11.1.2
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 -37
- package/dist/candid/genesis_token.certified.idl.js +1 -1
- package/dist/candid/genesis_token.d.ts +1 -1
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/genesis_token.idl.js +1 -1
- package/dist/candid/governance.certified.idl.js +17 -3
- package/dist/candid/governance.d.ts +31 -21
- package/dist/candid/governance.did +11 -3
- package/dist/candid/governance.idl.js +17 -3
- package/dist/candid/governance_test.certified.idl.js +17 -3
- package/dist/candid/governance_test.d.ts +31 -21
- package/dist/candid/governance_test.did +11 -3
- package/dist/candid/governance_test.idl.js +17 -3
- package/dist/candid/sns_wasm.certified.idl.js +1 -1
- package/dist/candid/sns_wasm.d.ts +14 -14
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/candid/sns_wasm.idl.js +1 -1
- package/dist/canisters/governance/request.converters.d.ts +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +3 -3
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -11,6 +11,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
11
11
|
const Proposal = IDL.Rec();
|
|
12
12
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
13
13
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
14
|
+
const DateUtc = IDL.Record({
|
|
15
|
+
day: IDL.Nat32,
|
|
16
|
+
month: IDL.Nat32,
|
|
17
|
+
year: IDL.Nat32,
|
|
18
|
+
});
|
|
14
19
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
15
20
|
const NodeProvider = IDL.Record({
|
|
16
21
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -35,8 +40,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
40
|
});
|
|
36
41
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
37
42
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
43
|
+
end_date: IDL.Opt(DateUtc),
|
|
38
44
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
39
45
|
node_providers: IDL.Vec(NodeProvider),
|
|
46
|
+
start_date: IDL.Opt(DateUtc),
|
|
40
47
|
timestamp: IDL.Nat64,
|
|
41
48
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
42
49
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -834,7 +841,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
834
841
|
const ListNodeProvidersResponse = IDL.Record({
|
|
835
842
|
node_providers: IDL.Vec(NodeProvider),
|
|
836
843
|
});
|
|
837
|
-
const
|
|
844
|
+
const ListProposalInfoRequest = IDL.Record({
|
|
838
845
|
include_reward_status: IDL.Vec(IDL.Int32),
|
|
839
846
|
omit_large_fields: IDL.Opt(IDL.Bool),
|
|
840
847
|
before_proposal: IDL.Opt(ProposalId),
|
|
@@ -1061,7 +1068,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1061
1068
|
),
|
|
1062
1069
|
list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ["query"]),
|
|
1063
1070
|
list_proposals: IDL.Func(
|
|
1064
|
-
[
|
|
1071
|
+
[ListProposalInfoRequest],
|
|
1065
1072
|
[ListProposalInfoResponse],
|
|
1066
1073
|
["query"],
|
|
1067
1074
|
),
|
|
@@ -1090,6 +1097,11 @@ export const init = ({ IDL }) => {
|
|
|
1090
1097
|
const Proposal = IDL.Rec();
|
|
1091
1098
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
1092
1099
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
1100
|
+
const DateUtc = IDL.Record({
|
|
1101
|
+
day: IDL.Nat32,
|
|
1102
|
+
month: IDL.Nat32,
|
|
1103
|
+
year: IDL.Nat32,
|
|
1104
|
+
});
|
|
1093
1105
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
1094
1106
|
const NodeProvider = IDL.Record({
|
|
1095
1107
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -1114,8 +1126,10 @@ export const init = ({ IDL }) => {
|
|
|
1114
1126
|
});
|
|
1115
1127
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1116
1128
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
1129
|
+
end_date: IDL.Opt(DateUtc),
|
|
1117
1130
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
1118
1131
|
node_providers: IDL.Vec(NodeProvider),
|
|
1132
|
+
start_date: IDL.Opt(DateUtc),
|
|
1119
1133
|
timestamp: IDL.Nat64,
|
|
1120
1134
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
1121
1135
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -11,6 +11,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
11
11
|
const Proposal = IDL.Rec();
|
|
12
12
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
13
13
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
14
|
+
const DateUtc = IDL.Record({
|
|
15
|
+
day: IDL.Nat32,
|
|
16
|
+
month: IDL.Nat32,
|
|
17
|
+
year: IDL.Nat32,
|
|
18
|
+
});
|
|
14
19
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
15
20
|
const NodeProvider = IDL.Record({
|
|
16
21
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -35,8 +40,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
40
|
});
|
|
36
41
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
37
42
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
43
|
+
end_date: IDL.Opt(DateUtc),
|
|
38
44
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
39
45
|
node_providers: IDL.Vec(NodeProvider),
|
|
46
|
+
start_date: IDL.Opt(DateUtc),
|
|
40
47
|
timestamp: IDL.Nat64,
|
|
41
48
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
42
49
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -834,7 +841,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
834
841
|
const ListNodeProvidersResponse = IDL.Record({
|
|
835
842
|
node_providers: IDL.Vec(NodeProvider),
|
|
836
843
|
});
|
|
837
|
-
const
|
|
844
|
+
const ListProposalInfoRequest = IDL.Record({
|
|
838
845
|
include_reward_status: IDL.Vec(IDL.Int32),
|
|
839
846
|
omit_large_fields: IDL.Opt(IDL.Bool),
|
|
840
847
|
before_proposal: IDL.Opt(ProposalId),
|
|
@@ -1053,7 +1060,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1053
1060
|
),
|
|
1054
1061
|
list_node_providers: IDL.Func([], [ListNodeProvidersResponse], []),
|
|
1055
1062
|
list_proposals: IDL.Func(
|
|
1056
|
-
[
|
|
1063
|
+
[ListProposalInfoRequest],
|
|
1057
1064
|
[ListProposalInfoResponse],
|
|
1058
1065
|
[],
|
|
1059
1066
|
),
|
|
@@ -1083,6 +1090,11 @@ export const init = ({ IDL }) => {
|
|
|
1083
1090
|
const Proposal = IDL.Rec();
|
|
1084
1091
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
1085
1092
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
1093
|
+
const DateUtc = IDL.Record({
|
|
1094
|
+
day: IDL.Nat32,
|
|
1095
|
+
month: IDL.Nat32,
|
|
1096
|
+
year: IDL.Nat32,
|
|
1097
|
+
});
|
|
1086
1098
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
1087
1099
|
const NodeProvider = IDL.Record({
|
|
1088
1100
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -1107,8 +1119,10 @@ export const init = ({ IDL }) => {
|
|
|
1107
1119
|
});
|
|
1108
1120
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1109
1121
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
1122
|
+
end_date: IDL.Opt(DateUtc),
|
|
1110
1123
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
1111
1124
|
node_providers: IDL.Vec(NodeProvider),
|
|
1125
|
+
start_date: IDL.Opt(DateUtc),
|
|
1112
1126
|
timestamp: IDL.Nat64,
|
|
1113
1127
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
1114
1128
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -12,10 +12,10 @@ import type { Principal } from "@icp-sdk/core/principal";
|
|
|
12
12
|
|
|
13
13
|
export interface Account {
|
|
14
14
|
owner: [] | [Principal];
|
|
15
|
-
subaccount: [] | [Uint8Array
|
|
15
|
+
subaccount: [] | [Uint8Array];
|
|
16
16
|
}
|
|
17
17
|
export interface AccountIdentifier {
|
|
18
|
-
hash: Uint8Array
|
|
18
|
+
hash: Uint8Array;
|
|
19
19
|
}
|
|
20
20
|
export type Action =
|
|
21
21
|
| { RegisterKnownNeuron: KnownNeuron }
|
|
@@ -79,7 +79,7 @@ export interface CanisterStatusResultV2 {
|
|
|
79
79
|
memory_size: [] | [bigint];
|
|
80
80
|
cycles: [] | [bigint];
|
|
81
81
|
idle_cycles_burned_per_day: [] | [bigint];
|
|
82
|
-
module_hash: Uint8Array
|
|
82
|
+
module_hash: Uint8Array;
|
|
83
83
|
}
|
|
84
84
|
export interface CanisterSummary {
|
|
85
85
|
status: [] | [CanisterStatusResultV2];
|
|
@@ -183,6 +183,11 @@ export interface DateRangeFilter {
|
|
|
183
183
|
start_timestamp_seconds: [] | [bigint];
|
|
184
184
|
end_timestamp_seconds: [] | [bigint];
|
|
185
185
|
}
|
|
186
|
+
export interface DateUtc {
|
|
187
|
+
day: number;
|
|
188
|
+
month: number;
|
|
189
|
+
year: number;
|
|
190
|
+
}
|
|
186
191
|
export interface Decimal {
|
|
187
192
|
human_readable: [] | [string];
|
|
188
193
|
}
|
|
@@ -225,7 +230,7 @@ export interface Duration {
|
|
|
225
230
|
}
|
|
226
231
|
export interface ExecuteNnsFunction {
|
|
227
232
|
nns_function: number;
|
|
228
|
-
payload: Uint8Array
|
|
233
|
+
payload: Uint8Array;
|
|
229
234
|
}
|
|
230
235
|
export interface Follow {
|
|
231
236
|
topic: number;
|
|
@@ -394,14 +399,14 @@ export interface InitialTokenDistribution {
|
|
|
394
399
|
}
|
|
395
400
|
export interface InstallCode {
|
|
396
401
|
skip_stopping_before_installing: [] | [boolean];
|
|
397
|
-
wasm_module_hash: [] | [Uint8Array
|
|
402
|
+
wasm_module_hash: [] | [Uint8Array];
|
|
398
403
|
canister_id: [] | [Principal];
|
|
399
|
-
arg_hash: [] | [Uint8Array
|
|
404
|
+
arg_hash: [] | [Uint8Array];
|
|
400
405
|
install_mode: [] | [number];
|
|
401
406
|
}
|
|
402
407
|
export interface InstallCodeRequest {
|
|
403
|
-
arg: [] | [Uint8Array
|
|
404
|
-
wasm_module: [] | [Uint8Array
|
|
408
|
+
arg: [] | [Uint8Array];
|
|
409
|
+
wasm_module: [] | [Uint8Array];
|
|
405
410
|
skip_stopping_before_installing: [] | [boolean];
|
|
406
411
|
canister_id: [] | [Principal];
|
|
407
412
|
install_mode: [] | [number];
|
|
@@ -478,7 +483,7 @@ export interface ListNeurons {
|
|
|
478
483
|
/**
|
|
479
484
|
* These fields select neurons to be in the result set.
|
|
480
485
|
*/
|
|
481
|
-
neuron_ids: BigUint64Array
|
|
486
|
+
neuron_ids: BigUint64Array;
|
|
482
487
|
page_number: [] | [bigint];
|
|
483
488
|
/**
|
|
484
489
|
* Only has an effect when include_neurons_readable_by_caller.
|
|
@@ -515,14 +520,14 @@ export interface ListNodeProviderRewardsResponse {
|
|
|
515
520
|
export interface ListNodeProvidersResponse {
|
|
516
521
|
node_providers: Array<NodeProvider>;
|
|
517
522
|
}
|
|
518
|
-
export interface
|
|
519
|
-
include_reward_status: Int32Array
|
|
523
|
+
export interface ListProposalInfoRequest {
|
|
524
|
+
include_reward_status: Int32Array;
|
|
520
525
|
omit_large_fields: [] | [boolean];
|
|
521
526
|
before_proposal: [] | [ProposalId];
|
|
522
527
|
limit: number;
|
|
523
|
-
exclude_topic: Int32Array
|
|
528
|
+
exclude_topic: Int32Array;
|
|
524
529
|
include_all_manage_neuron_proposals: [] | [boolean];
|
|
525
|
-
include_status: Int32Array
|
|
530
|
+
include_status: Int32Array;
|
|
526
531
|
}
|
|
527
532
|
export interface ListProposalInfoResponse {
|
|
528
533
|
proposal_info: Array<ProposalInfo>;
|
|
@@ -617,8 +622,10 @@ export interface MergeResponse {
|
|
|
617
622
|
}
|
|
618
623
|
export interface MonthlyNodeProviderRewards {
|
|
619
624
|
minimum_xdr_permyriad_per_icp: [] | [bigint];
|
|
625
|
+
end_date: [] | [DateUtc];
|
|
620
626
|
registry_version: [] | [bigint];
|
|
621
627
|
node_providers: Array<NodeProvider>;
|
|
628
|
+
start_date: [] | [DateUtc];
|
|
622
629
|
timestamp: bigint;
|
|
623
630
|
rewards: Array<RewardNodeProvider>;
|
|
624
631
|
xdr_conversion_rate: [] | [XdrConversionRate];
|
|
@@ -716,7 +723,7 @@ export interface Neuron {
|
|
|
716
723
|
auto_stake_maturity: [] | [boolean];
|
|
717
724
|
aging_since_timestamp_seconds: bigint;
|
|
718
725
|
hot_keys: Array<Principal>;
|
|
719
|
-
account: Uint8Array
|
|
726
|
+
account: Uint8Array;
|
|
720
727
|
joined_community_fund_timestamp_seconds: [] | [bigint];
|
|
721
728
|
/**
|
|
722
729
|
* The maturity disbursements in progress, i.e. the disbursements that are initiated but not
|
|
@@ -750,7 +757,7 @@ export interface NeuronId {
|
|
|
750
757
|
id: bigint;
|
|
751
758
|
}
|
|
752
759
|
export type NeuronIdOrSubaccount =
|
|
753
|
-
| { Subaccount: Uint8Array
|
|
760
|
+
| { Subaccount: Uint8Array }
|
|
754
761
|
| { NeuronId: NeuronId };
|
|
755
762
|
export interface NeuronInFlightCommand {
|
|
756
763
|
command: [] | [Command_2];
|
|
@@ -802,16 +809,16 @@ export interface NeuronInfo {
|
|
|
802
809
|
age_seconds: bigint;
|
|
803
810
|
}
|
|
804
811
|
export interface NeuronStakeTransfer {
|
|
805
|
-
to_subaccount: Uint8Array
|
|
812
|
+
to_subaccount: Uint8Array;
|
|
806
813
|
neuron_stake_e8s: bigint;
|
|
807
814
|
from: [] | [Principal];
|
|
808
815
|
memo: bigint;
|
|
809
|
-
from_subaccount: Uint8Array
|
|
816
|
+
from_subaccount: Uint8Array;
|
|
810
817
|
transfer_timestamp: bigint;
|
|
811
818
|
block_height: bigint;
|
|
812
819
|
}
|
|
813
820
|
export interface NeuronSubaccount {
|
|
814
|
-
subaccount: Uint8Array
|
|
821
|
+
subaccount: Uint8Array;
|
|
815
822
|
}
|
|
816
823
|
export interface NeuronSubsetMetrics {
|
|
817
824
|
total_maturity_e8s_equivalent: [] | [bigint];
|
|
@@ -1282,7 +1289,7 @@ export interface _SERVICE {
|
|
|
1282
1289
|
[] | [MonthlyNodeProviderRewards]
|
|
1283
1290
|
>;
|
|
1284
1291
|
get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
|
|
1285
|
-
get_neuron_ids: ActorMethod<[], BigUint64Array
|
|
1292
|
+
get_neuron_ids: ActorMethod<[], BigUint64Array>;
|
|
1286
1293
|
get_neuron_index: ActorMethod<[GetNeuronIndexRequest], GetNeuronIndexResult>;
|
|
1287
1294
|
get_neuron_info: ActorMethod<[bigint], Result_5>;
|
|
1288
1295
|
get_neuron_info_by_id_or_subaccount: ActorMethod<
|
|
@@ -1308,7 +1315,10 @@ export interface _SERVICE {
|
|
|
1308
1315
|
ListNodeProviderRewardsResponse
|
|
1309
1316
|
>;
|
|
1310
1317
|
list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
|
|
1311
|
-
list_proposals: ActorMethod<
|
|
1318
|
+
list_proposals: ActorMethod<
|
|
1319
|
+
[ListProposalInfoRequest],
|
|
1320
|
+
ListProposalInfoResponse
|
|
1321
|
+
>;
|
|
1312
1322
|
manage_neuron: ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>;
|
|
1313
1323
|
settle_community_fund_participation: ActorMethod<
|
|
1314
1324
|
[SettleCommunityFundParticipation],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 4e64157 (2025-11-17) 'packages/nns/src/candid/governance_test.did.tmp' by import-candid
|
|
2
2
|
|
|
3
3
|
type AccountIdentifier = record {
|
|
4
4
|
hash : blob;
|
|
@@ -519,7 +519,7 @@ type ListNodeProvidersResponse = record {
|
|
|
519
519
|
node_providers : vec NodeProvider;
|
|
520
520
|
};
|
|
521
521
|
|
|
522
|
-
type
|
|
522
|
+
type ListProposalInfoRequest = record {
|
|
523
523
|
include_reward_status : vec int32;
|
|
524
524
|
omit_large_fields : opt bool;
|
|
525
525
|
before_proposal : opt ProposalId;
|
|
@@ -613,11 +613,19 @@ type MergeResponse = record {
|
|
|
613
613
|
source_neuron_info : opt NeuronInfo;
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
+
type DateUtc = record {
|
|
617
|
+
year : nat32;
|
|
618
|
+
month : nat32;
|
|
619
|
+
day : nat32;
|
|
620
|
+
};
|
|
621
|
+
|
|
616
622
|
type MonthlyNodeProviderRewards = record {
|
|
617
623
|
minimum_xdr_permyriad_per_icp : opt nat64;
|
|
618
624
|
registry_version : opt nat64;
|
|
619
625
|
node_providers : vec NodeProvider;
|
|
620
626
|
timestamp : nat64;
|
|
627
|
+
start_date : opt DateUtc;
|
|
628
|
+
end_date : opt DateUtc;
|
|
621
629
|
rewards : vec RewardNodeProvider;
|
|
622
630
|
xdr_conversion_rate : opt XdrConversionRate;
|
|
623
631
|
maximum_node_provider_rewards_e8s : opt nat64;
|
|
@@ -1455,7 +1463,7 @@ service : (Governance) -> {
|
|
|
1455
1463
|
ListNodeProviderRewardsResponse,
|
|
1456
1464
|
) query;
|
|
1457
1465
|
list_node_providers : () -> (ListNodeProvidersResponse) query;
|
|
1458
|
-
list_proposals : (
|
|
1466
|
+
list_proposals : (ListProposalInfoRequest) -> (ListProposalInfoResponse) query;
|
|
1459
1467
|
list_neuron_votes : (ListNeuronVotesRequest) -> (ListNeuronVotesResponse) query;
|
|
1460
1468
|
manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
|
|
1461
1469
|
settle_community_fund_participation : (SettleCommunityFundParticipation) -> (
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -11,6 +11,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
11
11
|
const Proposal = IDL.Rec();
|
|
12
12
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
13
13
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
14
|
+
const DateUtc = IDL.Record({
|
|
15
|
+
day: IDL.Nat32,
|
|
16
|
+
month: IDL.Nat32,
|
|
17
|
+
year: IDL.Nat32,
|
|
18
|
+
});
|
|
14
19
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
15
20
|
const NodeProvider = IDL.Record({
|
|
16
21
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -35,8 +40,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
40
|
});
|
|
36
41
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
37
42
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
43
|
+
end_date: IDL.Opt(DateUtc),
|
|
38
44
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
39
45
|
node_providers: IDL.Vec(NodeProvider),
|
|
46
|
+
start_date: IDL.Opt(DateUtc),
|
|
40
47
|
timestamp: IDL.Nat64,
|
|
41
48
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
42
49
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -834,7 +841,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
834
841
|
const ListNodeProvidersResponse = IDL.Record({
|
|
835
842
|
node_providers: IDL.Vec(NodeProvider),
|
|
836
843
|
});
|
|
837
|
-
const
|
|
844
|
+
const ListProposalInfoRequest = IDL.Record({
|
|
838
845
|
include_reward_status: IDL.Vec(IDL.Int32),
|
|
839
846
|
omit_large_fields: IDL.Opt(IDL.Bool),
|
|
840
847
|
before_proposal: IDL.Opt(ProposalId),
|
|
@@ -1061,7 +1068,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1061
1068
|
),
|
|
1062
1069
|
list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ["query"]),
|
|
1063
1070
|
list_proposals: IDL.Func(
|
|
1064
|
-
[
|
|
1071
|
+
[ListProposalInfoRequest],
|
|
1065
1072
|
[ListProposalInfoResponse],
|
|
1066
1073
|
["query"],
|
|
1067
1074
|
),
|
|
@@ -1091,6 +1098,11 @@ export const init = ({ IDL }) => {
|
|
|
1091
1098
|
const Proposal = IDL.Rec();
|
|
1092
1099
|
const NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
1093
1100
|
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
1101
|
+
const DateUtc = IDL.Record({
|
|
1102
|
+
day: IDL.Nat32,
|
|
1103
|
+
month: IDL.Nat32,
|
|
1104
|
+
year: IDL.Nat32,
|
|
1105
|
+
});
|
|
1094
1106
|
const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
1095
1107
|
const NodeProvider = IDL.Record({
|
|
1096
1108
|
id: IDL.Opt(IDL.Principal),
|
|
@@ -1115,8 +1127,10 @@ export const init = ({ IDL }) => {
|
|
|
1115
1127
|
});
|
|
1116
1128
|
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1117
1129
|
minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
|
|
1130
|
+
end_date: IDL.Opt(DateUtc),
|
|
1118
1131
|
registry_version: IDL.Opt(IDL.Nat64),
|
|
1119
1132
|
node_providers: IDL.Vec(NodeProvider),
|
|
1133
|
+
start_date: IDL.Opt(DateUtc),
|
|
1120
1134
|
timestamp: IDL.Nat64,
|
|
1121
1135
|
rewards: IDL.Vec(RewardNodeProvider),
|
|
1122
1136
|
xdr_conversion_rate: IDL.Opt(XdrConversionRate),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ import type { IDL } from "@icp-sdk/core/candid";
|
|
|
11
11
|
import type { Principal } from "@icp-sdk/core/principal";
|
|
12
12
|
|
|
13
13
|
export interface AddWasmRequest {
|
|
14
|
-
hash: Uint8Array
|
|
14
|
+
hash: Uint8Array;
|
|
15
15
|
wasm: [] | [SnsWasm];
|
|
16
16
|
skip_update_latest_version: [] | [boolean];
|
|
17
17
|
}
|
|
@@ -78,7 +78,7 @@ export interface GetNextSnsVersionResponse {
|
|
|
78
78
|
next_version: [] | [SnsVersion];
|
|
79
79
|
}
|
|
80
80
|
export interface GetProposalIdThatAddedWasmRequest {
|
|
81
|
-
hash: Uint8Array
|
|
81
|
+
hash: Uint8Array;
|
|
82
82
|
}
|
|
83
83
|
export interface GetProposalIdThatAddedWasmResponse {
|
|
84
84
|
proposal_id: [] | [bigint];
|
|
@@ -87,13 +87,13 @@ export interface GetSnsSubnetIdsResponse {
|
|
|
87
87
|
sns_subnet_ids: Array<Principal>;
|
|
88
88
|
}
|
|
89
89
|
export interface GetWasmMetadataRequest {
|
|
90
|
-
hash: [] | [Uint8Array
|
|
90
|
+
hash: [] | [Uint8Array];
|
|
91
91
|
}
|
|
92
92
|
export interface GetWasmMetadataResponse {
|
|
93
93
|
result: [] | [Result_1];
|
|
94
94
|
}
|
|
95
95
|
export interface GetWasmRequest {
|
|
96
|
-
hash: Uint8Array
|
|
96
|
+
hash: Uint8Array;
|
|
97
97
|
}
|
|
98
98
|
export interface GetWasmResponse {
|
|
99
99
|
wasm: [] | [SnsWasm];
|
|
@@ -134,7 +134,7 @@ export interface ListUpgradeStepsResponse {
|
|
|
134
134
|
steps: Array<ListUpgradeStep>;
|
|
135
135
|
}
|
|
136
136
|
export interface MetadataSection {
|
|
137
|
-
contents: [] | [Uint8Array
|
|
137
|
+
contents: [] | [Uint8Array];
|
|
138
138
|
name: [] | [string];
|
|
139
139
|
visibility: [] | [string];
|
|
140
140
|
}
|
|
@@ -168,7 +168,7 @@ export interface PrettySnsVersion {
|
|
|
168
168
|
governance_wasm_hash: string;
|
|
169
169
|
index_wasm_hash: string;
|
|
170
170
|
}
|
|
171
|
-
export type Result = { Error: SnsWasmError } | { Hash: Uint8Array
|
|
171
|
+
export type Result = { Error: SnsWasmError } | { Hash: Uint8Array };
|
|
172
172
|
export type Result_1 = { Ok: Ok } | { Error: SnsWasmError };
|
|
173
173
|
export interface SnsCanisterIds {
|
|
174
174
|
root: [] | [Principal];
|
|
@@ -226,15 +226,15 @@ export interface SnsUpgrade {
|
|
|
226
226
|
current_version: [] | [SnsVersion];
|
|
227
227
|
}
|
|
228
228
|
export interface SnsVersion {
|
|
229
|
-
archive_wasm_hash: Uint8Array
|
|
230
|
-
root_wasm_hash: Uint8Array
|
|
231
|
-
swap_wasm_hash: Uint8Array
|
|
232
|
-
ledger_wasm_hash: Uint8Array
|
|
233
|
-
governance_wasm_hash: Uint8Array
|
|
234
|
-
index_wasm_hash: Uint8Array
|
|
229
|
+
archive_wasm_hash: Uint8Array;
|
|
230
|
+
root_wasm_hash: Uint8Array;
|
|
231
|
+
swap_wasm_hash: Uint8Array;
|
|
232
|
+
ledger_wasm_hash: Uint8Array;
|
|
233
|
+
governance_wasm_hash: Uint8Array;
|
|
234
|
+
index_wasm_hash: Uint8Array;
|
|
235
235
|
}
|
|
236
236
|
export interface SnsWasm {
|
|
237
|
-
wasm: Uint8Array
|
|
237
|
+
wasm: Uint8Array;
|
|
238
238
|
proposal_id: [] | [bigint];
|
|
239
239
|
canister_type: number;
|
|
240
240
|
}
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
|
|
3
3
|
type AddWasmRequest = record {
|
|
4
4
|
hash : blob;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccountIdentifier as AccountIdentifierClass, AccountIdentifierHex } from "@dfinity/ledger-icp";
|
|
2
2
|
import { Principal } from "@icp-sdk/core/principal";
|
|
3
|
-
import type {
|
|
3
|
+
import type { NeuronSubaccount, AccountIdentifier as RawAccountIdentifier, ManageNeuronCommandRequest as RawCommand, ListNeurons as RawListNeurons, ListProposalInfoRequest as RawListProposalInfo, ManageNeuronRequest as RawManageNeuron, Operation as RawOperation } from "../../candid/governance";
|
|
4
4
|
import type { NeuronVisibility, Vote } from "../../enums/governance.enums";
|
|
5
5
|
import type { E8s, NeuronId } from "../../types/common";
|
|
6
6
|
import type { Account, ClaimOrRefreshNeuronRequest, DisburseToNeuronRequest, FollowRequest, FolloweesForTopic, ListProposalsRequest, MakeProposalRequest, ManageNeuronRequest, ProposalId } from "../../types/governance_converters";
|
|
@@ -14,7 +14,7 @@ export declare const fromListNeurons: ({ neuronIds, includeEmptyNeurons, include
|
|
|
14
14
|
pageSize?: bigint;
|
|
15
15
|
}) => RawListNeurons;
|
|
16
16
|
export declare const fromManageNeuron: ({ id, command, neuronIdOrSubaccount, }: ManageNeuronRequest) => RawManageNeuron;
|
|
17
|
-
export declare const fromListProposalsRequest: ({ includeRewardStatus, beforeProposal, excludeTopic, includeStatus, limit, includeAllManageNeuronProposals, omitLargeFields, }: ListProposalsRequest) =>
|
|
17
|
+
export declare const fromListProposalsRequest: ({ includeRewardStatus, beforeProposal, excludeTopic, includeStatus, limit, includeAllManageNeuronProposals, omitLargeFields, }: ListProposalsRequest) => RawListProposalInfo;
|
|
18
18
|
export declare const fromClaimOrRefreshNeuronRequest: (request: ClaimOrRefreshNeuronRequest) => RawManageNeuron;
|
|
19
19
|
export declare const toClaimOrRefreshRequest: ({ memo, controller, }: {
|
|
20
20
|
memo: bigint;
|