@msafe/sui-app-store 0.0.24 → 0.0.25

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.js CHANGED
@@ -361,6 +361,7 @@ var import_transactions3 = require("@mysten/sui.js/transactions");
361
361
  // src/apps/mpay/builder/CreateStreamHelper.ts
362
362
  var import_transactions = require("@mysten/sui.js/transactions");
363
363
  var import_utils3 = require("@mysten/sui.js/utils");
364
+ var import_nanoid = require("nanoid");
364
365
 
365
366
  // src/apps/mpay/builder/const.ts
366
367
  var FEE_NUMERATOR = 50n;
@@ -532,17 +533,6 @@ function isSameTarget(target1, target2) {
532
533
  // src/apps/mpay/types/wallet.ts
533
534
  var GAS_OBJECT_SPEC = "txn.gas";
534
535
 
535
- // src/apps/mpay/utils/random.ts
536
- var import_buffer2 = require("buffer");
537
- var import_nanoid = require("nanoid");
538
- if (typeof window !== "undefined") {
539
- window.global = window.global ?? window;
540
- window.Buffer = window.Buffer ?? import_buffer2.Buffer;
541
- }
542
- function generateGroupId() {
543
- return (0, import_nanoid.nanoid)();
544
- }
545
-
546
536
  // src/apps/mpay/builder/CreateStreamHelper.ts
547
537
  var CreateStreamHelper = class _CreateStreamHelper {
548
538
  constructor(globals, feeContract, streamContract) {
@@ -554,7 +544,7 @@ var CreateStreamHelper = class _CreateStreamHelper {
554
544
  return {
555
545
  metadata: encodeMetadata({
556
546
  name: info.name,
557
- groupId: generateGroupId()
547
+ groupId: (0, import_nanoid.nanoid)()
558
548
  }),
559
549
  coinType: (0, import_utils3.normalizeStructTag)(info.coinType),
560
550
  recipients: info.recipients.map((recipient) => ({