@psf/bch-js 5.3.2 → 6.1.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.
package/.on-save.json ADDED
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "srcDir": "",
4
+ "destDir": "",
5
+ "files": "**/*.js",
6
+ "command": "npm run lint"
7
+ }
8
+ ]
package/LICENSE.md CHANGED
@@ -1,8 +1,7 @@
1
- Copyright 2021 Permissionless Software Foundation contributors
1
+ Copyright 2022 Permissionless Software Foundation contributors
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
5
5
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software
6
6
 
7
7
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
-
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@psf/bch-js",
3
- "version": "5.3.2",
4
- "description": "The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens",
3
+ "version": "6.1.0",
4
+ "description": "A JavaScript library for working with Bitcoin Cash, eCash, and SLP Tokens",
5
5
  "author": "Chris Troutner <chris.troutner@gmail.com>",
6
6
  "contributors": [
7
7
  "Gabriel Cardona <gabriel@bitcoin.com>",
@@ -37,14 +37,12 @@
37
37
  "url": "git+https://github.com/Permissionless-Software-Foundation/bch-js.git"
38
38
  },
39
39
  "dependencies": {
40
- "@psf/bip21": "2.0.1",
41
40
  "@chris.troutner/bip32-utils": "1.0.5",
41
+ "@psf/bip21": "2.0.1",
42
42
  "@psf/bitcoincash-ops": "2.0.0",
43
43
  "@psf/bitcoincashjs-lib": "4.0.2",
44
44
  "@psf/coininfo": "4.0.0",
45
- "@uppy/core": "1.10.4",
46
- "@uppy/tus": "1.5.12",
47
- "axios": "^0.21.4",
45
+ "axios": "0.26.1",
48
46
  "bc-bip68": "1.0.5",
49
47
  "bchaddrjs-slp": "0.2.5",
50
48
  "bigi": "1.4.2",
@@ -65,7 +63,7 @@
65
63
  "wif": "2.0.6"
66
64
  },
67
65
  "devDependencies": {
68
- "apidoc": "0.17.7",
66
+ "apidoc": "0.50.5",
69
67
  "assert": "2.0.0",
70
68
  "chai": "4.1.2",
71
69
  "coveralls": "3.0.2",
@@ -75,12 +73,12 @@
75
73
  "eslint-plugin-node": "11.1.0",
76
74
  "eslint-plugin-prettier": "3.3.1",
77
75
  "eslint-plugin-standard": "4.0.0",
78
- "husky": "^4.3.8",
76
+ "husky": "4.3.8",
79
77
  "lodash.clonedeep": "4.5.0",
80
- "mocha": "9.1.3",
78
+ "mocha": "9.2.1",
81
79
  "node-mocks-http": "1.7.0",
82
80
  "nyc": "15.1.0",
83
- "semantic-release": "18.0.0",
81
+ "semantic-release": "^19.0.2",
84
82
  "sinon": "9.2.2",
85
83
  "standard": "^16.0.4"
86
84
  },
package/src/bch-js.js CHANGED
@@ -28,7 +28,6 @@ const Script = require('./script')
28
28
  const Price = require('./price')
29
29
  const Schnorr = require('./schnorr')
30
30
  const SLP = require('./slp/slp')
31
- const IPFS = require('./ipfs')
32
31
  const Encryption = require('./encryption')
33
32
  const Utxo = require('./utxo')
34
33
  const Transaction = require('./transaction')
@@ -111,7 +110,6 @@ class BCHJS {
111
110
  this.SLP = new SLP(libConfig)
112
111
  this.SLP.HDNode = this.HDNode
113
112
 
114
- this.IPFS = new IPFS()
115
113
  this.Utxo = new Utxo(libConfig)
116
114
  this.Transaction = new Transaction(libConfig)
117
115
 
@@ -41,7 +41,7 @@ class PsfSlpIndexer {
41
41
  this.rawTransaction = new RawTransaction(config)
42
42
  this.slpUtils = new SlpUtils(config)
43
43
 
44
- // _this = this
44
+ // _this = this
45
45
  }
46
46
 
47
47
  /**
@@ -53,8 +53,8 @@ class PsfSlpIndexer {
53
53
  * @apiExample Example usage:
54
54
  * (async () => {
55
55
  * try {
56
- * let status = await bchjs.PsfSlpIndexer.status();
57
- * console.log(status);
56
+ * let status = await bchjs.PsfSlpIndexer.status()
57
+ * console.log(status)
58
58
  * } catch(error) {
59
59
  * console.error(error)
60
60
  * }
@@ -91,8 +91,8 @@ class PsfSlpIndexer {
91
91
  * @apiExample Example usage:
92
92
  * (async () => {
93
93
  * try {
94
- * let balance = await bchjs.PsfSlpIndexer.balance('bitcoincash:qzmd5vxgh9m22m6fgvm57yd6kjnjl9qnwywsf3583n');
95
- * console.log(balance);
94
+ * let balance = await bchjs.PsfSlpIndexer.balance('bitcoincash:qzmd5vxgh9m22m6fgvm57yd6kjnjl9qnwywsf3583n')
95
+ * console.log(balance)
96
96
  * } catch(error) {
97
97
  * console.error(error)
98
98
  * }
@@ -161,8 +161,8 @@ class PsfSlpIndexer {
161
161
  * @apiExample Example usage:
162
162
  * (async () => {
163
163
  * try {
164
- * let tokenStats = await bchjs.PsfSlpIndexer.tokenStats('a4fb5c2da1aa064e25018a43f9165040071d9e984ba190c222a7f59053af84b2', true);
165
- * console.log(tokenStats);
164
+ * let tokenStats = await bchjs.PsfSlpIndexer.tokenStats('a4fb5c2da1aa064e25018a43f9165040071d9e984ba190c222a7f59053af84b2', true)
165
+ * console.log(tokenStats)
166
166
  * } catch(error) {
167
167
  * console.error(error)
168
168
  * }
@@ -223,8 +223,8 @@ class PsfSlpIndexer {
223
223
  * @apiExample Example usage:
224
224
  * (async () => {
225
225
  * try {
226
- * let txData = await bchjs.PsfSlpIndexer.tx('a4fb5c2da1aa064e25018a43f9165040071d9e984ba190c222a7f59053af84b2');
227
- * console.log(txData);
226
+ * let txData = await bchjs.PsfSlpIndexer.tx('a4fb5c2da1aa064e25018a43f9165040071d9e984ba190c222a7f59053af84b2')
227
+ * console.log(txData)
228
228
  * } catch(error) {
229
229
  * console.error(error)
230
230
  * }