@dashevo/dapi-grpc 0.25.0-dev.8 → 0.25.0-pr.1545.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 +45 -0
- package/build.rs +69 -0
- package/clients/core/v0/rust/README.md +3 -0
- package/clients/core/v0/rust/core_example.rs +14 -0
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +163 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +23402 -1734
- package/clients/platform/v0/nodejs/platform_protoc.js +20140 -1970
- package/clients/platform/v0/rust/README.md +3 -0
- package/clients/platform/v0/rust/platform_example.rs +20 -0
- package/clients/platform/v0/web/PlatformPromiseClient.js +57 -0
- package/clients/platform/v0/web/platform_pb.d.ts +2739 -300
- package/clients/platform/v0/web/platform_pb.js +20140 -1970
- package/clients/platform/v0/web/platform_pb_service.d.ts +209 -0
- package/clients/platform/v0/web/platform_pb_service.js +440 -0
- package/package.json +16 -4
- package/protos/platform/v0/platform.proto +555 -51
- package/scripts/build.sh +91 -115
- package/scripts/patch-protobuf-js.sh +10 -9
- package/src/core/proto/org.dash.platform.dapi.v0.rs +666 -0
- package/src/lib.rs +15 -0
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +2030 -0
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +32 -0
- package/clients/core/v0/rust/core.rs +0 -4956
- package/clients/core/v0/rust/core_grpc.rs +0 -223
- package/clients/core/v0/rust/mod.rs +0 -3
- package/clients/platform/v0/rust/mod.rs +0 -3
- package/clients/platform/v0/rust/platform.rs +0 -3555
- package/clients/platform/v0/rust/platform_grpc.rs +0 -223
|
@@ -22,6 +22,51 @@ type PlatformgetIdentity = {
|
|
|
22
22
|
readonly responseType: typeof platform_pb.GetIdentityResponse;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
type PlatformgetIdentities = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof Platform;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof platform_pb.GetIdentitiesRequest;
|
|
31
|
+
readonly responseType: typeof platform_pb.GetIdentitiesResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type PlatformgetIdentityKeys = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof Platform;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof platform_pb.GetIdentityKeysRequest;
|
|
40
|
+
readonly responseType: typeof platform_pb.GetIdentityKeysResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type PlatformgetIdentityBalance = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof Platform;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof platform_pb.GetIdentityBalanceRequest;
|
|
49
|
+
readonly responseType: typeof platform_pb.GetIdentityBalanceResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type PlatformgetIdentityBalanceAndRevision = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof Platform;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof platform_pb.GetIdentityBalanceAndRevisionRequest;
|
|
58
|
+
readonly responseType: typeof platform_pb.GetIdentityBalanceAndRevisionResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type PlatformgetProofs = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof Platform;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof platform_pb.GetProofsRequest;
|
|
67
|
+
readonly responseType: typeof platform_pb.GetProofsResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
25
70
|
type PlatformgetDataContract = {
|
|
26
71
|
readonly methodName: string;
|
|
27
72
|
readonly service: typeof Platform;
|
|
@@ -31,6 +76,24 @@ type PlatformgetDataContract = {
|
|
|
31
76
|
readonly responseType: typeof platform_pb.GetDataContractResponse;
|
|
32
77
|
};
|
|
33
78
|
|
|
79
|
+
type PlatformgetDataContractHistory = {
|
|
80
|
+
readonly methodName: string;
|
|
81
|
+
readonly service: typeof Platform;
|
|
82
|
+
readonly requestStream: false;
|
|
83
|
+
readonly responseStream: false;
|
|
84
|
+
readonly requestType: typeof platform_pb.GetDataContractHistoryRequest;
|
|
85
|
+
readonly responseType: typeof platform_pb.GetDataContractHistoryResponse;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type PlatformgetDataContracts = {
|
|
89
|
+
readonly methodName: string;
|
|
90
|
+
readonly service: typeof Platform;
|
|
91
|
+
readonly requestStream: false;
|
|
92
|
+
readonly responseStream: false;
|
|
93
|
+
readonly requestType: typeof platform_pb.GetDataContractsRequest;
|
|
94
|
+
readonly responseType: typeof platform_pb.GetDataContractsResponse;
|
|
95
|
+
};
|
|
96
|
+
|
|
34
97
|
type PlatformgetDocuments = {
|
|
35
98
|
readonly methodName: string;
|
|
36
99
|
readonly service: typeof Platform;
|
|
@@ -49,6 +112,15 @@ type PlatformgetIdentitiesByPublicKeyHashes = {
|
|
|
49
112
|
readonly responseType: typeof platform_pb.GetIdentitiesByPublicKeyHashesResponse;
|
|
50
113
|
};
|
|
51
114
|
|
|
115
|
+
type PlatformgetIdentityByPublicKeyHash = {
|
|
116
|
+
readonly methodName: string;
|
|
117
|
+
readonly service: typeof Platform;
|
|
118
|
+
readonly requestStream: false;
|
|
119
|
+
readonly responseStream: false;
|
|
120
|
+
readonly requestType: typeof platform_pb.GetIdentityByPublicKeyHashRequest;
|
|
121
|
+
readonly responseType: typeof platform_pb.GetIdentityByPublicKeyHashResponse;
|
|
122
|
+
};
|
|
123
|
+
|
|
52
124
|
type PlatformwaitForStateTransitionResult = {
|
|
53
125
|
readonly methodName: string;
|
|
54
126
|
readonly service: typeof Platform;
|
|
@@ -67,15 +139,53 @@ type PlatformgetConsensusParams = {
|
|
|
67
139
|
readonly responseType: typeof platform_pb.GetConsensusParamsResponse;
|
|
68
140
|
};
|
|
69
141
|
|
|
142
|
+
type PlatformgetProtocolVersionUpgradeState = {
|
|
143
|
+
readonly methodName: string;
|
|
144
|
+
readonly service: typeof Platform;
|
|
145
|
+
readonly requestStream: false;
|
|
146
|
+
readonly responseStream: false;
|
|
147
|
+
readonly requestType: typeof platform_pb.GetProtocolVersionUpgradeStateRequest;
|
|
148
|
+
readonly responseType: typeof platform_pb.GetProtocolVersionUpgradeStateResponse;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type PlatformgetProtocolVersionUpgradeVoteStatus = {
|
|
152
|
+
readonly methodName: string;
|
|
153
|
+
readonly service: typeof Platform;
|
|
154
|
+
readonly requestStream: false;
|
|
155
|
+
readonly responseStream: false;
|
|
156
|
+
readonly requestType: typeof platform_pb.GetProtocolVersionUpgradeVoteStatusRequest;
|
|
157
|
+
readonly responseType: typeof platform_pb.GetProtocolVersionUpgradeVoteStatusResponse;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
type PlatformgetEpochsInfo = {
|
|
161
|
+
readonly methodName: string;
|
|
162
|
+
readonly service: typeof Platform;
|
|
163
|
+
readonly requestStream: false;
|
|
164
|
+
readonly responseStream: false;
|
|
165
|
+
readonly requestType: typeof platform_pb.GetEpochsInfoRequest;
|
|
166
|
+
readonly responseType: typeof platform_pb.GetEpochsInfoResponse;
|
|
167
|
+
};
|
|
168
|
+
|
|
70
169
|
export class Platform {
|
|
71
170
|
static readonly serviceName: string;
|
|
72
171
|
static readonly broadcastStateTransition: PlatformbroadcastStateTransition;
|
|
73
172
|
static readonly getIdentity: PlatformgetIdentity;
|
|
173
|
+
static readonly getIdentities: PlatformgetIdentities;
|
|
174
|
+
static readonly getIdentityKeys: PlatformgetIdentityKeys;
|
|
175
|
+
static readonly getIdentityBalance: PlatformgetIdentityBalance;
|
|
176
|
+
static readonly getIdentityBalanceAndRevision: PlatformgetIdentityBalanceAndRevision;
|
|
177
|
+
static readonly getProofs: PlatformgetProofs;
|
|
74
178
|
static readonly getDataContract: PlatformgetDataContract;
|
|
179
|
+
static readonly getDataContractHistory: PlatformgetDataContractHistory;
|
|
180
|
+
static readonly getDataContracts: PlatformgetDataContracts;
|
|
75
181
|
static readonly getDocuments: PlatformgetDocuments;
|
|
76
182
|
static readonly getIdentitiesByPublicKeyHashes: PlatformgetIdentitiesByPublicKeyHashes;
|
|
183
|
+
static readonly getIdentityByPublicKeyHash: PlatformgetIdentityByPublicKeyHash;
|
|
77
184
|
static readonly waitForStateTransitionResult: PlatformwaitForStateTransitionResult;
|
|
78
185
|
static readonly getConsensusParams: PlatformgetConsensusParams;
|
|
186
|
+
static readonly getProtocolVersionUpgradeState: PlatformgetProtocolVersionUpgradeState;
|
|
187
|
+
static readonly getProtocolVersionUpgradeVoteStatus: PlatformgetProtocolVersionUpgradeVoteStatus;
|
|
188
|
+
static readonly getEpochsInfo: PlatformgetEpochsInfo;
|
|
79
189
|
}
|
|
80
190
|
|
|
81
191
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -128,6 +238,51 @@ export class PlatformClient {
|
|
|
128
238
|
requestMessage: platform_pb.GetIdentityRequest,
|
|
129
239
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityResponse|null) => void
|
|
130
240
|
): UnaryResponse;
|
|
241
|
+
getIdentities(
|
|
242
|
+
requestMessage: platform_pb.GetIdentitiesRequest,
|
|
243
|
+
metadata: grpc.Metadata,
|
|
244
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentitiesResponse|null) => void
|
|
245
|
+
): UnaryResponse;
|
|
246
|
+
getIdentities(
|
|
247
|
+
requestMessage: platform_pb.GetIdentitiesRequest,
|
|
248
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentitiesResponse|null) => void
|
|
249
|
+
): UnaryResponse;
|
|
250
|
+
getIdentityKeys(
|
|
251
|
+
requestMessage: platform_pb.GetIdentityKeysRequest,
|
|
252
|
+
metadata: grpc.Metadata,
|
|
253
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysResponse|null) => void
|
|
254
|
+
): UnaryResponse;
|
|
255
|
+
getIdentityKeys(
|
|
256
|
+
requestMessage: platform_pb.GetIdentityKeysRequest,
|
|
257
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysResponse|null) => void
|
|
258
|
+
): UnaryResponse;
|
|
259
|
+
getIdentityBalance(
|
|
260
|
+
requestMessage: platform_pb.GetIdentityBalanceRequest,
|
|
261
|
+
metadata: grpc.Metadata,
|
|
262
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityBalanceResponse|null) => void
|
|
263
|
+
): UnaryResponse;
|
|
264
|
+
getIdentityBalance(
|
|
265
|
+
requestMessage: platform_pb.GetIdentityBalanceRequest,
|
|
266
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityBalanceResponse|null) => void
|
|
267
|
+
): UnaryResponse;
|
|
268
|
+
getIdentityBalanceAndRevision(
|
|
269
|
+
requestMessage: platform_pb.GetIdentityBalanceAndRevisionRequest,
|
|
270
|
+
metadata: grpc.Metadata,
|
|
271
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityBalanceAndRevisionResponse|null) => void
|
|
272
|
+
): UnaryResponse;
|
|
273
|
+
getIdentityBalanceAndRevision(
|
|
274
|
+
requestMessage: platform_pb.GetIdentityBalanceAndRevisionRequest,
|
|
275
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityBalanceAndRevisionResponse|null) => void
|
|
276
|
+
): UnaryResponse;
|
|
277
|
+
getProofs(
|
|
278
|
+
requestMessage: platform_pb.GetProofsRequest,
|
|
279
|
+
metadata: grpc.Metadata,
|
|
280
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProofsResponse|null) => void
|
|
281
|
+
): UnaryResponse;
|
|
282
|
+
getProofs(
|
|
283
|
+
requestMessage: platform_pb.GetProofsRequest,
|
|
284
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProofsResponse|null) => void
|
|
285
|
+
): UnaryResponse;
|
|
131
286
|
getDataContract(
|
|
132
287
|
requestMessage: platform_pb.GetDataContractRequest,
|
|
133
288
|
metadata: grpc.Metadata,
|
|
@@ -137,6 +292,24 @@ export class PlatformClient {
|
|
|
137
292
|
requestMessage: platform_pb.GetDataContractRequest,
|
|
138
293
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractResponse|null) => void
|
|
139
294
|
): UnaryResponse;
|
|
295
|
+
getDataContractHistory(
|
|
296
|
+
requestMessage: platform_pb.GetDataContractHistoryRequest,
|
|
297
|
+
metadata: grpc.Metadata,
|
|
298
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractHistoryResponse|null) => void
|
|
299
|
+
): UnaryResponse;
|
|
300
|
+
getDataContractHistory(
|
|
301
|
+
requestMessage: platform_pb.GetDataContractHistoryRequest,
|
|
302
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractHistoryResponse|null) => void
|
|
303
|
+
): UnaryResponse;
|
|
304
|
+
getDataContracts(
|
|
305
|
+
requestMessage: platform_pb.GetDataContractsRequest,
|
|
306
|
+
metadata: grpc.Metadata,
|
|
307
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
308
|
+
): UnaryResponse;
|
|
309
|
+
getDataContracts(
|
|
310
|
+
requestMessage: platform_pb.GetDataContractsRequest,
|
|
311
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
312
|
+
): UnaryResponse;
|
|
140
313
|
getDocuments(
|
|
141
314
|
requestMessage: platform_pb.GetDocumentsRequest,
|
|
142
315
|
metadata: grpc.Metadata,
|
|
@@ -155,6 +328,15 @@ export class PlatformClient {
|
|
|
155
328
|
requestMessage: platform_pb.GetIdentitiesByPublicKeyHashesRequest,
|
|
156
329
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentitiesByPublicKeyHashesResponse|null) => void
|
|
157
330
|
): UnaryResponse;
|
|
331
|
+
getIdentityByPublicKeyHash(
|
|
332
|
+
requestMessage: platform_pb.GetIdentityByPublicKeyHashRequest,
|
|
333
|
+
metadata: grpc.Metadata,
|
|
334
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityByPublicKeyHashResponse|null) => void
|
|
335
|
+
): UnaryResponse;
|
|
336
|
+
getIdentityByPublicKeyHash(
|
|
337
|
+
requestMessage: platform_pb.GetIdentityByPublicKeyHashRequest,
|
|
338
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityByPublicKeyHashResponse|null) => void
|
|
339
|
+
): UnaryResponse;
|
|
158
340
|
waitForStateTransitionResult(
|
|
159
341
|
requestMessage: platform_pb.WaitForStateTransitionResultRequest,
|
|
160
342
|
metadata: grpc.Metadata,
|
|
@@ -173,5 +355,32 @@ export class PlatformClient {
|
|
|
173
355
|
requestMessage: platform_pb.GetConsensusParamsRequest,
|
|
174
356
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetConsensusParamsResponse|null) => void
|
|
175
357
|
): UnaryResponse;
|
|
358
|
+
getProtocolVersionUpgradeState(
|
|
359
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeStateRequest,
|
|
360
|
+
metadata: grpc.Metadata,
|
|
361
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeStateResponse|null) => void
|
|
362
|
+
): UnaryResponse;
|
|
363
|
+
getProtocolVersionUpgradeState(
|
|
364
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeStateRequest,
|
|
365
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeStateResponse|null) => void
|
|
366
|
+
): UnaryResponse;
|
|
367
|
+
getProtocolVersionUpgradeVoteStatus(
|
|
368
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusRequest,
|
|
369
|
+
metadata: grpc.Metadata,
|
|
370
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusResponse|null) => void
|
|
371
|
+
): UnaryResponse;
|
|
372
|
+
getProtocolVersionUpgradeVoteStatus(
|
|
373
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusRequest,
|
|
374
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusResponse|null) => void
|
|
375
|
+
): UnaryResponse;
|
|
376
|
+
getEpochsInfo(
|
|
377
|
+
requestMessage: platform_pb.GetEpochsInfoRequest,
|
|
378
|
+
metadata: grpc.Metadata,
|
|
379
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetEpochsInfoResponse|null) => void
|
|
380
|
+
): UnaryResponse;
|
|
381
|
+
getEpochsInfo(
|
|
382
|
+
requestMessage: platform_pb.GetEpochsInfoRequest,
|
|
383
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetEpochsInfoResponse|null) => void
|
|
384
|
+
): UnaryResponse;
|
|
176
385
|
}
|
|
177
386
|
|