@dashevo/dapi-grpc 4.2.0-dev.9 → 5.0.0-beta.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.
- package/Cargo.toml +1 -1
- package/README.md +32 -0
- package/build.rs +31 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +30374 -7055
- package/clients/platform/v0/nodejs/platform_pbjs.js +30374 -7055
- package/clients/platform/v0/nodejs/platform_protoc.js +29961 -6464
- package/clients/platform/v0/web/platform_pb.d.ts +3106 -49
- package/clients/platform/v0/web/platform_pb.js +29961 -6464
- package/clients/platform/v0/web/platform_pb_service.d.ts +247 -0
- package/clients/platform/v0/web/platform_pb_service.js +520 -0
- package/codegen.json +31 -0
- package/package.json +4 -3
- package/protos/platform/v0/platform.proto +769 -3
- package/scripts/build.sh +61 -247
- package/scripts/check-packed-clients.py +32 -0
- package/scripts/patch-protobuf-js.sh +11 -6
- package/scripts/setup-codegen.py +74 -0
- package/test/unit/shielded-requests.spec.js +51 -0
|
@@ -64,6 +64,15 @@ Platform.getIdentityContractNonce = {
|
|
|
64
64
|
responseType: platform_pb.GetIdentityContractNonceResponse
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
Platform.getIdentityKeysRemainingBudgets = {
|
|
68
|
+
methodName: "getIdentityKeysRemainingBudgets",
|
|
69
|
+
service: Platform,
|
|
70
|
+
requestStream: false,
|
|
71
|
+
responseStream: false,
|
|
72
|
+
requestType: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
73
|
+
responseType: platform_pb.GetIdentityKeysRemainingBudgetsResponse
|
|
74
|
+
};
|
|
75
|
+
|
|
67
76
|
Platform.getIdentityBalance = {
|
|
68
77
|
methodName: "getIdentityBalance",
|
|
69
78
|
service: Platform,
|
|
@@ -127,6 +136,15 @@ Platform.getDataContractHistory = {
|
|
|
127
136
|
responseType: platform_pb.GetDataContractHistoryResponse
|
|
128
137
|
};
|
|
129
138
|
|
|
139
|
+
Platform.getDataContractsLatestVersions = {
|
|
140
|
+
methodName: "getDataContractsLatestVersions",
|
|
141
|
+
service: Platform,
|
|
142
|
+
requestStream: false,
|
|
143
|
+
responseStream: false,
|
|
144
|
+
requestType: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
145
|
+
responseType: platform_pb.GetDataContractsLatestVersionsResponse
|
|
146
|
+
};
|
|
147
|
+
|
|
130
148
|
Platform.getDataContracts = {
|
|
131
149
|
methodName: "getDataContracts",
|
|
132
150
|
service: Platform,
|
|
@@ -136,6 +154,105 @@ Platform.getDataContracts = {
|
|
|
136
154
|
responseType: platform_pb.GetDataContractsResponse
|
|
137
155
|
};
|
|
138
156
|
|
|
157
|
+
Platform.getDataContractsByRange = {
|
|
158
|
+
methodName: "getDataContractsByRange",
|
|
159
|
+
service: Platform,
|
|
160
|
+
requestStream: false,
|
|
161
|
+
responseStream: false,
|
|
162
|
+
requestType: platform_pb.GetDataContractsByRangeRequest,
|
|
163
|
+
responseType: platform_pb.GetDataContractsResponse
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
Platform.getContractGroupInfo = {
|
|
167
|
+
methodName: "getContractGroupInfo",
|
|
168
|
+
service: Platform,
|
|
169
|
+
requestStream: false,
|
|
170
|
+
responseStream: false,
|
|
171
|
+
requestType: platform_pb.GetContractGroupInfoRequest,
|
|
172
|
+
responseType: platform_pb.GetContractGroupInfoResponse
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
Platform.getContractGroupMembers = {
|
|
176
|
+
methodName: "getContractGroupMembers",
|
|
177
|
+
service: Platform,
|
|
178
|
+
requestStream: false,
|
|
179
|
+
responseStream: false,
|
|
180
|
+
requestType: platform_pb.GetContractGroupMembersRequest,
|
|
181
|
+
responseType: platform_pb.GetContractGroupMembersResponse
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
Platform.getContractGroupsForContract = {
|
|
185
|
+
methodName: "getContractGroupsForContract",
|
|
186
|
+
service: Platform,
|
|
187
|
+
requestStream: false,
|
|
188
|
+
responseStream: false,
|
|
189
|
+
requestType: platform_pb.GetContractGroupsForContractRequest,
|
|
190
|
+
responseType: platform_pb.GetContractGroupsForContractResponse
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
Platform.getContractModerationStatus = {
|
|
194
|
+
methodName: "getContractModerationStatus",
|
|
195
|
+
service: Platform,
|
|
196
|
+
requestStream: false,
|
|
197
|
+
responseStream: false,
|
|
198
|
+
requestType: platform_pb.GetContractModerationStatusRequest,
|
|
199
|
+
responseType: platform_pb.GetContractModerationStatusResponse
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
Platform.getContractModerationEntries = {
|
|
203
|
+
methodName: "getContractModerationEntries",
|
|
204
|
+
service: Platform,
|
|
205
|
+
requestStream: false,
|
|
206
|
+
responseStream: false,
|
|
207
|
+
requestType: platform_pb.GetContractModerationEntriesRequest,
|
|
208
|
+
responseType: platform_pb.GetContractModerationEntriesResponse
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
Platform.getContractDocumentRemovals = {
|
|
212
|
+
methodName: "getContractDocumentRemovals",
|
|
213
|
+
service: Platform,
|
|
214
|
+
requestStream: false,
|
|
215
|
+
responseStream: false,
|
|
216
|
+
requestType: platform_pb.GetContractDocumentRemovalsRequest,
|
|
217
|
+
responseType: platform_pb.GetContractDocumentRemovalsResponse
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
Platform.getContractTeamActions = {
|
|
221
|
+
methodName: "getContractTeamActions",
|
|
222
|
+
service: Platform,
|
|
223
|
+
requestStream: false,
|
|
224
|
+
responseStream: false,
|
|
225
|
+
requestType: platform_pb.GetContractTeamActionsRequest,
|
|
226
|
+
responseType: platform_pb.GetContractTeamActionsResponse
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
Platform.getContractTeamActionSigners = {
|
|
230
|
+
methodName: "getContractTeamActionSigners",
|
|
231
|
+
service: Platform,
|
|
232
|
+
requestStream: false,
|
|
233
|
+
responseStream: false,
|
|
234
|
+
requestType: platform_pb.GetContractTeamActionSignersRequest,
|
|
235
|
+
responseType: platform_pb.GetContractTeamActionSignersResponse
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
Platform.getContractModerationActionCounts = {
|
|
239
|
+
methodName: "getContractModerationActionCounts",
|
|
240
|
+
service: Platform,
|
|
241
|
+
requestStream: false,
|
|
242
|
+
responseStream: false,
|
|
243
|
+
requestType: platform_pb.GetContractModerationActionCountsRequest,
|
|
244
|
+
responseType: platform_pb.GetContractModerationActionCountsResponse
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
Platform.getContractFeePots = {
|
|
248
|
+
methodName: "getContractFeePots",
|
|
249
|
+
service: Platform,
|
|
250
|
+
requestStream: false,
|
|
251
|
+
responseStream: false,
|
|
252
|
+
requestType: platform_pb.GetContractFeePotsRequest,
|
|
253
|
+
responseType: platform_pb.GetContractFeePotsResponse
|
|
254
|
+
};
|
|
255
|
+
|
|
139
256
|
Platform.getDocumentHistory = {
|
|
140
257
|
methodName: "getDocumentHistory",
|
|
141
258
|
service: Platform,
|
|
@@ -743,6 +860,37 @@ PlatformClient.prototype.getIdentityContractNonce = function getIdentityContract
|
|
|
743
860
|
};
|
|
744
861
|
};
|
|
745
862
|
|
|
863
|
+
PlatformClient.prototype.getIdentityKeysRemainingBudgets = function getIdentityKeysRemainingBudgets(requestMessage, metadata, callback) {
|
|
864
|
+
if (arguments.length === 2) {
|
|
865
|
+
callback = arguments[1];
|
|
866
|
+
}
|
|
867
|
+
var client = grpc.unary(Platform.getIdentityKeysRemainingBudgets, {
|
|
868
|
+
request: requestMessage,
|
|
869
|
+
host: this.serviceHost,
|
|
870
|
+
metadata: metadata,
|
|
871
|
+
transport: this.options.transport,
|
|
872
|
+
debug: this.options.debug,
|
|
873
|
+
onEnd: function (response) {
|
|
874
|
+
if (callback) {
|
|
875
|
+
if (response.status !== grpc.Code.OK) {
|
|
876
|
+
var err = new Error(response.statusMessage);
|
|
877
|
+
err.code = response.status;
|
|
878
|
+
err.metadata = response.trailers;
|
|
879
|
+
callback(err, null);
|
|
880
|
+
} else {
|
|
881
|
+
callback(null, response.message);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
return {
|
|
887
|
+
cancel: function () {
|
|
888
|
+
callback = null;
|
|
889
|
+
client.close();
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
|
|
746
894
|
PlatformClient.prototype.getIdentityBalance = function getIdentityBalance(requestMessage, metadata, callback) {
|
|
747
895
|
if (arguments.length === 2) {
|
|
748
896
|
callback = arguments[1];
|
|
@@ -960,6 +1108,37 @@ PlatformClient.prototype.getDataContractHistory = function getDataContractHistor
|
|
|
960
1108
|
};
|
|
961
1109
|
};
|
|
962
1110
|
|
|
1111
|
+
PlatformClient.prototype.getDataContractsLatestVersions = function getDataContractsLatestVersions(requestMessage, metadata, callback) {
|
|
1112
|
+
if (arguments.length === 2) {
|
|
1113
|
+
callback = arguments[1];
|
|
1114
|
+
}
|
|
1115
|
+
var client = grpc.unary(Platform.getDataContractsLatestVersions, {
|
|
1116
|
+
request: requestMessage,
|
|
1117
|
+
host: this.serviceHost,
|
|
1118
|
+
metadata: metadata,
|
|
1119
|
+
transport: this.options.transport,
|
|
1120
|
+
debug: this.options.debug,
|
|
1121
|
+
onEnd: function (response) {
|
|
1122
|
+
if (callback) {
|
|
1123
|
+
if (response.status !== grpc.Code.OK) {
|
|
1124
|
+
var err = new Error(response.statusMessage);
|
|
1125
|
+
err.code = response.status;
|
|
1126
|
+
err.metadata = response.trailers;
|
|
1127
|
+
callback(err, null);
|
|
1128
|
+
} else {
|
|
1129
|
+
callback(null, response.message);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
return {
|
|
1135
|
+
cancel: function () {
|
|
1136
|
+
callback = null;
|
|
1137
|
+
client.close();
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
|
|
963
1142
|
PlatformClient.prototype.getDataContracts = function getDataContracts(requestMessage, metadata, callback) {
|
|
964
1143
|
if (arguments.length === 2) {
|
|
965
1144
|
callback = arguments[1];
|
|
@@ -991,6 +1170,347 @@ PlatformClient.prototype.getDataContracts = function getDataContracts(requestMes
|
|
|
991
1170
|
};
|
|
992
1171
|
};
|
|
993
1172
|
|
|
1173
|
+
PlatformClient.prototype.getDataContractsByRange = function getDataContractsByRange(requestMessage, metadata, callback) {
|
|
1174
|
+
if (arguments.length === 2) {
|
|
1175
|
+
callback = arguments[1];
|
|
1176
|
+
}
|
|
1177
|
+
var client = grpc.unary(Platform.getDataContractsByRange, {
|
|
1178
|
+
request: requestMessage,
|
|
1179
|
+
host: this.serviceHost,
|
|
1180
|
+
metadata: metadata,
|
|
1181
|
+
transport: this.options.transport,
|
|
1182
|
+
debug: this.options.debug,
|
|
1183
|
+
onEnd: function (response) {
|
|
1184
|
+
if (callback) {
|
|
1185
|
+
if (response.status !== grpc.Code.OK) {
|
|
1186
|
+
var err = new Error(response.statusMessage);
|
|
1187
|
+
err.code = response.status;
|
|
1188
|
+
err.metadata = response.trailers;
|
|
1189
|
+
callback(err, null);
|
|
1190
|
+
} else {
|
|
1191
|
+
callback(null, response.message);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
return {
|
|
1197
|
+
cancel: function () {
|
|
1198
|
+
callback = null;
|
|
1199
|
+
client.close();
|
|
1200
|
+
}
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
PlatformClient.prototype.getContractGroupInfo = function getContractGroupInfo(requestMessage, metadata, callback) {
|
|
1205
|
+
if (arguments.length === 2) {
|
|
1206
|
+
callback = arguments[1];
|
|
1207
|
+
}
|
|
1208
|
+
var client = grpc.unary(Platform.getContractGroupInfo, {
|
|
1209
|
+
request: requestMessage,
|
|
1210
|
+
host: this.serviceHost,
|
|
1211
|
+
metadata: metadata,
|
|
1212
|
+
transport: this.options.transport,
|
|
1213
|
+
debug: this.options.debug,
|
|
1214
|
+
onEnd: function (response) {
|
|
1215
|
+
if (callback) {
|
|
1216
|
+
if (response.status !== grpc.Code.OK) {
|
|
1217
|
+
var err = new Error(response.statusMessage);
|
|
1218
|
+
err.code = response.status;
|
|
1219
|
+
err.metadata = response.trailers;
|
|
1220
|
+
callback(err, null);
|
|
1221
|
+
} else {
|
|
1222
|
+
callback(null, response.message);
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
return {
|
|
1228
|
+
cancel: function () {
|
|
1229
|
+
callback = null;
|
|
1230
|
+
client.close();
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
PlatformClient.prototype.getContractGroupMembers = function getContractGroupMembers(requestMessage, metadata, callback) {
|
|
1236
|
+
if (arguments.length === 2) {
|
|
1237
|
+
callback = arguments[1];
|
|
1238
|
+
}
|
|
1239
|
+
var client = grpc.unary(Platform.getContractGroupMembers, {
|
|
1240
|
+
request: requestMessage,
|
|
1241
|
+
host: this.serviceHost,
|
|
1242
|
+
metadata: metadata,
|
|
1243
|
+
transport: this.options.transport,
|
|
1244
|
+
debug: this.options.debug,
|
|
1245
|
+
onEnd: function (response) {
|
|
1246
|
+
if (callback) {
|
|
1247
|
+
if (response.status !== grpc.Code.OK) {
|
|
1248
|
+
var err = new Error(response.statusMessage);
|
|
1249
|
+
err.code = response.status;
|
|
1250
|
+
err.metadata = response.trailers;
|
|
1251
|
+
callback(err, null);
|
|
1252
|
+
} else {
|
|
1253
|
+
callback(null, response.message);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
return {
|
|
1259
|
+
cancel: function () {
|
|
1260
|
+
callback = null;
|
|
1261
|
+
client.close();
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
PlatformClient.prototype.getContractGroupsForContract = function getContractGroupsForContract(requestMessage, metadata, callback) {
|
|
1267
|
+
if (arguments.length === 2) {
|
|
1268
|
+
callback = arguments[1];
|
|
1269
|
+
}
|
|
1270
|
+
var client = grpc.unary(Platform.getContractGroupsForContract, {
|
|
1271
|
+
request: requestMessage,
|
|
1272
|
+
host: this.serviceHost,
|
|
1273
|
+
metadata: metadata,
|
|
1274
|
+
transport: this.options.transport,
|
|
1275
|
+
debug: this.options.debug,
|
|
1276
|
+
onEnd: function (response) {
|
|
1277
|
+
if (callback) {
|
|
1278
|
+
if (response.status !== grpc.Code.OK) {
|
|
1279
|
+
var err = new Error(response.statusMessage);
|
|
1280
|
+
err.code = response.status;
|
|
1281
|
+
err.metadata = response.trailers;
|
|
1282
|
+
callback(err, null);
|
|
1283
|
+
} else {
|
|
1284
|
+
callback(null, response.message);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
});
|
|
1289
|
+
return {
|
|
1290
|
+
cancel: function () {
|
|
1291
|
+
callback = null;
|
|
1292
|
+
client.close();
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
PlatformClient.prototype.getContractModerationStatus = function getContractModerationStatus(requestMessage, metadata, callback) {
|
|
1298
|
+
if (arguments.length === 2) {
|
|
1299
|
+
callback = arguments[1];
|
|
1300
|
+
}
|
|
1301
|
+
var client = grpc.unary(Platform.getContractModerationStatus, {
|
|
1302
|
+
request: requestMessage,
|
|
1303
|
+
host: this.serviceHost,
|
|
1304
|
+
metadata: metadata,
|
|
1305
|
+
transport: this.options.transport,
|
|
1306
|
+
debug: this.options.debug,
|
|
1307
|
+
onEnd: function (response) {
|
|
1308
|
+
if (callback) {
|
|
1309
|
+
if (response.status !== grpc.Code.OK) {
|
|
1310
|
+
var err = new Error(response.statusMessage);
|
|
1311
|
+
err.code = response.status;
|
|
1312
|
+
err.metadata = response.trailers;
|
|
1313
|
+
callback(err, null);
|
|
1314
|
+
} else {
|
|
1315
|
+
callback(null, response.message);
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
return {
|
|
1321
|
+
cancel: function () {
|
|
1322
|
+
callback = null;
|
|
1323
|
+
client.close();
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
PlatformClient.prototype.getContractModerationEntries = function getContractModerationEntries(requestMessage, metadata, callback) {
|
|
1329
|
+
if (arguments.length === 2) {
|
|
1330
|
+
callback = arguments[1];
|
|
1331
|
+
}
|
|
1332
|
+
var client = grpc.unary(Platform.getContractModerationEntries, {
|
|
1333
|
+
request: requestMessage,
|
|
1334
|
+
host: this.serviceHost,
|
|
1335
|
+
metadata: metadata,
|
|
1336
|
+
transport: this.options.transport,
|
|
1337
|
+
debug: this.options.debug,
|
|
1338
|
+
onEnd: function (response) {
|
|
1339
|
+
if (callback) {
|
|
1340
|
+
if (response.status !== grpc.Code.OK) {
|
|
1341
|
+
var err = new Error(response.statusMessage);
|
|
1342
|
+
err.code = response.status;
|
|
1343
|
+
err.metadata = response.trailers;
|
|
1344
|
+
callback(err, null);
|
|
1345
|
+
} else {
|
|
1346
|
+
callback(null, response.message);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
});
|
|
1351
|
+
return {
|
|
1352
|
+
cancel: function () {
|
|
1353
|
+
callback = null;
|
|
1354
|
+
client.close();
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
PlatformClient.prototype.getContractDocumentRemovals = function getContractDocumentRemovals(requestMessage, metadata, callback) {
|
|
1360
|
+
if (arguments.length === 2) {
|
|
1361
|
+
callback = arguments[1];
|
|
1362
|
+
}
|
|
1363
|
+
var client = grpc.unary(Platform.getContractDocumentRemovals, {
|
|
1364
|
+
request: requestMessage,
|
|
1365
|
+
host: this.serviceHost,
|
|
1366
|
+
metadata: metadata,
|
|
1367
|
+
transport: this.options.transport,
|
|
1368
|
+
debug: this.options.debug,
|
|
1369
|
+
onEnd: function (response) {
|
|
1370
|
+
if (callback) {
|
|
1371
|
+
if (response.status !== grpc.Code.OK) {
|
|
1372
|
+
var err = new Error(response.statusMessage);
|
|
1373
|
+
err.code = response.status;
|
|
1374
|
+
err.metadata = response.trailers;
|
|
1375
|
+
callback(err, null);
|
|
1376
|
+
} else {
|
|
1377
|
+
callback(null, response.message);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
return {
|
|
1383
|
+
cancel: function () {
|
|
1384
|
+
callback = null;
|
|
1385
|
+
client.close();
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
PlatformClient.prototype.getContractTeamActions = function getContractTeamActions(requestMessage, metadata, callback) {
|
|
1391
|
+
if (arguments.length === 2) {
|
|
1392
|
+
callback = arguments[1];
|
|
1393
|
+
}
|
|
1394
|
+
var client = grpc.unary(Platform.getContractTeamActions, {
|
|
1395
|
+
request: requestMessage,
|
|
1396
|
+
host: this.serviceHost,
|
|
1397
|
+
metadata: metadata,
|
|
1398
|
+
transport: this.options.transport,
|
|
1399
|
+
debug: this.options.debug,
|
|
1400
|
+
onEnd: function (response) {
|
|
1401
|
+
if (callback) {
|
|
1402
|
+
if (response.status !== grpc.Code.OK) {
|
|
1403
|
+
var err = new Error(response.statusMessage);
|
|
1404
|
+
err.code = response.status;
|
|
1405
|
+
err.metadata = response.trailers;
|
|
1406
|
+
callback(err, null);
|
|
1407
|
+
} else {
|
|
1408
|
+
callback(null, response.message);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1413
|
+
return {
|
|
1414
|
+
cancel: function () {
|
|
1415
|
+
callback = null;
|
|
1416
|
+
client.close();
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
PlatformClient.prototype.getContractTeamActionSigners = function getContractTeamActionSigners(requestMessage, metadata, callback) {
|
|
1422
|
+
if (arguments.length === 2) {
|
|
1423
|
+
callback = arguments[1];
|
|
1424
|
+
}
|
|
1425
|
+
var client = grpc.unary(Platform.getContractTeamActionSigners, {
|
|
1426
|
+
request: requestMessage,
|
|
1427
|
+
host: this.serviceHost,
|
|
1428
|
+
metadata: metadata,
|
|
1429
|
+
transport: this.options.transport,
|
|
1430
|
+
debug: this.options.debug,
|
|
1431
|
+
onEnd: function (response) {
|
|
1432
|
+
if (callback) {
|
|
1433
|
+
if (response.status !== grpc.Code.OK) {
|
|
1434
|
+
var err = new Error(response.statusMessage);
|
|
1435
|
+
err.code = response.status;
|
|
1436
|
+
err.metadata = response.trailers;
|
|
1437
|
+
callback(err, null);
|
|
1438
|
+
} else {
|
|
1439
|
+
callback(null, response.message);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
return {
|
|
1445
|
+
cancel: function () {
|
|
1446
|
+
callback = null;
|
|
1447
|
+
client.close();
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
PlatformClient.prototype.getContractModerationActionCounts = function getContractModerationActionCounts(requestMessage, metadata, callback) {
|
|
1453
|
+
if (arguments.length === 2) {
|
|
1454
|
+
callback = arguments[1];
|
|
1455
|
+
}
|
|
1456
|
+
var client = grpc.unary(Platform.getContractModerationActionCounts, {
|
|
1457
|
+
request: requestMessage,
|
|
1458
|
+
host: this.serviceHost,
|
|
1459
|
+
metadata: metadata,
|
|
1460
|
+
transport: this.options.transport,
|
|
1461
|
+
debug: this.options.debug,
|
|
1462
|
+
onEnd: function (response) {
|
|
1463
|
+
if (callback) {
|
|
1464
|
+
if (response.status !== grpc.Code.OK) {
|
|
1465
|
+
var err = new Error(response.statusMessage);
|
|
1466
|
+
err.code = response.status;
|
|
1467
|
+
err.metadata = response.trailers;
|
|
1468
|
+
callback(err, null);
|
|
1469
|
+
} else {
|
|
1470
|
+
callback(null, response.message);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
return {
|
|
1476
|
+
cancel: function () {
|
|
1477
|
+
callback = null;
|
|
1478
|
+
client.close();
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
PlatformClient.prototype.getContractFeePots = function getContractFeePots(requestMessage, metadata, callback) {
|
|
1484
|
+
if (arguments.length === 2) {
|
|
1485
|
+
callback = arguments[1];
|
|
1486
|
+
}
|
|
1487
|
+
var client = grpc.unary(Platform.getContractFeePots, {
|
|
1488
|
+
request: requestMessage,
|
|
1489
|
+
host: this.serviceHost,
|
|
1490
|
+
metadata: metadata,
|
|
1491
|
+
transport: this.options.transport,
|
|
1492
|
+
debug: this.options.debug,
|
|
1493
|
+
onEnd: function (response) {
|
|
1494
|
+
if (callback) {
|
|
1495
|
+
if (response.status !== grpc.Code.OK) {
|
|
1496
|
+
var err = new Error(response.statusMessage);
|
|
1497
|
+
err.code = response.status;
|
|
1498
|
+
err.metadata = response.trailers;
|
|
1499
|
+
callback(err, null);
|
|
1500
|
+
} else {
|
|
1501
|
+
callback(null, response.message);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
});
|
|
1506
|
+
return {
|
|
1507
|
+
cancel: function () {
|
|
1508
|
+
callback = null;
|
|
1509
|
+
client.close();
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
|
|
994
1514
|
PlatformClient.prototype.getDocumentHistory = function getDocumentHistory(requestMessage, metadata, callback) {
|
|
995
1515
|
if (arguments.length === 2) {
|
|
996
1516
|
callback = arguments[1];
|
package/codegen.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recipe_repository": "dashpay/dash-selfhosted-image",
|
|
3
|
+
"recipe_revision": "e49e8bc9977f5f961a76ba1d1f7673c72173679f",
|
|
4
|
+
"recipe_files": {
|
|
5
|
+
"build.py": "17e260ff1e79e416d9addd7da32a7a04e10d7d4db07e3d919e34dac7e471dd49",
|
|
6
|
+
"CMakeLists.txt": "814bf56f8efd9d8ddd91e64201050ad8397071a03e21b59d6fbd83f365d137e4",
|
|
7
|
+
"lock.json": "f67f983d739633cf4632e9b30786a7928f1d526df969c4d4acea8804295232cc"
|
|
8
|
+
},
|
|
9
|
+
"toolchain": {
|
|
10
|
+
"schema": 1,
|
|
11
|
+
"versions": {
|
|
12
|
+
"protobuf": "3.18.1",
|
|
13
|
+
"grpc": "1.46.3",
|
|
14
|
+
"grpc_java": "1.42.1"
|
|
15
|
+
},
|
|
16
|
+
"sources": [
|
|
17
|
+
{
|
|
18
|
+
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v3.18.1/protobuf-cpp-3.18.1.tar.gz",
|
|
19
|
+
"sha256": "6ee35eda3f79e49608d2ace8d866313fdec539d8bb14c6c54e8d2a16fa4e6780"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"url": "https://github.com/grpc/grpc/archive/refs/tags/v1.46.3.tar.gz",
|
|
23
|
+
"sha256": "d6cbf22cb5007af71b61c6be316a79397469c58c82a942552a62e708bce60964"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"url": "https://github.com/grpc/grpc-java/archive/refs/tags/v1.42.1.tar.gz",
|
|
27
|
+
"sha256": "33775a1ad05974bbba6ff97801cd9b326485b21fab91b08a4e1bc53e500e6326"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "DAPI GRPC definition file and generated clients",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "node.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/dashevo/dapi-grpc#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dashevo/grpc-common": "
|
|
48
|
+
"@dashevo/grpc-common": "5.0.0-beta.2",
|
|
49
49
|
"@dashevo/protobufjs": "6.10.5",
|
|
50
50
|
"@grpc/grpc-js": "^1.14.3",
|
|
51
51
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"mocha": "^11.1.0",
|
|
61
61
|
"mocha-sinon": "^2.1.2",
|
|
62
62
|
"sinon": "^18.0.1",
|
|
63
|
-
"sinon-chai": "^3.7.0"
|
|
63
|
+
"sinon-chai": "^3.7.0",
|
|
64
|
+
"ts-protoc-gen": "0.15.0"
|
|
64
65
|
}
|
|
65
66
|
}
|