@osn/polkadot-api-container 1.0.9 → 1.0.11

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@osn/polkadot-api-container",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "src/index.js",
5
5
  "repository": "git@github.com:opensquare-network/polkadot-api-container.git",
6
6
  "author": "OpenSquare <https://www.opensquare.network/>",
7
7
  "license": "Apache-2.0",
8
8
  "dependencies": {
9
- "@osn/provider-options": "1.0.10",
10
- "@polkadot/api": "9.2.3",
9
+ "@osn/provider-options": "1.0.14",
10
+ "@polkadot/api": "9.5.1",
11
11
  "lodash.isnil": "^4.0.0"
12
12
  },
13
13
  "peerDependencies": {
package/src/apis/index.js CHANGED
@@ -10,6 +10,8 @@ const {
10
10
  kintsugiOptions,
11
11
  crustOptions,
12
12
  centrifugeOptions,
13
+ parallelOptions,
14
+ shidenOptions,
13
15
  } = require("@osn/provider-options");
14
16
 
15
17
  const nodeTimeoutSeconds = 20;
@@ -49,7 +51,7 @@ async function createApi(network, endpoint, logger = console) {
49
51
  let options = {};
50
52
  if ([chains.karura, chains.acala].includes(network)) {
51
53
  options = karuraOptions;
52
- } else if (chains.khala === network) {
54
+ } else if ([chains.khala, chains.phala].includes(network)) {
53
55
  options = khalaOptions;
54
56
  } else if (chains.bifrost === network) {
55
57
  options = bifrostOptions;
@@ -63,6 +65,10 @@ async function createApi(network, endpoint, logger = console) {
63
65
  options = centrifugeOptions;
64
66
  } else if (chains.altair === network) {
65
67
  options = altairOptions;
68
+ } else if (chains.parallel === network) {
69
+ options = parallelOptions;
70
+ } else if (chains.shiden === network) {
71
+ options = shidenOptions;
66
72
  }
67
73
 
68
74
  let api;
@@ -3,6 +3,7 @@ const chains = {
3
3
  kusama: "kusama",
4
4
  karura: "karura",
5
5
  khala: "khala",
6
+ phala: "phala",
6
7
  statemine: "statemine",
7
8
  bifrost: "bifrost",
8
9
  kintsugi: "kintsugi",
@@ -15,6 +16,10 @@ const chains = {
15
16
  polkadex: "polkadex",
16
17
  centrifuge: "centrifuge",
17
18
  altair: "altair",
19
+ litmus: "litmus",
20
+ zeitgeist: "zeitgeist",
21
+ shiden: "shiden",
22
+ parallel: "parallel",
18
23
  };
19
24
 
20
25
  module.exports = {