nexa-wallet-sdk 0.4.0 → 0.4.1
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/dist/index.cjs +317 -316
- package/dist/index.cjs.map +1 -1
- package/dist/index.web.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -343,6 +343,31 @@ const $b5bfd17fdf06d231$export$eaa49f0478d81b9d = new $b5bfd17fdf06d231$export$b
|
|
|
343
343
|
|
|
344
344
|
|
|
345
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Checks if `value` is classified as an `Array` object.
|
|
348
|
+
*
|
|
349
|
+
* @static
|
|
350
|
+
* @memberOf _
|
|
351
|
+
* @since 0.1.0
|
|
352
|
+
* @category Lang
|
|
353
|
+
* @param {*} value The value to check.
|
|
354
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
355
|
+
* @example
|
|
356
|
+
*
|
|
357
|
+
* _.isArray([1, 2, 3]);
|
|
358
|
+
* // => true
|
|
359
|
+
*
|
|
360
|
+
* _.isArray(document.body.children);
|
|
361
|
+
* // => false
|
|
362
|
+
*
|
|
363
|
+
* _.isArray('abc');
|
|
364
|
+
* // => false
|
|
365
|
+
*
|
|
366
|
+
* _.isArray(_.noop);
|
|
367
|
+
* // => false
|
|
368
|
+
*/ var $36cc8c1055cfbf3b$var$isArray = Array.isArray;
|
|
369
|
+
var $36cc8c1055cfbf3b$export$2e2bcd8739ae039 = $36cc8c1055cfbf3b$var$isArray;
|
|
370
|
+
|
|
346
371
|
/**
|
|
347
372
|
* Checks if `value` is `null` or `undefined`.
|
|
348
373
|
*
|
|
@@ -367,6 +392,283 @@ const $b5bfd17fdf06d231$export$eaa49f0478d81b9d = new $b5bfd17fdf06d231$export$b
|
|
|
367
392
|
}
|
|
368
393
|
var $54dde1e65fb8e5b8$export$2e2bcd8739ae039 = $54dde1e65fb8e5b8$var$isNil;
|
|
369
394
|
|
|
395
|
+
/**
|
|
396
|
+
* Checks if `value` is the
|
|
397
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
398
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
399
|
+
*
|
|
400
|
+
* @static
|
|
401
|
+
* @memberOf _
|
|
402
|
+
* @since 0.1.0
|
|
403
|
+
* @category Lang
|
|
404
|
+
* @param {*} value The value to check.
|
|
405
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
406
|
+
* @example
|
|
407
|
+
*
|
|
408
|
+
* _.isObject({});
|
|
409
|
+
* // => true
|
|
410
|
+
*
|
|
411
|
+
* _.isObject([1, 2, 3]);
|
|
412
|
+
* // => true
|
|
413
|
+
*
|
|
414
|
+
* _.isObject(_.noop);
|
|
415
|
+
* // => true
|
|
416
|
+
*
|
|
417
|
+
* _.isObject(null);
|
|
418
|
+
* // => false
|
|
419
|
+
*/ function $fb85a1f0e1002a93$var$isObject(value) {
|
|
420
|
+
var type = typeof value;
|
|
421
|
+
return value != null && (type == 'object' || type == 'function');
|
|
422
|
+
}
|
|
423
|
+
var $fb85a1f0e1002a93$export$2e2bcd8739ae039 = $fb85a1f0e1002a93$var$isObject;
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
var $cpiMl = parcelRequire("cpiMl");
|
|
427
|
+
/** Built-in value references. */ var $ff9e97e034030f4b$var$Symbol = (0, $cpiMl.default).Symbol;
|
|
428
|
+
var $ff9e97e034030f4b$export$2e2bcd8739ae039 = $ff9e97e034030f4b$var$Symbol;
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
/** Used for built-in method references. */ var $5821915922f18ec9$var$objectProto = Object.prototype;
|
|
433
|
+
/** Used to check objects for own properties. */ var $5821915922f18ec9$var$hasOwnProperty = $5821915922f18ec9$var$objectProto.hasOwnProperty;
|
|
434
|
+
/**
|
|
435
|
+
* Used to resolve the
|
|
436
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
437
|
+
* of values.
|
|
438
|
+
*/ var $5821915922f18ec9$var$nativeObjectToString = $5821915922f18ec9$var$objectProto.toString;
|
|
439
|
+
/** Built-in value references. */ var $5821915922f18ec9$var$symToStringTag = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
440
|
+
/**
|
|
441
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
442
|
+
*
|
|
443
|
+
* @private
|
|
444
|
+
* @param {*} value The value to query.
|
|
445
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
446
|
+
*/ function $5821915922f18ec9$var$getRawTag(value) {
|
|
447
|
+
var isOwn = $5821915922f18ec9$var$hasOwnProperty.call(value, $5821915922f18ec9$var$symToStringTag), tag = value[$5821915922f18ec9$var$symToStringTag];
|
|
448
|
+
try {
|
|
449
|
+
value[$5821915922f18ec9$var$symToStringTag] = undefined;
|
|
450
|
+
var unmasked = true;
|
|
451
|
+
} catch (e) {}
|
|
452
|
+
var result = $5821915922f18ec9$var$nativeObjectToString.call(value);
|
|
453
|
+
if (unmasked) {
|
|
454
|
+
if (isOwn) value[$5821915922f18ec9$var$symToStringTag] = tag;
|
|
455
|
+
else delete value[$5821915922f18ec9$var$symToStringTag];
|
|
456
|
+
}
|
|
457
|
+
return result;
|
|
458
|
+
}
|
|
459
|
+
var $5821915922f18ec9$export$2e2bcd8739ae039 = $5821915922f18ec9$var$getRawTag;
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
/** Used for built-in method references. */ var $8b46445dc5373cfc$var$objectProto = Object.prototype;
|
|
463
|
+
/**
|
|
464
|
+
* Used to resolve the
|
|
465
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
466
|
+
* of values.
|
|
467
|
+
*/ var $8b46445dc5373cfc$var$nativeObjectToString = $8b46445dc5373cfc$var$objectProto.toString;
|
|
468
|
+
/**
|
|
469
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
470
|
+
*
|
|
471
|
+
* @private
|
|
472
|
+
* @param {*} value The value to convert.
|
|
473
|
+
* @returns {string} Returns the converted string.
|
|
474
|
+
*/ function $8b46445dc5373cfc$var$objectToString(value) {
|
|
475
|
+
return $8b46445dc5373cfc$var$nativeObjectToString.call(value);
|
|
476
|
+
}
|
|
477
|
+
var $8b46445dc5373cfc$export$2e2bcd8739ae039 = $8b46445dc5373cfc$var$objectToString;
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
/** `Object#toString` result references. */ var $6911cdf7f985d482$var$nullTag = '[object Null]', $6911cdf7f985d482$var$undefinedTag = '[object Undefined]';
|
|
481
|
+
/** Built-in value references. */ var $6911cdf7f985d482$var$symToStringTag = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
482
|
+
/**
|
|
483
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
484
|
+
*
|
|
485
|
+
* @private
|
|
486
|
+
* @param {*} value The value to query.
|
|
487
|
+
* @returns {string} Returns the `toStringTag`.
|
|
488
|
+
*/ function $6911cdf7f985d482$var$baseGetTag(value) {
|
|
489
|
+
if (value == null) return value === undefined ? $6911cdf7f985d482$var$undefinedTag : $6911cdf7f985d482$var$nullTag;
|
|
490
|
+
return $6911cdf7f985d482$var$symToStringTag && $6911cdf7f985d482$var$symToStringTag in Object(value) ? (0, $5821915922f18ec9$export$2e2bcd8739ae039)(value) : (0, $8b46445dc5373cfc$export$2e2bcd8739ae039)(value);
|
|
491
|
+
}
|
|
492
|
+
var $6911cdf7f985d482$export$2e2bcd8739ae039 = $6911cdf7f985d482$var$baseGetTag;
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
498
|
+
* and has a `typeof` result of "object".
|
|
499
|
+
*
|
|
500
|
+
* @static
|
|
501
|
+
* @memberOf _
|
|
502
|
+
* @since 4.0.0
|
|
503
|
+
* @category Lang
|
|
504
|
+
* @param {*} value The value to check.
|
|
505
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
506
|
+
* @example
|
|
507
|
+
*
|
|
508
|
+
* _.isObjectLike({});
|
|
509
|
+
* // => true
|
|
510
|
+
*
|
|
511
|
+
* _.isObjectLike([1, 2, 3]);
|
|
512
|
+
* // => true
|
|
513
|
+
*
|
|
514
|
+
* _.isObjectLike(_.noop);
|
|
515
|
+
* // => false
|
|
516
|
+
*
|
|
517
|
+
* _.isObjectLike(null);
|
|
518
|
+
* // => false
|
|
519
|
+
*/ function $2dbf41b550c5f478$var$isObjectLike(value) {
|
|
520
|
+
return value != null && typeof value == 'object';
|
|
521
|
+
}
|
|
522
|
+
var $2dbf41b550c5f478$export$2e2bcd8739ae039 = $2dbf41b550c5f478$var$isObjectLike;
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/** `Object#toString` result references. */ var $90290c84737dbb50$var$stringTag = '[object String]';
|
|
526
|
+
/**
|
|
527
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
528
|
+
*
|
|
529
|
+
* @static
|
|
530
|
+
* @since 0.1.0
|
|
531
|
+
* @memberOf _
|
|
532
|
+
* @category Lang
|
|
533
|
+
* @param {*} value The value to check.
|
|
534
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
535
|
+
* @example
|
|
536
|
+
*
|
|
537
|
+
* _.isString('abc');
|
|
538
|
+
* // => true
|
|
539
|
+
*
|
|
540
|
+
* _.isString(1);
|
|
541
|
+
* // => false
|
|
542
|
+
*/ function $90290c84737dbb50$var$isString(value) {
|
|
543
|
+
return typeof value == 'string' || !(0, $36cc8c1055cfbf3b$export$2e2bcd8739ae039)(value) && (0, $2dbf41b550c5f478$export$2e2bcd8739ae039)(value) && (0, $6911cdf7f985d482$export$2e2bcd8739ae039)(value) == $90290c84737dbb50$var$stringTag;
|
|
544
|
+
}
|
|
545
|
+
var $90290c84737dbb50$export$2e2bcd8739ae039 = $90290c84737dbb50$var$isString;
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
var $cpiMl = parcelRequire("cpiMl");
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
552
|
+
* shorthands.
|
|
553
|
+
*
|
|
554
|
+
* @private
|
|
555
|
+
* @param {Array} [array] The array to iterate over.
|
|
556
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
557
|
+
* @returns {Array} Returns the new mapped array.
|
|
558
|
+
*/ function $a73a31c10d15d7eb$var$arrayMap(array, iteratee) {
|
|
559
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
560
|
+
while(++index < length)result[index] = iteratee(array[index], index, array);
|
|
561
|
+
return result;
|
|
562
|
+
}
|
|
563
|
+
var $a73a31c10d15d7eb$export$2e2bcd8739ae039 = $a73a31c10d15d7eb$var$arrayMap;
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/** `Object#toString` result references. */ var $9f098434abbe9d75$var$symbolTag = '[object Symbol]';
|
|
570
|
+
/**
|
|
571
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
572
|
+
*
|
|
573
|
+
* @static
|
|
574
|
+
* @memberOf _
|
|
575
|
+
* @since 4.0.0
|
|
576
|
+
* @category Lang
|
|
577
|
+
* @param {*} value The value to check.
|
|
578
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
579
|
+
* @example
|
|
580
|
+
*
|
|
581
|
+
* _.isSymbol(Symbol.iterator);
|
|
582
|
+
* // => true
|
|
583
|
+
*
|
|
584
|
+
* _.isSymbol('abc');
|
|
585
|
+
* // => false
|
|
586
|
+
*/ function $9f098434abbe9d75$var$isSymbol(value) {
|
|
587
|
+
return typeof value == 'symbol' || (0, $2dbf41b550c5f478$export$2e2bcd8739ae039)(value) && (0, $6911cdf7f985d482$export$2e2bcd8739ae039)(value) == $9f098434abbe9d75$var$symbolTag;
|
|
588
|
+
}
|
|
589
|
+
var $9f098434abbe9d75$export$2e2bcd8739ae039 = $9f098434abbe9d75$var$isSymbol;
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
/** Used as references for various `Number` constants. */ var $d3d5261e2cef37e4$var$INFINITY = 1 / 0;
|
|
593
|
+
/** Used to convert symbols to primitives and strings. */ var $d3d5261e2cef37e4$var$symbolProto = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).prototype : undefined, $d3d5261e2cef37e4$var$symbolToString = $d3d5261e2cef37e4$var$symbolProto ? $d3d5261e2cef37e4$var$symbolProto.toString : undefined;
|
|
594
|
+
/**
|
|
595
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
596
|
+
* values to empty strings.
|
|
597
|
+
*
|
|
598
|
+
* @private
|
|
599
|
+
* @param {*} value The value to process.
|
|
600
|
+
* @returns {string} Returns the string.
|
|
601
|
+
*/ function $d3d5261e2cef37e4$var$baseToString(value) {
|
|
602
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
603
|
+
if (typeof value == 'string') return value;
|
|
604
|
+
if ((0, $36cc8c1055cfbf3b$export$2e2bcd8739ae039)(value)) // Recursively convert values (susceptible to call stack limits).
|
|
605
|
+
return (0, $a73a31c10d15d7eb$export$2e2bcd8739ae039)(value, $d3d5261e2cef37e4$var$baseToString) + '';
|
|
606
|
+
if ((0, $9f098434abbe9d75$export$2e2bcd8739ae039)(value)) return $d3d5261e2cef37e4$var$symbolToString ? $d3d5261e2cef37e4$var$symbolToString.call(value) : '';
|
|
607
|
+
var result = value + '';
|
|
608
|
+
return result == '0' && 1 / value == -$d3d5261e2cef37e4$var$INFINITY ? '-0' : result;
|
|
609
|
+
}
|
|
610
|
+
var $d3d5261e2cef37e4$export$2e2bcd8739ae039 = $d3d5261e2cef37e4$var$baseToString;
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
615
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
616
|
+
*
|
|
617
|
+
* @static
|
|
618
|
+
* @memberOf _
|
|
619
|
+
* @since 4.0.0
|
|
620
|
+
* @category Lang
|
|
621
|
+
* @param {*} value The value to convert.
|
|
622
|
+
* @returns {string} Returns the converted string.
|
|
623
|
+
* @example
|
|
624
|
+
*
|
|
625
|
+
* _.toString(null);
|
|
626
|
+
* // => ''
|
|
627
|
+
*
|
|
628
|
+
* _.toString(-0);
|
|
629
|
+
* // => '-0'
|
|
630
|
+
*
|
|
631
|
+
* _.toString([1, 2, 3]);
|
|
632
|
+
* // => '1,2,3'
|
|
633
|
+
*/ function $2b7b63cdaf61fcff$var$toString(value) {
|
|
634
|
+
return value == null ? '' : (0, $d3d5261e2cef37e4$export$2e2bcd8739ae039)(value);
|
|
635
|
+
}
|
|
636
|
+
var $2b7b63cdaf61fcff$export$2e2bcd8739ae039 = $2b7b63cdaf61fcff$var$toString;
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
/** Used to match leading whitespace. */ var $ed110f8656071ee4$var$reTrimStart = /^\s+/;
|
|
640
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var $ed110f8656071ee4$var$nativeParseInt = (0, $cpiMl.default).parseInt;
|
|
641
|
+
/**
|
|
642
|
+
* Converts `string` to an integer of the specified radix. If `radix` is
|
|
643
|
+
* `undefined` or `0`, a `radix` of `10` is used unless `value` is a
|
|
644
|
+
* hexadecimal, in which case a `radix` of `16` is used.
|
|
645
|
+
*
|
|
646
|
+
* **Note:** This method aligns with the
|
|
647
|
+
* [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
|
|
648
|
+
*
|
|
649
|
+
* @static
|
|
650
|
+
* @memberOf _
|
|
651
|
+
* @since 1.1.0
|
|
652
|
+
* @category String
|
|
653
|
+
* @param {string} string The string to convert.
|
|
654
|
+
* @param {number} [radix=10] The radix to interpret `value` by.
|
|
655
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
656
|
+
* @returns {number} Returns the converted integer.
|
|
657
|
+
* @example
|
|
658
|
+
*
|
|
659
|
+
* _.parseInt('08');
|
|
660
|
+
* // => 8
|
|
661
|
+
*
|
|
662
|
+
* _.map(['6', '08', '10'], _.parseInt);
|
|
663
|
+
* // => [6, 8, 10]
|
|
664
|
+
*/ function $ed110f8656071ee4$var$parseInt(string, radix, guard) {
|
|
665
|
+
if (guard || radix == null) radix = 0;
|
|
666
|
+
else if (radix) radix = +radix;
|
|
667
|
+
return $ed110f8656071ee4$var$nativeParseInt((0, $2b7b63cdaf61fcff$export$2e2bcd8739ae039)(string).replace($ed110f8656071ee4$var$reTrimStart, ''), radix || 0);
|
|
668
|
+
}
|
|
669
|
+
var $ed110f8656071ee4$export$2e2bcd8739ae039 = $ed110f8656071ee4$var$parseInt;
|
|
670
|
+
|
|
671
|
+
|
|
370
672
|
|
|
371
673
|
|
|
372
674
|
class $f8a48da5c0b6346a$export$c54c8796e94a37a0 {
|
|
@@ -1123,172 +1425,25 @@ function $0d59d2bcffd646c5$var$classifyTokenTransaction(vin, vout, txState, myAd
|
|
|
1123
1425
|
3,
|
|
1124
1426
|
group,
|
|
1125
1427
|
(inQuantitySum - outQuantitySum).toString(),
|
|
1126
|
-
extraGroup
|
|
1127
|
-
];
|
|
1128
|
-
}
|
|
1129
|
-
let group = tokenOutputs[0].scriptPubKey.group;
|
|
1130
|
-
let amount = "";
|
|
1131
|
-
if (txState === 'incoming') amount = tokenOutputs.filter((output)=>myAddresses.includes(output.scriptPubKey.addresses[0])).map((output)=>BigInt(output.scriptPubKey.groupQuantity)).reduce((a, b)=>a + b, 0n).toString();
|
|
1132
|
-
else if (txState === 'outgoing') amount = tokenOutputs.filter((output)=>!myAddresses.includes(output.scriptPubKey.addresses[0])).map((output)=>BigInt(output.scriptPubKey.groupQuantity)).reduce((a, b)=>a + b, 0n).toString();
|
|
1133
|
-
else amount = "0";
|
|
1134
|
-
return [
|
|
1135
|
-
5,
|
|
1136
|
-
group,
|
|
1137
|
-
amount,
|
|
1138
|
-
"none"
|
|
1139
|
-
];
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* Checks if `value` is classified as an `Array` object.
|
|
1145
|
-
*
|
|
1146
|
-
* @static
|
|
1147
|
-
* @memberOf _
|
|
1148
|
-
* @since 0.1.0
|
|
1149
|
-
* @category Lang
|
|
1150
|
-
* @param {*} value The value to check.
|
|
1151
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1152
|
-
* @example
|
|
1153
|
-
*
|
|
1154
|
-
* _.isArray([1, 2, 3]);
|
|
1155
|
-
* // => true
|
|
1156
|
-
*
|
|
1157
|
-
* _.isArray(document.body.children);
|
|
1158
|
-
* // => false
|
|
1159
|
-
*
|
|
1160
|
-
* _.isArray('abc');
|
|
1161
|
-
* // => false
|
|
1162
|
-
*
|
|
1163
|
-
* _.isArray(_.noop);
|
|
1164
|
-
* // => false
|
|
1165
|
-
*/ var $36cc8c1055cfbf3b$var$isArray = Array.isArray;
|
|
1166
|
-
var $36cc8c1055cfbf3b$export$2e2bcd8739ae039 = $36cc8c1055cfbf3b$var$isArray;
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
var $kNPhA = parcelRequire("kNPhA");
|
|
1170
|
-
var $cpiMl = parcelRequire("cpiMl");
|
|
1171
|
-
/** Built-in value references. */ var $ff9e97e034030f4b$var$Symbol = (0, $cpiMl.default).Symbol;
|
|
1172
|
-
var $ff9e97e034030f4b$export$2e2bcd8739ae039 = $ff9e97e034030f4b$var$Symbol;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
/** Used for built-in method references. */ var $5821915922f18ec9$var$objectProto = Object.prototype;
|
|
1177
|
-
/** Used to check objects for own properties. */ var $5821915922f18ec9$var$hasOwnProperty = $5821915922f18ec9$var$objectProto.hasOwnProperty;
|
|
1178
|
-
/**
|
|
1179
|
-
* Used to resolve the
|
|
1180
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1181
|
-
* of values.
|
|
1182
|
-
*/ var $5821915922f18ec9$var$nativeObjectToString = $5821915922f18ec9$var$objectProto.toString;
|
|
1183
|
-
/** Built-in value references. */ var $5821915922f18ec9$var$symToStringTag = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
1184
|
-
/**
|
|
1185
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
1186
|
-
*
|
|
1187
|
-
* @private
|
|
1188
|
-
* @param {*} value The value to query.
|
|
1189
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
1190
|
-
*/ function $5821915922f18ec9$var$getRawTag(value) {
|
|
1191
|
-
var isOwn = $5821915922f18ec9$var$hasOwnProperty.call(value, $5821915922f18ec9$var$symToStringTag), tag = value[$5821915922f18ec9$var$symToStringTag];
|
|
1192
|
-
try {
|
|
1193
|
-
value[$5821915922f18ec9$var$symToStringTag] = undefined;
|
|
1194
|
-
var unmasked = true;
|
|
1195
|
-
} catch (e) {}
|
|
1196
|
-
var result = $5821915922f18ec9$var$nativeObjectToString.call(value);
|
|
1197
|
-
if (unmasked) {
|
|
1198
|
-
if (isOwn) value[$5821915922f18ec9$var$symToStringTag] = tag;
|
|
1199
|
-
else delete value[$5821915922f18ec9$var$symToStringTag];
|
|
1428
|
+
extraGroup
|
|
1429
|
+
];
|
|
1200
1430
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
1214
|
-
*
|
|
1215
|
-
* @private
|
|
1216
|
-
* @param {*} value The value to convert.
|
|
1217
|
-
* @returns {string} Returns the converted string.
|
|
1218
|
-
*/ function $8b46445dc5373cfc$var$objectToString(value) {
|
|
1219
|
-
return $8b46445dc5373cfc$var$nativeObjectToString.call(value);
|
|
1220
|
-
}
|
|
1221
|
-
var $8b46445dc5373cfc$export$2e2bcd8739ae039 = $8b46445dc5373cfc$var$objectToString;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
/** `Object#toString` result references. */ var $6911cdf7f985d482$var$nullTag = '[object Null]', $6911cdf7f985d482$var$undefinedTag = '[object Undefined]';
|
|
1225
|
-
/** Built-in value references. */ var $6911cdf7f985d482$var$symToStringTag = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
1226
|
-
/**
|
|
1227
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
1228
|
-
*
|
|
1229
|
-
* @private
|
|
1230
|
-
* @param {*} value The value to query.
|
|
1231
|
-
* @returns {string} Returns the `toStringTag`.
|
|
1232
|
-
*/ function $6911cdf7f985d482$var$baseGetTag(value) {
|
|
1233
|
-
if (value == null) return value === undefined ? $6911cdf7f985d482$var$undefinedTag : $6911cdf7f985d482$var$nullTag;
|
|
1234
|
-
return $6911cdf7f985d482$var$symToStringTag && $6911cdf7f985d482$var$symToStringTag in Object(value) ? (0, $5821915922f18ec9$export$2e2bcd8739ae039)(value) : (0, $8b46445dc5373cfc$export$2e2bcd8739ae039)(value);
|
|
1235
|
-
}
|
|
1236
|
-
var $6911cdf7f985d482$export$2e2bcd8739ae039 = $6911cdf7f985d482$var$baseGetTag;
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1242
|
-
* and has a `typeof` result of "object".
|
|
1243
|
-
*
|
|
1244
|
-
* @static
|
|
1245
|
-
* @memberOf _
|
|
1246
|
-
* @since 4.0.0
|
|
1247
|
-
* @category Lang
|
|
1248
|
-
* @param {*} value The value to check.
|
|
1249
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1250
|
-
* @example
|
|
1251
|
-
*
|
|
1252
|
-
* _.isObjectLike({});
|
|
1253
|
-
* // => true
|
|
1254
|
-
*
|
|
1255
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1256
|
-
* // => true
|
|
1257
|
-
*
|
|
1258
|
-
* _.isObjectLike(_.noop);
|
|
1259
|
-
* // => false
|
|
1260
|
-
*
|
|
1261
|
-
* _.isObjectLike(null);
|
|
1262
|
-
* // => false
|
|
1263
|
-
*/ function $2dbf41b550c5f478$var$isObjectLike(value) {
|
|
1264
|
-
return value != null && typeof value == 'object';
|
|
1431
|
+
let group = tokenOutputs[0].scriptPubKey.group;
|
|
1432
|
+
let amount = "";
|
|
1433
|
+
if (txState === 'incoming') amount = tokenOutputs.filter((output)=>myAddresses.includes(output.scriptPubKey.addresses[0])).map((output)=>BigInt(output.scriptPubKey.groupQuantity)).reduce((a, b)=>a + b, 0n).toString();
|
|
1434
|
+
else if (txState === 'outgoing') amount = tokenOutputs.filter((output)=>!myAddresses.includes(output.scriptPubKey.addresses[0])).map((output)=>BigInt(output.scriptPubKey.groupQuantity)).reduce((a, b)=>a + b, 0n).toString();
|
|
1435
|
+
else amount = "0";
|
|
1436
|
+
return [
|
|
1437
|
+
5,
|
|
1438
|
+
group,
|
|
1439
|
+
amount,
|
|
1440
|
+
"none"
|
|
1441
|
+
];
|
|
1265
1442
|
}
|
|
1266
|
-
var $2dbf41b550c5f478$export$2e2bcd8739ae039 = $2dbf41b550c5f478$var$isObjectLike;
|
|
1267
1443
|
|
|
1268
1444
|
|
|
1269
|
-
/** `Object#toString` result references. */ var $90290c84737dbb50$var$stringTag = '[object String]';
|
|
1270
|
-
/**
|
|
1271
|
-
* Checks if `value` is classified as a `String` primitive or object.
|
|
1272
|
-
*
|
|
1273
|
-
* @static
|
|
1274
|
-
* @since 0.1.0
|
|
1275
|
-
* @memberOf _
|
|
1276
|
-
* @category Lang
|
|
1277
|
-
* @param {*} value The value to check.
|
|
1278
|
-
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
1279
|
-
* @example
|
|
1280
|
-
*
|
|
1281
|
-
* _.isString('abc');
|
|
1282
|
-
* // => true
|
|
1283
|
-
*
|
|
1284
|
-
* _.isString(1);
|
|
1285
|
-
* // => false
|
|
1286
|
-
*/ function $90290c84737dbb50$var$isString(value) {
|
|
1287
|
-
return typeof value == 'string' || !(0, $36cc8c1055cfbf3b$export$2e2bcd8739ae039)(value) && (0, $2dbf41b550c5f478$export$2e2bcd8739ae039)(value) && (0, $6911cdf7f985d482$export$2e2bcd8739ae039)(value) == $90290c84737dbb50$var$stringTag;
|
|
1288
|
-
}
|
|
1289
|
-
var $90290c84737dbb50$export$2e2bcd8739ae039 = $90290c84737dbb50$var$isString;
|
|
1290
|
-
|
|
1291
1445
|
|
|
1446
|
+
var $kNPhA = parcelRequire("kNPhA");
|
|
1292
1447
|
|
|
1293
1448
|
|
|
1294
1449
|
|
|
@@ -1555,130 +1710,6 @@ async function $b4a043612f1c4089$export$28a843ca046a6b3f(txBuilder, keys, token,
|
|
|
1555
1710
|
|
|
1556
1711
|
|
|
1557
1712
|
|
|
1558
|
-
var $cpiMl = parcelRequire("cpiMl");
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
1562
|
-
* shorthands.
|
|
1563
|
-
*
|
|
1564
|
-
* @private
|
|
1565
|
-
* @param {Array} [array] The array to iterate over.
|
|
1566
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1567
|
-
* @returns {Array} Returns the new mapped array.
|
|
1568
|
-
*/ function $a73a31c10d15d7eb$var$arrayMap(array, iteratee) {
|
|
1569
|
-
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1570
|
-
while(++index < length)result[index] = iteratee(array[index], index, array);
|
|
1571
|
-
return result;
|
|
1572
|
-
}
|
|
1573
|
-
var $a73a31c10d15d7eb$export$2e2bcd8739ae039 = $a73a31c10d15d7eb$var$arrayMap;
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
/** `Object#toString` result references. */ var $9f098434abbe9d75$var$symbolTag = '[object Symbol]';
|
|
1580
|
-
/**
|
|
1581
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1582
|
-
*
|
|
1583
|
-
* @static
|
|
1584
|
-
* @memberOf _
|
|
1585
|
-
* @since 4.0.0
|
|
1586
|
-
* @category Lang
|
|
1587
|
-
* @param {*} value The value to check.
|
|
1588
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1589
|
-
* @example
|
|
1590
|
-
*
|
|
1591
|
-
* _.isSymbol(Symbol.iterator);
|
|
1592
|
-
* // => true
|
|
1593
|
-
*
|
|
1594
|
-
* _.isSymbol('abc');
|
|
1595
|
-
* // => false
|
|
1596
|
-
*/ function $9f098434abbe9d75$var$isSymbol(value) {
|
|
1597
|
-
return typeof value == 'symbol' || (0, $2dbf41b550c5f478$export$2e2bcd8739ae039)(value) && (0, $6911cdf7f985d482$export$2e2bcd8739ae039)(value) == $9f098434abbe9d75$var$symbolTag;
|
|
1598
|
-
}
|
|
1599
|
-
var $9f098434abbe9d75$export$2e2bcd8739ae039 = $9f098434abbe9d75$var$isSymbol;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
/** Used as references for various `Number` constants. */ var $d3d5261e2cef37e4$var$INFINITY = 1 / 0;
|
|
1603
|
-
/** Used to convert symbols to primitives and strings. */ var $d3d5261e2cef37e4$var$symbolProto = (0, $ff9e97e034030f4b$export$2e2bcd8739ae039) ? (0, $ff9e97e034030f4b$export$2e2bcd8739ae039).prototype : undefined, $d3d5261e2cef37e4$var$symbolToString = $d3d5261e2cef37e4$var$symbolProto ? $d3d5261e2cef37e4$var$symbolProto.toString : undefined;
|
|
1604
|
-
/**
|
|
1605
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1606
|
-
* values to empty strings.
|
|
1607
|
-
*
|
|
1608
|
-
* @private
|
|
1609
|
-
* @param {*} value The value to process.
|
|
1610
|
-
* @returns {string} Returns the string.
|
|
1611
|
-
*/ function $d3d5261e2cef37e4$var$baseToString(value) {
|
|
1612
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
1613
|
-
if (typeof value == 'string') return value;
|
|
1614
|
-
if ((0, $36cc8c1055cfbf3b$export$2e2bcd8739ae039)(value)) // Recursively convert values (susceptible to call stack limits).
|
|
1615
|
-
return (0, $a73a31c10d15d7eb$export$2e2bcd8739ae039)(value, $d3d5261e2cef37e4$var$baseToString) + '';
|
|
1616
|
-
if ((0, $9f098434abbe9d75$export$2e2bcd8739ae039)(value)) return $d3d5261e2cef37e4$var$symbolToString ? $d3d5261e2cef37e4$var$symbolToString.call(value) : '';
|
|
1617
|
-
var result = value + '';
|
|
1618
|
-
return result == '0' && 1 / value == -$d3d5261e2cef37e4$var$INFINITY ? '-0' : result;
|
|
1619
|
-
}
|
|
1620
|
-
var $d3d5261e2cef37e4$export$2e2bcd8739ae039 = $d3d5261e2cef37e4$var$baseToString;
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
/**
|
|
1624
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
1625
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1626
|
-
*
|
|
1627
|
-
* @static
|
|
1628
|
-
* @memberOf _
|
|
1629
|
-
* @since 4.0.0
|
|
1630
|
-
* @category Lang
|
|
1631
|
-
* @param {*} value The value to convert.
|
|
1632
|
-
* @returns {string} Returns the converted string.
|
|
1633
|
-
* @example
|
|
1634
|
-
*
|
|
1635
|
-
* _.toString(null);
|
|
1636
|
-
* // => ''
|
|
1637
|
-
*
|
|
1638
|
-
* _.toString(-0);
|
|
1639
|
-
* // => '-0'
|
|
1640
|
-
*
|
|
1641
|
-
* _.toString([1, 2, 3]);
|
|
1642
|
-
* // => '1,2,3'
|
|
1643
|
-
*/ function $2b7b63cdaf61fcff$var$toString(value) {
|
|
1644
|
-
return value == null ? '' : (0, $d3d5261e2cef37e4$export$2e2bcd8739ae039)(value);
|
|
1645
|
-
}
|
|
1646
|
-
var $2b7b63cdaf61fcff$export$2e2bcd8739ae039 = $2b7b63cdaf61fcff$var$toString;
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
/** Used to match leading whitespace. */ var $ed110f8656071ee4$var$reTrimStart = /^\s+/;
|
|
1650
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */ var $ed110f8656071ee4$var$nativeParseInt = (0, $cpiMl.default).parseInt;
|
|
1651
|
-
/**
|
|
1652
|
-
* Converts `string` to an integer of the specified radix. If `radix` is
|
|
1653
|
-
* `undefined` or `0`, a `radix` of `10` is used unless `value` is a
|
|
1654
|
-
* hexadecimal, in which case a `radix` of `16` is used.
|
|
1655
|
-
*
|
|
1656
|
-
* **Note:** This method aligns with the
|
|
1657
|
-
* [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
|
|
1658
|
-
*
|
|
1659
|
-
* @static
|
|
1660
|
-
* @memberOf _
|
|
1661
|
-
* @since 1.1.0
|
|
1662
|
-
* @category String
|
|
1663
|
-
* @param {string} string The string to convert.
|
|
1664
|
-
* @param {number} [radix=10] The radix to interpret `value` by.
|
|
1665
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
1666
|
-
* @returns {number} Returns the converted integer.
|
|
1667
|
-
* @example
|
|
1668
|
-
*
|
|
1669
|
-
* _.parseInt('08');
|
|
1670
|
-
* // => 8
|
|
1671
|
-
*
|
|
1672
|
-
* _.map(['6', '08', '10'], _.parseInt);
|
|
1673
|
-
* // => [6, 8, 10]
|
|
1674
|
-
*/ function $ed110f8656071ee4$var$parseInt(string, radix, guard) {
|
|
1675
|
-
if (guard || radix == null) radix = 0;
|
|
1676
|
-
else if (radix) radix = +radix;
|
|
1677
|
-
return $ed110f8656071ee4$var$nativeParseInt((0, $2b7b63cdaf61fcff$export$2e2bcd8739ae039)(string).replace($ed110f8656071ee4$var$reTrimStart, ''), radix || 0);
|
|
1678
|
-
}
|
|
1679
|
-
var $ed110f8656071ee4$export$2e2bcd8739ae039 = $ed110f8656071ee4$var$parseInt;
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
1713
|
|
|
1683
1714
|
class $57b0117fe8233fef$export$bba690fb5c12ba04 {
|
|
1684
1715
|
/**
|
|
@@ -3079,37 +3110,7 @@ class $2ce5b75d10954bb1$export$2e2bcd8739ae039 extends (0, $57b0117fe8233fef$exp
|
|
|
3079
3110
|
|
|
3080
3111
|
|
|
3081
3112
|
|
|
3082
|
-
var $kNPhA = parcelRequire("kNPhA")
|
|
3083
|
-
* Checks if `value` is the
|
|
3084
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
3085
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
3086
|
-
*
|
|
3087
|
-
* @static
|
|
3088
|
-
* @memberOf _
|
|
3089
|
-
* @since 0.1.0
|
|
3090
|
-
* @category Lang
|
|
3091
|
-
* @param {*} value The value to check.
|
|
3092
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
3093
|
-
* @example
|
|
3094
|
-
*
|
|
3095
|
-
* _.isObject({});
|
|
3096
|
-
* // => true
|
|
3097
|
-
*
|
|
3098
|
-
* _.isObject([1, 2, 3]);
|
|
3099
|
-
* // => true
|
|
3100
|
-
*
|
|
3101
|
-
* _.isObject(_.noop);
|
|
3102
|
-
* // => true
|
|
3103
|
-
*
|
|
3104
|
-
* _.isObject(null);
|
|
3105
|
-
* // => false
|
|
3106
|
-
*/ function $fb85a1f0e1002a93$var$isObject(value) {
|
|
3107
|
-
var type = typeof value;
|
|
3108
|
-
return value != null && (type == 'object' || type == 'function');
|
|
3109
|
-
}
|
|
3110
|
-
var $fb85a1f0e1002a93$export$2e2bcd8739ae039 = $fb85a1f0e1002a93$var$isObject;
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
+
var $kNPhA = parcelRequire("kNPhA");
|
|
3113
3114
|
|
|
3114
3115
|
|
|
3115
3116
|
class $f4ad400261a08cba$export$2e2bcd8739ae039 {
|