@dashevo/dapi-grpc 0.25.6 → 0.25.9

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.
@@ -1,10 +1,15 @@
1
1
  use dapi_grpc::platform::v0 as platform;
2
+ use dapi_grpc::platform::v0::get_consensus_params_request::GetConsensusParamsRequestV0;
2
3
  use prost::Message;
3
4
 
4
5
  fn main() {
5
6
  let request = platform::GetConsensusParamsRequest {
6
- height: 123,
7
- prove: false,
7
+ version: Some(platform::get_consensus_params_request::Version::V0(
8
+ GetConsensusParamsRequestV0 {
9
+ height: 123,
10
+ prove: true,
11
+ },
12
+ )),
8
13
  };
9
14
 
10
15
  let mut buffer = Vec::<u8>::new();
@@ -134,6 +134,48 @@ class PlatformPromiseClient {
134
134
  );
135
135
  }
136
136
 
137
+ /**
138
+ * @param {!GetEpochsInfoRequest} getEpochsInfoRequest
139
+ * @param {?Object<string, string>} metadata
140
+ * @return {Promise<!GetEpochsInfoResponse>}
141
+ */
142
+ getEpochsInfo(getEpochsInfoRequest, metadata = {}) {
143
+ return promisify(
144
+ this.client.getEpochsInfo.bind(this.client),
145
+ )(
146
+ getEpochsInfoRequest,
147
+ metadata,
148
+ );
149
+ }
150
+
151
+ /**
152
+ * @param {!GetVersionUpgradeVoteStatusRequest} getVersionUpgradeVoteStatusRequest
153
+ * @param {?Object<string, string>} metadata
154
+ * @return {Promise<!GetVersionUpgradeVoteStatusResponse>}
155
+ */
156
+ getVersionUpgradeVoteStatus(getVersionUpgradeVoteStatusRequest, metadata = {}) {
157
+ return promisify(
158
+ this.client.getVersionUpgradeVoteStatus.bind(this.client),
159
+ )(
160
+ getVersionUpgradeVoteStatusRequest,
161
+ metadata,
162
+ );
163
+ }
164
+
165
+ /**
166
+ * @param {!GetVersionUpgradeStateRequest} getVersionUpgradeStateRequest
167
+ * @param {?Object<string, string>} metadata
168
+ * @return {Promise<!GetVersionUpgradeStateResponse>}
169
+ */
170
+ getVersionUpgradeState(getVersionUpgradeStateRequest, metadata = {}) {
171
+ return promisify(
172
+ this.client.getVersionUpgradeState.bind(this.client),
173
+ )(
174
+ getVersionUpgradeStateRequest,
175
+ metadata,
176
+ );
177
+ }
178
+
137
179
  /**
138
180
  * @param {string} protocolVersion
139
181
  */