psf-multisig-approval 2.1.0 → 2.2.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/index.js +5 -5
- package/lib/nfts.js +1 -1
- package/lib/util.js +1 -1
- package/package.json +3 -2
- package/test/integration/main-index-integration.js +3 -3
- package/test/unit/main-index-unit.js +6 -6
- package/test/unit/mocks/main-index-mocks.js +13 -1
- package/test/unit/mocks/util-mocks.js +1 -1
- package/test/unit/nfts-unit.js +6 -9
- package/test/unit/util-unit.js +6 -6
package/index.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// global libraries
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import bitcore from '@chris.troutner/bitcore-lib-cash'
|
|
8
|
+
import axios from 'axios'
|
|
9
9
|
|
|
10
10
|
// Local libraries
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
import NFTs from './lib/nfts.js'
|
|
12
|
+
import UtilLib from './lib/util.js'
|
|
13
13
|
|
|
14
14
|
class MultisigApproval {
|
|
15
15
|
constructor (localConfig = {}) {
|
|
@@ -415,4 +415,4 @@ class MultisigApproval {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
export default MultisigApproval
|
package/lib/nfts.js
CHANGED
package/lib/util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "psf-multisig-approval",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Utility library implementing the PS009 specification",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"start": "node index.js",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"chai": "4.3.7",
|
|
41
42
|
"husky": "8.0.3",
|
|
42
43
|
"lodash.clonedeep": "4.5.0",
|
|
43
|
-
"minimal-slp-wallet": "
|
|
44
|
+
"minimal-slp-wallet": "7.1.3",
|
|
44
45
|
"mocha": "10.2.0",
|
|
45
46
|
"nyc": "15.1.0",
|
|
46
47
|
"semantic-release": "19.0.5",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Global npm libraries
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import SlpWallet from 'minimal-slp-wallet'
|
|
7
|
+
import { assert } from 'chai'
|
|
8
8
|
|
|
9
9
|
// Local libraries
|
|
10
|
-
|
|
10
|
+
import MultisigApproval from '../../index.js'
|
|
11
11
|
|
|
12
12
|
describe('#psf-multisig-approval', () => {
|
|
13
13
|
let uut
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// npm libraries
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { assert } from 'chai'
|
|
7
|
+
import sinon from 'sinon'
|
|
8
|
+
import cloneDeep from 'lodash.clonedeep'
|
|
9
|
+
import SlpWallet from 'minimal-slp-wallet'
|
|
10
10
|
|
|
11
11
|
// Mocking data libraries.
|
|
12
12
|
|
|
13
13
|
// Local libraries
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import MultisigApproval from '../../index.js'
|
|
15
|
+
import mockDataLib from './mocks/main-index-mocks.js'
|
|
16
16
|
|
|
17
17
|
describe('#MultisigApproval.js', () => {
|
|
18
18
|
let sandbox
|
|
@@ -277,7 +277,19 @@ const updateObj01 = {
|
|
|
277
277
|
txDetails: updateTxDetails01
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
export {
|
|
281
|
+
pubkeys01,
|
|
282
|
+
txHistory01,
|
|
283
|
+
txHistory02,
|
|
284
|
+
approvalTxDetails01,
|
|
285
|
+
updateTxDetails01,
|
|
286
|
+
tokenHolderInfo01,
|
|
287
|
+
updateData01,
|
|
288
|
+
approvalObj01,
|
|
289
|
+
updateObj01
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export default {
|
|
281
293
|
pubkeys01,
|
|
282
294
|
txHistory01,
|
|
283
295
|
txHistory02,
|
package/test/unit/nfts-unit.js
CHANGED
|
@@ -3,19 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// npm libraries
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// Locally global variables.
|
|
12
|
-
const assert = chai.assert
|
|
6
|
+
import { assert } from 'chai'
|
|
7
|
+
import sinon from 'sinon'
|
|
8
|
+
// import cloneDeep from 'lodash.clonedeep'
|
|
9
|
+
import SlpWallet from 'minimal-slp-wallet'
|
|
13
10
|
|
|
14
11
|
// Mocking data libraries.
|
|
15
|
-
//
|
|
12
|
+
// import mockDataLib from './mocks/util-mocks.js'
|
|
16
13
|
|
|
17
14
|
// Unit under test
|
|
18
|
-
|
|
15
|
+
import NftsLib from '../../lib/nfts.js'
|
|
19
16
|
|
|
20
17
|
describe('#NFTs', () => {
|
|
21
18
|
let sandbox
|
package/test/unit/util-unit.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// npm libraries
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
|
|
6
|
+
import { assert } from 'chai'
|
|
7
|
+
import sinon from 'sinon'
|
|
8
|
+
// import cloneDeep from 'lodash.clonedeep'
|
|
9
|
+
import SlpWallet from 'minimal-slp-wallet'
|
|
10
10
|
|
|
11
11
|
// Local libraries
|
|
12
|
-
//
|
|
12
|
+
// import mockDataLib from './mocks/util-mocks.js'
|
|
13
13
|
|
|
14
14
|
// Unit under test
|
|
15
|
-
|
|
15
|
+
import UtilLib from '../../lib/util.js'
|
|
16
16
|
|
|
17
17
|
describe('#Util', () => {
|
|
18
18
|
let sandbox
|