edge-currency-plugins 3.9.0 → 3.11.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.
|
@@ -107,6 +107,16 @@ var _utils3 = require('./utils');
|
|
|
107
107
|
},
|
|
108
108
|
|
|
109
109
|
async parseUri(uri) {
|
|
110
|
+
// CashStamps and similar paper-wallet tools prefix a WIF private key with
|
|
111
|
+
// a "<code>-wif:" protohandler (e.g. "bch-wif:<WIF>"). Strip it so the
|
|
112
|
+
// bare WIF is handled by the private-key detection in parsePathname. The
|
|
113
|
+
// prefix is derived from the wallet's own currency code, so it can only
|
|
114
|
+
// ever match this coin.
|
|
115
|
+
const wifPrefix = `${currencyInfo.currencyCode.toLowerCase()}-wif:`
|
|
116
|
+
if (uri.toLowerCase().startsWith(wifPrefix)) {
|
|
117
|
+
uri = uri.slice(wifPrefix.length)
|
|
118
|
+
}
|
|
119
|
+
|
|
110
120
|
const isGateway = uri
|
|
111
121
|
.toLocaleLowerCase()
|
|
112
122
|
.startsWith(`${coinInfo.name}://`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"homepage": "https://edge.app/",
|
|
6
6
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
"bip39": "^3.0.2",
|
|
51
51
|
"bitcoinjs-message": "^2.2.0",
|
|
52
52
|
"blake-hash": "^2.0.0",
|
|
53
|
-
"bn.js": "^5.
|
|
53
|
+
"bn.js": "^5.2.3",
|
|
54
54
|
"bs58": "^4.0.1",
|
|
55
55
|
"bs58grscheck": "^2.1.2",
|
|
56
56
|
"bs58smartcheck": "^2.0.4",
|
|
57
57
|
"cleaners": "^0.3.17",
|
|
58
58
|
"disklet": "^0.4.5",
|
|
59
|
-
"ecpair": "
|
|
59
|
+
"ecpair": "npm:@edge.app/ecpair@2.1.0-edge.1",
|
|
60
60
|
"edge-sync-client": "^0.2.7",
|
|
61
61
|
"memlet": "^0.1.7",
|
|
62
62
|
"uri-js": "^4.4.0",
|
|
63
63
|
"url-parse": "^1.5.2",
|
|
64
64
|
"wif-smart": "^2.0.0",
|
|
65
65
|
"wifgrs": "^2.0.6",
|
|
66
|
-
"ws": "^7.
|
|
66
|
+
"ws": "^7.5.10"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@sucrase/webpack-loader": "^2.0.0",
|
|
@@ -84,11 +84,14 @@
|
|
|
84
84
|
"@types/ws": "^7.2.6",
|
|
85
85
|
"@typescript-eslint/eslint-plugin": "^4.8.2",
|
|
86
86
|
"@typescript-eslint/parser": "^4.8.2",
|
|
87
|
-
"
|
|
87
|
+
"assert": "^2.1.0",
|
|
88
|
+
"base-x": "^4.0.1",
|
|
89
|
+
"buffer": "^6.0.3",
|
|
88
90
|
"chai": "^4.2.0",
|
|
89
91
|
"chai-as-promised": "^7.1.1",
|
|
92
|
+
"crypto-browserify": "^3.12.1",
|
|
90
93
|
"edge-core-js": "^2.24.0",
|
|
91
|
-
"esbuild-loader": "^4.
|
|
94
|
+
"esbuild-loader": "^4.3.0",
|
|
92
95
|
"eslint": "^7.14.0",
|
|
93
96
|
"eslint-config-standard-kit": "0.15.1",
|
|
94
97
|
"eslint-plugin-import": "^2.22.1",
|
|
@@ -97,28 +100,43 @@
|
|
|
97
100
|
"eslint-plugin-prettier": "^3.1.4",
|
|
98
101
|
"eslint-plugin-promise": "^4.2.1",
|
|
99
102
|
"eslint-plugin-simple-import-sort": "^6.0.1",
|
|
103
|
+
"https-browserify": "^1.0.0",
|
|
100
104
|
"husky": "^7.0.4",
|
|
101
105
|
"jsonfile": "^6.1.0",
|
|
102
106
|
"lint-staged": "^10.5.3",
|
|
103
|
-
"mocha": "^
|
|
104
|
-
"mocha-junit-reporter": "^2.0
|
|
107
|
+
"mocha": "^10.6.0",
|
|
108
|
+
"mocha-junit-reporter": "^2.1.0",
|
|
105
109
|
"mocha-multi-reporters": "^1.5.1",
|
|
106
110
|
"mochawesome": "^7.0.1",
|
|
107
111
|
"node-fetch": "2.x",
|
|
108
|
-
"nodemon": "^
|
|
112
|
+
"nodemon": "^3.0.0",
|
|
109
113
|
"npm-run-all": "^4.1.5",
|
|
110
114
|
"nyc": "^15.1.0",
|
|
111
|
-
"
|
|
115
|
+
"os-browserify": "^0.3.0",
|
|
116
|
+
"parcel": "^2.0.0",
|
|
112
117
|
"patch-package": "^8.0.0",
|
|
118
|
+
"path-browserify": "^1.0.1",
|
|
113
119
|
"prettier": "^2.2.0",
|
|
120
|
+
"process": "^0.11.10",
|
|
114
121
|
"request": "^2.88.2",
|
|
115
122
|
"rimraf": "^3.0.2",
|
|
123
|
+
"stream-browserify": "^3.0.0",
|
|
124
|
+
"stream-http": "^3.2.0",
|
|
116
125
|
"sucrase": "^3.12.1",
|
|
117
126
|
"typescript": "^4.1.2",
|
|
118
|
-
"
|
|
127
|
+
"url": "^0.11.4",
|
|
128
|
+
"vm-browserify": "^1.1.2",
|
|
129
|
+
"webpack": "^5.104.1",
|
|
119
130
|
"webpack-cli": "^5.1.4",
|
|
120
|
-
"webpack-dev-server": "^5.
|
|
131
|
+
"webpack-dev-server": "^5.2.4",
|
|
121
132
|
"wif": "^2.0.6"
|
|
122
133
|
},
|
|
134
|
+
"overrides": {
|
|
135
|
+
"get-func-name": "2.0.2",
|
|
136
|
+
"groestl-hash-js": "npm:@edge.app/groestl-hash-js@1.0.0-edge.1",
|
|
137
|
+
"wifgrs": {
|
|
138
|
+
"bs58grscheck": "npm:@edge.app/bs58grscheck@2.1.2-edge.1"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
123
141
|
"react-native": "./lib/react-native.js"
|
|
124
142
|
}
|