@dashevo/dapi-grpc 1.0.0-dev.5 → 1.0.0-dev.7
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 +20 -13
- package/build.rs +8 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +75 -0
- package/clients/platform/v0/web/PlatformPromiseClient.js +14 -0
- package/package.json +2 -2
- package/src/core/proto/org.dash.platform.dapi.v0.rs +522 -0
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +1212 -0
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +11 -0
|
@@ -20,6 +20,7 @@ describe('PlatformPromiseClient', () => {
|
|
|
20
20
|
getProtocolVersionUpgradeState: this.sinon.stub().resolves(response),
|
|
21
21
|
getIdentityContractNonce: this.sinon.stub().resolves(response),
|
|
22
22
|
getIdentityNonce: this.sinon.stub().resolves(response),
|
|
23
|
+
getIdentityKeys: this.sinon.stub().resolves(response),
|
|
23
24
|
};
|
|
24
25
|
});
|
|
25
26
|
|
|
@@ -138,4 +139,14 @@ describe('PlatformPromiseClient', () => {
|
|
|
138
139
|
.to.be.calledOnceWith(request);
|
|
139
140
|
});
|
|
140
141
|
});
|
|
142
|
+
|
|
143
|
+
describe('#getIdentityKeys', () => {
|
|
144
|
+
it('should get identity keys', async () => {
|
|
145
|
+
const result = await platformPromiseClient.getIdentityKeys(request);
|
|
146
|
+
|
|
147
|
+
expect(result).to.equal(response);
|
|
148
|
+
expect(platformPromiseClient.client.getIdentityKeys)
|
|
149
|
+
.to.be.calledOnceWith(request);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
141
152
|
});
|