@psf/bch-js 6.3.0 → 6.3.3
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/package.json
CHANGED
|
@@ -130,6 +130,7 @@ describe('#psf-slp-indexer', () => {
|
|
|
130
130
|
const tokenId =
|
|
131
131
|
'f055256b938f1ecfa270459d6f12c7c8c82b66d3263c03d5074445a2b1a498a3'
|
|
132
132
|
|
|
133
|
+
// bchjs.PsfSlpIndexer.restURL = 'http://localhost:3000/v5/'
|
|
133
134
|
const result = await bchjs.PsfSlpIndexer.getTokenData(tokenId)
|
|
134
135
|
// console.log('result: ', result)
|
|
135
136
|
|
|
@@ -138,8 +139,8 @@ describe('#psf-slp-indexer', () => {
|
|
|
138
139
|
assert.property(result, 'mutableData')
|
|
139
140
|
|
|
140
141
|
assert.isObject(result.genesisData)
|
|
141
|
-
assert.
|
|
142
|
-
assert.
|
|
142
|
+
assert.isString(result.immutableData)
|
|
143
|
+
assert.isString(result.mutableData)
|
|
143
144
|
})
|
|
144
145
|
})
|
|
145
146
|
})
|
|
@@ -104,7 +104,7 @@ describe('#UTXO', () => {
|
|
|
104
104
|
})
|
|
105
105
|
|
|
106
106
|
it('should filter Group tokens and mint batons', async () => {
|
|
107
|
-
const addr = 'bitcoincash:
|
|
107
|
+
const addr = 'bitcoincash:qrp4mlmsrtwlvjn4seuchvtmus06tuqmpvex9he79q'
|
|
108
108
|
|
|
109
109
|
const result = await bchjs.Utxo.get(addr)
|
|
110
110
|
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
@@ -114,7 +114,7 @@ describe('#UTXO', () => {
|
|
|
114
114
|
})
|
|
115
115
|
|
|
116
116
|
it('should filter NFTs', async () => {
|
|
117
|
-
const addr = '
|
|
117
|
+
const addr = 'bitcoincash:qrp4mlmsrtwlvjn4seuchvtmus06tuqmpvex9he79q'
|
|
118
118
|
|
|
119
119
|
const result = await bchjs.Utxo.get(addr)
|
|
120
120
|
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
@@ -146,16 +146,10 @@ const tokenData01 = {
|
|
|
146
146
|
|
|
147
147
|
const tokenData = {
|
|
148
148
|
genesisData: tokenStats.tokenData,
|
|
149
|
-
immutableData:
|
|
150
|
-
|
|
151
|
-
website: 'http://launchpadip.com/',
|
|
152
|
-
dateCreated: '2022-01-11'
|
|
153
|
-
},
|
|
154
|
-
mutableData: {
|
|
155
|
-
tokenIcon: 'https://gateway.ipfs.io/ipfs/bafybeiehitanirn5gmhqjg44xrmdtomn4n5lu5yjoepsvgpswk5mggaw6i/LP_logo-1.png',
|
|
156
|
-
about: 'Mutable data managed with npm package: https://www.npmjs.com/package/slp-mutable-data'
|
|
157
|
-
}
|
|
149
|
+
immutableData: 'ipfs://bafybeidzfi3sictag4noy746gniyiwwcgio565xuzelmjfwxnga6qyiyai',
|
|
150
|
+
mutableData: 'ipfs://bafybeie6t5uyupddc7azms737xg4hxrj7i5t5ov3lb5g2qeehaujj6ak64'
|
|
158
151
|
}
|
|
152
|
+
|
|
159
153
|
module.exports = {
|
|
160
154
|
tokenStats,
|
|
161
155
|
txData,
|
|
@@ -350,8 +350,8 @@ describe('#PsfSlpIndexer', () => {
|
|
|
350
350
|
assert.property(result, 'mutableData')
|
|
351
351
|
|
|
352
352
|
assert.isObject(result.genesisData)
|
|
353
|
-
assert.
|
|
354
|
-
assert.
|
|
353
|
+
assert.isString(result.immutableData)
|
|
354
|
+
assert.isString(result.mutableData)
|
|
355
355
|
|
|
356
356
|
assert.property(result.genesisData, 'type')
|
|
357
357
|
assert.property(result.genesisData, 'ticker')
|