@msafe/sui-app-store 0.0.22 → 0.0.23
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 +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,9 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/apps/mpay/helper.ts
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
TransactionType
|
|
10
|
+
} from "@msafe/sui3-utils";
|
|
9
11
|
|
|
10
12
|
// src/apps/msafe-core/intention.ts
|
|
11
13
|
import sortKeys from "sort-keys-recursive";
|
|
@@ -2653,14 +2655,14 @@ var MPayAppHelper = class {
|
|
|
2653
2655
|
const result = decoder.decode();
|
|
2654
2656
|
if (result.type === "CreateStream" /* CREATE_STREAM */) {
|
|
2655
2657
|
return {
|
|
2656
|
-
txType: TransactionType.
|
|
2658
|
+
txType: TransactionType.Stream,
|
|
2657
2659
|
txSubType: result.type,
|
|
2658
2660
|
intentionData: result.info
|
|
2659
2661
|
};
|
|
2660
2662
|
}
|
|
2661
2663
|
if (result.type === "Claim" /* CLAIM */) {
|
|
2662
2664
|
return {
|
|
2663
|
-
txType: TransactionType.
|
|
2665
|
+
txType: TransactionType.Stream,
|
|
2664
2666
|
txSubType: result.type,
|
|
2665
2667
|
intentionData: {
|
|
2666
2668
|
streamId: result.streamId
|
|
@@ -2669,7 +2671,7 @@ var MPayAppHelper = class {
|
|
|
2669
2671
|
}
|
|
2670
2672
|
if (result.type === "ClaimByProxy" /* CLAIM_BY_PROXY */) {
|
|
2671
2673
|
return {
|
|
2672
|
-
txType: TransactionType.
|
|
2674
|
+
txType: TransactionType.Stream,
|
|
2673
2675
|
txSubType: result.type,
|
|
2674
2676
|
intentionData: {
|
|
2675
2677
|
streamId: result.streamId
|
|
@@ -2678,7 +2680,7 @@ var MPayAppHelper = class {
|
|
|
2678
2680
|
}
|
|
2679
2681
|
if (result.type === "SetAutoClaim" /* SET_AUTO_CLAIM */) {
|
|
2680
2682
|
return {
|
|
2681
|
-
txType: TransactionType.
|
|
2683
|
+
txType: TransactionType.Stream,
|
|
2682
2684
|
txSubType: result.type,
|
|
2683
2685
|
intentionData: {
|
|
2684
2686
|
streamId: result.streamId,
|
|
@@ -2688,7 +2690,7 @@ var MPayAppHelper = class {
|
|
|
2688
2690
|
}
|
|
2689
2691
|
if (result.type === "Cancel" /* CANCEL */) {
|
|
2690
2692
|
return {
|
|
2691
|
-
txType: TransactionType.
|
|
2693
|
+
txType: TransactionType.Stream,
|
|
2692
2694
|
txSubType: result.type,
|
|
2693
2695
|
intentionData: {
|
|
2694
2696
|
streamId: result.streamId
|