@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,163 @@
1
+ // We only want to export the types and not the full service.
2
+ // So to update this file, first run 'didc bind -t js payloads.did > payloads.js', then copy the types out from the
3
+ // service factory function, and then export them all (use 'export const' rather than just 'const').
4
+
5
+ import { IDL } from "@dfinity/candid";
6
+
7
+ export const AddNodeOperatorPayload = IDL.Record({
8
+ node_operator_principal_id: IDL.Opt(IDL.Principal),
9
+ node_allowance: IDL.Nat64,
10
+ node_provider_principal_id: IDL.Opt(IDL.Principal),
11
+ });
12
+ export const AddNodesToSubnetPayload = IDL.Record({
13
+ subnet_id: IDL.Principal,
14
+ node_ids: IDL.Vec(IDL.Principal),
15
+ });
16
+ export const Gps = IDL.Record({
17
+ latitude: IDL.Float32,
18
+ longitude: IDL.Float32,
19
+ });
20
+ export const DataCenterRecord = IDL.Record({
21
+ id: IDL.Text,
22
+ gps: IDL.Opt(Gps),
23
+ region: IDL.Text,
24
+ owner: IDL.Text,
25
+ });
26
+ export const AddOrRemoveDataCentersProposalPayload = IDL.Record({
27
+ data_centers_to_add: IDL.Vec(DataCenterRecord),
28
+ data_centers_to_remove: IDL.Vec(IDL.Text),
29
+ });
30
+ export const BlessReplicaVersionPayload = IDL.Record({
31
+ node_manager_sha256_hex: IDL.Text,
32
+ release_package_url: IDL.Text,
33
+ sha256_hex: IDL.Text,
34
+ replica_version_id: IDL.Text,
35
+ release_package_sha256_hex: IDL.Text,
36
+ node_manager_binary_url: IDL.Text,
37
+ binary_url: IDL.Text,
38
+ });
39
+ export const SubnetFeatures = IDL.Record({ ecdsa_signatures: IDL.Bool });
40
+ export const SubnetType = IDL.Variant({
41
+ application: IDL.Null,
42
+ verified_application: IDL.Null,
43
+ system: IDL.Null,
44
+ });
45
+ export const CreateSubnetPayload = IDL.Record({
46
+ unit_delay_millis: IDL.Nat64,
47
+ max_instructions_per_round: IDL.Nat64,
48
+ features: SubnetFeatures,
49
+ max_instructions_per_message: IDL.Nat64,
50
+ gossip_registry_poll_period_ms: IDL.Nat32,
51
+ max_ingress_bytes_per_message: IDL.Nat64,
52
+ dkg_dealings_per_block: IDL.Nat64,
53
+ max_block_payload_size: IDL.Nat64,
54
+ max_instructions_per_install_code: IDL.Nat64,
55
+ start_as_nns: IDL.Bool,
56
+ is_halted: IDL.Bool,
57
+ gossip_pfn_evaluation_period_ms: IDL.Nat32,
58
+ max_ingress_messages_per_block: IDL.Nat64,
59
+ gossip_max_artifact_streams_per_peer: IDL.Nat32,
60
+ replica_version_id: IDL.Text,
61
+ gossip_max_duplicity: IDL.Nat32,
62
+ gossip_max_chunk_wait_ms: IDL.Nat32,
63
+ dkg_interval_length: IDL.Nat64,
64
+ subnet_id_override: IDL.Opt(IDL.Principal),
65
+ ingress_bytes_per_block_soft_cap: IDL.Nat64,
66
+ initial_notary_delay_millis: IDL.Nat64,
67
+ gossip_max_chunk_size: IDL.Nat32,
68
+ subnet_type: SubnetType,
69
+ gossip_retransmission_request_ms: IDL.Nat32,
70
+ gossip_receive_check_cache_size: IDL.Nat32,
71
+ node_ids: IDL.Vec(IDL.Principal),
72
+ });
73
+ export const RecoverSubnetPayload = IDL.Record({
74
+ height: IDL.Nat64,
75
+ replacement_nodes: IDL.Opt(IDL.Vec(IDL.Principal)),
76
+ subnet_id: IDL.Principal,
77
+ registry_store_uri: IDL.Opt(IDL.Tuple(IDL.Text, IDL.Text, IDL.Nat64)),
78
+ state_hash: IDL.Vec(IDL.Nat8),
79
+ time_ns: IDL.Nat64,
80
+ });
81
+ export const RemoveNodeOperatorsPayload = IDL.Record({
82
+ node_operators_to_remove: IDL.Vec(IDL.Vec(IDL.Nat8)),
83
+ });
84
+ export const RemoveNodesFromSubnetPayload = IDL.Record({
85
+ node_ids: IDL.Vec(IDL.Principal),
86
+ });
87
+ export const RerouteCanisterRangePayload = IDL.Record({
88
+ range_end_inclusive: IDL.Principal,
89
+ range_start_inclusive: IDL.Principal,
90
+ destination_subnet: IDL.Principal,
91
+ });
92
+ export const SetAuthorizedSubnetworkListArgs = IDL.Record({
93
+ who: IDL.Opt(IDL.Principal),
94
+ subnets: IDL.Vec(IDL.Principal),
95
+ });
96
+ export const SetFirewallConfigPayload = IDL.Record({
97
+ ipv4_prefixes: IDL.Vec(IDL.Text),
98
+ firewall_config: IDL.Text,
99
+ ipv6_prefixes: IDL.Vec(IDL.Text),
100
+ });
101
+ export const CanisterAction = IDL.Variant({ Start: IDL.Null, Stop: IDL.Null });
102
+ export const StopOrStartNnsCanisterProposalPayload = IDL.Record({
103
+ action: CanisterAction,
104
+ canister_id: IDL.Principal,
105
+ });
106
+ export const UpdateIcpXdrConversionRatePayload = IDL.Record({
107
+ data_source: IDL.Text,
108
+ xdr_permyriad_per_icp: IDL.Nat64,
109
+ timestamp_seconds: IDL.Nat64,
110
+ });
111
+ export const UpdateNodeOperatorConfigPayload = IDL.Record({
112
+ node_operator_id: IDL.Opt(IDL.Principal),
113
+ node_allowance: IDL.Opt(IDL.Nat64),
114
+ rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
115
+ dc_id: IDL.Opt(IDL.Text),
116
+ });
117
+ export const NodeRewardRate = IDL.Record({
118
+ xdr_permyriad_per_node_per_month: IDL.Nat64,
119
+ });
120
+ export const NodeRewardRates = IDL.Record({
121
+ rates: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRate)),
122
+ });
123
+ export const UpdateNodeRewardsTableProposalPayload = IDL.Record({
124
+ new_entries: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRates)),
125
+ });
126
+ export const UpdateSubnetPayload = IDL.Record({
127
+ unit_delay_millis: IDL.Opt(IDL.Nat64),
128
+ max_duplicity: IDL.Opt(IDL.Nat32),
129
+ max_instructions_per_round: IDL.Opt(IDL.Nat64),
130
+ features: IDL.Opt(SubnetFeatures),
131
+ set_gossip_config_to_default: IDL.Bool,
132
+ max_instructions_per_message: IDL.Opt(IDL.Nat64),
133
+ pfn_evaluation_period_ms: IDL.Opt(IDL.Nat32),
134
+ subnet_id: IDL.Principal,
135
+ max_ingress_bytes_per_message: IDL.Opt(IDL.Nat64),
136
+ dkg_dealings_per_block: IDL.Opt(IDL.Nat64),
137
+ max_block_payload_size: IDL.Opt(IDL.Nat64),
138
+ max_instructions_per_install_code: IDL.Opt(IDL.Nat64),
139
+ start_as_nns: IDL.Opt(IDL.Bool),
140
+ is_halted: IDL.Opt(IDL.Bool),
141
+ max_number_of_canisters: IDL.Opt(IDL.Nat64),
142
+ advert_best_effort_percentage: IDL.Opt(IDL.Nat32),
143
+ retransmission_request_ms: IDL.Opt(IDL.Nat32),
144
+ dkg_interval_length: IDL.Opt(IDL.Nat64),
145
+ registry_poll_period_ms: IDL.Opt(IDL.Nat32),
146
+ max_chunk_wait_ms: IDL.Opt(IDL.Nat32),
147
+ receive_check_cache_size: IDL.Opt(IDL.Nat32),
148
+ ssh_backup_access: IDL.Opt(IDL.Vec(IDL.Text)),
149
+ ingress_bytes_per_block_soft_cap: IDL.Opt(IDL.Nat64),
150
+ max_chunk_size: IDL.Opt(IDL.Nat32),
151
+ initial_notary_delay_millis: IDL.Opt(IDL.Nat64),
152
+ max_artifact_streams_per_peer: IDL.Opt(IDL.Nat32),
153
+ subnet_type: IDL.Opt(SubnetType),
154
+ ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text)),
155
+ });
156
+ export const UpdateSubnetReplicaVersionPayload = IDL.Record({
157
+ subnet_id: IDL.Principal,
158
+ replica_version_id: IDL.Text,
159
+ });
160
+ export const UpdateUnassignedNodesConfigPayload = IDL.Record({
161
+ replica_version: IDL.Opt(IDL.Text),
162
+ ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text)),
163
+ });