@dashevo/dapi-grpc 0.25.8 → 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.
- package/Cargo.toml +1 -0
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +114 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +16823 -7647
- package/clients/platform/v0/nodejs/platform_protoc.js +14405 -5883
- package/clients/platform/v0/rust/platform_example.rs +7 -2
- package/clients/platform/v0/web/PlatformPromiseClient.js +42 -0
- package/clients/platform/v0/web/platform_pb.d.ts +2103 -920
- package/clients/platform/v0/web/platform_pb.js +14405 -5883
- package/clients/platform/v0/web/platform_pb_service.d.ts +73 -16
- package/clients/platform/v0/web/platform_pb_service.js +128 -8
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +432 -186
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +1095 -406
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +31 -0
|
@@ -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
|
-
|
|
7
|
-
|
|
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
|
*/
|