@pioneer-platform/pioneer-network 8.1.47 → 8.1.48
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/lib/index.js +7 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -51,6 +51,7 @@ var cosmos = require('@pioneer-platform/cosmos-network');
|
|
|
51
51
|
var binance = require('@pioneer-platform/binance-network');
|
|
52
52
|
var thor = require('@pioneer-platform/thor-network');
|
|
53
53
|
var osmosis = require('@pioneer-platform/osmosis-network');
|
|
54
|
+
var midgard = require("@pioneer-platform/midgard-client");
|
|
54
55
|
var Network = /** @class */ (function () {
|
|
55
56
|
function Network(config) {
|
|
56
57
|
this.blockchains = config.wss;
|
|
@@ -62,7 +63,8 @@ var Network = /** @class */ (function () {
|
|
|
62
63
|
cosmos: cosmos,
|
|
63
64
|
binance: binance,
|
|
64
65
|
thor: thor,
|
|
65
|
-
osmosis: osmosis
|
|
66
|
+
osmosis: osmosis,
|
|
67
|
+
midgard: midgard
|
|
66
68
|
};
|
|
67
69
|
this.init = function () {
|
|
68
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -100,9 +102,12 @@ var Network = /** @class */ (function () {
|
|
|
100
102
|
return [4 /*yield*/, thor.init()];
|
|
101
103
|
case 7:
|
|
102
104
|
_a.sent();
|
|
103
|
-
return [4 /*yield*/, osmosis.init()
|
|
105
|
+
return [4 /*yield*/, osmosis.init()
|
|
106
|
+
// await midgard.init() //TODO add init
|
|
107
|
+
];
|
|
104
108
|
case 8:
|
|
105
109
|
_a.sent();
|
|
110
|
+
// await midgard.init() //TODO add init
|
|
106
111
|
return [2 /*return*/, true];
|
|
107
112
|
case 9:
|
|
108
113
|
e_1 = _a.sent();
|