@dfinity/nns 0.4.1 → 0.4.2-nightly-2022-05-26
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/payloads.did +25 -9
- package/dist/candid/payloads.idl.d.ts +3 -0
- package/dist/candid/payloads.idl.js +22 -4
- package/dist/cjs/index.cjs.js +23 -23
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-DRE7O6A5.js +2 -0
- package/dist/esm/chunk-DRE7O6A5.js.map +7 -0
- package/dist/esm/{chunk-NOBP3Q32.js → chunk-SD3JMQ3C.js} +5 -5
- package/dist/esm/{chunk-NOBP3Q32.js.map → chunk-SD3JMQ3C.js.map} +2 -2
- package/dist/esm/genesis_token.js +1 -1
- package/dist/esm/genesis_token.js.map +3 -3
- package/dist/esm/governance.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/candid/payloads.did
CHANGED
|
@@ -16,15 +16,16 @@ type UpdateIcpXdrConversionRatePayload = record {
|
|
|
16
16
|
timestamp_seconds : nat64;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
//
|
|
19
|
+
// Source: ic/.../registry.did
|
|
20
|
+
// from commit: https://github.com/dfinity/ic/commit/160ad719096f47b2ab0d6223f12faccfb0baebf6
|
|
21
21
|
type AddFirewallRulesPayload = record {
|
|
22
22
|
expected_hash : text;
|
|
23
|
-
scope :
|
|
23
|
+
scope : FirewallRulesScope;
|
|
24
24
|
positions : vec int32;
|
|
25
25
|
rules : vec FirewallRule;
|
|
26
26
|
};
|
|
27
27
|
type AddNodeOperatorPayload = record {
|
|
28
|
+
ipv6 : opt text;
|
|
28
29
|
node_operator_principal_id : opt principal;
|
|
29
30
|
node_allowance : nat64;
|
|
30
31
|
rewardable_nodes : vec record { text; nat32 };
|
|
@@ -50,7 +51,11 @@ type AddOrRemoveDataCentersProposalPayload = record {
|
|
|
50
51
|
data_centers_to_add : vec DataCenterRecord;
|
|
51
52
|
data_centers_to_remove : vec text;
|
|
52
53
|
};
|
|
53
|
-
type BitcoinFeature =
|
|
54
|
+
type BitcoinFeature = record {
|
|
55
|
+
status : BitcoinFeatureStatus;
|
|
56
|
+
network : Network;
|
|
57
|
+
};
|
|
58
|
+
type BitcoinFeatureStatus = variant { Paused; Enabled; Disabled; Syncing };
|
|
54
59
|
type BlessReplicaVersionPayload = record {
|
|
55
60
|
node_manager_sha256_hex : text;
|
|
56
61
|
release_package_url : text;
|
|
@@ -121,8 +126,16 @@ type FirewallRule = record {
|
|
|
121
126
|
ipv6_prefixes : vec text;
|
|
122
127
|
ports : vec nat32;
|
|
123
128
|
};
|
|
129
|
+
type FirewallRulesScope = variant {
|
|
130
|
+
Node : principal;
|
|
131
|
+
ReplicaNodes;
|
|
132
|
+
Subnet : principal;
|
|
133
|
+
Global;
|
|
134
|
+
};
|
|
124
135
|
type Gps = record { latitude : float32; longitude : float32 };
|
|
136
|
+
type Network = variant { Mainnet; Testnet };
|
|
125
137
|
type NodeOperatorRecord = record {
|
|
138
|
+
ipv6 : opt text;
|
|
126
139
|
node_operator_principal_id : vec nat8;
|
|
127
140
|
node_allowance : nat64;
|
|
128
141
|
rewardable_nodes : vec record { text; nat32 };
|
|
@@ -139,12 +152,13 @@ type RecoverSubnetPayload = record {
|
|
|
139
152
|
replacement_nodes : opt vec principal;
|
|
140
153
|
subnet_id : principal;
|
|
141
154
|
registry_store_uri : opt record { text; text; nat64 };
|
|
155
|
+
ecdsa_config : opt EcdsaInitialConfig;
|
|
142
156
|
state_hash : vec nat8;
|
|
143
157
|
time_ns : nat64;
|
|
144
158
|
};
|
|
145
159
|
type RemoveFirewallRulesPayload = record {
|
|
146
160
|
expected_hash : text;
|
|
147
|
-
scope :
|
|
161
|
+
scope : FirewallRulesScope;
|
|
148
162
|
positions : vec int32;
|
|
149
163
|
};
|
|
150
164
|
type RemoveNodeDirectlyPayload = record { node_id : principal };
|
|
@@ -172,7 +186,7 @@ type SetFirewallConfigPayload = record {
|
|
|
172
186
|
type SubnetFeatures = record {
|
|
173
187
|
canister_sandboxing : bool;
|
|
174
188
|
http_requests : bool;
|
|
175
|
-
|
|
189
|
+
bitcoin : opt BitcoinFeature;
|
|
176
190
|
ecdsa_signatures : bool;
|
|
177
191
|
};
|
|
178
192
|
type SubnetType = variant { application; verified_application; system };
|
|
@@ -185,6 +199,8 @@ type UpdateNodeOperatorConfigDirectlyPayload = record {
|
|
|
185
199
|
};
|
|
186
200
|
type UpdateNodeOperatorConfigPayload = record {
|
|
187
201
|
node_operator_id : opt principal;
|
|
202
|
+
set_ipv6_to_none : opt bool;
|
|
203
|
+
ipv6 : opt text;
|
|
188
204
|
node_provider_id : opt principal;
|
|
189
205
|
node_allowance : opt nat64;
|
|
190
206
|
rewardable_nodes : vec record { text; nat32 };
|
|
@@ -204,6 +220,7 @@ type UpdateSubnetPayload = record {
|
|
|
204
220
|
subnet_id : principal;
|
|
205
221
|
max_ingress_bytes_per_message : opt nat64;
|
|
206
222
|
dkg_dealings_per_block : opt nat64;
|
|
223
|
+
ecdsa_key_signing_disable : opt vec EcdsaKeyId;
|
|
207
224
|
max_block_payload_size : opt nat64;
|
|
208
225
|
max_instructions_per_install_code : opt nat64;
|
|
209
226
|
start_as_nns : opt bool;
|
|
@@ -234,13 +251,12 @@ type UpdateUnassignedNodesConfigPayload = record {
|
|
|
234
251
|
ssh_readonly_access : opt vec text;
|
|
235
252
|
};
|
|
236
253
|
service : {
|
|
237
|
-
//
|
|
254
|
+
// EXCEPTIONS (in rs files but not in did)
|
|
238
255
|
set_authorized_subnetwork_list : (SetAuthorizedSubnetworkListArgs) -> ();
|
|
239
256
|
stop_or_start_nns_canister : (StopOrStartNnsCanisterProposalPayload) -> ();
|
|
240
257
|
update_icp_xdr_conversion_rate : (UpdateIcpXdrConversionRatePayload) -> ();
|
|
241
258
|
|
|
242
|
-
|
|
243
|
-
// updated https://github.com/dfinity/ic/commit/620692ef649876447646ffeed16aa3579d3ec3a8
|
|
259
|
+
// from commit: https://github.com/dfinity/ic/commit/160ad719096f47b2ab0d6223f12faccfb0baebf6
|
|
244
260
|
add_firewall_rules : (AddFirewallRulesPayload) -> ();
|
|
245
261
|
add_node : (AddNodePayload) -> (Result);
|
|
246
262
|
add_node_operator : (AddNodeOperatorPayload) -> ();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
|
|
3
|
+
export const FirewallRulesScope: IDL.RecordClass;
|
|
3
4
|
export const FirewallRule: IDL.RecordClass;
|
|
4
5
|
export const AddFirewallRulesPayload: IDL.RecordClass;
|
|
5
6
|
export const AddNodePayload: IDL.RecordClass;
|
|
@@ -10,6 +11,8 @@ export const Gps: IDL.RecordClass;
|
|
|
10
11
|
export const DataCenterRecord: IDL.RecordClass;
|
|
11
12
|
export const AddOrRemoveDataCentersProposalPayload: IDL.RecordClass;
|
|
12
13
|
export const BlessReplicaVersionPayload: IDL.RecordClass;
|
|
14
|
+
export const BitcoinFeatureStatus: IDL.RecordClass;
|
|
15
|
+
export const Network: IDL.RecordClass;
|
|
13
16
|
export const BitcoinFeature: IDL.RecordClass;
|
|
14
17
|
export const SubnetFeatures: IDL.RecordClass;
|
|
15
18
|
export const EcdsaCurve: IDL.RecordClass;
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { IDL } from "@dfinity/candid";
|
|
6
6
|
|
|
7
|
+
export const FirewallRulesScope = IDL.Variant({
|
|
8
|
+
Node: IDL.Principal,
|
|
9
|
+
ReplicaNodes: IDL.Null,
|
|
10
|
+
Subnet: IDL.Principal,
|
|
11
|
+
Global: IDL.Null,
|
|
12
|
+
});
|
|
7
13
|
export const FirewallRule = IDL.Record({
|
|
8
14
|
ipv4_prefixes: IDL.Vec(IDL.Text),
|
|
9
15
|
action: IDL.Int32,
|
|
@@ -13,7 +19,7 @@ export const FirewallRule = IDL.Record({
|
|
|
13
19
|
});
|
|
14
20
|
export const AddFirewallRulesPayload = IDL.Record({
|
|
15
21
|
expected_hash: IDL.Text,
|
|
16
|
-
scope:
|
|
22
|
+
scope: FirewallRulesScope,
|
|
17
23
|
positions: IDL.Vec(IDL.Int32),
|
|
18
24
|
rules: IDL.Vec(FirewallRule),
|
|
19
25
|
});
|
|
@@ -30,6 +36,7 @@ export const AddNodePayload = IDL.Record({
|
|
|
30
36
|
});
|
|
31
37
|
export const Result = IDL.Variant({ Ok: IDL.Principal, Err: IDL.Text });
|
|
32
38
|
export const AddNodeOperatorPayload = IDL.Record({
|
|
39
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
33
40
|
node_operator_principal_id: IDL.Opt(IDL.Principal),
|
|
34
41
|
node_allowance: IDL.Nat64,
|
|
35
42
|
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
@@ -63,15 +70,21 @@ export const BlessReplicaVersionPayload = IDL.Record({
|
|
|
63
70
|
node_manager_binary_url: IDL.Text,
|
|
64
71
|
binary_url: IDL.Text,
|
|
65
72
|
});
|
|
66
|
-
export const
|
|
73
|
+
export const BitcoinFeatureStatus = IDL.Variant({
|
|
67
74
|
Paused: IDL.Null,
|
|
68
75
|
Enabled: IDL.Null,
|
|
69
76
|
Disabled: IDL.Null,
|
|
77
|
+
Syncing: IDL.Null,
|
|
78
|
+
});
|
|
79
|
+
export const Network = IDL.Variant({ Mainnet: IDL.Null, Testnet: IDL.Null });
|
|
80
|
+
export const BitcoinFeature = IDL.Record({
|
|
81
|
+
status: BitcoinFeatureStatus,
|
|
82
|
+
network: Network,
|
|
70
83
|
});
|
|
71
84
|
export const SubnetFeatures = IDL.Record({
|
|
72
85
|
canister_sandboxing: IDL.Bool,
|
|
73
86
|
http_requests: IDL.Bool,
|
|
74
|
-
|
|
87
|
+
bitcoin: IDL.Opt(BitcoinFeature),
|
|
75
88
|
ecdsa_signatures: IDL.Bool,
|
|
76
89
|
});
|
|
77
90
|
export const EcdsaCurve = IDL.Variant({ secp256k1: IDL.Null });
|
|
@@ -126,6 +139,7 @@ export const DeleteSubnetPayload = IDL.Record({
|
|
|
126
139
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
127
140
|
});
|
|
128
141
|
export const NodeOperatorRecord = IDL.Record({
|
|
142
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
129
143
|
node_operator_principal_id: IDL.Vec(IDL.Nat8),
|
|
130
144
|
node_allowance: IDL.Nat64,
|
|
131
145
|
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
@@ -148,12 +162,13 @@ export const RecoverSubnetPayload = IDL.Record({
|
|
|
148
162
|
replacement_nodes: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
149
163
|
subnet_id: IDL.Principal,
|
|
150
164
|
registry_store_uri: IDL.Opt(IDL.Tuple(IDL.Text, IDL.Text, IDL.Nat64)),
|
|
165
|
+
ecdsa_config: IDL.Opt(EcdsaInitialConfig),
|
|
151
166
|
state_hash: IDL.Vec(IDL.Nat8),
|
|
152
167
|
time_ns: IDL.Nat64,
|
|
153
168
|
});
|
|
154
169
|
export const RemoveFirewallRulesPayload = IDL.Record({
|
|
155
170
|
expected_hash: IDL.Text,
|
|
156
|
-
scope:
|
|
171
|
+
scope: FirewallRulesScope,
|
|
157
172
|
positions: IDL.Vec(IDL.Int32),
|
|
158
173
|
});
|
|
159
174
|
export const RemoveNodeDirectlyPayload = IDL.Record({ node_id: IDL.Principal });
|
|
@@ -193,6 +208,8 @@ export const UpdateNodeDirectlyPayload = IDL.Record({
|
|
|
193
208
|
});
|
|
194
209
|
export const UpdateNodeOperatorConfigPayload = IDL.Record({
|
|
195
210
|
node_operator_id: IDL.Opt(IDL.Principal),
|
|
211
|
+
set_ipv6_to_none: IDL.Opt(IDL.Bool),
|
|
212
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
196
213
|
node_provider_id: IDL.Opt(IDL.Principal),
|
|
197
214
|
node_allowance: IDL.Opt(IDL.Nat64),
|
|
198
215
|
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
@@ -226,6 +243,7 @@ export const UpdateSubnetPayload = IDL.Record({
|
|
|
226
243
|
subnet_id: IDL.Principal,
|
|
227
244
|
max_ingress_bytes_per_message: IDL.Opt(IDL.Nat64),
|
|
228
245
|
dkg_dealings_per_block: IDL.Opt(IDL.Nat64),
|
|
246
|
+
ecdsa_key_signing_disable: IDL.Opt(IDL.Vec(EcdsaKeyId)),
|
|
229
247
|
max_block_payload_size: IDL.Opt(IDL.Nat64),
|
|
230
248
|
max_instructions_per_install_code: IDL.Opt(IDL.Nat64),
|
|
231
249
|
start_as_nns: IDL.Opt(IDL.Bool),
|