Commit 7ddaf0cf authored by Andrew Danger Lyon's avatar Andrew Danger Lyon

converting (what little is needed) of sim lib to use lib-basis-client. seems...

converting (what little is needed) of sim lib to use lib-basis-client. seems to load. next up is building the fucking thing. ugh.
parent 40b380b3
......@@ -4,9 +4,7 @@ module.exports = {
// where our proto buffers are located (only change this if you have a good
// reason to)
protobuf_dir: `${__dirname}/../../bundle/models/src/proto`,
integration_test_dir: `${__dirname}/../../basis/integration-tests`,
protobuf_dir: `${__dirname}/../../basis/bundle/models/src/proto`,
// the intial user we create to facilitate the creation of all our test
// conditions and data
......
......@@ -64,9 +64,9 @@
"integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q=="
},
"@types/node": {
"version": "10.14.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.19.tgz",
"integrity": "sha512-j6Sqt38ssdMKutXBUuAcmWF8QtHW1Fwz/mz4Y+Wd9mzpBiVFirjpNQf363hG5itkG+yGaD+oiLyb50HxJ36l9Q=="
"version": "10.14.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.20.tgz",
"integrity": "sha512-An+MXSV8CGXz/BO9C1KKsoJ/8WDrvlNUaRMsm2h+IHZuSyQkM8U5bJJkb8ItLKA73VePG/nUK+t+EuW2IWuhsQ=="
},
"ajv": {
"version": "6.10.2",
......@@ -125,9 +125,9 @@
}
},
"big-integer": {
"version": "1.6.45",
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.45.tgz",
"integrity": "sha512-nmb9E7oEtVJ7SmSCH/DeJobXyuRmaofkpoQSimMFu3HKJ5MADtM825SPLhDuWhZ6TElLAQtgJbQmBZuHIRlZoA=="
"version": "1.6.47",
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.47.tgz",
"integrity": "sha512-9t9f7X3as2XGX8b52GqG6ox0GvIdM86LyIXASJnDCFhYNgt+A+MByQZ3W2PyMRZjEvG5f8TEbSPfEotVuMJnQg=="
},
"binary-search": {
"version": "1.3.6",
......@@ -135,9 +135,9 @@
"integrity": "sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA=="
},
"bluebird": {
"version": "3.5.5",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz",
"integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w=="
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.0.tgz",
"integrity": "sha512-aBQ1FxIa7kSWCcmKHlcHFlT2jt6J/l4FzC7KcPELkOJOsPOb/bccdhmIrKDfXhwFrmc7vDoDrrepFvGqjyXGJg=="
},
"caseless": {
"version": "0.12.0",
......@@ -282,9 +282,9 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"is-buffer": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
"integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw=="
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz",
"integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A=="
},
"is-typedarray": {
"version": "1.0.0",
......@@ -327,6 +327,18 @@
"verror": "1.10.0"
}
},
"lib-basis-client": {
"version": "git+ssh://git@gitlab.com/basis-/lib-basis-client.git#3712a8c71687c04d5514c961f31f78c942750645",
"from": "git+ssh://git@gitlab.com/basis-/lib-basis-client.git#master",
"requires": {
"bluebird": "^3.5.5",
"exonum-client": "^0.17.1",
"protobufjs": "^6.8.8",
"request": "^2.88.0",
"request-promise": "^4.2.4",
"uuid": "^3.3.2"
}
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
......
module.exports = Object.assign({}, require('../../config/default'), require('../../config/local'));
const config = require('./helpers/config');
const Basis = require('lib-basis-client');
Basis.init(__dirname+'/../config');
const config = Basis.config
const uuid = require('uuid/v4');
const Exonum = require('exonum-client');
const trans = require(`${config.integration_test_dir}/helpers/transactions`);
const trans = Basis.transactions;
const tx = trans.types;
const bootstrap = require(`${config.integration_test_dir}/helpers/bootstrap`);
const bootstrap = Basis.bootstrap;
const TIME_SCALE = 0.01; // one hour is X seconds
const companies = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment