@dfinity/nns 0.2.1 → 0.2.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.
Files changed (37) hide show
  1. package/dist/candid/governance.certified.idl.d.ts +2 -0
  2. package/dist/candid/governance.certified.idl.js +704 -0
  3. package/dist/candid/governance.did +338 -0
  4. package/dist/candid/governance.idl.d.ts +5 -0
  5. package/dist/candid/governance.idl.js +712 -0
  6. package/dist/candid/governanceTypes.d.ts +413 -0
  7. package/dist/candid/nns_dapp.certified.idl.js +206 -0
  8. package/dist/candid/nns_dapp.did +240 -0
  9. package/dist/candid/nns_dapp.idl.js +206 -0
  10. package/dist/candid/payloads.did +168 -0
  11. package/dist/candid/payloads.idl.d.ts +20 -0
  12. package/dist/candid/payloads.idl.js +163 -0
  13. package/dist/cjs/index.cjs.js +32 -32
  14. package/dist/cjs/index.cjs.js.map +2 -2
  15. package/dist/esm/account_identifier.js +1 -1
  16. package/dist/esm/{chunk-NYI672WX.js → chunk-2DZXLOEC.js} +3 -3
  17. package/dist/esm/{chunk-NYI672WX.js.map → chunk-2DZXLOEC.js.map} +2 -2
  18. package/dist/esm/{chunk-SO23SIWX.js → chunk-D2W3ELRE.js} +2 -2
  19. package/dist/esm/{chunk-SO23SIWX.js.map → chunk-D2W3ELRE.js.map} +0 -0
  20. package/dist/esm/{chunk-X2SHUWG3.js → chunk-QR4654XK.js} +2 -2
  21. package/dist/esm/{chunk-X2SHUWG3.js.map → chunk-QR4654XK.js.map} +0 -0
  22. package/dist/esm/{chunk-YL3F3CIN.js → chunk-RUFBUR7C.js} +2 -2
  23. package/dist/esm/{chunk-YL3F3CIN.js.map → chunk-RUFBUR7C.js.map} +0 -0
  24. package/dist/esm/{chunk-RPOIUQZO.js → chunk-ZWZRSVU4.js} +2 -2
  25. package/dist/esm/{chunk-RPOIUQZO.js.map → chunk-ZWZRSVU4.js.map} +2 -2
  26. package/dist/esm/governance.js +1 -1
  27. package/dist/esm/icp.js +1 -1
  28. package/dist/esm/index.js +1 -1
  29. package/dist/esm/ledger.js +1 -1
  30. package/dist/proto/base_types.proto +60 -0
  31. package/dist/proto/base_types_pb.d.ts +144 -0
  32. package/dist/proto/base_types_pb.js +1071 -0
  33. package/dist/proto/ledger.proto +277 -0
  34. package/dist/proto/ledger_pb.d.ts +911 -0
  35. package/dist/proto/ledger_pb.js +6555 -0
  36. package/dist/types/governance.d.ts +5 -1
  37. package/package.json +2 -2
