@dashevo/dapi-grpc 1.0.0-dev.4 → 1.0.0-dev.5
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 +3 -1
- package/build.rs +39 -17
- package/clients/core/v0/rust/core_example.rs +1 -1
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +78 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +3000 -1060
- package/clients/platform/v0/nodejs/platform_protoc.js +2609 -748
- package/clients/platform/v0/rust/platform_example.rs +1 -1
- package/clients/platform/v0/web/PlatformPromiseClient.js +28 -0
- package/clients/platform/v0/web/platform_pb.d.ts +253 -0
- package/clients/platform/v0/web/platform_pb.js +2609 -748
- package/clients/platform/v0/web/platform_pb_service.d.ts +38 -0
- package/clients/platform/v0/web/platform_pb_service.js +80 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +51 -0
- package/src/core/proto/org.dash.platform.dapi.v0.rs +55 -0
- package/src/lib.rs +6 -0
- package/src/mock.rs +68 -0
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +337 -0
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +22 -0
|
@@ -176,6 +176,34 @@ class PlatformPromiseClient {
|
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* @param {!GetIdentityContractNonceRequest} getIdentityContractNonceRequest
|
|
181
|
+
* @param {?Object<string, string>} metadata
|
|
182
|
+
* @return {Promise<!GetIdentityContractNonceResponse>}
|
|
183
|
+
*/
|
|
184
|
+
getIdentityContractNonce(getIdentityContractNonceRequest, metadata = {}) {
|
|
185
|
+
return promisify(
|
|
186
|
+
this.client.getIdentityContractNonce.bind(this.client),
|
|
187
|
+
)(
|
|
188
|
+
getIdentityContractNonceRequest,
|
|
189
|
+
metadata,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @param {!GetIdentityNonceRequest} getIdentityNonceRequest
|
|
195
|
+
* @param {?Object<string, string>} metadata
|
|
196
|
+
* @return {Promise<!GetIdentityNonceResponse>}
|
|
197
|
+
*/
|
|
198
|
+
getIdentityNonce(getIdentityNonceRequest, metadata = {}) {
|
|
199
|
+
return promisify(
|
|
200
|
+
this.client.getIdentityNonce.bind(this.client),
|
|
201
|
+
)(
|
|
202
|
+
getIdentityNonceRequest,
|
|
203
|
+
metadata,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
179
207
|
/**
|
|
180
208
|
* @param {string} protocolVersion
|
|
181
209
|
*/
|
|
@@ -216,6 +216,120 @@ export namespace GetIdentityRequest {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
export class GetIdentityNonceRequest extends jspb.Message {
|
|
220
|
+
hasV0(): boolean;
|
|
221
|
+
clearV0(): void;
|
|
222
|
+
getV0(): GetIdentityNonceRequest.GetIdentityNonceRequestV0 | undefined;
|
|
223
|
+
setV0(value?: GetIdentityNonceRequest.GetIdentityNonceRequestV0): void;
|
|
224
|
+
|
|
225
|
+
getVersionCase(): GetIdentityNonceRequest.VersionCase;
|
|
226
|
+
serializeBinary(): Uint8Array;
|
|
227
|
+
toObject(includeInstance?: boolean): GetIdentityNonceRequest.AsObject;
|
|
228
|
+
static toObject(includeInstance: boolean, msg: GetIdentityNonceRequest): GetIdentityNonceRequest.AsObject;
|
|
229
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
230
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
231
|
+
static serializeBinaryToWriter(message: GetIdentityNonceRequest, writer: jspb.BinaryWriter): void;
|
|
232
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityNonceRequest;
|
|
233
|
+
static deserializeBinaryFromReader(message: GetIdentityNonceRequest, reader: jspb.BinaryReader): GetIdentityNonceRequest;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export namespace GetIdentityNonceRequest {
|
|
237
|
+
export type AsObject = {
|
|
238
|
+
v0?: GetIdentityNonceRequest.GetIdentityNonceRequestV0.AsObject,
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export class GetIdentityNonceRequestV0 extends jspb.Message {
|
|
242
|
+
getIdentityId(): Uint8Array | string;
|
|
243
|
+
getIdentityId_asU8(): Uint8Array;
|
|
244
|
+
getIdentityId_asB64(): string;
|
|
245
|
+
setIdentityId(value: Uint8Array | string): void;
|
|
246
|
+
|
|
247
|
+
getProve(): boolean;
|
|
248
|
+
setProve(value: boolean): void;
|
|
249
|
+
|
|
250
|
+
serializeBinary(): Uint8Array;
|
|
251
|
+
toObject(includeInstance?: boolean): GetIdentityNonceRequestV0.AsObject;
|
|
252
|
+
static toObject(includeInstance: boolean, msg: GetIdentityNonceRequestV0): GetIdentityNonceRequestV0.AsObject;
|
|
253
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
254
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
255
|
+
static serializeBinaryToWriter(message: GetIdentityNonceRequestV0, writer: jspb.BinaryWriter): void;
|
|
256
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityNonceRequestV0;
|
|
257
|
+
static deserializeBinaryFromReader(message: GetIdentityNonceRequestV0, reader: jspb.BinaryReader): GetIdentityNonceRequestV0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export namespace GetIdentityNonceRequestV0 {
|
|
261
|
+
export type AsObject = {
|
|
262
|
+
identityId: Uint8Array | string,
|
|
263
|
+
prove: boolean,
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export enum VersionCase {
|
|
268
|
+
VERSION_NOT_SET = 0,
|
|
269
|
+
V0 = 1,
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export class GetIdentityContractNonceRequest extends jspb.Message {
|
|
274
|
+
hasV0(): boolean;
|
|
275
|
+
clearV0(): void;
|
|
276
|
+
getV0(): GetIdentityContractNonceRequest.GetIdentityContractNonceRequestV0 | undefined;
|
|
277
|
+
setV0(value?: GetIdentityContractNonceRequest.GetIdentityContractNonceRequestV0): void;
|
|
278
|
+
|
|
279
|
+
getVersionCase(): GetIdentityContractNonceRequest.VersionCase;
|
|
280
|
+
serializeBinary(): Uint8Array;
|
|
281
|
+
toObject(includeInstance?: boolean): GetIdentityContractNonceRequest.AsObject;
|
|
282
|
+
static toObject(includeInstance: boolean, msg: GetIdentityContractNonceRequest): GetIdentityContractNonceRequest.AsObject;
|
|
283
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
284
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
285
|
+
static serializeBinaryToWriter(message: GetIdentityContractNonceRequest, writer: jspb.BinaryWriter): void;
|
|
286
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityContractNonceRequest;
|
|
287
|
+
static deserializeBinaryFromReader(message: GetIdentityContractNonceRequest, reader: jspb.BinaryReader): GetIdentityContractNonceRequest;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export namespace GetIdentityContractNonceRequest {
|
|
291
|
+
export type AsObject = {
|
|
292
|
+
v0?: GetIdentityContractNonceRequest.GetIdentityContractNonceRequestV0.AsObject,
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export class GetIdentityContractNonceRequestV0 extends jspb.Message {
|
|
296
|
+
getIdentityId(): Uint8Array | string;
|
|
297
|
+
getIdentityId_asU8(): Uint8Array;
|
|
298
|
+
getIdentityId_asB64(): string;
|
|
299
|
+
setIdentityId(value: Uint8Array | string): void;
|
|
300
|
+
|
|
301
|
+
getContractId(): Uint8Array | string;
|
|
302
|
+
getContractId_asU8(): Uint8Array;
|
|
303
|
+
getContractId_asB64(): string;
|
|
304
|
+
setContractId(value: Uint8Array | string): void;
|
|
305
|
+
|
|
306
|
+
getProve(): boolean;
|
|
307
|
+
setProve(value: boolean): void;
|
|
308
|
+
|
|
309
|
+
serializeBinary(): Uint8Array;
|
|
310
|
+
toObject(includeInstance?: boolean): GetIdentityContractNonceRequestV0.AsObject;
|
|
311
|
+
static toObject(includeInstance: boolean, msg: GetIdentityContractNonceRequestV0): GetIdentityContractNonceRequestV0.AsObject;
|
|
312
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
313
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
314
|
+
static serializeBinaryToWriter(message: GetIdentityContractNonceRequestV0, writer: jspb.BinaryWriter): void;
|
|
315
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityContractNonceRequestV0;
|
|
316
|
+
static deserializeBinaryFromReader(message: GetIdentityContractNonceRequestV0, reader: jspb.BinaryReader): GetIdentityContractNonceRequestV0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export namespace GetIdentityContractNonceRequestV0 {
|
|
320
|
+
export type AsObject = {
|
|
321
|
+
identityId: Uint8Array | string,
|
|
322
|
+
contractId: Uint8Array | string,
|
|
323
|
+
prove: boolean,
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export enum VersionCase {
|
|
328
|
+
VERSION_NOT_SET = 0,
|
|
329
|
+
V0 = 1,
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
219
333
|
export class GetIdentityBalanceRequest extends jspb.Message {
|
|
220
334
|
hasV0(): boolean;
|
|
221
335
|
clearV0(): void;
|
|
@@ -592,6 +706,144 @@ export namespace GetIdentitiesResponse {
|
|
|
592
706
|
}
|
|
593
707
|
}
|
|
594
708
|
|
|
709
|
+
export class GetIdentityNonceResponse extends jspb.Message {
|
|
710
|
+
hasV0(): boolean;
|
|
711
|
+
clearV0(): void;
|
|
712
|
+
getV0(): GetIdentityNonceResponse.GetIdentityNonceResponseV0 | undefined;
|
|
713
|
+
setV0(value?: GetIdentityNonceResponse.GetIdentityNonceResponseV0): void;
|
|
714
|
+
|
|
715
|
+
getVersionCase(): GetIdentityNonceResponse.VersionCase;
|
|
716
|
+
serializeBinary(): Uint8Array;
|
|
717
|
+
toObject(includeInstance?: boolean): GetIdentityNonceResponse.AsObject;
|
|
718
|
+
static toObject(includeInstance: boolean, msg: GetIdentityNonceResponse): GetIdentityNonceResponse.AsObject;
|
|
719
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
720
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
721
|
+
static serializeBinaryToWriter(message: GetIdentityNonceResponse, writer: jspb.BinaryWriter): void;
|
|
722
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityNonceResponse;
|
|
723
|
+
static deserializeBinaryFromReader(message: GetIdentityNonceResponse, reader: jspb.BinaryReader): GetIdentityNonceResponse;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export namespace GetIdentityNonceResponse {
|
|
727
|
+
export type AsObject = {
|
|
728
|
+
v0?: GetIdentityNonceResponse.GetIdentityNonceResponseV0.AsObject,
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export class GetIdentityNonceResponseV0 extends jspb.Message {
|
|
732
|
+
hasIdentityNonce(): boolean;
|
|
733
|
+
clearIdentityNonce(): void;
|
|
734
|
+
getIdentityNonce(): number;
|
|
735
|
+
setIdentityNonce(value: number): void;
|
|
736
|
+
|
|
737
|
+
hasProof(): boolean;
|
|
738
|
+
clearProof(): void;
|
|
739
|
+
getProof(): Proof | undefined;
|
|
740
|
+
setProof(value?: Proof): void;
|
|
741
|
+
|
|
742
|
+
hasMetadata(): boolean;
|
|
743
|
+
clearMetadata(): void;
|
|
744
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
745
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
746
|
+
|
|
747
|
+
getResultCase(): GetIdentityNonceResponseV0.ResultCase;
|
|
748
|
+
serializeBinary(): Uint8Array;
|
|
749
|
+
toObject(includeInstance?: boolean): GetIdentityNonceResponseV0.AsObject;
|
|
750
|
+
static toObject(includeInstance: boolean, msg: GetIdentityNonceResponseV0): GetIdentityNonceResponseV0.AsObject;
|
|
751
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
752
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
753
|
+
static serializeBinaryToWriter(message: GetIdentityNonceResponseV0, writer: jspb.BinaryWriter): void;
|
|
754
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityNonceResponseV0;
|
|
755
|
+
static deserializeBinaryFromReader(message: GetIdentityNonceResponseV0, reader: jspb.BinaryReader): GetIdentityNonceResponseV0;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export namespace GetIdentityNonceResponseV0 {
|
|
759
|
+
export type AsObject = {
|
|
760
|
+
identityNonce: number,
|
|
761
|
+
proof?: Proof.AsObject,
|
|
762
|
+
metadata?: ResponseMetadata.AsObject,
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export enum ResultCase {
|
|
766
|
+
RESULT_NOT_SET = 0,
|
|
767
|
+
IDENTITY_NONCE = 1,
|
|
768
|
+
PROOF = 2,
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export enum VersionCase {
|
|
773
|
+
VERSION_NOT_SET = 0,
|
|
774
|
+
V0 = 1,
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export class GetIdentityContractNonceResponse extends jspb.Message {
|
|
779
|
+
hasV0(): boolean;
|
|
780
|
+
clearV0(): void;
|
|
781
|
+
getV0(): GetIdentityContractNonceResponse.GetIdentityContractNonceResponseV0 | undefined;
|
|
782
|
+
setV0(value?: GetIdentityContractNonceResponse.GetIdentityContractNonceResponseV0): void;
|
|
783
|
+
|
|
784
|
+
getVersionCase(): GetIdentityContractNonceResponse.VersionCase;
|
|
785
|
+
serializeBinary(): Uint8Array;
|
|
786
|
+
toObject(includeInstance?: boolean): GetIdentityContractNonceResponse.AsObject;
|
|
787
|
+
static toObject(includeInstance: boolean, msg: GetIdentityContractNonceResponse): GetIdentityContractNonceResponse.AsObject;
|
|
788
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
789
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
790
|
+
static serializeBinaryToWriter(message: GetIdentityContractNonceResponse, writer: jspb.BinaryWriter): void;
|
|
791
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityContractNonceResponse;
|
|
792
|
+
static deserializeBinaryFromReader(message: GetIdentityContractNonceResponse, reader: jspb.BinaryReader): GetIdentityContractNonceResponse;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export namespace GetIdentityContractNonceResponse {
|
|
796
|
+
export type AsObject = {
|
|
797
|
+
v0?: GetIdentityContractNonceResponse.GetIdentityContractNonceResponseV0.AsObject,
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export class GetIdentityContractNonceResponseV0 extends jspb.Message {
|
|
801
|
+
hasIdentityContractNonce(): boolean;
|
|
802
|
+
clearIdentityContractNonce(): void;
|
|
803
|
+
getIdentityContractNonce(): number;
|
|
804
|
+
setIdentityContractNonce(value: number): void;
|
|
805
|
+
|
|
806
|
+
hasProof(): boolean;
|
|
807
|
+
clearProof(): void;
|
|
808
|
+
getProof(): Proof | undefined;
|
|
809
|
+
setProof(value?: Proof): void;
|
|
810
|
+
|
|
811
|
+
hasMetadata(): boolean;
|
|
812
|
+
clearMetadata(): void;
|
|
813
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
814
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
815
|
+
|
|
816
|
+
getResultCase(): GetIdentityContractNonceResponseV0.ResultCase;
|
|
817
|
+
serializeBinary(): Uint8Array;
|
|
818
|
+
toObject(includeInstance?: boolean): GetIdentityContractNonceResponseV0.AsObject;
|
|
819
|
+
static toObject(includeInstance: boolean, msg: GetIdentityContractNonceResponseV0): GetIdentityContractNonceResponseV0.AsObject;
|
|
820
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
821
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
822
|
+
static serializeBinaryToWriter(message: GetIdentityContractNonceResponseV0, writer: jspb.BinaryWriter): void;
|
|
823
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityContractNonceResponseV0;
|
|
824
|
+
static deserializeBinaryFromReader(message: GetIdentityContractNonceResponseV0, reader: jspb.BinaryReader): GetIdentityContractNonceResponseV0;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export namespace GetIdentityContractNonceResponseV0 {
|
|
828
|
+
export type AsObject = {
|
|
829
|
+
identityContractNonce: number,
|
|
830
|
+
proof?: Proof.AsObject,
|
|
831
|
+
metadata?: ResponseMetadata.AsObject,
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export enum ResultCase {
|
|
835
|
+
RESULT_NOT_SET = 0,
|
|
836
|
+
IDENTITY_CONTRACT_NONCE = 1,
|
|
837
|
+
PROOF = 2,
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export enum VersionCase {
|
|
842
|
+
VERSION_NOT_SET = 0,
|
|
843
|
+
V0 = 1,
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
595
847
|
export class GetIdentityBalanceResponse extends jspb.Message {
|
|
596
848
|
hasV0(): boolean;
|
|
597
849
|
clearV0(): void;
|
|
@@ -1164,6 +1416,7 @@ export namespace GetProofsRequest {
|
|
|
1164
1416
|
FULL_IDENTITY: 0;
|
|
1165
1417
|
BALANCE: 1;
|
|
1166
1418
|
KEYS: 2;
|
|
1419
|
+
REVISION: 3;
|
|
1167
1420
|
}
|
|
1168
1421
|
|
|
1169
1422
|
export const Type: TypeMap;
|