Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

chore: update to new Drive endpoints #308

Merged
merged 15 commits into from
Oct 21, 2020
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install:
- npm ci
- cp .env.example .env
# Get the latest version of travis-ci-tools
- curl -s https://api.github.com/repos/dashevo/travis-ci-tools/releases/latest | jq -r '.tarball_url' | xargs -I {} -n1 wget -O travis-ci-tools.tar.gz -q {}
- curl -u $GITHUB_USER:$GITHUB_TOKEN -s https://api.github.com/repos/dashevo/travis-ci-tools/releases/latest | jq -r '.tarball_url' | xargs -I {} -n1 wget -O travis-ci-tools.tar.gz -q {}
- mkdir ~/travis-ci-tools && tar -C ~/travis-ci-tools -xvf travis-ci-tools.tar.gz
- export CI_TOOLS_DIR="$(ls ~/travis-ci-tools)"
- cd ~/travis-ci-tools/$CI_TOOLS_DIR
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"all": true
},
"dependencies": {
"@dashevo/dapi-grpc": "~0.16.0-dev.1",
"@dashevo/dapi-grpc": "~0.16.0-dev.2",
"@dashevo/dashcore-lib": "~0.18.12",
"@dashevo/dashd-rpc": "^2.0.0",
"@dashevo/grpc-common": "~0.3.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const {
},
} = require('@dashevo/dapi-grpc');

/* eslint-disable import/no-extraneous-dependencies */
const generateRandomIdentifier = require('@dashevo/dpp/lib/test/utils/generateRandomIdentifier');
const getDataContractFixture = require('@dashevo/dpp/lib/test/fixtures/getDataContractFixture');

const GrpcCallMock = require('../../../../../lib/test/mock/GrpcCallMock');
Expand All @@ -32,7 +34,7 @@ describe('getDataContractHandlerFactory', () => {
let handleAbciResponseErrorMock;

beforeEach(function beforeEach() {
id = 1;
id = generateRandomIdentifier();
request = {
getId: this.sinon.stub().returns(id),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const {
},
} = require('@dashevo/dapi-grpc');

/* eslint-disable import/no-extraneous-dependencies */
const generateRandomIdentifier = require('@dashevo/dpp/lib/test/utils/generateRandomIdentifier');
const getDocumentsFixture = require('@dashevo/dpp/lib/test/fixtures/getDocumentsFixture');

const GrpcCallMock = require('../../../../../lib/test/mock/GrpcCallMock');
Expand Down Expand Up @@ -41,7 +43,7 @@ describe('getDocumentsHandlerFactory', () => {
let documentsSerialized;

beforeEach(function beforeEach() {
dataContractId = 'contractId';
dataContractId = generateRandomIdentifier();
documentType = 'document';
where = [['name', '==', 'John']];
orderBy = [{ order: 'asc' }];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const {
},
} = require('@dashevo/dapi-grpc');

/* eslint-disable import/no-extraneous-dependencies */
const generateRandomIdentifier = require('@dashevo/dpp/lib/test/utils/generateRandomIdentifier');
const getIdentityFixture = require('@dashevo/dpp/lib/test/fixtures/getIdentityFixture');

const getIdentityHandlerFactory = require('../../../../../lib/grpcServer/handlers/platform/getIdentityHandlerFactory');
Expand All @@ -30,7 +32,7 @@ describe('getIdentityHandlerFactory', () => {
let identity;

beforeEach(function beforeEach() {
id = '5poV8Vdi27VksX2RAzAgXmjAh14y87JN2zLvyAwmepRK';
id = generateRandomIdentifier();
call = new GrpcCallMock(this.sinon, {
getId: this.sinon.stub().returns(id),
});
Expand Down