@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
|
@@ -18,6 +18,8 @@ describe('PlatformPromiseClient', () => {
|
|
|
18
18
|
getEpochsInfo: this.sinon.stub().resolves(response),
|
|
19
19
|
getProtocolVersionUpgradeVoteStatus: this.sinon.stub().resolves(response),
|
|
20
20
|
getProtocolVersionUpgradeState: this.sinon.stub().resolves(response),
|
|
21
|
+
getIdentityContractNonce: this.sinon.stub().resolves(response),
|
|
22
|
+
getIdentityNonce: this.sinon.stub().resolves(response),
|
|
21
23
|
};
|
|
22
24
|
});
|
|
23
25
|
|
|
@@ -116,4 +118,24 @@ describe('PlatformPromiseClient', () => {
|
|
|
116
118
|
.to.be.calledOnceWith(request);
|
|
117
119
|
});
|
|
118
120
|
});
|
|
121
|
+
|
|
122
|
+
describe('#getIdentityContractNonce', () => {
|
|
123
|
+
it('should get identity contract nonce', async () => {
|
|
124
|
+
const result = await platformPromiseClient.getIdentityContractNonce(request);
|
|
125
|
+
|
|
126
|
+
expect(result).to.equal(response);
|
|
127
|
+
expect(platformPromiseClient.client.getIdentityContractNonce)
|
|
128
|
+
.to.be.calledOnceWith(request);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
describe('#getIdentityNonce', () => {
|
|
133
|
+
it('should get identity nonce', async () => {
|
|
134
|
+
const result = await platformPromiseClient.getIdentityNonce(request);
|
|
135
|
+
|
|
136
|
+
expect(result).to.equal(response);
|
|
137
|
+
expect(platformPromiseClient.client.getIdentityNonce)
|
|
138
|
+
.to.be.calledOnceWith(request);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
119
141
|
});
|