@getpara/core-sdk 2.1.0 → 2.3.0

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.
@@ -43,7 +43,7 @@ __export(constants_exports, {
43
43
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
44
44
  });
45
45
  module.exports = __toCommonJS(constants_exports);
46
- const PARA_CORE_VERSION = "2.1.0";
46
+ const PARA_CORE_VERSION = "2.2.0";
47
47
  const PREFIX = "@CAPSULE/";
48
48
  const PARA_PREFIX = "@PARA/";
49
49
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
@@ -40,14 +40,6 @@ function validateBalancesConfig(obj) {
40
40
  if (!validateCustomAsset(asset)) {
41
41
  return false;
42
42
  }
43
- const hasPriceUrl = typeof asset.priceUrl === "string" && asset.priceUrl.trim();
44
- const hasPrice = asset.price && typeof asset.price === "object" && typeof asset.price.value === "number" && asset.price.value > 0 && typeof asset.price.currency === "string" && asset.price.currency.trim();
45
- if (!hasPriceUrl && !hasPrice) {
46
- return false;
47
- }
48
- if (hasPriceUrl && hasPrice) {
49
- return false;
50
- }
51
43
  }
52
44
  }
53
45
  return true;
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "2.1.0";
2
+ const PARA_CORE_VERSION = "2.2.0";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const PARA_PREFIX = "@PARA/";
5
5
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
@@ -19,14 +19,6 @@ function validateBalancesConfig(obj) {
19
19
  if (!validateCustomAsset(asset)) {
20
20
  return false;
21
21
  }
22
- const hasPriceUrl = typeof asset.priceUrl === "string" && asset.priceUrl.trim();
23
- const hasPrice = asset.price && typeof asset.price === "object" && typeof asset.price.value === "number" && asset.price.value > 0 && typeof asset.price.currency === "string" && asset.price.currency.trim();
24
- if (!hasPriceUrl && !hasPrice) {
25
- return false;
26
- }
27
- if (hasPriceUrl && hasPrice) {
28
- return false;
29
- }
30
22
  }
31
23
  }
32
24
  return true;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "dependencies": {
5
5
  "@celo/utils": "^8.0.2",
6
6
  "@cosmjs/encoding": "^0.32.4",
7
7
  "@ethereumjs/util": "^9.1.0",
8
- "@getpara/user-management-client": "2.1.0",
8
+ "@getpara/user-management-client": "2.3.0",
9
9
  "@noble/hashes": "^1.5.0",
10
10
  "base64url": "^3.0.1",
11
11
  "libphonenumber-js": "^1.11.7",
@@ -27,7 +27,7 @@
27
27
  "dist",
28
28
  "package.json"
29
29
  ],
30
- "gitHead": "3ae7f836324a3a2a8a57156e16304aeaf0d37b42",
30
+ "gitHead": "c2ecd83fd7b4ede9b5365904a299564df9c79c18",
31
31
  "main": "dist/cjs/index.js",
32
32
  "module": "dist/esm/index.js",
33
33
  "scripts": {