@psf/bch-js 4.20.24 → 4.20.28
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/LICENSE.md +2 -1
- package/package.json +9 -9
- package/src/address.js +3 -3
- package/src/crypto.js +3 -3
- package/src/electrumx.js +2 -2
- package/src/price.js +5 -5
- package/src/transaction.js +228 -121
- package/src/utxo.js +4 -0
- package/test/integration/{util.js → chains/bchn/util.js} +3 -2
- package/test/unit/fixtures/transaction-mock.js +268 -52
- package/test/unit/transaction-unit.js +222 -52
|
@@ -277,8 +277,10 @@ const mintTestInputTx = {
|
|
|
277
277
|
txid: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
278
278
|
vout: 1,
|
|
279
279
|
scriptSig: {
|
|
280
|
-
asm:
|
|
281
|
-
|
|
280
|
+
asm:
|
|
281
|
+
'3045022100e3d5f9a48f9aa1cf7e9ed1992e0281e7300b734ba0e4bd5bb9265b2be60bd71002200ccde53ce7ea9da9df3e834f234f3bea65c2e58c96f8436f93333fd8946a1db2[ALL|FORKID] 02056220984cc2cf5261a27d4f66d31c9ef601a688ca1a5ab81e55b6f0d311be74',
|
|
282
|
+
hex:
|
|
283
|
+
'483045022100e3d5f9a48f9aa1cf7e9ed1992e0281e7300b734ba0e4bd5bb9265b2be60bd71002200ccde53ce7ea9da9df3e834f234f3bea65c2e58c96f8436f93333fd8946a1db2412102056220984cc2cf5261a27d4f66d31c9ef601a688ca1a5ab81e55b6f0d311be74'
|
|
282
284
|
},
|
|
283
285
|
sequence: 4294967294,
|
|
284
286
|
address: 'bitcoincash:qpaf9wltgmpjlg2vxwwu7zdw5y4z7m277ckxn8cufl',
|
|
@@ -290,8 +292,10 @@ const mintTestInputTx = {
|
|
|
290
292
|
txid: 'ee9d3cf5153599c134147e3fac9844c68e216843f4452a1ce15a29452af6db34',
|
|
291
293
|
vout: 1,
|
|
292
294
|
scriptSig: {
|
|
293
|
-
asm:
|
|
294
|
-
|
|
295
|
+
asm:
|
|
296
|
+
'3045022100bb90d52be9b568f643fdb1a302e9f063be27a9f914e2a6b192cbabf2cbdeaf9302203c275fc8d1b82390bc1726390d361c5266056bddd54dec23efa207c79eacea4a[ALL|FORKID] 024146cfcd0c02e99d6451dc48ad0f97114aeda18fe55c52a10bfc0490f314e6a2',
|
|
297
|
+
hex:
|
|
298
|
+
'483045022100bb90d52be9b568f643fdb1a302e9f063be27a9f914e2a6b192cbabf2cbdeaf9302203c275fc8d1b82390bc1726390d361c5266056bddd54dec23efa207c79eacea4a4121024146cfcd0c02e99d6451dc48ad0f97114aeda18fe55c52a10bfc0490f314e6a2'
|
|
295
299
|
},
|
|
296
300
|
sequence: 4294967294,
|
|
297
301
|
address: 'bitcoincash:qqf89zzwd0fqc3npkks997r5l7dpfjf9kgx2rqu500',
|
|
@@ -303,8 +307,10 @@ const mintTestInputTx = {
|
|
|
303
307
|
txid: 'ee9d3cf5153599c134147e3fac9844c68e216843f4452a1ce15a29452af6db34',
|
|
304
308
|
vout: 3,
|
|
305
309
|
scriptSig: {
|
|
306
|
-
asm:
|
|
307
|
-
|
|
310
|
+
asm:
|
|
311
|
+
'3044022029ab770c249f467b40bb90410429f6d657f9be299baa19a6838d04d972436b450220143660297e8e836bc16d317649fad8c310bdadb4fb61d4e9f6ba11203abe5dae[ALL|FORKID] 02eed4ac9dda3405d9b1ccbbf09f8056f3e7c615924274bd5643238b543d0a1d56',
|
|
312
|
+
hex:
|
|
313
|
+
'473044022029ab770c249f467b40bb90410429f6d657f9be299baa19a6838d04d972436b450220143660297e8e836bc16d317649fad8c310bdadb4fb61d4e9f6ba11203abe5dae412102eed4ac9dda3405d9b1ccbbf09f8056f3e7c615924274bd5643238b543d0a1d56'
|
|
308
314
|
},
|
|
309
315
|
sequence: 4294967294,
|
|
310
316
|
address: 'bitcoincash:qqt30r33k0jx3sxe34tmupaujpaljnglmvqgrrfp2x',
|
|
@@ -318,8 +324,10 @@ const mintTestInputTx = {
|
|
|
318
324
|
value: 0,
|
|
319
325
|
n: 0,
|
|
320
326
|
scriptPubKey: {
|
|
321
|
-
asm:
|
|
322
|
-
|
|
327
|
+
asm:
|
|
328
|
+
'OP_RETURN 5262419 1 1145980243 938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8 0000000103907f11',
|
|
329
|
+
hex:
|
|
330
|
+
'6a04534c500001010453454e4420938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8080000000103907f11',
|
|
323
331
|
type: 'nulldata'
|
|
324
332
|
},
|
|
325
333
|
tokenQty: null
|
|
@@ -328,13 +336,12 @@ const mintTestInputTx = {
|
|
|
328
336
|
value: 0.00000546,
|
|
329
337
|
n: 1,
|
|
330
338
|
scriptPubKey: {
|
|
331
|
-
asm:
|
|
339
|
+
asm:
|
|
340
|
+
'OP_DUP OP_HASH160 059775ff94f65c04e8a6847e74eb9809d8cd779b OP_EQUALVERIFY OP_CHECKSIG',
|
|
332
341
|
hex: '76a914059775ff94f65c04e8a6847e74eb9809d8cd779b88ac',
|
|
333
342
|
reqSigs: 1,
|
|
334
343
|
type: 'pubkeyhash',
|
|
335
|
-
addresses: [
|
|
336
|
-
'bitcoincash:qqzewa0ljnm9cp8g56z8ua8tnqya3nthnvhv5hpu8y'
|
|
337
|
-
]
|
|
344
|
+
addresses: ['bitcoincash:qqzewa0ljnm9cp8g56z8ua8tnqya3nthnvhv5hpu8y']
|
|
338
345
|
},
|
|
339
346
|
tokenQtyStr: '43547.68657',
|
|
340
347
|
tokenQty: 43547.68657
|
|
@@ -343,18 +350,18 @@ const mintTestInputTx = {
|
|
|
343
350
|
value: 0.00054808,
|
|
344
351
|
n: 2,
|
|
345
352
|
scriptPubKey: {
|
|
346
|
-
asm:
|
|
353
|
+
asm:
|
|
354
|
+
'OP_DUP OP_HASH160 0e330dc9009e1e07831f5a22d4ade8977ab674c8 OP_EQUALVERIFY OP_CHECKSIG',
|
|
347
355
|
hex: '76a9140e330dc9009e1e07831f5a22d4ade8977ab674c888ac',
|
|
348
356
|
reqSigs: 1,
|
|
349
357
|
type: 'pubkeyhash',
|
|
350
|
-
addresses: [
|
|
351
|
-
'bitcoincash:qq8rxrwfqz0pupurradz949dazth4dn5eqs3mhrucv'
|
|
352
|
-
]
|
|
358
|
+
addresses: ['bitcoincash:qq8rxrwfqz0pupurradz949dazth4dn5eqs3mhrucv']
|
|
353
359
|
},
|
|
354
360
|
tokenQty: null
|
|
355
361
|
}
|
|
356
362
|
],
|
|
357
|
-
hex:
|
|
363
|
+
hex:
|
|
364
|
+
'0100000003f8cda53b43b0ea49991a9bc6c74eb901d2a8b964bc7b8987d76789618ec18c93010000006b483045022100e3d5f9a48f9aa1cf7e9ed1992e0281e7300b734ba0e4bd5bb9265b2be60bd71002200ccde53ce7ea9da9df3e834f234f3bea65c2e58c96f8436f93333fd8946a1db2412102056220984cc2cf5261a27d4f66d31c9ef601a688ca1a5ab81e55b6f0d311be74feffffff34dbf62a45295ae11c2a45f44368218ec64498ac3f7e1434c1993515f53c9dee010000006b483045022100bb90d52be9b568f643fdb1a302e9f063be27a9f914e2a6b192cbabf2cbdeaf9302203c275fc8d1b82390bc1726390d361c5266056bddd54dec23efa207c79eacea4a4121024146cfcd0c02e99d6451dc48ad0f97114aeda18fe55c52a10bfc0490f314e6a2feffffff34dbf62a45295ae11c2a45f44368218ec64498ac3f7e1434c1993515f53c9dee030000006a473044022029ab770c249f467b40bb90410429f6d657f9be299baa19a6838d04d972436b450220143660297e8e836bc16d317649fad8c310bdadb4fb61d4e9f6ba11203abe5dae412102eed4ac9dda3405d9b1ccbbf09f8056f3e7c615924274bd5643238b543d0a1d56feffffff030000000000000000376a04534c500001010453454e4420938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8080000000103907f1122020000000000001976a914059775ff94f65c04e8a6847e74eb9809d8cd779b88ac18d60000000000001976a9140e330dc9009e1e07831f5a22d4ade8977ab674c888ac7d4b0800',
|
|
358
365
|
blockhash: '00000000000000000140f0d813052da59c811a936494a8d8b2d60b215d19e3dc',
|
|
359
366
|
confirmations: 167007,
|
|
360
367
|
time: 1534391953,
|
|
@@ -393,9 +400,7 @@ const mintTestOpReturnData01 = {
|
|
|
393
400
|
tokenType: 1,
|
|
394
401
|
txType: 'SEND',
|
|
395
402
|
tokenId: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
396
|
-
amounts: [
|
|
397
|
-
'4354768657'
|
|
398
|
-
]
|
|
403
|
+
amounts: ['4354768657']
|
|
399
404
|
}
|
|
400
405
|
|
|
401
406
|
const mintTestOpReturnData02 = {
|
|
@@ -430,8 +435,10 @@ const sendTestInputTx01 = {
|
|
|
430
435
|
txid: 'b36b0c7485ad569b98cc9b9614dc68a5208495f22ec3b00effcf963b135a5215',
|
|
431
436
|
vout: 1,
|
|
432
437
|
scriptSig: {
|
|
433
|
-
asm:
|
|
434
|
-
|
|
438
|
+
asm:
|
|
439
|
+
'3045022100934ca9732bf6c1b146f09e6198142a79a80788b576c6b94e2052df5bcdc86ad902205ef6205192200ea93f6c97f966b838ee785529b694eb61e576e3452470613847[ALL|FORKID] 02b23484341cf36ec00184e045d54e6ffca97da7a8f8a6fd719cead192132306b1',
|
|
440
|
+
hex:
|
|
441
|
+
'483045022100934ca9732bf6c1b146f09e6198142a79a80788b576c6b94e2052df5bcdc86ad902205ef6205192200ea93f6c97f966b838ee785529b694eb61e576e3452470613847412102b23484341cf36ec00184e045d54e6ffca97da7a8f8a6fd719cead192132306b1'
|
|
435
442
|
},
|
|
436
443
|
sequence: 4294967294,
|
|
437
444
|
address: 'bitcoincash:qqxj7p2jatt8h3tcpadyxw8a2mr7myqk2qm57u4rdf',
|
|
@@ -441,8 +448,10 @@ const sendTestInputTx01 = {
|
|
|
441
448
|
txid: 'b36b0c7485ad569b98cc9b9614dc68a5208495f22ec3b00effcf963b135a5215',
|
|
442
449
|
vout: 3,
|
|
443
450
|
scriptSig: {
|
|
444
|
-
asm:
|
|
445
|
-
|
|
451
|
+
asm:
|
|
452
|
+
'3044022004d4a95658ef140561ae3a936fb01511778a5376a499bcd6f47b64074a6ca4430220273a4bf553ca17c7e10f393582f980e17a6a98ada867633faad9dbcc595dfd23[ALL|FORKID] 0324fe3b895cfa09523e8ec529eb15c681e3a20f96df85175c54a952b68ac018df',
|
|
453
|
+
hex:
|
|
454
|
+
'473044022004d4a95658ef140561ae3a936fb01511778a5376a499bcd6f47b64074a6ca4430220273a4bf553ca17c7e10f393582f980e17a6a98ada867633faad9dbcc595dfd2341210324fe3b895cfa09523e8ec529eb15c681e3a20f96df85175c54a952b68ac018df'
|
|
446
455
|
},
|
|
447
456
|
sequence: 4294967294,
|
|
448
457
|
address: 'bitcoincash:qrcdncgpnv3s8lekcamv4yekp8sghnk37qtsxdyzla',
|
|
@@ -452,8 +461,10 @@ const sendTestInputTx01 = {
|
|
|
452
461
|
txid: '95d460512143b636bbc5780d8b27b04fca3bfd2f22003ab48da594e2bab9cfc1',
|
|
453
462
|
vout: 2,
|
|
454
463
|
scriptSig: {
|
|
455
|
-
asm:
|
|
456
|
-
|
|
464
|
+
asm:
|
|
465
|
+
'3044022079f239216f8d806a084221e841227e55d23a1b90aaf5b5ab54d6f865fbeacf8b022053568f10afc00459af083e4c77d0b85229eb8973a1de406aaa699557f05c7fed[ALL|FORKID] 02035f98ff79d6f3a8ec5a2738c103bbb7796e94fcaffdfaae8f5b7a7fae5d93e3',
|
|
466
|
+
hex:
|
|
467
|
+
'473044022079f239216f8d806a084221e841227e55d23a1b90aaf5b5ab54d6f865fbeacf8b022053568f10afc00459af083e4c77d0b85229eb8973a1de406aaa699557f05c7fed412102035f98ff79d6f3a8ec5a2738c103bbb7796e94fcaffdfaae8f5b7a7fae5d93e3'
|
|
457
468
|
},
|
|
458
469
|
sequence: 4294967294,
|
|
459
470
|
address: 'bitcoincash:qrcukahsm53lsywcdarehh73vqazpdu8zv547nym9g',
|
|
@@ -465,8 +476,10 @@ const sendTestInputTx01 = {
|
|
|
465
476
|
value: 0,
|
|
466
477
|
n: 0,
|
|
467
478
|
scriptPubKey: {
|
|
468
|
-
asm:
|
|
469
|
-
|
|
479
|
+
asm:
|
|
480
|
+
'OP_RETURN 5262419 1 1145980243 550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b35 00005af3107a4000 004657febe8d8000',
|
|
481
|
+
hex:
|
|
482
|
+
'6a04534c500001010453454e4420550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b350800005af3107a400008004657febe8d8000',
|
|
470
483
|
type: 'nulldata'
|
|
471
484
|
}
|
|
472
485
|
},
|
|
@@ -474,43 +487,41 @@ const sendTestInputTx01 = {
|
|
|
474
487
|
value: 0.00000546,
|
|
475
488
|
n: 1,
|
|
476
489
|
scriptPubKey: {
|
|
477
|
-
asm:
|
|
490
|
+
asm:
|
|
491
|
+
'OP_DUP OP_HASH160 268dadd7c7becc11782ad3d956342442d8eae92a OP_EQUALVERIFY OP_CHECKSIG',
|
|
478
492
|
hex: '76a914268dadd7c7becc11782ad3d956342442d8eae92a88ac',
|
|
479
493
|
reqSigs: 1,
|
|
480
494
|
type: 'pubkeyhash',
|
|
481
|
-
addresses: [
|
|
482
|
-
'bitcoincash:qqngmtwhc7lvcytc9tfaj435y3pd36hf9gtdq8nsuu'
|
|
483
|
-
]
|
|
495
|
+
addresses: ['bitcoincash:qqngmtwhc7lvcytc9tfaj435y3pd36hf9gtdq8nsuu']
|
|
484
496
|
}
|
|
485
497
|
},
|
|
486
498
|
{
|
|
487
499
|
value: 0.00000546,
|
|
488
500
|
n: 2,
|
|
489
501
|
scriptPubKey: {
|
|
490
|
-
asm:
|
|
502
|
+
asm:
|
|
503
|
+
'OP_DUP OP_HASH160 9fb45b370f9ff38a775ee95cabcad7615817924e OP_EQUALVERIFY OP_CHECKSIG',
|
|
491
504
|
hex: '76a9149fb45b370f9ff38a775ee95cabcad7615817924e88ac',
|
|
492
505
|
reqSigs: 1,
|
|
493
506
|
type: 'pubkeyhash',
|
|
494
|
-
addresses: [
|
|
495
|
-
'bitcoincash:qz0mgkehp70l8znhtm54e2726as4s9ujfc9s2szctr'
|
|
496
|
-
]
|
|
507
|
+
addresses: ['bitcoincash:qz0mgkehp70l8znhtm54e2726as4s9ujfc9s2szctr']
|
|
497
508
|
}
|
|
498
509
|
},
|
|
499
510
|
{
|
|
500
511
|
value: 0.00153347,
|
|
501
512
|
n: 3,
|
|
502
513
|
scriptPubKey: {
|
|
503
|
-
asm:
|
|
514
|
+
asm:
|
|
515
|
+
'OP_DUP OP_HASH160 9fb45b370f9ff38a775ee95cabcad7615817924e OP_EQUALVERIFY OP_CHECKSIG',
|
|
504
516
|
hex: '76a9149fb45b370f9ff38a775ee95cabcad7615817924e88ac',
|
|
505
517
|
reqSigs: 1,
|
|
506
518
|
type: 'pubkeyhash',
|
|
507
|
-
addresses: [
|
|
508
|
-
'bitcoincash:qz0mgkehp70l8znhtm54e2726as4s9ujfc9s2szctr'
|
|
509
|
-
]
|
|
519
|
+
addresses: ['bitcoincash:qz0mgkehp70l8znhtm54e2726as4s9ujfc9s2szctr']
|
|
510
520
|
}
|
|
511
521
|
}
|
|
512
522
|
],
|
|
513
|
-
hex:
|
|
523
|
+
hex:
|
|
524
|
+
'010000000315525a133b96cfff0eb0c32ef2958420a568dc14969bcc989b56ad85740c6bb3010000006b483045022100934ca9732bf6c1b146f09e6198142a79a80788b576c6b94e2052df5bcdc86ad902205ef6205192200ea93f6c97f966b838ee785529b694eb61e576e3452470613847412102b23484341cf36ec00184e045d54e6ffca97da7a8f8a6fd719cead192132306b1feffffff15525a133b96cfff0eb0c32ef2958420a568dc14969bcc989b56ad85740c6bb3030000006a473044022004d4a95658ef140561ae3a936fb01511778a5376a499bcd6f47b64074a6ca4430220273a4bf553ca17c7e10f393582f980e17a6a98ada867633faad9dbcc595dfd2341210324fe3b895cfa09523e8ec529eb15c681e3a20f96df85175c54a952b68ac018dffeffffffc1cfb9bae294a58db43a00222ffd3bca4fb0278b0d78c5bb36b643215160d495020000006a473044022079f239216f8d806a084221e841227e55d23a1b90aaf5b5ab54d6f865fbeacf8b022053568f10afc00459af083e4c77d0b85229eb8973a1de406aaa699557f05c7fed412102035f98ff79d6f3a8ec5a2738c103bbb7796e94fcaffdfaae8f5b7a7fae5d93e3feffffff040000000000000000406a04534c500001010453454e4420550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b350800005af3107a400008004657febe8d800022020000000000001976a914268dadd7c7becc11782ad3d956342442d8eae92a88ac22020000000000001976a9149fb45b370f9ff38a775ee95cabcad7615817924e88ac03570200000000001976a9149fb45b370f9ff38a775ee95cabcad7615817924e88acd44c0800',
|
|
514
525
|
blockhash: '000000000000000001882548bbd9a41bc53a039634f2afa4a12d653434347d04',
|
|
515
526
|
confirmations: 166670,
|
|
516
527
|
time: 1534593905,
|
|
@@ -521,10 +532,7 @@ const sendTestOpReturnData01 = {
|
|
|
521
532
|
tokenType: 1,
|
|
522
533
|
txType: 'SEND',
|
|
523
534
|
tokenId: '550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b35',
|
|
524
|
-
amounts: [
|
|
525
|
-
'100000000000000',
|
|
526
|
-
'19800000000000000'
|
|
527
|
-
]
|
|
535
|
+
amounts: ['100000000000000', '19800000000000000']
|
|
528
536
|
}
|
|
529
537
|
|
|
530
538
|
const sendTestOpReturnData02 = {
|
|
@@ -533,8 +541,10 @@ const sendTestOpReturnData02 = {
|
|
|
533
541
|
ticker: 'USDT',
|
|
534
542
|
name: 'Tether Ltd. US dollar backed tokens',
|
|
535
543
|
tokenId: '550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b35',
|
|
536
|
-
documentUri:
|
|
537
|
-
|
|
544
|
+
documentUri:
|
|
545
|
+
'https://tether.to/wp-content/uploads/2016/06/TetherWhitePaper.pdf',
|
|
546
|
+
documentHash:
|
|
547
|
+
'�DQ�\u001e�3�\u0006p���pM�\u0001\u0017�pW(;\u0003,��wy19\u0016',
|
|
538
548
|
decimals: 8,
|
|
539
549
|
mintBatonVout: 2,
|
|
540
550
|
qty: '10000000000000000'
|
|
@@ -552,10 +562,211 @@ const sendTestOpReturnData04 = {
|
|
|
552
562
|
tokenType: 1,
|
|
553
563
|
txType: 'SEND',
|
|
554
564
|
tokenId: '550d19eb820e616a54b8a73372c4420b5a0567d8dc00f613b71c5234dc884b35',
|
|
555
|
-
amounts: [
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
565
|
+
amounts: ['100000000000000', '9900000000000000']
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const mintTestInputTx02 = {
|
|
569
|
+
txid: 'ee9d3cf5153599c134147e3fac9844c68e216843f4452a1ce15a29452af6db34',
|
|
570
|
+
hash: 'ee9d3cf5153599c134147e3fac9844c68e216843f4452a1ce15a29452af6db34',
|
|
571
|
+
version: 1,
|
|
572
|
+
size: 473,
|
|
573
|
+
locktime: 543613,
|
|
574
|
+
vin: [
|
|
575
|
+
{
|
|
576
|
+
txid: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
577
|
+
vout: 3,
|
|
578
|
+
scriptSig: {
|
|
579
|
+
asm:
|
|
580
|
+
'3045022100ac43a871e0f84787001db745e4801b789fd9cd7efa247727ebb5c0c7b66d597302205316328b6501759e9a15ec65202219a433172d153f9f1b68f65f3a63494ba6f0[ALL|FORKID] 0345a5f5dd11c987b346c18c245f0df6d305369984b9b3c7ba465c29875466e374',
|
|
581
|
+
hex:
|
|
582
|
+
'483045022100ac43a871e0f84787001db745e4801b789fd9cd7efa247727ebb5c0c7b66d597302205316328b6501759e9a15ec65202219a433172d153f9f1b68f65f3a63494ba6f041210345a5f5dd11c987b346c18c245f0df6d305369984b9b3c7ba465c29875466e374'
|
|
583
|
+
},
|
|
584
|
+
sequence: 4294967294,
|
|
585
|
+
address: 'bitcoincash:qqj0durd4qzdddvl2u6sen8n8h6mljtywugqctt9km',
|
|
586
|
+
value: 0.00056266
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
txid: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
590
|
+
vout: 2,
|
|
591
|
+
scriptSig: {
|
|
592
|
+
asm:
|
|
593
|
+
'304402202ce2d9d63bc6ab7765d267540fd3429bf7a8d1b50e975391fff3a4506289461a02205daf3f761a9b02d141f22136a6fe019062182c9da1b1d3a5245ff745f1236e45[ALL|FORKID] 02c00b05bc633a48e074bc54dd195b19a470ad6252ac8d306c82a2bd729c1c4c69',
|
|
594
|
+
hex:
|
|
595
|
+
'47304402202ce2d9d63bc6ab7765d267540fd3429bf7a8d1b50e975391fff3a4506289461a02205daf3f761a9b02d141f22136a6fe019062182c9da1b1d3a5245ff745f1236e45412102c00b05bc633a48e074bc54dd195b19a470ad6252ac8d306c82a2bd729c1c4c69'
|
|
596
|
+
},
|
|
597
|
+
sequence: 4294967294,
|
|
598
|
+
address: 'bitcoincash:qzf72qccdgjrpjpewq8dazlze6jyxzku8q3cauna4t',
|
|
599
|
+
value: 0.00000546
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
vout: [
|
|
603
|
+
{
|
|
604
|
+
value: 0,
|
|
605
|
+
n: 0,
|
|
606
|
+
scriptPubKey: {
|
|
607
|
+
asm:
|
|
608
|
+
'OP_RETURN 5262419 1 1414416717 938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8 2 000000000003928b',
|
|
609
|
+
hex:
|
|
610
|
+
'6a04534c50000101044d494e5420938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8010208000000000003928b',
|
|
611
|
+
type: 'nulldata'
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
value: 0.00000546,
|
|
616
|
+
n: 1,
|
|
617
|
+
scriptPubKey: {
|
|
618
|
+
asm:
|
|
619
|
+
'OP_DUP OP_HASH160 1272884e6bd20c4661b5a052f874ff9a14c925b2 OP_EQUALVERIFY OP_CHECKSIG',
|
|
620
|
+
hex: '76a9141272884e6bd20c4661b5a052f874ff9a14c925b288ac',
|
|
621
|
+
reqSigs: 1,
|
|
622
|
+
type: 'pubkeyhash',
|
|
623
|
+
addresses: ['bitcoincash:qqf89zzwd0fqc3npkks997r5l7dpfjf9kgx2rqu500']
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
value: 0.00000546,
|
|
628
|
+
n: 2,
|
|
629
|
+
scriptPubKey: {
|
|
630
|
+
asm:
|
|
631
|
+
'OP_DUP OP_HASH160 d1eaebf8d1face5bd866e36bd94f43e2ffceef71 OP_EQUALVERIFY OP_CHECKSIG',
|
|
632
|
+
hex: '76a914d1eaebf8d1face5bd866e36bd94f43e2ffceef7188ac',
|
|
633
|
+
reqSigs: 1,
|
|
634
|
+
type: 'pubkeyhash',
|
|
635
|
+
addresses: ['bitcoincash:qrg746lc68avuk7cvm3khk20g030lnh0wy5h2k2fqr']
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
value: 0.00054848,
|
|
640
|
+
n: 3,
|
|
641
|
+
scriptPubKey: {
|
|
642
|
+
asm:
|
|
643
|
+
'OP_DUP OP_HASH160 17178e31b3e468c0d98d57be07bc907bf94d1fdb OP_EQUALVERIFY OP_CHECKSIG',
|
|
644
|
+
hex: '76a91417178e31b3e468c0d98d57be07bc907bf94d1fdb88ac',
|
|
645
|
+
reqSigs: 1,
|
|
646
|
+
type: 'pubkeyhash',
|
|
647
|
+
addresses: ['bitcoincash:qqt30r33k0jx3sxe34tmupaujpaljnglmvqgrrfp2x']
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
hex:
|
|
652
|
+
'0100000002f8cda53b43b0ea49991a9bc6c74eb901d2a8b964bc7b8987d76789618ec18c93030000006b483045022100ac43a871e0f84787001db745e4801b789fd9cd7efa247727ebb5c0c7b66d597302205316328b6501759e9a15ec65202219a433172d153f9f1b68f65f3a63494ba6f041210345a5f5dd11c987b346c18c245f0df6d305369984b9b3c7ba465c29875466e374fefffffff8cda53b43b0ea49991a9bc6c74eb901d2a8b964bc7b8987d76789618ec18c93020000006a47304402202ce2d9d63bc6ab7765d267540fd3429bf7a8d1b50e975391fff3a4506289461a02205daf3f761a9b02d141f22136a6fe019062182c9da1b1d3a5245ff745f1236e45412102c00b05bc633a48e074bc54dd195b19a470ad6252ac8d306c82a2bd729c1c4c69feffffff040000000000000000396a04534c50000101044d494e5420938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8010208000000000003928b22020000000000001976a9141272884e6bd20c4661b5a052f874ff9a14c925b288ac22020000000000001976a914d1eaebf8d1face5bd866e36bd94f43e2ffceef7188ac40d60000000000001976a91417178e31b3e468c0d98d57be07bc907bf94d1fdb88ac7d4b0800',
|
|
653
|
+
blockhash: '00000000000000000140f0d813052da59c811a936494a8d8b2d60b215d19e3dc',
|
|
654
|
+
confirmations: 168436,
|
|
655
|
+
time: 1534391953,
|
|
656
|
+
blocktime: 1534391953
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
const mintTestOpReturnData04 = {
|
|
660
|
+
tokenType: 1,
|
|
661
|
+
txType: 'MINT',
|
|
662
|
+
tokenId: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
663
|
+
mintBatonVout: 2,
|
|
664
|
+
qty: '234123'
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const mintTestOpReturnData05 = {
|
|
668
|
+
tokenType: 1,
|
|
669
|
+
txType: 'GENESIS',
|
|
670
|
+
ticker: 'Bubb2',
|
|
671
|
+
name: 'the new bubbles!',
|
|
672
|
+
tokenId: '938cc18e618967d787897bbc64b9a8d201b94ec7c69b1a9949eab0433ba5cdf8',
|
|
673
|
+
documentUri: '',
|
|
674
|
+
documentHash: '',
|
|
675
|
+
decimals: 5,
|
|
676
|
+
mintBatonVout: 2,
|
|
677
|
+
qty: '4354534534'
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
const genesisTestInputTx02 = {
|
|
681
|
+
txid: '4de69e374a8ed21cbddd47f2338cc0f479dc58daa2bbe11cd604ca488eca0ddf',
|
|
682
|
+
hash: '4de69e374a8ed21cbddd47f2338cc0f479dc58daa2bbe11cd604ca488eca0ddf',
|
|
683
|
+
version: 1,
|
|
684
|
+
size: 444,
|
|
685
|
+
locktime: 571211,
|
|
686
|
+
vin: [
|
|
687
|
+
{
|
|
688
|
+
txid: 'f3e056874846b6f491a1ccac3da81a3411c61d8466835446a52efa68c0d11804',
|
|
689
|
+
vout: 0,
|
|
690
|
+
scriptSig: {
|
|
691
|
+
asm:
|
|
692
|
+
'3044022022fb67bd9b35810db3fa04da4014cc93063c5ed15e8febeca09d32c03397068502206fbb86498919ca8a9be6940c904c944cd923691391a4a7d92e0c841605d46b2e[ALL|FORKID] 03fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bf',
|
|
693
|
+
hex:
|
|
694
|
+
'473044022022fb67bd9b35810db3fa04da4014cc93063c5ed15e8febeca09d32c03397068502206fbb86498919ca8a9be6940c904c944cd923691391a4a7d92e0c841605d46b2e412103fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bf'
|
|
695
|
+
},
|
|
696
|
+
sequence: 4294967294,
|
|
697
|
+
address: 'bitcoincash:qz6rcxjw34yuy5fngu7fngnyy55t0v802cmsmjvsp2',
|
|
698
|
+
value: 0.00001111
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
txid: '87bf0efc1630f5179b73496f9f885b141cb4c8366432a91ba678298432b197ea',
|
|
702
|
+
vout: 0,
|
|
703
|
+
scriptSig: {
|
|
704
|
+
asm:
|
|
705
|
+
'3045022100d5fbab461c19c7b56245287eb15510c86872ceb405ede7322f5266efa6cc32ea022074b557bcef9a129fb31cb2e7c2ada9fe51d5cf924ae55d1d2a29368ca1f15ef2[ALL|FORKID] 03fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bf',
|
|
706
|
+
hex:
|
|
707
|
+
'483045022100d5fbab461c19c7b56245287eb15510c86872ceb405ede7322f5266efa6cc32ea022074b557bcef9a129fb31cb2e7c2ada9fe51d5cf924ae55d1d2a29368ca1f15ef2412103fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bf'
|
|
708
|
+
},
|
|
709
|
+
sequence: 4294967294,
|
|
710
|
+
address: 'bitcoincash:qz6rcxjw34yuy5fngu7fngnyy55t0v802cmsmjvsp2',
|
|
711
|
+
value: 0.007
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
vout: [
|
|
715
|
+
{
|
|
716
|
+
value: 0,
|
|
717
|
+
n: 0,
|
|
718
|
+
scriptPubKey: {
|
|
719
|
+
asm:
|
|
720
|
+
'OP_RETURN 5262419 1 47454e45534953 5350494345 5370696365 7370696365736c7040676d61696c2e636f6d 0 8 0 016345785d8a0000',
|
|
721
|
+
hex:
|
|
722
|
+
'6a04534c500001010747454e45534953055350494345055370696365127370696365736c7040676d61696c2e636f6d4c0001084c0008016345785d8a0000',
|
|
723
|
+
type: 'nulldata'
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
value: 0.00000546,
|
|
728
|
+
n: 1,
|
|
729
|
+
scriptPubKey: {
|
|
730
|
+
asm:
|
|
731
|
+
'OP_DUP OP_HASH160 70e5c384ae563b4fd6cfc5f7f8df43ea427d9e10 OP_EQUALVERIFY OP_CHECKSIG',
|
|
732
|
+
hex: '76a91470e5c384ae563b4fd6cfc5f7f8df43ea427d9e1088ac',
|
|
733
|
+
reqSigs: 1,
|
|
734
|
+
type: 'pubkeyhash',
|
|
735
|
+
addresses: ['bitcoincash:qpcwtsuy4etrkn7kelzl07xlg04yylv7zqru2cqwvm']
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
value: 0.0070012,
|
|
740
|
+
n: 2,
|
|
741
|
+
scriptPubKey: {
|
|
742
|
+
asm:
|
|
743
|
+
'OP_DUP OP_HASH160 df305a87d98cd64e1bee825d2167a16445ecdfdd OP_EQUALVERIFY OP_CHECKSIG',
|
|
744
|
+
hex: '76a914df305a87d98cd64e1bee825d2167a16445ecdfdd88ac',
|
|
745
|
+
reqSigs: 1,
|
|
746
|
+
type: 'pubkeyhash',
|
|
747
|
+
addresses: ['bitcoincash:qr0nqk58mxxdvnsma6p96gt859jytmxlm5t0v7de4q']
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
hex:
|
|
752
|
+
'01000000020418d1c068fa2ea546548366841dc611341aa83daccca191f4b646488756e0f3000000006a473044022022fb67bd9b35810db3fa04da4014cc93063c5ed15e8febeca09d32c03397068502206fbb86498919ca8a9be6940c904c944cd923691391a4a7d92e0c841605d46b2e412103fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bffeffffffea97b132842978a61ba9326436c8b41c145b889f6f49739b17f53016fc0ebf87000000006b483045022100d5fbab461c19c7b56245287eb15510c86872ceb405ede7322f5266efa6cc32ea022074b557bcef9a129fb31cb2e7c2ada9fe51d5cf924ae55d1d2a29368ca1f15ef2412103fbe2c56094dc336f6244eac2e45d3d25a8e97059f2cc7de31cbf179e73dcc9bffeffffff0300000000000000003e6a04534c500001010747454e45534953055350494345055370696365127370696365736c7040676d61696c2e636f6d4c0001084c0008016345785d8a000022020000000000001976a91470e5c384ae563b4fd6cfc5f7f8df43ea427d9e1088acd8ae0a00000000001976a914df305a87d98cd64e1bee825d2167a16445ecdfdd88ac4bb70800',
|
|
753
|
+
blockhash: '000000000000000002278c188c52b536d4ed84a1970d8ff59043e082cef7748a',
|
|
754
|
+
confirmations: 141226,
|
|
755
|
+
time: 1551042875,
|
|
756
|
+
blocktime: 1551042875
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
const genesisTestOpReturn03 = {
|
|
760
|
+
tokenType: 1,
|
|
761
|
+
txType: 'GENESIS',
|
|
762
|
+
ticker: 'SPICE',
|
|
763
|
+
name: 'Spice',
|
|
764
|
+
tokenId: '4de69e374a8ed21cbddd47f2338cc0f479dc58daa2bbe11cd604ca488eca0ddf',
|
|
765
|
+
documentUri: 'spiceslp@gmail.com',
|
|
766
|
+
documentHash: '',
|
|
767
|
+
decimals: 8,
|
|
768
|
+
mintBatonVout: 0,
|
|
769
|
+
qty: '100000000000000000'
|
|
559
770
|
}
|
|
560
771
|
|
|
561
772
|
module.exports = {
|
|
@@ -575,5 +786,10 @@ module.exports = {
|
|
|
575
786
|
sendTestOpReturnData01,
|
|
576
787
|
sendTestOpReturnData02,
|
|
577
788
|
sendTestOpReturnData03,
|
|
578
|
-
sendTestOpReturnData04
|
|
789
|
+
sendTestOpReturnData04,
|
|
790
|
+
mintTestInputTx02,
|
|
791
|
+
mintTestOpReturnData04,
|
|
792
|
+
mintTestOpReturnData05,
|
|
793
|
+
genesisTestInputTx02,
|
|
794
|
+
genesisTestOpReturn03
|
|
579
795
|
}
|