@@ -0,0 +1,240 @@
1
+ // Generated from nns-dapp repo commit a4f91518433f99b0c127fe037376d06190d6e79e by nns-dapp.update.sh
2
+ type AccountIdentifier = text;
3
+ type BlockHeight = nat64;
4
+ type CanisterId = principal;
5
+ type ICPTs = record { e8s: nat64; };
6
+ type Memo = nat64;
7
+ type NeuronId = nat64;
8
+ type SubAccount = vec nat8;
9
+
10
+ type AccountDetails =
11
+ record {
12
+ "principal": principal;
13
+ account_identifier: AccountIdentifier;
14
+ sub_accounts: vec SubAccountDetails;
15
+ hardware_wallet_accounts: vec HardwareWalletAccountDetails;
16
+ };
17
+
18
+ type SubAccountDetails =
19
+ record {
20
+ name: text;
21
+ sub_account: SubAccount;
22
+ account_identifier: AccountIdentifier;
23
+ };
24
+
25
+ type HardwareWalletAccountDetails =
26
+ record {
27
+ name: text;
28
+ "principal": principal;
29
+ account_identifier: AccountIdentifier;
30
+ };
31
+
32
+ type GetAccountResponse =
33
+ variant {
34
+ Ok: AccountDetails;
35
+ AccountNotFound;
36
+ };
37
+
38
+ type Timestamp =
39
+ record {
40
+ timestamp_nanos: nat64;
41
+ };
42
+
43
+ type GetTransactionsRequest =
44
+ record {
45
+ account_identifier: AccountIdentifier;
46
+ offset: nat32;
47
+ page_size: nat8;
48
+ };
49
+
50
+ type GetTransactionsResponse =
51
+ record {
52
+ transactions: vec Transaction;
53
+ total: nat32;
54
+ };
55
+
56
+ type Send =
57
+ record {
58
+ to: AccountIdentifier;
59
+ amount: ICPTs;
60
+ fee: ICPTs;
61
+ };
62
+
63
+ type Receive =
64
+ record {
65
+ from: AccountIdentifier;
66
+ amount: ICPTs;
67
+ fee: ICPTs;
68
+ };
69
+
70
+ type Transfer =
71
+ variant {
72
+ Burn: record { amount: ICPTs; };
73
+ Mint: record { amount: ICPTs; };
74
+ Send: Send;
75
+ Receive: Receive;
76
+ };
77
+
78
+ type Transaction =
79
+ record {
80
+ block_height: BlockHeight;
81
+ timestamp: Timestamp;
82
+ memo: nat64;
83
+ transfer: Transfer;
84
+ transaction_type: opt TransactionType;
85
+ };
86
+
87
+ type TransactionType =
88
+ variant {
89
+ Burn;
90
+ Mint;
91
+ Send;
92
+ StakeNeuron;
93
+ StakeNeuronNotification;
94
+ TopUpNeuron;
95
+ CreateCanister;
96
+ TopUpCanister: CanisterId;
97
+ };
98
+
99
+ type CreateSubAccountResponse =
100
+ variant {
101
+ Ok: SubAccountDetails;
102
+ AccountNotFound;
103
+ SubAccountLimitExceeded;
104
+ NameTooLong;
105
+ };
106
+
107
+ type RenameSubAccountRequest =
108
+ record {
109
+ account_identifier: AccountIdentifier;
110
+ new_name: text;
111
+ };
112
+
113
+ type RenameSubAccountResponse =
114
+ variant {
115
+ Ok;
116
+ AccountNotFound;
117
+ SubAccountNotFound;
118
+ NameTooLong;
119
+ };
120
+
121
+ type RegisterHardwareWalletRequest =
122
+ record {
123
+ name: text;
124
+ "principal": principal;
125
+ };
126
+
127
+ type RegisterHardwareWalletResponse =
128
+ variant {
129
+ Ok;
130
+ AccountNotFound;
131
+ HardwareWalletAlreadyRegistered;
132
+ HardwareWalletLimitExceeded;
133
+ NameTooLong;
134
+ };
135
+
136
+ type CanisterDetails =
137
+ record {
138
+ name: text;
139
+ canister_id: principal;
140
+ };
141
+
142
+ type AttachCanisterRequest =
143
+ record {
144
+ name: text;
145
+ canister_id: principal;
146
+ };
147
+
148
+ type AttachCanisterResponse =
149
+ variant {
150
+ Ok;
151
+ CanisterLimitExceeded;
152
+ CanisterAlreadyAttached;
153
+ NameAlreadyTaken;
154
+ NameTooLong;
155
+ };
156
+
157
+ type DetachCanisterRequest =
158
+ record {
159
+ canister_id: principal;
160
+ };
161
+
162
+ type DetachCanisterResponse =
163
+ variant {
164
+ Ok;
165
+ CanisterNotFound;
166
+ };
167
+
168
+ type MultiPartTransactionStatus =
169
+ variant {
170
+ NeuronCreated: NeuronId;
171
+ CanisterCreated: CanisterId;
172
+ Complete;
173
+ Refunded: record { BlockHeight; text; };
174
+ Error: text;
175
+ ErrorWithRefundPending: text;
176
+ NotFound;
177
+ PendingSync;
178
+ Queued;
179
+ };
180
+
181
+ type MultiPartTransactionError =
182
+ record {
183
+ block_height: BlockHeight;
184
+ error_message: text;
185
+ };
186
+
187
+ type Stats =
188
+ record {
189
+ accounts_count: nat64;
190
+ sub_accounts_count: nat64;
191
+ hardware_wallet_accounts_count: nat64;
192
+ transactions_count: nat64;
193
+ block_height_synced_up_to: opt nat64;
194
+ earliest_transaction_timestamp_nanos: nat64;
195
+ earliest_transaction_block_height: BlockHeight;
196
+ latest_transaction_timestamp_nanos: nat64;
197
+ latest_transaction_block_height: BlockHeight;
198
+ seconds_since_last_ledger_sync: nat64;
199
+ neurons_created_count: nat64;
200
+ neurons_topped_up_count: nat64;
201
+ transactions_to_process_queue_length: nat32;
202
+ };
203
+
204
+ type HeaderField =
205
+ record {
206
+ text; text;
207
+ };
208
+
209
+ type HttpRequest =
210
+ record {
211
+ method: text;
212
+ url: text;
213
+ headers: vec HeaderField;
214
+ body: blob;
215
+ };
216
+
217
+ type HttpResponse =
218
+ record {
219
+ status_code: nat16;
220
+ headers: vec HeaderField;
221
+ body: blob;
222
+ };
223
+
224
+ service : {
225
+ get_account: () -> (GetAccountResponse) query;
226
+ add_account: () -> (AccountIdentifier);
227
+ get_transactions: (GetTransactionsRequest) -> (GetTransactionsResponse) query;
228
+ create_sub_account: (text) -> (CreateSubAccountResponse);
229
+ rename_sub_account: (RenameSubAccountRequest) -> (RenameSubAccountResponse);
230
+ register_hardware_wallet: (RegisterHardwareWalletRequest) -> (RegisterHardwareWalletResponse);
231
+ get_canisters: () -> (vec CanisterDetails) query;
232
+ attach_canister: (AttachCanisterRequest) -> (AttachCanisterResponse);
233
+ detach_canister: (DetachCanisterRequest) -> (DetachCanisterResponse);
234
+ get_multi_part_transaction_status: (principal, BlockHeight) -> (MultiPartTransactionStatus) query;
235
+ get_multi_part_transaction_errors: () -> (vec MultiPartTransactionError) query;
236
+ get_stats: () -> (Stats) query;
237
+
238
+ http_request: (request: HttpRequest) -> (HttpResponse) query;
239
+ add_stable_asset: (asset: blob) -> ();
240
+ }
@@ -0,0 +1,206 @@
1
+ /* Do not edit. Compiled with ./scripts/compile-idl-js from candid/nns_dapp.did */
2
+ export const idlFactory = ({ IDL }) => {
3
+ const AccountIdentifier = IDL.Text;
4
+ const AttachCanisterRequest = IDL.Record({
5
+ 'name' : IDL.Text,
6
+ 'canister_id' : IDL.Principal,
7
+ });
8
+ const AttachCanisterResponse = IDL.Variant({
9
+ 'Ok' : IDL.Null,
10
+ 'CanisterAlreadyAttached' : IDL.Null,
11
+ 'NameAlreadyTaken' : IDL.Null,
12
+ 'NameTooLong' : IDL.Null,
13
+ 'CanisterLimitExceeded' : IDL.Null,
14
+ });
15
+ const SubAccount = IDL.Vec(IDL.Nat8);
16
+ const SubAccountDetails = IDL.Record({
17
+ 'name' : IDL.Text,
18
+ 'sub_account' : SubAccount,
19
+ 'account_identifier' : AccountIdentifier,
20
+ });
21
+ const CreateSubAccountResponse = IDL.Variant({
22
+ 'Ok' : SubAccountDetails,
23
+ 'AccountNotFound' : IDL.Null,
24
+ 'NameTooLong' : IDL.Null,
25
+ 'SubAccountLimitExceeded' : IDL.Null,
26
+ });
27
+ const DetachCanisterRequest = IDL.Record({ 'canister_id' : IDL.Principal });
28
+ const DetachCanisterResponse = IDL.Variant({
29
+ 'Ok' : IDL.Null,
30
+ 'CanisterNotFound' : IDL.Null,
31
+ });
32
+ const HardwareWalletAccountDetails = IDL.Record({
33
+ 'principal' : IDL.Principal,
34
+ 'name' : IDL.Text,
35
+ 'account_identifier' : AccountIdentifier,
36
+ });
37
+ const AccountDetails = IDL.Record({
38
+ 'principal' : IDL.Principal,
39
+ 'account_identifier' : AccountIdentifier,
40
+ 'hardware_wallet_accounts' : IDL.Vec(HardwareWalletAccountDetails),
41
+ 'sub_accounts' : IDL.Vec(SubAccountDetails),
42
+ });
43
+ const GetAccountResponse = IDL.Variant({
44
+ 'Ok' : AccountDetails,
45
+ 'AccountNotFound' : IDL.Null,
46
+ });
47
+ const CanisterDetails = IDL.Record({
48
+ 'name' : IDL.Text,
49
+ 'canister_id' : IDL.Principal,
50
+ });
51
+ const BlockHeight = IDL.Nat64;
52
+ const MultiPartTransactionError = IDL.Record({
53
+ 'error_message' : IDL.Text,
54
+ 'block_height' : BlockHeight,
55
+ });
56
+ const CanisterId = IDL.Principal;
57
+ const NeuronId = IDL.Nat64;
58
+ const MultiPartTransactionStatus = IDL.Variant({
59
+ 'Queued' : IDL.Null,
60
+ 'Error' : IDL.Text,
61
+ 'Refunded' : IDL.Tuple(BlockHeight, IDL.Text),
62
+ 'CanisterCreated' : CanisterId,
63
+ 'Complete' : IDL.Null,
64
+ 'NotFound' : IDL.Null,
65
+ 'NeuronCreated' : NeuronId,
66
+ 'PendingSync' : IDL.Null,
67
+ 'ErrorWithRefundPending' : IDL.Text,
68
+ });
69
+ const Stats = IDL.Record({
70
+ 'latest_transaction_block_height' : BlockHeight,
71
+ 'seconds_since_last_ledger_sync' : IDL.Nat64,
72
+ 'sub_accounts_count' : IDL.Nat64,
73
+ 'neurons_topped_up_count' : IDL.Nat64,
74
+ 'transactions_to_process_queue_length' : IDL.Nat32,
75
+ 'neurons_created_count' : IDL.Nat64,
76
+ 'hardware_wallet_accounts_count' : IDL.Nat64,
77
+ 'accounts_count' : IDL.Nat64,
78
+ 'earliest_transaction_block_height' : BlockHeight,
79
+ 'transactions_count' : IDL.Nat64,
80
+ 'block_height_synced_up_to' : IDL.Opt(IDL.Nat64),
81
+ 'latest_transaction_timestamp_nanos' : IDL.Nat64,
82
+ 'earliest_transaction_timestamp_nanos' : IDL.Nat64,
83
+ });
84
+ const GetTransactionsRequest = IDL.Record({
85
+ 'page_size' : IDL.Nat8,
86
+ 'offset' : IDL.Nat32,
87
+ 'account_identifier' : AccountIdentifier,
88
+ });
89
+ const TransactionType = IDL.Variant({
90
+ 'Burn' : IDL.Null,
91
+ 'Mint' : IDL.Null,
92
+ 'Send' : IDL.Null,
93
+ 'StakeNeuronNotification' : IDL.Null,
94
+ 'TopUpCanister' : CanisterId,
95
+ 'CreateCanister' : IDL.Null,
96
+ 'TopUpNeuron' : IDL.Null,
97
+ 'StakeNeuron' : IDL.Null,
98
+ });
99
+ const Timestamp = IDL.Record({ 'timestamp_nanos' : IDL.Nat64 });
100
+ const ICPTs = IDL.Record({ 'e8s' : IDL.Nat64 });
101
+ const Send = IDL.Record({
102
+ 'to' : AccountIdentifier,
103
+ 'fee' : ICPTs,
104
+ 'amount' : ICPTs,
105
+ });
106
+ const Receive = IDL.Record({
107
+ 'fee' : ICPTs,
108
+ 'from' : AccountIdentifier,
109
+ 'amount' : ICPTs,
110
+ });
111
+ const Transfer = IDL.Variant({
112
+ 'Burn' : IDL.Record({ 'amount' : ICPTs }),
113
+ 'Mint' : IDL.Record({ 'amount' : ICPTs }),
114
+ 'Send' : Send,
115
+ 'Receive' : Receive,
116
+ });
117
+ const Transaction = IDL.Record({
118
+ 'transaction_type' : IDL.Opt(TransactionType),
119
+ 'memo' : IDL.Nat64,
120
+ 'timestamp' : Timestamp,
121
+ 'block_height' : BlockHeight,
122
+ 'transfer' : Transfer,
123
+ });
124
+ const GetTransactionsResponse = IDL.Record({
125
+ 'total' : IDL.Nat32,
126
+ 'transactions' : IDL.Vec(Transaction),
127
+ });
128
+ const HeaderField = IDL.Tuple(IDL.Text, IDL.Text);
129
+ const HttpRequest = IDL.Record({
130
+ 'url' : IDL.Text,
131
+ 'method' : IDL.Text,
132
+ 'body' : IDL.Vec(IDL.Nat8),
133
+ 'headers' : IDL.Vec(HeaderField),
134
+ });
135
+ const HttpResponse = IDL.Record({
136
+ 'body' : IDL.Vec(IDL.Nat8),
137
+ 'headers' : IDL.Vec(HeaderField),
138
+ 'status_code' : IDL.Nat16,
139
+ });
140
+ const RegisterHardwareWalletRequest = IDL.Record({
141
+ 'principal' : IDL.Principal,
142
+ 'name' : IDL.Text,
143
+ });
144
+ const RegisterHardwareWalletResponse = IDL.Variant({
145
+ 'Ok' : IDL.Null,
146
+ 'AccountNotFound' : IDL.Null,
147
+ 'HardwareWalletAlreadyRegistered' : IDL.Null,
148
+ 'HardwareWalletLimitExceeded' : IDL.Null,
149
+ 'NameTooLong' : IDL.Null,
150
+ });
151
+ const RenameSubAccountRequest = IDL.Record({
152
+ 'new_name' : IDL.Text,
153
+ 'account_identifier' : AccountIdentifier,
154
+ });
155
+ const RenameSubAccountResponse = IDL.Variant({
156
+ 'Ok' : IDL.Null,
157
+ 'AccountNotFound' : IDL.Null,
158
+ 'SubAccountNotFound' : IDL.Null,
159
+ 'NameTooLong' : IDL.Null,
160
+ });
161
+ return IDL.Service({
162
+ 'add_account' : IDL.Func([], [AccountIdentifier], []),
163
+ 'add_stable_asset' : IDL.Func([IDL.Vec(IDL.Nat8)], [], []),
164
+ 'attach_canister' : IDL.Func(
165
+ [AttachCanisterRequest],
166
+ [AttachCanisterResponse],
167
+ [],
168
+ ),
169
+ 'create_sub_account' : IDL.Func([IDL.Text], [CreateSubAccountResponse], []),
170
+ 'detach_canister' : IDL.Func(
171
+ [DetachCanisterRequest],
172
+ [DetachCanisterResponse],
173
+ [],
174
+ ),
175
+ 'get_account' : IDL.Func([], [GetAccountResponse], ['query']),
176
+ 'get_canisters' : IDL.Func([], [IDL.Vec(CanisterDetails)], ['query']),
177
+ 'get_multi_part_transaction_errors' : IDL.Func(
178
+ [],
179
+ [IDL.Vec(MultiPartTransactionError)],
180
+ ['query'],
181
+ ),
182
+ 'get_multi_part_transaction_status' : IDL.Func(
183
+ [IDL.Principal, BlockHeight],
184
+ [MultiPartTransactionStatus],
185
+ ['query'],
186
+ ),
187
+ 'get_stats' : IDL.Func([], [Stats], ['query']),
188
+ 'get_transactions' : IDL.Func(
189
+ [GetTransactionsRequest],
190
+ [GetTransactionsResponse],
191
+ ['query'],
192
+ ),
193
+ 'http_request' : IDL.Func([HttpRequest], [HttpResponse], ['query']),
194
+ 'register_hardware_wallet' : IDL.Func(
195
+ [RegisterHardwareWalletRequest],
196
+ [RegisterHardwareWalletResponse],
197
+ [],
198
+ ),
199
+ 'rename_sub_account' : IDL.Func(
200
+ [RenameSubAccountRequest],
201
+ [RenameSubAccountResponse],
202
+ [],
203
+ ),
204
+ });
205
+ };
206
+ export const init = ({ IDL }) => { return []; };
@@ -0,0 +1,168 @@
1
+ // Generated by running `cargo run --bin nns_functions_candid_gen`
2
+
3
+ type AddNodeOperatorPayload = record {
4
+ node_operator_principal_id : opt principal;
5
+ node_allowance : nat64;
6
+ node_provider_principal_id : opt principal;
7
+ };
8
+ type AddNodesToSubnetPayload = record {
9
+ subnet_id : principal;
10
+ node_ids : vec principal;
11
+ };
12
+ type AddOrRemoveDataCentersProposalPayload = record {
13
+ data_centers_to_add : vec DataCenterRecord;
14
+ data_centers_to_remove : vec text;
15
+ };
16
+ type BlessReplicaVersionPayload = record {
17
+ node_manager_sha256_hex : text;
18
+ release_package_url : text;
19
+ sha256_hex : text;
20
+ replica_version_id : text;
21
+ release_package_sha256_hex : text;
22
+ node_manager_binary_url : text;
23
+ binary_url : text;
24
+ };
25
+ type CanisterAction = variant { Start; Stop };
26
+ type CreateSubnetPayload = record {
27
+ unit_delay_millis : nat64;
28
+ max_instructions_per_round : nat64;
29
+ features : SubnetFeatures;
30
+ max_instructions_per_message : nat64;
31
+ gossip_registry_poll_period_ms : nat32;
32
+ max_ingress_bytes_per_message : nat64;
33
+ dkg_dealings_per_block : nat64;
34
+ max_block_payload_size : nat64;
35
+ max_instructions_per_install_code : nat64;
36
+ start_as_nns : bool;
37
+ is_halted : bool;
38
+ gossip_pfn_evaluation_period_ms : nat32;
39
+ max_ingress_messages_per_block : nat64;
40
+ gossip_max_artifact_streams_per_peer : nat32;
41
+ replica_version_id : text;
42
+ gossip_max_duplicity : nat32;
43
+ gossip_max_chunk_wait_ms : nat32;
44
+ dkg_interval_length : nat64;
45
+ subnet_id_override : opt principal;
46
+ ingress_bytes_per_block_soft_cap : nat64;
47
+ initial_notary_delay_millis : nat64;
48
+ gossip_max_chunk_size : nat32;
49
+ subnet_type : SubnetType;
50
+ gossip_retransmission_request_ms : nat32;
51
+ gossip_receive_check_cache_size : nat32;
52
+ node_ids : vec principal;
53
+ };
54
+ type DataCenterRecord = record {
55
+ id : text;
56
+ gps : opt Gps;
57
+ region : text;
58
+ owner : text;
59
+ };
60
+ type Gps = record { latitude : float32; longitude : float32 };
61
+ type NodeRewardRate = record { xdr_permyriad_per_node_per_month : nat64 };
62
+ type NodeRewardRates = record { rates : vec record { text; NodeRewardRate } };
63
+ type RecoverSubnetPayload = record {
64
+ height : nat64;
65
+ replacement_nodes : opt vec principal;
66
+ subnet_id : principal;
67
+ registry_store_uri : opt record { text; text; nat64 };
68
+ state_hash : vec nat8;
69
+ time_ns : nat64;
70
+ };
71
+ type RemoveNodeOperatorsPayload = record {
72
+ node_operators_to_remove : vec vec nat8;
73
+ };
74
+ type RemoveNodesFromSubnetPayload = record { node_ids : vec principal };
75
+ type RerouteCanisterRangePayload = record {
76
+ range_end_inclusive : principal;
77
+ range_start_inclusive : principal;
78
+ destination_subnet : principal;
79
+ };
80
+ type SetAuthorizedSubnetworkListArgs = record {
81
+ who : opt principal;
82
+ subnets : vec principal;
83
+ };
84
+ type SetFirewallConfigPayload = record {
85
+ ipv4_prefixes : vec text;
86
+ firewall_config : text;
87
+ ipv6_prefixes : vec text;
88
+ };
89
+ type StopOrStartNnsCanisterProposalPayload = record {
90
+ action : CanisterAction;
91
+ canister_id : principal;
92
+ };
93
+ type SubnetFeatures = record { ecdsa_signatures : bool };
94
+ type SubnetType = variant { application; verified_application; system };
95
+ type UpdateIcpXdrConversionRatePayload = record {
96
+ data_source : text;
97
+ xdr_permyriad_per_icp : nat64;
98
+ timestamp_seconds : nat64;
99
+ };
100
+ type UpdateNodeOperatorConfigPayload = record {
101
+ node_operator_id : opt principal;
102
+ node_allowance : opt nat64;
103
+ rewardable_nodes : vec record { text; nat32 };
104
+ dc_id : opt text;
105
+ };
106
+ type UpdateNodeRewardsTableProposalPayload = record {
107
+ new_entries : vec record { text; NodeRewardRates };
108
+ };
109
+ type UpdateSubnetPayload = record {
110
+ unit_delay_millis : opt nat64;
111
+ max_duplicity : opt nat32;
112
+ max_instructions_per_round : opt nat64;
113
+ features : opt SubnetFeatures;
114
+ set_gossip_config_to_default : bool;
115
+ max_instructions_per_message : opt nat64;
116
+ pfn_evaluation_period_ms : opt nat32;
117
+ subnet_id : principal;
118
+ max_ingress_bytes_per_message : opt nat64;
119
+ dkg_dealings_per_block : opt nat64;
120
+ max_block_payload_size : opt nat64;
121
+ max_instructions_per_install_code : opt nat64;
122
+ start_as_nns : opt bool;
123
+ is_halted : opt bool;
124
+ max_number_of_canisters : opt nat64;
125
+ advert_best_effort_percentage : opt nat32;
126
+ retransmission_request_ms : opt nat32;
127
+ dkg_interval_length : opt nat64;
128
+ registry_poll_period_ms : opt nat32;
129
+ max_chunk_wait_ms : opt nat32;
130
+ receive_check_cache_size : opt nat32;
131
+ ssh_backup_access : opt vec text;
132
+ ingress_bytes_per_block_soft_cap : opt nat64;
133
+ max_chunk_size : opt nat32;
134
+ initial_notary_delay_millis : opt nat64;
135
+ max_artifact_streams_per_peer : opt nat32;
136
+ subnet_type : opt SubnetType;
137
+ ssh_readonly_access : opt vec text;
138
+ };
139
+ type UpdateSubnetReplicaVersionPayload = record {
140
+ subnet_id : principal;
141
+ replica_version_id : text;
142
+ };
143
+ type UpdateUnassignedNodesConfigPayload = record {
144
+ replica_version : opt text;
145
+ ssh_readonly_access : opt vec text;
146
+ };
147
+ service : {
148
+ add_node_operator : (AddNodeOperatorPayload) -> ();
149
+ add_nodes_to_subnet : (AddNodesToSubnetPayload) -> ();
150
+ add_or_remove_data_centers : (AddOrRemoveDataCentersProposalPayload) -> ();
151
+ bless_replica_version : (BlessReplicaVersionPayload) -> ();
152
+ clear_provisional_whitelist : () -> ();
153
+ create_subnet : (CreateSubnetPayload) -> ();
154
+ recover_subnet : (RecoverSubnetPayload) -> ();
155
+ remove_node_operators : (RemoveNodeOperatorsPayload) -> ();
156
+ remove_nodes : (RemoveNodesFromSubnetPayload) -> ();
157
+ remove_nodes_from_subnet : (RemoveNodesFromSubnetPayload) -> ();
158
+ reroute_canister_range : (RerouteCanisterRangePayload) -> ();
159
+ set_authorized_subnetwork_list : (SetAuthorizedSubnetworkListArgs) -> ();
160
+ set_firewall_config : (SetFirewallConfigPayload) -> ();
161
+ stop_or_start_nns_canister : (StopOrStartNnsCanisterProposalPayload) -> ();
162
+ update_icp_xdr_conversion_rate : (UpdateIcpXdrConversionRatePayload) -> ();
163
+ update_node_operator_config : (UpdateNodeOperatorConfigPayload) -> ();
164
+ update_node_rewards_table : (UpdateNodeRewardsTableProposalPayload) -> ();
165
+ update_subnet : (UpdateSubnetPayload) -> ();
166
+ update_subnet_replica_version : (UpdateSubnetReplicaVersionPayload) -> ();
167
+ update_unassigned_nodes_config : (UpdateUnassignedNodesConfigPayload) -> ();
168
+ }
@@ -0,0 +1,20 @@
1
+ import type { IDL } from "@dfinity/candid";
2
+
3
+ export const AddNodeOperatorPayload: IDL.RecordClass;
4
+ export const AddNodesToSubnetPayload: IDL.RecordClass;
5
+ export const AddOrRemoveDataCentersProposalPayload: IDL.RecordClass;
6
+ export const BlessReplicaVersionPayload: IDL.RecordClass;
7
+ export const CreateSubnetPayload: IDL.RecordClass;
8
+ export const RecoverSubnetPayload: IDL.RecordClass;
9
+ export const RemoveNodeOperatorsPayload: IDL.RecordClass;
10
+ export const RemoveNodesFromSubnetPayload: IDL.RecordClass;
11
+ export const RerouteCanisterRangePayload: IDL.RecordClass;
12
+ export const SetAuthorizedSubnetworkListArgs: IDL.RecordClass;
13
+ export const SetFirewallConfigPayload: IDL.RecordClass;
14
+ export const StopOrStartNnsCanisterProposalPayload: IDL.RecordClass;
15
+ export const UpdateIcpXdrConversionRatePayload: IDL.RecordClass;
16
+ export const UpdateNodeOperatorConfigPayload: IDL.RecordClass;
17
+ export const UpdateNodeRewardsTableProposalPayload: IDL.RecordClass;
18
+ export const UpdateSubnetPayload: IDL.RecordClass;
19
+ export const UpdateSubnetReplicaVersionPayload: IDL.RecordClass;
20
+ export const UpdateUnassignedNodesConfigPayload: IDL.RecordClass;