@msafe/sui-app-store 0.0.22 → 0.0.24
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.global.js +7 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -533,8 +533,14 @@ function isSameTarget(target1, target2) {
|
|
|
533
533
|
var GAS_OBJECT_SPEC = "txn.gas";
|
|
534
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
|
+
}
|
|
536
542
|
function generateGroupId() {
|
|
537
|
-
return
|
|
543
|
+
return (0, import_nanoid.nanoid)();
|
|
538
544
|
}
|
|
539
545
|
|
|
540
546
|
// src/apps/mpay/builder/CreateStreamHelper.ts
|
|
@@ -2683,14 +2689,14 @@ var MPayAppHelper = class {
|
|
|
2683
2689
|
const result = decoder.decode();
|
|
2684
2690
|
if (result.type === "CreateStream" /* CREATE_STREAM */) {
|
|
2685
2691
|
return {
|
|
2686
|
-
txType: import_sui3_utils.TransactionType.
|
|
2692
|
+
txType: import_sui3_utils.TransactionType.Stream,
|
|
2687
2693
|
txSubType: result.type,
|
|
2688
2694
|
intentionData: result.info
|
|
2689
2695
|
};
|
|
2690
2696
|
}
|
|
2691
2697
|
if (result.type === "Claim" /* CLAIM */) {
|
|
2692
2698
|
return {
|
|
2693
|
-
txType: import_sui3_utils.TransactionType.
|
|
2699
|
+
txType: import_sui3_utils.TransactionType.Stream,
|
|
2694
2700
|
txSubType: result.type,
|
|
2695
2701
|
intentionData: {
|
|
2696
2702
|
streamId: result.streamId
|
|
@@ -2699,7 +2705,7 @@ var MPayAppHelper = class {
|
|
|
2699
2705
|
}
|
|
2700
2706
|
if (result.type === "ClaimByProxy" /* CLAIM_BY_PROXY */) {
|
|
2701
2707
|
return {
|
|
2702
|
-
txType: import_sui3_utils.TransactionType.
|
|
2708
|
+
txType: import_sui3_utils.TransactionType.Stream,
|
|
2703
2709
|
txSubType: result.type,
|
|
2704
2710
|
intentionData: {
|
|
2705
2711
|
streamId: result.streamId
|
|
@@ -2708,7 +2714,7 @@ var MPayAppHelper = class {
|
|
|
2708
2714
|
}
|
|
2709
2715
|
if (result.type === "SetAutoClaim" /* SET_AUTO_CLAIM */) {
|
|
2710
2716
|
return {
|
|
2711
|
-
txType: import_sui3_utils.TransactionType.
|
|
2717
|
+
txType: import_sui3_utils.TransactionType.Stream,
|
|
2712
2718
|
txSubType: result.type,
|
|
2713
2719
|
intentionData: {
|
|
2714
2720
|
streamId: result.streamId,
|
|
@@ -2718,7 +2724,7 @@ var MPayAppHelper = class {
|
|
|
2718
2724
|
}
|
|
2719
2725
|
if (result.type === "Cancel" /* CANCEL */) {
|
|
2720
2726
|
return {
|
|
2721
|
-
txType: import_sui3_utils.TransactionType.
|
|
2727
|
+
txType: import_sui3_utils.TransactionType.Stream,
|
|
2722
2728
|
txSubType: result.type,
|
|
2723
2729
|
intentionData: {
|
|
2724
2730
|
streamId: result.streamId
|