@msafe/sui-app-store 0.0.9 → 0.0.11
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/README.md +4 -0
- package/dist/index.d.mts +19 -14
- package/dist/index.d.ts +19 -14
- package/dist/index.global.js +9 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2470 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2467 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -172,3 +172,7 @@ import { registerWallet } from '@mysten/wallet-standard';
|
|
|
172
172
|
|
|
173
173
|
registerWallet(new MSafeWallet('<your app name>'));
|
|
174
174
|
```
|
|
175
|
+
|
|
176
|
+
### Next Step
|
|
177
|
+
|
|
178
|
+
Once the development mentioned above is complete, MSafe team will assist in verifying the integration. Feedback will be provided to your team upon completion of the verification process.
|
package/dist/index.d.mts
CHANGED
|
@@ -4,31 +4,36 @@ import { SuiClient } from '@mysten/sui.js/client';
|
|
|
4
4
|
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
5
5
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type SuiNetworks = 'sui:devnet' | 'sui:testnet' | 'sui:localnet' | 'sui:mainnet';
|
|
8
|
+
|
|
9
|
+
interface MSafeAppHelper<T> {
|
|
8
10
|
application: string;
|
|
9
|
-
deserialize(input: SuiSignTransactionBlockInput):
|
|
11
|
+
deserialize(input: SuiSignTransactionBlockInput): {
|
|
12
|
+
txType: TransactionType;
|
|
13
|
+
txSubType: string;
|
|
14
|
+
intentionData: T;
|
|
15
|
+
};
|
|
10
16
|
build(input: {
|
|
17
|
+
network: SuiNetworks;
|
|
11
18
|
txType: TransactionType;
|
|
12
19
|
txSubType: string;
|
|
13
|
-
intentionData:
|
|
20
|
+
intentionData: T;
|
|
14
21
|
suiClient: SuiClient;
|
|
15
22
|
account: WalletAccount;
|
|
16
23
|
}): Promise<TransactionBlock>;
|
|
17
24
|
}
|
|
18
|
-
interface TransactionIntention<D> {
|
|
19
|
-
application: string;
|
|
20
|
-
txType: TransactionType;
|
|
21
|
-
txSubType: string;
|
|
22
|
-
data: D;
|
|
23
|
-
serialize(): string;
|
|
24
|
-
}
|
|
25
25
|
|
|
26
26
|
declare class MSafeApps {
|
|
27
|
-
apps: Map<string, MSafeAppHelper<any
|
|
28
|
-
constructor(apps: MSafeAppHelper<any
|
|
29
|
-
getAppHelper(appName: string): MSafeAppHelper<any
|
|
30
|
-
deserialize(appName: string, input: SuiSignTransactionBlockInput):
|
|
27
|
+
apps: Map<string, MSafeAppHelper<any>>;
|
|
28
|
+
constructor(apps: MSafeAppHelper<any>[]);
|
|
29
|
+
getAppHelper(appName: string): MSafeAppHelper<any>;
|
|
30
|
+
deserialize(appName: string, input: SuiSignTransactionBlockInput): {
|
|
31
|
+
txType: TransactionType;
|
|
32
|
+
txSubType: string;
|
|
33
|
+
intentionData: any;
|
|
34
|
+
};
|
|
31
35
|
build(appName: string, input: {
|
|
36
|
+
network: SuiNetworks;
|
|
32
37
|
intentionData: any;
|
|
33
38
|
txType: TransactionType;
|
|
34
39
|
txSubType: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,31 +4,36 @@ import { SuiClient } from '@mysten/sui.js/client';
|
|
|
4
4
|
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
5
5
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type SuiNetworks = 'sui:devnet' | 'sui:testnet' | 'sui:localnet' | 'sui:mainnet';
|
|
8
|
+
|
|
9
|
+
interface MSafeAppHelper<T> {
|
|
8
10
|
application: string;
|
|
9
|
-
deserialize(input: SuiSignTransactionBlockInput):
|
|
11
|
+
deserialize(input: SuiSignTransactionBlockInput): {
|
|
12
|
+
txType: TransactionType;
|
|
13
|
+
txSubType: string;
|
|
14
|
+
intentionData: T;
|
|
15
|
+
};
|
|
10
16
|
build(input: {
|
|
17
|
+
network: SuiNetworks;
|
|
11
18
|
txType: TransactionType;
|
|
12
19
|
txSubType: string;
|
|
13
|
-
intentionData:
|
|
20
|
+
intentionData: T;
|
|
14
21
|
suiClient: SuiClient;
|
|
15
22
|
account: WalletAccount;
|
|
16
23
|
}): Promise<TransactionBlock>;
|
|
17
24
|
}
|
|
18
|
-
interface TransactionIntention<D> {
|
|
19
|
-
application: string;
|
|
20
|
-
txType: TransactionType;
|
|
21
|
-
txSubType: string;
|
|
22
|
-
data: D;
|
|
23
|
-
serialize(): string;
|
|
24
|
-
}
|
|
25
25
|
|
|
26
26
|
declare class MSafeApps {
|
|
27
|
-
apps: Map<string, MSafeAppHelper<any
|
|
28
|
-
constructor(apps: MSafeAppHelper<any
|
|
29
|
-
getAppHelper(appName: string): MSafeAppHelper<any
|
|
30
|
-
deserialize(appName: string, input: SuiSignTransactionBlockInput):
|
|
27
|
+
apps: Map<string, MSafeAppHelper<any>>;
|
|
28
|
+
constructor(apps: MSafeAppHelper<any>[]);
|
|
29
|
+
getAppHelper(appName: string): MSafeAppHelper<any>;
|
|
30
|
+
deserialize(appName: string, input: SuiSignTransactionBlockInput): {
|
|
31
|
+
txType: TransactionType;
|
|
32
|
+
txSubType: string;
|
|
33
|
+
intentionData: any;
|
|
34
|
+
};
|
|
31
35
|
build(appName: string, input: {
|
|
36
|
+
network: SuiNetworks;
|
|
32
37
|
intentionData: any;
|
|
33
38
|
txType: TransactionType;
|
|
34
39
|
txSubType: string;
|