@pioneer-platform/pioneer 8.2.25 → 8.2.27
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 +4 -8
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -250,10 +250,8 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
250
250
|
pubkey.type = "address";
|
|
251
251
|
if (!pubkey.context)
|
|
252
252
|
throw Error("100: invalid pubkey! missing context");
|
|
253
|
-
if (!pubkey.symbol)
|
|
254
|
-
|
|
255
|
-
if (!pubkey.username)
|
|
256
|
-
throw Error("102: invalid pubkey! missing username");
|
|
253
|
+
// if (!pubkey.symbol) throw Error("101: invalid pubkey! missing symbol");
|
|
254
|
+
// if (!pubkey.username) throw Error("102: invalid pubkey! missing username");
|
|
257
255
|
if (!pubkey.pubkey)
|
|
258
256
|
throw Error("103: invalid pubkey! missing pubkey");
|
|
259
257
|
if (!pubkey.type)
|
|
@@ -1049,14 +1047,12 @@ var register_pubkeys = function (username, pubkeys) {
|
|
|
1049
1047
|
throw Error("104: invalid pubkey! missing type!");
|
|
1050
1048
|
if (!pubkeyInfo.symbol)
|
|
1051
1049
|
pubkeyInfo.symbol = nativeAsset;
|
|
1052
|
-
if (!pubkeyInfo.script_type)
|
|
1053
|
-
throw Error("Invalid pubkey required field: script_type coin:" + pubkeyInfo.blockchain);
|
|
1050
|
+
//if (!pubkeyInfo.script_type) throw Error("Invalid pubkey required field: script_type coin:" + pubkeyInfo.blockchain);
|
|
1054
1051
|
if (!pubkeyInfo.network)
|
|
1055
1052
|
throw Error("Invalid pubkey required field: network coin:" + pubkeyInfo.blockchain);
|
|
1056
1053
|
if (!pubkeyInfo.master)
|
|
1057
1054
|
throw Error("Invalid pubkey required field: master coin:" + pubkeyInfo.blockchain);
|
|
1058
|
-
if (!pubkeyInfo.path)
|
|
1059
|
-
throw Error("Invalid pubkey required field: path coin:" + pubkeyInfo.blockchain);
|
|
1055
|
+
//if (!pubkeyInfo.path) throw Error("Invalid pubkey required field: path coin:" + pubkeyInfo.blockchain);
|
|
1060
1056
|
if (!pubkeyInfo.context)
|
|
1061
1057
|
throw Error("Invalid pubkey required field: context:" + pubkeyInfo.blockchain);
|
|
1062
1058
|
return [4 /*yield*/, pubkeysDB.findOne({ pubkey: pubkeyInfo.pubkey })];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.27",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@pioneer-platform/cointools": "^8.1.72",
|
|
26
26
|
"@pioneer-platform/loggerdog": "^8.1.31",
|
|
27
27
|
"@pioneer-platform/pioneer-caip": "^8.1.79",
|
|
28
|
+
"@pioneer-platform/pioneer-coins": "^8.1.86",
|
|
28
29
|
"@pioneer-platform/redis-queue": "^8.1.24",
|
|
29
30
|
"@pioneer-platform/unchained": "^8.1.66",
|
|
30
31
|
"@pioneer-platform/zapper-client": "^8.1.26",
|